@import url("../fonts/fonts.css");

:root {
  --sage: #E9EEDF;
  --fern: #2F5E45;
  --bottle: #1C3A2B;
  --persimmon: #DC5D35;
  --walnut: #1E1612;
  --note: #E6D1BD;
  --font-display: "Young Serif", "Palatino Linotype", Palatino, serif;
  --font-text: Figtree, "Segoe UI", sans-serif;
  --space: 16px;
  --measure: 62ch;
  --page: 1120px;
  --radius: 4px;
  --shadow: 0 10px 22px rgba(28, 58, 43, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--walnut);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; }
a { color: var(--bottle); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bottle); outline-offset: 3px; }
.site-header :focus-visible,
.site-footer :focus-visible,
.buy-band :focus-visible { outline-color: var(--sage); }
::selection { background: var(--bottle); color: var(--sage); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--sage);
  color: var(--bottle);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 8px; }

.consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--note);
  color: var(--walnut);
}
.consent[hidden] { display: none !important; }
.consent p { margin: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.2; }
.consent-actions { display: flex; gap: 8px; flex: 1 1 auto; }
@media (max-width: 879px) {
  .consent-actions { flex: 1 1 100%; }
  .consent button { min-width: 0; flex: 1 1 0; }
}
.consent button,
.nav-toggle,
.flip-toggle,
.buy-form button {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}
.consent button {
  flex: 1 1 auto;
  min-width: 7.5rem;
  padding: 8px 14px;
  background: var(--sage);
  color: var(--bottle);
  border: 1px solid var(--bottle);
}
.consent button:active,
.buy-form button:active,
.flip-toggle:active { transform: translateY(1px); }

