:root {
  --bg: #f3f0e8;
  --card: #fffcf7;
  --ink: #1c1915;
  --muted: #4e4942;
  --line: #e2d9cc;
  --header: #141816;
  --header-ink: #f4f1ea;
  --copper: #7c2d12;
  --copper-soft: #9a3412;
  --green: #0b5340;
  --hero: #171c19;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.25rem;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; }

a { color: var(--green); text-underline-offset: 0.18em; }

:focus:not(:focus-visible) { outline: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection { background: #ead7c4; color: var(--ink); }

.popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 24, 22, 0.78);
}

.popup-card {
  position: relative;
  width: min(100%, 26rem);
  background: #171c19;
  padding: 3.25rem 0.85rem 0.85rem;
}

.popup-card img {
  width: 100%;
  max-height: min(70vh, 26rem);
  object-fit: contain;
  margin-inline: auto;
}

.popup-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid #e0a07a;
  background: transparent;
  color: #f4f1ea;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.popup-close:hover { background: #7c2d12; }

body.popup-open { overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  color: var(--header-ink);
}

.site-header :focus-visible { outline-color: #f0b48a; }

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-height: 48px;
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  border: 1.5px solid #e0a07a;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.logo-mark::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  background: #c46a3a;
}

.logo-type {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-type span { color: #e0a07a; font-style: italic; }

.age {
  margin-left: auto;
  border: 1px solid #e0a07a;
  color: #f0c7ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.35rem;
  line-height: 1;
}

.header-bar { position: relative; }

.nav-check {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--header-ink);
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before { top: -6px; }
.bars::after { top: 6px; }

.nav-check:focus-visible + .nav-toggle {
  outline: 2px solid #f0b48a;
  outline-offset: 3px;
}

.nav-check:checked + .nav-toggle .bars { background: transparent; }
.nav-check:checked + .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav-check:checked + .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: fixed;
  z-index: 25;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  background: var(--header);
  padding: 0.5rem 1.15rem 2rem;
  overflow: auto;
}

.nav-check:checked ~ .site-nav { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.site-nav a {
  color: var(--header-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--serif);
  font-size: 1.45rem;
  border-bottom: 1px solid #2a312c;
}

.site-nav a[aria-current="page"] { color: #f0c7ad; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .kicker { color: #f0b48a; }

.hero {
  margin-top: 1rem;
  background: var(--hero);
  color: var(--header-ink);
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem 1.1rem 1.25rem;
}

.hero :focus-visible { outline-color: #f0b48a; }

.hero h1 { color: #f7f4ee; }

.lead {
  color: #ddd6cb;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 40rem;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
  line-height: 1.2;
  text-align: center;
}

.btn:visited { color: #fff; }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: #641f0c; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #cfc6b8;
}

.btn-secondary:visited { color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }

.hero .btn-secondary {
  color: #f7f4ee;
  border-color: #8d887e;
}

.hero .btn-secondary:visited { color: #f7f4ee; }
.hero .btn-secondary:hover { border-color: #f7f4ee; }

.btn-block { width: 100%; }

.disclosure {
  margin: 0.75rem 0 0;
  color: #b7b1a6;
  font-size: 0.82rem;
}

.offer {
  background: var(--card);
  color: var(--ink);
  padding: 1.15rem 1.1rem 1.15rem;
  border-top: 4px solid #c46a3a;
}

.offer h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin-bottom: 0.25rem;
}

.offer .offer-sub {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.stats {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.stats div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats dd { margin: 0; font-weight: 650; }

.offer .fine-age {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.section { margin: 3.25rem 0; }

.section-head {
  margin-bottom: 1.15rem;
  max-width: 40rem;
}

.section-head p:last-child { margin-bottom: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
  box-shadow: var(--shadow);
}

.step-no {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:hover h3 { color: var(--copper); }

.card-link p { margin: 0; color: var(--muted); }

.shot {
  display: block;
  margin: 0 0 1rem;
  aspect-ratio: 1;
  background: #e7e1d6;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-grid {
  display: grid;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.deal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 11.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.deal::before {
  content: "";
  flex: 0 0 2.5rem;
  height: 2.5rem;
}

.deal::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #fff center / 1.55rem 1.55rem no-repeat;
  border: 1px solid var(--line);
}

.deal[href*="huhuads11"]::after { background-image: url("../images/favhb.ico"); }
.deal[href*="coolads6"]::after { background-image: url("../images/favbc.ico"); }
.deal[href*="bverseads3"]::after { background-image: url("../images/favbv.ico"); }
.deal[href*="sbguncel"]::after { background-image: url("../images/favsb.ico"); }
.deal[href*="youcas6"]::after { background-image: url("../images/favyc.ico"); }

.deal:hover { border-color: #c46a3a; }

.deal-title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  margin: 0.65rem 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.deal-cta {
  margin-top: auto;
  color: #fff;
  background: var(--copper);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: 0.95rem;
}

.deal:hover .deal-cta { background: #641f0c; }

.prose a.deal,
.prose .deal,
.prose .deal-title {
  max-width: none;
  color: inherit;
}

.offer-list {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.offer-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.partner .btn { margin-top: auto; }

.partner {
  display: flex;
  flex-direction: column;
}

.more {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #8a8478;
}

.crumbs a { color: var(--muted); }

.page-head { margin: 1.25rem 0 1.5rem; max-width: 44rem; }

.page-head h1 { margin-bottom: 0.7rem; }

.dek {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 42rem;
}

.updated {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.prose { padding-bottom: 1rem; }

.prose > * + h2 { margin-top: 2.2rem; }

.prose h2 { max-width: 22ch; }

.prose p,
.prose li { max-width: 68ch; }

.prose .offer-list li,
.brand-block .offer-list li { max-width: none; }

.note {
  background: #f7f1e4;
  border-left: 3px solid #c46a3a;
  padding: 0.9rem 1rem;
  color: #3a342c;
  max-width: 68ch;
}

.note p:last-child { margin-bottom: 0; }

.criteria {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.criteria li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem;
  max-width: none;
}

.criteria strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.faq { margin: 0.5rem 0 1rem; max-width: 44rem; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 650;
  list-style: none;
  padding: 0.35rem 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--copper);
  flex: 0 0 auto;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.related { margin-top: 2rem; }

.check {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.check li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  max-width: 68ch;
}

.check li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: #c46a3a;
  position: absolute;
  left: 0;
  top: 0.85rem;
}

.brand-block {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.1rem;
  margin: 0 0 1rem;
}

.brand-block h3 { font-size: 1.6rem; }

.responsible {
  margin-top: 1rem;
  padding: 1rem;
  background: #efe8dc;
  color: #3a342c;
  font-size: 0.95rem;
}

.responsible p { margin: 0; max-width: 75ch; }

.site-footer {
  background: var(--header);
  color: #d9d3c7;
  padding: 2.5rem 0 1.25rem;
}

.site-footer a { color: #f4f1ea; }

.site-footer :focus-visible { outline-color: #f0b48a; }

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.site-footer h2 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  color: #f7f4ee;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin: 0.28rem 0; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.legal {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid #2a312c;
  font-size: 0.85rem;
  color: #b7b1a6;
}

.legal p { max-width: 78ch; }

.page { padding-bottom: 2.5rem; }

.split-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

@media (min-width: 30em) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split-links { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 40em) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .criteria { grid-template-columns: 1fr 1fr; }
  .deal-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48em) {
  .wrap { width: min(1120px, calc(100% - 3rem)); }
  .hero { padding: 2.2rem 1.8rem; margin-top: 1.35rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stats div { grid-template-columns: 8rem 1fr; }
}

@media (min-width: 64em) {
  .logo { order: 1; }
  .site-nav { order: 2; }
  .age { order: 3; margin-left: 0.75rem; }
  .nav-toggle,
  .nav-check { display: none; }
  .site-nav {
    display: block;
    position: static;
    height: auto;
    padding: 0;
    margin-left: auto;
    overflow: visible;
    background: transparent;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem 1rem;
  }
  .site-nav a {
    min-height: 0;
    font-family: var(--sans);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    padding: 0.35rem 0;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: #e0a07a; }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 2rem;
    padding: 2.8rem 2.4rem;
  }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .deal-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .section { margin: 4.5rem 0; }
}

@media (min-width: 90em) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }
}

@media (max-width: 22.4em) {
  .logo-type { font-size: 0.92rem; }
  .stats div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (max-width: 29.99em) {
  .btn-row .btn,
  .offer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
