/* ============================================================
   keto-keto.com — standalone stylesheet
   Design system: farm-stand chalkboard at golden hour (sweetgreen)
   transposed into a Spanish keto "carta". Light theme only.
   Display face: Space Grotesk (geometric grotesque, SweetSans role)
   Body face:    Inter (SweetSansText role)
   ============================================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --forest: #00473c;
  --lime: #e6ff55;
  --sage: #d8e5d6;
  --sand: #e8dcc6;
  --cream: #f4f3e7;
  --ink: #0e150e;
  --black: #000000;
  --warm-gray: #8c8c82;
  --slate: #555555;

  /* Derived tones for AA-safe secondary text on cream */
  --ink-70: #3a423a;
  --forest-deep: #00312a;
  --sage-line: #b9cdb6;
  --sand-line: #d5c4a6;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
  --section-y: clamp(56px, 8vw, 104px);

  --r-card: 24px;
  --r-img: 20px;
  --r-input: 8px;
  --r-pill: 9999px;

  --shadow-food: rgba(14, 21, 14, 0.22) 4px 8px 40px -14px;
  --shadow-panel: rgba(14, 21, 14, 0.30) 0 24px 60px -30px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

/* ---- Layout helpers ---- */
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }
.band { padding-block: var(--section-y); }
.band--sage { background: var(--sage); }
.band--sand { background: var(--sand); }
.band--forest { background: var(--forest); color: var(--cream); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -80px;
  z-index: 200;
  background: var(--forest); color: var(--cream);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--forest :focus-visible { outline-color: var(--lime); }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.band--forest .eyebrow { color: var(--lime); }

/* ---- Display headings ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
}
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.subhead {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; letter-spacing: 0.015em;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 15px 26px;
  border: 2px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
  line-height: 1;
}
.btn--lime {
  background: var(--lime); color: var(--ink);
  box-shadow: var(--shadow-food);
}
.btn--lime:hover { transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--forest);
  border-color: var(--forest);
}
.btn--outline:hover { background: var(--forest); color: var(--cream); }
.band--forest .btn--outline { color: var(--cream); border-color: var(--cream); }
.band--forest .btn--outline:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---- Ghost text link ---- */
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.ghost .arrow { transition: transform .18s ease; }
.ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.ghost:hover .arrow { transform: translateX(4px); }
.band--forest .ghost { color: var(--cream); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--sand-line);
}
.nav {
  max-width: var(--page-max); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--forest);
}
.brand__mark {
  width: 38px; height: 38px;
  flex: none;
}
.brand__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.03em;
}
.nav__links {
  display: flex; align-items: center; gap: 30px;
}
.nav__link {
  font-family: var(--font-body); font-weight: 700;
  font-size: 13.5px; letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.nav__link:hover { color: var(--forest); }
.nav__link.is-active { border-color: var(--lime); color: var(--forest); }
.nav__cta { margin-left: 6px; padding: 11px 20px; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__toggle {
  display: none;
  background: transparent; border: 2px solid var(--forest);
  border-radius: var(--r-pill); padding: 9px 12px;
  color: var(--forest);
}
.nav__toggle-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav__toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }

/* Mobile drawer */
.nav__overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 21, 14, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links {
    position: fixed; z-index: 95;
    top: 0; right: 0; height: 100dvh; width: min(84vw, 340px);
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    gap: 8px;
    padding: 88px 28px 32px;
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
    box-shadow: var(--shadow-panel);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link {
    font-size: 16px; letter-spacing: 0.06em; width: 100%;
    padding: 12px 0; border-bottom: 1px solid var(--sand-line);
  }
  .nav__link.is-active { border-color: var(--sand-line); }
  .nav__cta { margin: 16px 0 0; font-size: 15px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ============================================================
   HERO (full-bleed food photo + bottom-left cream panel)
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--forest);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,49,42,.55) 0%, rgba(0,49,42,.12) 45%, rgba(0,49,42,0) 70%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--page-max); width: 100%;
  margin-inline: auto; padding: var(--gutter);
}
.hero__panel {
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
  max-width: 640px;
  box-shadow: var(--shadow-panel);
}
.hero__title { margin: 0 0 18px; }
.hero__lede {
  font-size: 18px; line-height: 1.5; color: var(--ink-70);
  max-width: 52ch; margin: 0 0 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   LA CARTA (menu-style typographic rows)
   ============================================================ */
.carta__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.carta__head p { max-width: 46ch; color: var(--ink-70); font-size: 17px; }
.carta__list { display: flex; flex-direction: column; }
.carta__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 26px 4px;
  border-top: 1px solid var(--sand-line);
  text-decoration: none; color: var(--ink);
  transition: color .16s ease;
}
.carta__list .carta__row:last-child { border-bottom: 1px solid var(--sand-line); }
.carta__row:hover { color: var(--forest); }
.carta__num {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; color: var(--warm-gray);
}
.carta__row:hover .carta__num { color: var(--forest); }
.carta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1;
  letter-spacing: -0.015em;
}
.carta__desc {
  display: block; margin-top: 8px; font-size: 15.5px;
  color: var(--ink-70); font-weight: 400; letter-spacing: 0.01em;
  max-width: 60ch;
}
.carta__tag {
  align-self: center;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--lime); color: var(--ink);
  padding: 6px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ============================================================
   PRODUCT CARDS (photo IS the card)
   ============================================================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { max-width: 18ch; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 44px);
}
.pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pcard__media {
  position: relative; border-radius: var(--r-img); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sage);
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.pcard__body { padding: 20px 2px 4px; }
.pcard__meta {
  font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 700; color: var(--warm-gray); margin-bottom: 10px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pcard__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.4rem; line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pcard:hover .pcard__title { text-decoration: underline; text-underline-offset: 4px; }
.pcard__desc { font-size: 15.5px; line-height: 1.5; color: var(--ink-70); margin-bottom: 16px; }
.pcard__link { margin-top: auto; }

/* ============================================================
   SPLIT SECTION (text + photo)
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%; border-radius: var(--r-img); object-fit: cover;
  aspect-ratio: 5 / 6; box-shadow: var(--shadow-food);
}
.split__title { margin-bottom: 22px; }
.split__body > p { color: var(--ink-70); font-size: 17px; margin-bottom: 16px; max-width: 56ch; }
.split__body > p:last-child { margin-bottom: 0; }
.split__body strong { color: var(--ink); }

/* ============================================================
   VALUES ROW
   ============================================================ */
.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
}
.value__k {
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--lime); margin-bottom: 14px;
}
.band:not(.band--forest) .value__k { color: var(--forest); }
.value h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
  letter-spacing: 0.01em; margin-bottom: 8px;
}
.value p { font-size: 15px; line-height: 1.5; opacity: .85; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--forest); color: var(--cream);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px); align-items: center;
  box-shadow: var(--shadow-panel);
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,255,85,.18), transparent 68%);
}
.newsletter__title { margin-bottom: 14px; color: var(--cream); }
.newsletter__text { font-size: 16px; line-height: 1.55; opacity: .88; max-width: 46ch; }
.newsletter__form { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.newsletter__field {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.newsletter__input {
  flex: 1 1 200px;
  background: var(--cream); color: var(--ink);
  border: 2px solid transparent; border-radius: var(--r-input);
  padding: 15px 18px; font-size: 16px; font-family: var(--font-body);
}
.newsletter__input::placeholder { color: var(--slate); }
.newsletter__input:focus-visible { outline-color: var(--lime); }
.newsletter__note { font-size: 13px; opacity: .7; }
.newsletter__note a { color: var(--lime); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(48px, 6vw, 76px) 32px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
}
.footer__brand .brand { color: var(--cream); margin-bottom: 18px; }
.footer__brand .brand__word { color: var(--cream); }
.footer__desc { font-size: 15px; line-height: 1.55; opacity: .78; max-width: 42ch; }
.footer__heading {
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  text-decoration: none; color: var(--cream); opacity: .82; font-size: 15px;
  transition: opacity .16s ease, color .16s ease;
}
.footer__links a:hover { opacity: 1; color: var(--lime); }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 60px); padding-top: 24px;
  border-top: 1px solid rgba(244,243,231,.16);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; opacity: .7;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px;
  max-width: 640px; margin-inline: auto;
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--forest);
  border-radius: var(--r-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-panel);
  display: none;
}
.cookie.is-visible { display: block; }
.cookie__text { font-size: 14.5px; line-height: 1.5; margin-bottom: 16px; }
.cookie__text a { color: var(--forest); font-weight: 700; }
.cookie__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie__btn {
  border-radius: var(--r-pill); padding: 12px 22px; font-weight: 700; font-size: 15px;
  border: 2px solid var(--forest);
}
.cookie__btn--accept { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cookie__btn--reject { background: transparent; color: var(--forest); }
.cookie__btn--reject:hover { background: var(--forest); color: var(--cream); }

/* ============================================================
   PAGE HEADERS (listing / static)
   ============================================================ */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-hero__lede {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-70);
  max-width: 60ch; margin-top: 22px; line-height: 1.5;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article { padding-top: clamp(24px, 4vw, 40px); }
.breadcrumb { margin-bottom: 26px; }
.breadcrumb-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0;
  font-size: 13px; letter-spacing: 0.03em; color: var(--warm-gray);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after { content: "/"; color: var(--sand-line); }
.breadcrumb-list a { color: var(--forest); text-decoration: none; font-weight: 700; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list [aria-current="page"] { color: var(--ink-70); }

.article__header { max-width: 820px; margin-bottom: 34px; }
.article__kicker { margin-bottom: 20px; }
.article__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.article__standfirst { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-70); max-width: 62ch; }
.article__byline {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sand-line);
  font-size: 14px; color: var(--ink-70);
}
.article__byline .author { font-weight: 700; color: var(--ink); }
.article__byline .dot { color: var(--sand-line); }
.article__cover {
  margin: clamp(28px, 4vw, 44px) 0;
  border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-food);
}
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article__layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.toc { position: sticky; top: 96px; }
.toc__label {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest);
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--sand-line);
}
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toc__list a {
  text-decoration: none; color: var(--ink-70); font-size: 14px; line-height: 1.35;
  display: block; padding-left: 14px; border-left: 2px solid var(--sand-line);
  transition: color .16s ease, border-color .16s ease;
}
.toc__list a:hover { color: var(--forest); border-color: var(--forest); }