.site-header {
  background: var(--bottle);
  color: var(--sage);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px var(--space);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 400;
}
.mark { width: 28px; height: 28px; flex: none; }
.nav-more { position: static; margin: 0; }
.nav-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 14px;
  line-height: 1;
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ""; }
.nav-open { display: none; }
.nav-more[open] > .nav-toggle .nav-closed { display: none; }
.nav-more[open] > .nav-toggle .nav-open { display: inline; }
.nav-links {
  display: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.nav-more[open] .nav-links { display: flex; flex-direction: column; gap: 4px; }
.nav-links a {
  color: var(--sage);
  text-decoration: none;
  padding: 8px 10px;
  font-weight: 600;
}
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

.offer-banner {
  background: var(--bottle);
  color: var(--sage);
  border-top: 1px solid var(--fern);
}
.offer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.sticker {
  flex: none;
  width: 56px;
  height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--persimmon);
  color: var(--walnut);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.05;
  transform: rotate(-4deg);
}
.banner-copy {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.25;
  color: var(--sage);
}
.banner-copy a {
  color: var(--sage);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.offer-banner :focus-visible { outline-color: var(--sage); }

.wrap { width: min(var(--page), calc(100% - 32px)); margin-inline: auto; }
main { padding-bottom: 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--bottle);
  margin: 0 0 8px;
}
h1 { font-size: 28px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
ul + h3 { margin-top: 28px; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; max-width: var(--measure); }

.hero { padding: 12px 0 12px; }
.hero-grid { display: grid; gap: 20px; }
.hero-copy .buy-form { margin-top: 8px; }
.delivery { font-size: 14px; max-width: var(--measure); margin: 8px 0 0; }

.plate {
  background: var(--fern);
  color: var(--sage);
  padding: 18px 14px 14px;
  overflow: hidden;
  clip-path: polygon(
    0.15% 0.25%, 20% 0.08%, 48% 0.22%, 74% 0.06%, 99.8% 0.18%,
    99.85% 28%, 99.75% 62%, 99.88% 99.78%,
    72% 99.9%, 40% 99.75%, 12% 99.88%, 0.18% 99.72%,
    0.1% 70%, 0.2% 36%, 0.08% 12%
  );
}

.fan {
  display: flex;
  align-items: flex-end;
  flex: 1.4 1 0;
  min-width: 0;
}
.fan-mat {
  flex: 1 1 0;
  min-width: 0;
  margin-right: -16%;
  transform-origin: center bottom;
}
.fan-mat:nth-child(1) { transform: rotate(-4deg); z-index: 1; }
.fan-mat:nth-child(2) { z-index: 2; }
.fan-mat:nth-child(3) { transform: rotate(3deg); z-index: 3; margin-right: 0; }
.proof-pair {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0.78 1 0;
  min-width: 0;
}
.line-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
.line-card { min-width: 0; }
.line-visual { display: grid; gap: 10px; margin-bottom: 12px; }
.line-card .cover-side { display: block; width: 100%; max-width: none; }
.line-card .backs { width: 100%; }
.line-card .backs .mat { flex: 1 1 0; max-width: none; }
.plate-caption { margin: 12px 4px 0; color: var(--sage); font-size: 14px; }
.plate.bundle-hero-plate { padding-inline: 8px; }
.hero-objects {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.hero-objects.bundle-hero-objects { align-items: center; }
.bundle-hero-objects .fan { flex: 0 1 58%; }
.mat {
  display: block;
  background: var(--sage);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}
.mat img { display: block; width: 100%; height: auto; }
.hero-objects .cover-mat { flex: 1.2 1 0; min-width: 0; }
.hero-objects .card-mat { flex: 0.62 1 0; min-width: 0; }
.bundle-hero-objects .bundle-back-mat { flex: 0 0 136px; min-width: 0; }

.buy-form { margin: 0; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bundle-count { margin: 8px 0 0; font-weight: 600; }
.price {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--bottle);
}
.buy-solid {
  background: var(--bottle);
  color: var(--sage);
  border: 1px solid var(--bottle);
  padding: 10px 18px;
}
.buy-line {
  background: transparent;
  color: var(--bottle);
  border: 1px solid var(--bottle);
  padding: 10px 18px;
}
.buy-band .buy-line,
.buy-band .price { color: var(--sage); }
.buy-band .buy-line { border-color: var(--sage); }
.refund { margin: 8px 0 0; font-size: 14px; max-width: 36ch; }

.section { padding: 36px 0; }
.section-buy { margin-top: 16px; }
.section h2 { margin-bottom: 12px; }
.product-block + .product-block { border-top: 1px solid rgba(28, 58, 43, 0.18); }
.product-split {
  display: grid;
  gap: 16px;
  align-items: end;
}
.product-copy { max-width: var(--measure); }
.see-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.backs {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.backs .mat { flex: 1 1 0; max-width: 140px; }
.cover-side { max-width: 220px; }
.product-fern {
  background: var(--fern);
  color: var(--sage);
  padding: 28px 0;
}
.product-fern h2,
.product-fern p { color: var(--sage); }
.product-fern a { color: var(--sage); }
.product-strip {
  display: grid;
  gap: 16px;
}
.product-strip .backs { justify-content: flex-start; }

.facts {
  display: grid;
  gap: 16px;
}
.fact {
  padding-top: 12px;
  border-top: 1px solid var(--bottle);
}
.fact h3 { font-size: 22px; }
.fact p { max-width: var(--measure); margin-bottom: 0; }

.tester {
  background: var(--note);
  color: var(--walnut);
  padding: 16px;
  max-width: 68ch;
  transform: rotate(1.5deg);
}
.tester strong { font-weight: 600; }
.tester p:last-child { margin: 0; }

.faq details {
  border-top: 1px solid rgba(28, 58, 43, 0.28);
  padding: 10px 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(28, 58, 43, 0.28); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details p { max-width: var(--measure); }

.buy-band {
  background: var(--bottle);
  color: var(--sage);
  padding: 28px 0;
}
.buy-band h2 { color: var(--sage); font-size: 28px; }
.buy-band p { color: var(--sage); max-width: var(--measure); }
.bundle-line { font-weight: 600; }

.card-label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bottle);
}
.flip-toggle {
  display: none;
  margin: 8px 0 0;
  background: transparent;
  color: var(--bottle);
  border: 1px solid var(--bottle);
  padding: 6px 10px;
  width: 100%;
}
html.js-flip .flip-toggle { display: inline-flex; align-items: center; justify-content: center; }
.flip-stage { display: flex; gap: 6px; align-items: flex-end; }
.flip-stage figure { margin: 0; flex: 1 1 0; min-width: 0; }
html.js-flip .flip-packed { display: none; }
html.js-flip .flip.is-packed .flip-roomy { display: none; }
html.js-flip .flip.is-packed .flip-packed { display: block; }
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  align-items: start;
}
.tracker h3 { font-size: 18px; margin-top: 8px; }
.tracker p { margin: 0; font-size: 14px; }
.print-proof { display: grid; gap: 20px; align-items: start; }
.sheet-pair { display: flex; gap: 10px; align-items: flex-start; }
.sheet-pair .mat { flex: 1 1 0; min-width: 0; }
.sheet-proof { margin: 0; min-width: 0; }
.sheet-proof figcaption { margin: 8px 0 0; font-size: 14px; }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec li { margin: 0; }

.site-footer {
  background: var(--bottle);
  color: var(--sage);
  padding: 28px var(--space) 36px;
}
.site-footer a { color: var(--sage); }
.site-footer p { margin: 0 0 8px; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--sage);
}
.cookie-choice {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sage);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.article, .legal, .prose { max-width: 72ch; }
/* Legal pages: the shared renderer's <main class="legal"><div class="wrap"> in the page column. */
main.legal { max-width: none; padding: 32px 0 48px; }
main.legal .wrap > * { max-width: 72ch; }
main.legal h1 { margin-bottom: 20px; }
main.legal h2 { font-size: 22px; margin: 32px 0 8px; }
main.legal p { margin: 0 0 12px; }
.article img, .article figure { margin: 16px 0; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.blog-list a { font-family: var(--font-display); font-size: 22px; text-decoration: none; }
.blog-list p { margin: 4px 0 0; }

@media (min-width: 880px) {
  h1 { font-size: 48px; }
  .site-header, .header-bar { max-height: 72px; }
  .nav-more::details-content { display: contents; }
  .nav-toggle { display: none; position: static; }
  .nav-more { flex: 0 0 auto; width: auto; }
  .nav-more[open] .nav-links,
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 4px;
    background: transparent;
  }
  .hero { padding: 20px 0 16px; }
  .hero-grid { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); align-items: center; gap: 28px; }
  .hero-objects .cover-mat { flex: 0 0 200px; }
  .hero-objects .card-mat { flex: 1 1 0; max-width: 108px; }
  .product-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .product-split.flip-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-split.flip-sides .product-visual { order: -1; }
  .product-strip { grid-template-columns: 200px 1fr; align-items: end; }
  .facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .line-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .tracker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .print-proof { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
  .refund { margin: 0; }
}

