/* ==========================================================================
   DOMAIN — listicle · design system
   Tokens → reset → base → layout → components → pages → utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour system */
  --paper: #f6f2ea;
  --paper-2: #efe9dc;
  --sand: #e6dec9;
  --line: #d8d0bd;
  --ink: #14211c;
  --ink-2: #33433b;
  --ink-3: #5a6a60;
  --forest: #1f4d3a;
  --forest-2: #17392b;
  --forest-deep: #0e2a20;
  --moss: #6b8f71;
  --mint: #dbe8d9;
  --clay: #b24a22;
  --clay-2: #8f3a19;
  --clay-soft: #f3dccf;
  --white: #ffffff;
  --focus: #b24a22;

  /* Typography */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-3xl: clamp(2.375rem, 1.5rem + 3.8vw, 4.75rem);
  --fs-num: clamp(4.5rem, 3rem + 7vw, 9rem);

  /* Spacing — 4pt scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow-1: 0 1px 2px rgba(20, 33, 28, 0.06), 0 4px 14px rgba(20, 33, 28, 0.05);
  --shadow-2: 0 2px 6px rgba(20, 33, 28, 0.08), 0 18px 40px rgba(20, 33, 28, 0.1);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; }
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--forest); color: var(--white); }
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--forest-deep); color: var(--white); padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-3); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(var(--s-8), 8vw, var(--s-10)); }

/* ---------- 5. Reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--moss), var(--clay)); transition: width 0.08s linear; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(246, 242, 234, 0.88); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--forest-deep); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 2px; background: var(--forest); color: var(--white); }
.brand__mark .icon { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; align-items: center; gap: var(--s-5); }
.nav__link { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); padding-block: var(--s-2); position: relative; transition: color 0.2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--forest-deep); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); place-items: center; color: var(--forest-deep); }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- 7. Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--white); --btn-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:hover .icon { transform: translateX(4px); }
.btn--clay { --btn-bg: var(--clay); --btn-bd: var(--clay); }
.btn--clay:hover { --btn-bg: var(--clay-2); --btn-bd: var(--clay-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--forest-deep); --btn-bd: var(--forest-deep); }
.btn--ghost:hover { --btn-bg: var(--forest-deep); --btn-fg: var(--white); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--forest-deep); --btn-bd: var(--paper); }
.btn--light:hover { --btn-bg: var(--white); }
.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-base); }

/* ---------- 8. Hero ---------- */
.hero { padding-block: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-7), 5vw, var(--s-8)); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--mint), transparent 72%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--s-6), 5vw, var(--s-9)); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.eyebrow .icon { width: 1.2em; height: 1.2em; }
.hero__title { font-size: var(--fs-3xl); margin-top: var(--s-4); text-wrap: balance; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--forest); }
.hero__subtitle { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--ink-2); margin-top: var(--s-4); }
.hero__intro { margin-top: var(--s-6); display: grid; gap: var(--s-4); color: var(--ink-2); max-width: 60ch; }
.hero__intro p:first-child::first-letter { font-family: var(--font-serif); font-weight: 700; font-size: 3.4em; float: left; line-height: 0.85; padding: 0.08em 0.1em 0 0; color: var(--forest); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.hero__meta li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta .icon { color: var(--moss); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__media { position: relative; }
.hero__photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -22px; bottom: 36px; display: flex; align-items: center; gap: var(--s-3);
  background: var(--white); border-radius: var(--r-md); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3); box-shadow: var(--shadow-2);
}
.hero__badge strong { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; color: var(--clay); }
.hero__badge span { font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- 9. Table of contents ---------- */
.toc { background: var(--forest-deep); color: var(--paper); border-radius: var(--r-xl); padding: clamp(var(--s-6), 5vw, var(--s-8)); position: relative; overflow: hidden; }
.toc::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(107, 143, 113, 0.35), transparent 70%); pointer-events: none; }
.toc__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); position: relative; z-index: 1; }
.toc__title { font-size: var(--fs-2xl); color: var(--paper); }
.toc__title small { display: block; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-bottom: var(--s-2); }
.toc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); position: relative; z-index: 1; }
.toc__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-4); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.25s var(--ease), border-color 0.2s;
}
.toc__item:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.toc__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--moss); color: var(--forest-deep); }
.toc__ico .icon { width: 22px; height: 22px; }
.toc__num { font-family: var(--font-serif); font-size: var(--fs-xs); font-weight: 700; color: var(--moss); letter-spacing: 0.08em; display: block; }
.toc__label { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; color: var(--paper); }
.toc__arrow { color: var(--moss); transition: transform 0.25s var(--ease), color 0.2s; }
.toc__item:hover .toc__arrow { transform: translateX(4px); color: var(--paper); }