/* ---- Prose ---- */
.prose { max-width: 720px; font-size: 18px; line-height: 1.68; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.015em;
  margin-top: 1.9em; padding-top: 0.3em; scroll-margin-top: 96px;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 1.6em; scroll-margin-top: 96px;
}
.prose h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 1.12rem;
  margin-top: 1.5em; scroll-margin-top: 96px;
}
.prose p { margin: 0; }
.prose a {
  color: var(--forest); text-decoration: underline;
  text-decoration-color: var(--sage-line); text-underline-offset: 3px;
  text-decoration-thickness: 2px; font-weight: 500;
}
.prose a:hover { text-decoration-color: var(--forest); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: var(--forest); }
.prose img { border-radius: var(--r-img); margin-inline: auto; box-shadow: var(--shadow-food); }

/* Blockquote as YMYL / notice box */
.prose blockquote {
  margin: 1.6em 0; padding: 24px 26px;
  background: var(--sage); border-radius: var(--r-input);
  border-left: 5px solid var(--forest);
  font-size: 16.5px; line-height: 1.6; color: var(--ink);
}
.prose blockquote > * + * { margin-top: 0.8em; }
.prose blockquote strong { color: var(--forest-deep); }
.prose blockquote a { color: var(--forest-deep); }

/* Tables */
.prose .table-scroll, .table-scroll {
  overflow-x: auto; margin: 1.6em 0;
  border-radius: var(--r-input); border: 1px solid var(--sand-line);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  border-collapse: collapse; width: 100%; min-width: 460px;
  font-size: 15.5px; background: var(--cream);
}
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--sand-line); }
.prose thead th {
  background: var(--forest); color: var(--cream);
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--sage) 40%, var(--cream)); }
.prose tbody tr:last-child td { border-bottom: none; }