@media (min-width: 768px) {
  .sticker { width: 64px; height: 64px; font-size: 12px; }
  .offer-row { padding: 12px 0; }
  .banner-copy { font-size: 16px; line-height: 1.35; }
}

@media (max-width: 879px) {
  .header-bar {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    max-height: none;
    min-height: 56px;
    padding: 6px var(--space);
  }
  .brand {
    min-height: 44px;
    max-width: calc(100% - 96px);
  }
  .nav-more { position: static; }
  .nav-more[open] { flex: 1 0 100%; }
  .nav-toggle {
    position: absolute;
    top: 6px;
    right: var(--space);
    z-index: 2;
  }
  .nav-links {
    position: static;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .nav-more[open] .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    width: calc(100% + (2 * var(--space)));
    margin: 0 calc(-1 * var(--space));
    padding: 4px var(--space) 8px;
    border-top: 1px solid var(--fern);
    background: var(--bottle);
  }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 2px;
  }
  .hero-objects .card-mat { max-width: 78px; }
  .spec { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-flip .flip-packed,
  html.js-flip .flip.is-packed .flip-roomy,
  html.js-flip .flip.is-packed .flip-packed { display: block; }
  html.js-flip .flip-toggle { display: none; }
  .sticker, .tester, .fan-mat { transform: none; }
}

@media (min-width: 1100px) {
  .tracker-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .bundle-hero-objects .bundle-back-mat { flex-basis: 196px; }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .tracker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