/* ---------- 10. Side rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90; display: none; flex-direction: column; gap: 6px; }
.rail__link { position: relative; display: grid; place-items: center; width: 30px; height: 22px; font-size: 11px; font-weight: 800; color: var(--ink-3); border-radius: 6px; transition: background 0.2s, color 0.2s; }
.rail__link:hover { color: var(--forest-deep); background: var(--sand); }
.rail__link.is-active { background: var(--forest); color: var(--white); }
.rail__link::before { content: attr(data-label); position: absolute; right: 38px; white-space: nowrap; background: var(--forest-deep); color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; }
.rail__link:hover::before, .rail__link:focus-visible::before { opacity: 1; transform: none; }
@media (min-width: 1380px) { .rail { display: flex; } }

/* ---------- 11. Entries (listicle items) ---------- */
.list { display: grid; gap: clamp(var(--s-8), 9vw, var(--s-10)); }
.entry { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5) clamp(var(--s-5), 4vw, var(--s-8)); align-items: start; position: relative; }
.entry + .entry::before { content: ""; position: absolute; left: 0; right: 0; top: calc(clamp(var(--s-8), 9vw, var(--s-10)) / -2); height: 1px; background: var(--line); }
.entry__media { grid-column: 1 / span 6; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.entry__body { grid-column: 7 / span 6; }
.entry--flip .entry__media { grid-column: 7 / span 6; }
.entry--flip .entry__body { grid-column: 1 / span 6; grid-row: 1; }
.entry__photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-2); position: relative; }
.entry__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.entry:hover .entry__photo img { transform: scale(1.035); }
.entry__tag { position: absolute; left: var(--s-4); bottom: var(--s-4); display: inline-flex; align-items: center; gap: var(--s-2); background: rgba(246, 242, 234, 0.94); color: var(--forest-deep); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em; backdrop-filter: blur(6px); }
.entry__tag .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--forest); color: var(--white); stroke-width: 2; }
.entry__num { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-num); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--forest); letter-spacing: -0.04em; display: block; margin-bottom: var(--s-3); }
.entry__kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.entry__title { font-size: var(--fs-xl); margin-top: var(--s-3); text-wrap: balance; }
.entry__text { margin-top: var(--s-5); display: grid; gap: var(--s-4); color: var(--ink-2); }
.entry__facts { margin-top: var(--s-6); padding: var(--s-5); background: var(--paper-2); border-radius: var(--r-md); border: 1px solid var(--line); }
.entry__facts h3 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.chip .icon { width: 14px; height: 14px; color: var(--moss); stroke-width: 2.5; }
.entry__cta { margin-top: var(--s-6); }