/* Figures, video, charts */
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose figure svg { width: 100%; }
.prose figure svg { border-radius: var(--r-input); background: var(--cream); color: var(--ink); box-shadow: none; }
.prose figcaption {
  margin-top: 12px; font-size: 13.5px; line-height: 1.5;
  color: var(--warm-gray); text-align: center; max-width: 60ch; margin-inline: auto;
}
.prose iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--r-img); display: block;
}
.prose hr { border: none; border-top: 1px solid var(--sand-line); margin: 2em 0; }

/* Article footer / related */
.article__footer {
  margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--sand-line);
}

/* ============================================================
   LEGAL / SHARED FALLBACK VIEWS
   ============================================================ */
.section { padding-block: clamp(40px, 6vw, 80px); }
.container { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.section .prose { max-width: none; font-size: 17px; line-height: 1.65; }
.section .prose h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}
.legal-updated { color: var(--warm-gray); font-size: 14px; margin-top: -0.4em; }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.notfound__code {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(5rem, 18vw, 11rem); line-height: 0.85; letter-spacing: -0.03em;
  color: var(--forest);
}
.notfound__code span { color: var(--lime); -webkit-text-stroke: 2px var(--forest); }
.notfound__text { font-size: 18px; color: var(--ink-70); margin: 18px auto 30px; max-width: 44ch; }

/* ============================================================
   Static contact / about helpers
   ============================================================ */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px); margin-top: clamp(28px, 4vw, 44px);
}
.info-card {
  background: var(--cream); border: 1px solid var(--sand-line);
  border-radius: var(--r-card); padding: 28px;
}
.band--sage .info-card, .band--sand .info-card { background: color-mix(in srgb, var(--cream) 70%, transparent); }
.info-card h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px;
}
.info-card p { font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.info-card a { color: var(--forest); font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

.sitemap-group { margin-bottom: clamp(28px, 4vw, 40px); }
.sitemap-group h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.6rem;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sitemap-list a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
}
.sitemap-list a::before { content: "→"; color: var(--forest); }
.sitemap-list a:hover { color: var(--forest); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .article__layout { grid-template-columns: 1fr; }
  .toc {
    position: static; background: var(--sage); border-radius: var(--r-card);
    padding: 22px 24px; margin-bottom: 8px;
  }
  .toc__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
  .newsletter { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .footer__grid { grid-template-columns: 1fr; }
  .carta__row { grid-template-columns: auto 1fr; }
  .carta__tag { grid-column: 2; justify-self: start; margin-top: 12px; }
  .hero__panel { max-width: none; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