/* ---------- 12. Disclosure + CTA band ---------- */
.band { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--forest-deep); color: var(--paper); display: grid; grid-template-columns: 1.1fr 1fr; }
.band__body { padding: clamp(var(--s-6), 5vw, var(--s-9)); display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); }
.band__title { font-size: var(--fs-2xl); color: var(--paper); text-wrap: balance; }
.band__text { color: rgba(246, 242, 234, 0.82); max-width: 48ch; }
.band__media { min-height: 320px; position: relative; background: var(--forest); }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notice { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); }
.notice .icon { width: 1.5rem; height: 1.5rem; color: var(--clay); margin-top: 2px; }
.notice strong { color: var(--forest-deep); }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(246, 242, 234, 0.82); padding-top: var(--s-8); font-size: var(--fs-sm); }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer__brand .brand { color: var(--paper); }
.footer__brand .brand__mark { background: var(--moss); color: var(--forest-deep); }
.footer__brand p { margin-top: var(--s-4); max-width: 40ch; }
.footer__col h2 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-bottom: var(--s-4); }
.footer__list { display: grid; gap: var(--s-3); }
.footer__list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer__list .icon { width: 1.1rem; height: 1.1rem; margin-top: 3px; color: var(--moss); }
.footer__notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); padding-block: var(--s-7); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer__notes h3 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 800; color: var(--paper); letter-spacing: 0; margin-bottom: var(--s-2); }
.footer__notes p { font-size: var(--fs-sm); line-height: 1.6; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-weight: 600; }
.footer__copy { color: rgba(246, 242, 234, 0.65); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--white); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 14. Cookie banner ---------- */
.cookie { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 150; max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s-5); display: none; gap: var(--s-4); }
.cookie.is-open { display: grid; }
.cookie__head { display: flex; align-items: center; gap: var(--s-3); font-weight: 800; color: var(--forest-deep); }
.cookie__head .icon { color: var(--clay); }
.cookie p { font-size: var(--fs-sm); color: var(--ink-2); }
.cookie p a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie__prefs { display: none; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.cookie__prefs.is-open { display: grid; }
.cookie__row { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; font-size: var(--fs-sm); }
.cookie__row small { display: block; color: var(--ink-3); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: var(--white); transition: transform 0.2s var(--ease); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: 0.6; }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 15. Inner pages (legal, contact) ---------- */
.page-hero { padding-block: clamp(var(--s-7), 6vw, var(--s-9)) var(--s-6); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-hero h1 { font-size: var(--fs-2xl); margin-top: var(--s-3); }
.page-hero p { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; }
.crumbs { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(var(--s-6), 5vw, var(--s-9)); padding-block: var(--s-8) var(--s-10); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: var(--s-1); }
.legal__nav h2 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-bottom: var(--s-3); }
.legal__nav a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); transition: background 0.2s; }
.legal__nav a:hover { background: var(--sand); }
.legal__nav a[aria-current="page"] { background: var(--forest); color: var(--white); }
.legal__nav .icon { width: 1.1rem; height: 1.1rem; }
.prose { max-width: 74ch; color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-5); }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: var(--s-2); }
.prose a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); color: var(--forest-deep); font-weight: 800; }
.todo { background: var(--clay-soft); color: var(--clay-2); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; box-shadow: var(--shadow-1); }
.card__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--forest); }
.card__ico .icon { width: 26px; height: 26px; }
.card h2 { font-size: var(--fs-lg); }
.card p, .card a { color: var(--ink-2); }
.card a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 16. Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__photo { aspect-ratio: 16 / 11; border-radius: var(--r-xl); }
  .hero__badge { left: var(--s-4); bottom: var(--s-4); }
  .toc__grid { grid-template-columns: repeat(2, 1fr); }
  .entry { grid-template-columns: 1fr; }
  .entry__media, .entry--flip .entry__media, .entry__body, .entry--flip .entry__body { grid-column: 1; grid-row: auto; position: static; }
  .entry__photo { aspect-ratio: 16 / 10; }
  .band { grid-template-columns: 1fr; }
  .band__media { min-height: 260px; order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .legal__nav h2 { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--s-5) var(--gutter) var(--s-6); flex-direction: column; align-items: stretch; gap: var(--s-4); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s; box-shadow: var(--shadow-2); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .nav__link::after { display: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .toc__grid { grid-template-columns: 1fr; }
  .footer__top, .footer__notes { grid-template-columns: 1fr; }
  .hero__actions .btn, .entry__cta .btn { width: 100%; }
  .legal__nav { grid-template-columns: 1fr; }
  .cookie__actions .btn { flex: 1 1 100%; }
  .hero__intro p:first-child::first-letter { font-size: 3em; }
}

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .progress, .rail, .to-top, .cookie, .hero__actions, .entry__cta, .band { display: none !important; }
  body { background: #fff; }
  .entry__media { position: static; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Advertorial tag (header) ---------- */
.brand + .ad-tag, .ad-tag { display: inline-block; margin-left: var(--s-3); padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 480px) { .ad-tag { display: none; } }
.site-header__inner { justify-content: flex-start; }
.nav { margin-left: auto; }
.menu-toggle { margin-left: auto; }
.footer__top { grid-template-columns: 1fr; }

/* ---------- 20. Logo ---------- */
.brand { gap: 10px; }
.brand__logo { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.brand__word { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--forest-deep); line-height: 1; white-space: nowrap; }
.brand__word b { font-weight: 700; color: var(--clay); }
.brand__word i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.site-footer .brand__word { color: var(--paper); }
.site-footer .brand__word b { color: #e9a07f; }
.site-footer .brand__word i { color: rgba(246,242,234,.6); }
@media (max-width: 360px) { .brand__word { font-size: 1.05rem; } }
