/* ==========================================================================
   Hearth & Thyme — Design System
   Warm handcrafted editorial food journal
   Tokens mirror the Ardot canvas (file 728642926340404)
   ========================================================================== */

/* 1. TOKENS ─────────────────────────────────────────────────────────────── */
:root{
  /* Surfaces */
  --cream:      #FBF7F0;
  --cream-2:    #F4EBDE;
  --cream-3:    #F1E9DC;
  --paper:      #FFFFFF;

  /* Ink */
  --ink-900:    #241C15;
  --ink-800:    #2B2118;
  --ink-700:    #4A3B2E;
  --ink-500:    #6E5E4E;
  --ink-400:    #8A7666;

  /* Lines */
  --line:       #E7DAC5;
  --line-soft:  #EFE4D3;
  --line-2:     #E2D5C0;

  /* Accents */
  --terracotta:      #C0562F;
  --terracotta-dark: #A6451F;
  --terracotta-soft: #F6E3D9;
  --olive:           #6B7A4B;
  --olive-soft:      #E9ECDE;
  --gold:            #D9A441;

  /* Dark band (footer) */
  --night:      #241C15;
  --night-2:    #2E241B;
  --night-line: #382C22;
  --night-text: #D8C9B8;
  --night-muted:#9C8A76;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand:  "Caveat", "Segoe Script", cursive;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: 32px;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(43,33,24,.05), 0 2px 8px rgba(43,33,24,.04);
  --sh-2: 0 2px 6px rgba(43,33,24,.06), 0 12px 28px rgba(43,33,24,.07);
}

/* 2. 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-700);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--terracotta); text-decoration:none; }
a:hover{ color:var(--terracotta-dark); }
button{ font:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--serif); color:var(--ink-800); margin:0; font-weight:600; line-height:1.15; letter-spacing:-.01em; }
p{ margin:0 0 1.1em; }
ul,ol{ margin:0; padding:0; }
figure{ margin:0; }
:focus-visible{ outline:2px solid var(--terracotta); outline-offset:3px; border-radius:2px; }

/* 3. LAYOUT PRIMITIVES ─────────────────────────────────────────────────── */
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.wrap--narrow{ max-width:820px; }
.wrap--wide{ max-width:1360px; }
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--cream{ background:var(--cream-2); }
.section--rule{ border-top:1px solid var(--line); }
.stack > * + *{ margin-top:16px; }
.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;
}

/* 4. TYPOGRAPHY HELPERS ────────────────────────────────────────────────── */
.eyebrow{
  font-size:12px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--terracotta); margin:0 0 14px;
}
.eyebrow--olive{ color:var(--olive); }
.eyebrow--muted{ color:var(--ink-400); }
.h-display{ font-size:clamp(38px,5.4vw,68px); line-height:1.04; font-weight:600; }
.h-xl{ font-size:clamp(30px,3.6vw,44px); }
.h-lg{ font-size:clamp(24px,2.6vw,32px); }
.h-md{ font-size:22px; }
.lede{ font-size:19px; line-height:1.7; color:var(--ink-500); }
.meta{ font-size:13.5px; color:var(--ink-400); letter-spacing:.01em; }
.hand{ font-family:var(--hand); font-size:24px; color:var(--ink-500); }
.rule-short{ width:56px; height:2px; background:var(--terracotta); border:0; margin:22px 0; }

.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; }
.section-head__link{ font-size:14px; font-weight:600; white-space:nowrap; border-bottom:1px solid currentColor; padding-bottom:2px; }

/* 5. BUTTONS ───────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--sans); font-size:14.5px; font-weight:600; letter-spacing:.01em;
  padding:13px 24px; border-radius:var(--r); border:1px solid transparent;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-align:center; line-height:1;
}
.btn--primary{ background:var(--terracotta); color:#fff; }
.btn--primary:hover{ background:var(--terracotta-dark); color:#fff; }
.btn--ghost{ background:transparent; color:var(--ink-800); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--ink-800); color:var(--ink-800); }
.btn--olive{ background:var(--olive); color:#fff; }
.btn--olive:hover{ background:#5A6840; color:#fff; }
.btn--sm{ padding:9px 16px; font-size:13px; }
.btn--block{ width:100%; }

/* 6. CHIPS / PILLS ─────────────────────────────────────────────────────── */
.chip{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13px; font-weight:600; letter-spacing:.01em;
  padding:9px 16px; border-radius:999px; border:1px solid var(--line-2);
  background:var(--paper); color:var(--ink-700); white-space:nowrap;
  transition:border-color .16s ease, background .16s ease, color .16s ease;
}
.chip:hover{ border-color:var(--terracotta); color:var(--terracotta); }
.chip--active{ background:var(--ink-800); border-color:var(--ink-800); color:#fff; }
.chip--active:hover{ background:var(--ink-800); color:#fff; }
.chip-row{ display:flex; flex-wrap:wrap; gap:10px; }
.chip-scroll{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.chip-scroll::-webkit-scrollbar{ display:none; }
.tag{
  font-size:10.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:var(--terracotta);
}
.tag--olive{ color:var(--olive); }
.pill{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:6px 12px; border-radius:999px;
  background:var(--terracotta-soft); color:var(--terracotta-dark);
}
.pill--olive{ background:var(--olive-soft); color:#4E5A34; }

/* 7. HEADER ────────────────────────────────────────────────────────────── */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(251,247,240,.94);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:28px; height:76px;
}
.brand{ display:flex; align-items:center; gap:11px; color:var(--ink-800); flex:0 0 auto; }
.brand:hover{ color:var(--ink-800); }
.brand__mark{ width:34px; height:34px; flex:0 0 auto; }
.brand__name{ font-family:var(--serif); font-size:20px; font-weight:600; letter-spacing:-.01em; }
.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{
  font-size:14.5px; font-weight:500; color:var(--ink-700);
  padding:6px 0; position:relative;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--terracotta); transform:scaleX(0); transition:transform .2s ease;
}
.main-nav a:hover{ color:var(--ink-900); }
.main-nav a:hover::after, .main-nav a[aria-current]::after{ transform:scaleX(1); }
.main-nav a[aria-current]{ color:var(--ink-900); font-weight:600; }
.header-actions{ display:flex; align-items:center; gap:16px; flex:0 0 auto; }
.icon-btn{
  width:38px; height:38px; display:grid; place-items:center;
  border:0; background:transparent; border-radius:var(--r); color:var(--ink-700);
}
.icon-btn:hover{ background:var(--cream-2); color:var(--ink-900); }
.header-rule{ width:1px; height:22px; background:var(--line-2); }
.nav-toggle{ display:none; }

/* Mobile drawer */
.nav-drawer{
  display:none; border-top:1px solid var(--line); background:var(--cream);
  padding:14px 0 22px;
}
.nav-drawer a{
  display:block; padding:12px 0; font-size:16px; color:var(--ink-800);
  border-bottom:1px solid var(--line-soft);
}
.nav-drawer .btn{ margin-top:18px; }
.site-header[data-open="true"] .nav-drawer{ display:block; }

/* 8. BREADCRUMB ────────────────────────────────────────────────────────── */
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:9px;
  font-size:13px; color:var(--ink-400); padding:20px 0;
  border-bottom:1px solid var(--line);
}
.crumbs a{ color:var(--ink-500); }
.crumbs a:hover{ color:var(--terracotta); }
.crumbs span[aria-current]{ color:var(--ink-800); font-weight:500; }

/* 9. HERO ──────────────────────────────────────────────────────────────── */
.hero{ padding:72px 0 64px; }
.hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.hero__title{ margin-bottom:22px; }
.hero__lede{ max-width:520px; margin-bottom:30px; }
.hero__media{ position:relative; }
.hero__media img{ width:100%; border-radius:var(--r-lg); box-shadow:var(--sh-2); aspect-ratio:4/3.2; object-fit:cover; }
.hero__note{
  position:absolute; right:-18px; bottom:-22px; background:var(--paper);
  border:1px solid var(--line); border-radius:var(--r); padding:14px 18px;
  box-shadow:var(--sh-1); max-width:220px;
}
.hero__note strong{ display:block; font-size:13px; color:var(--ink-800); }
.hero__note span{ font-size:12px; color:var(--ink-400); }

.search-bar{
  display:flex; gap:10px; background:var(--paper); border:1px solid var(--line-2);
  border-radius:var(--r); padding:7px; max-width:480px; margin-bottom:26px;
  box-shadow:var(--sh-1);
}
.search-bar input{
  flex:1; border:0; background:transparent; padding:11px 14px;
  font:inherit; font-size:15px; color:var(--ink-800); min-width:0;
}
.search-bar input::placeholder{ color:var(--ink-400); }
.search-bar input:focus{ outline:none; }

.trust-row{ display:flex; flex-wrap:wrap; gap:26px; padding-top:24px; border-top:1px solid var(--line); }
.trust-row div{ font-size:13px; color:var(--ink-500); }
.trust-row strong{ display:block; font-family:var(--serif); font-size:22px; color:var(--ink-800); font-weight:600; }

/* Category-page hero */
.cat-hero{ padding:56px 0 40px; border-bottom:1px solid var(--line); }
.cat-hero__deck{ max-width:680px; margin:18px 0 22px; font-size:18px; color:var(--ink-500); }
.cat-hero__meta{ font-size:13.5px; color:var(--ink-400); }

/* 10. CARDS ────────────────────────────────────────────────────────────── */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }

/* ── SEARCH PAGE ─────────────────────────────────────── */
.search-page{ padding:64px 0 96px; max-width:880px; }
.search-page .eyebrow{ margin-bottom:8px; }
.search-page .h-display{ font-size:clamp(34px,5vw,56px); }
.search-page .lede{ margin:10px 0 26px; color:var(--ink-500); max-width:54ch; }
.search-bar--lg{ max-width:640px; margin-top:6px; }
.search-bar--lg input{ font-size:17px; padding:14px 16px; }
.search-meta{ margin:22px 0 4px; color:var(--ink-500); font-size:14px; min-height:1.2em; }
.search-empty{ margin-top:18px; color:var(--ink-500); }
.search-empty a{ color:var(--terracotta); }

.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px; }

.cat-card{
  position:relative; display:block; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--sh-1); color:#fff;
}
.cat-card img{ aspect-ratio:4/3; object-fit:cover; width:100%; transition:transform .5s ease; }
.cat-card:hover img{ transform:scale(1.045); }
.cat-card__body{
  position:absolute; inset:auto 0 0 0; padding:22px 22px 20px;
  background:linear-gradient(180deg, rgba(36,28,21,0) 0%, rgba(36,28,21,.82) 62%);
}
.cat-card__name{ font-family:var(--serif); font-size:22px; font-weight:600; margin:0 0 5px; color:#fff; }
.cat-card__count{ font-size:12.5px; color:rgba(255,255,255,.82); }

.recipe-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.recipe-card:hover{ transform:translateY(-3px); box-shadow:var(--sh-2); border-color:var(--line-2); }
.recipe-card__media{ display:block; overflow:hidden; }
.recipe-card__media img{ aspect-ratio:3/2; object-fit:cover; width:100%; transition:transform .5s ease; }
.recipe-card:hover .recipe-card__media img{ transform:scale(1.04); }
.recipe-card__body{ padding:20px 22px 24px; display:flex; flex-direction:column; flex:1; }
.recipe-card__title{
  font-family:var(--serif); font-size:20px; font-weight:600; line-height:1.28;
  margin:8px 0 12px;
}
.recipe-card__title a{ color:var(--ink-800); }
.recipe-card__title a:hover{ color:var(--terracotta); }
.recipe-card__meta{ font-size:13px; color:var(--ink-400); margin-top:auto; }

/* Row-style list */
.row-list{ border-top:1px solid var(--line); }
.row-item{
  display:grid; grid-template-columns:196px 1fr auto; gap:28px; align-items:center;
  padding:26px 0; border-bottom:1px solid var(--line);
}
.row-item img{ width:196px; aspect-ratio:4/3; object-fit:cover; border-radius:var(--r); }
.row-item__title{ font-family:var(--serif); font-size:22px; font-weight:600; margin:8px 0 8px; }
.row-item__title a{ color:var(--ink-800); }
.row-item__title a:hover{ color:var(--terracotta); }
.row-item__excerpt{ font-size:14.5px; color:var(--ink-500); margin:0 0 10px; max-width:600px; }
.row-item__aside{ text-align:right; font-size:13px; color:var(--ink-400); }

/* 11. ARTICLE / RECIPE DETAIL ──────────────────────────────────────────── */
.recipe-head{ padding:44px 0 0; }
.recipe-head__title{ margin:16px 0 18px; max-width:900px; }
.recipe-head__deck{ font-size:19.5px; color:var(--ink-500); max-width:760px; margin-bottom:26px; }
.byline{ display:flex; align-items:center; gap:14px; padding-top:22px; border-top:1px solid var(--line); flex-wrap:wrap; }
.byline img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.byline__name{ font-size:14.5px; font-weight:600; color:var(--ink-800); margin:0; }
.byline__meta{ font-size:13px; color:var(--ink-400); margin:2px 0 0; }
.byline__actions{ margin-left:auto; display:flex; gap:10px; }

.recipe-hero{ margin:34px 0 0; }
.recipe-hero img{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--r-lg); box-shadow:var(--sh-2); }
.recipe-hero figcaption{ font-size:13px; color:var(--ink-400); margin-top:13px; }

.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper);
  margin:30px 0 0; overflow:hidden;
}
.stat{ padding:22px 24px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:0; }
.stat__value{ font-family:var(--serif); font-size:26px; font-weight:600; color:var(--ink-800); }
.stat__label{ font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-400); margin-top:6px; }

.body-cols{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:64px; align-items:start; padding:56px 0 0; }
.prose h2{ font-size:28px; margin:0 0 18px; }
.prose h3{ font-size:20px; margin:34px 0 12px; }
.prose p{ font-size:17px; line-height:1.78; color:var(--ink-700); }
.prose--intro p:first-of-type{ font-size:19px; color:var(--ink-800); }

.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:30px 32px; margin-bottom:28px;
}
.card--accent{ background:var(--cream-2); border-color:var(--line-2); }
.card__head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.card__title{ font-size:24px; }

.ing-list{ list-style:none; display:grid; gap:2px; }
.ing-list li{
  display:grid; grid-template-columns:22px 1fr; gap:12px; align-items:start;
  padding:11px 0; border-bottom:1px dashed var(--line); font-size:16px; color:var(--ink-700);
}
.ing-list li:last-child{ border-bottom:0; }
.ing-list input[type=checkbox]{ margin-top:5px; accent-color:var(--terracotta); width:15px; height:15px; }

.step{ display:grid; grid-template-columns:46px 1fr; gap:20px; padding:22px 0; border-bottom:1px solid var(--line-soft); }
.step:last-child{ border-bottom:0; padding-bottom:0; }
.step__num{
  width:38px; height:38px; border-radius:50%; background:var(--terracotta-soft);
  color:var(--terracotta-dark); font-family:var(--serif); font-size:17px; font-weight:600;
  display:grid; place-items:center;
}
.step__text{ font-size:16.5px; line-height:1.72; color:var(--ink-700); }

.note-item{ padding:20px 0; border-bottom:1px solid var(--line-soft); }
.note-item:last-child{ border-bottom:0; padding-bottom:0; }
.note-item h4{ font-size:17px; margin-bottom:8px; }
.note-item p{ font-size:15.5px; color:var(--ink-500); margin:0; line-height:1.7; }

.faq-item{ padding:22px 0; border-bottom:1px solid var(--line-soft); }
.faq-item:last-child{ border-bottom:0; padding-bottom:0; }
.faq-item h4{ font-size:17.5px; margin-bottom:10px; }
.faq-item p{ font-size:15.5px; color:var(--ink-500); margin:0; line-height:1.72; }

.author-card{ display:flex; gap:22px; align-items:flex-start; }
.author-card img{ width:76px; height:76px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.author-card p{ font-size:15px; color:var(--ink-500); margin:8px 0 0; line-height:1.7; }

/* Sidebar */
.sidebar{ position:sticky; top:100px; }
.side-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:24px 26px; margin-bottom:22px;
}
.side-card__title{ font-size:18px; margin-bottom:16px; }
.nutrition-table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.nutrition-table td{ padding:9px 0; border-bottom:1px solid var(--line-soft); color:var(--ink-500); }
.nutrition-table td:last-child{ text-align:right; font-weight:600; color:var(--ink-800); }
.nutrition-table tr:last-child td{ border-bottom:0; }
.side-list{ list-style:none; display:grid; gap:0; }
.side-list li{ border-bottom:1px solid var(--line-soft); }
.side-list li:last-child{ border-bottom:0; }
.side-list a{ display:grid; grid-template-columns:64px 1fr; gap:14px; align-items:center; padding:13px 0; }
.side-list img{ width:64px; height:64px; border-radius:var(--r); object-fit:cover; }
.side-list strong{ display:block; font-size:14.5px; color:var(--ink-800); font-weight:600; line-height:1.35; }
.side-list span{ font-size:12px; color:var(--ink-400); }
.check-list{ list-style:none; font-size:14.5px; color:var(--ink-500); display:grid; gap:9px; }
.equip-list{ list-style:none; font-size:14.5px; color:var(--ink-500); display:grid; gap:10px; }
.equip-list li{ padding-left:18px; position:relative; }
.equip-list li::before{ content:"—"; position:absolute; left:0; color:var(--terracotta); }

.rate-box{ text-align:center; }
.stars{ display:flex; justify-content:center; gap:6px; margin:6px 0 14px; }
.stars svg{ width:26px; height:26px; }
.rate-box p{ font-size:13.5px; color:var(--ink-400); margin:0; }

/* 12. ADS ──────────────────────────────────────────────────────────────── */
.ad-wrap{ margin:44px auto; text-align:center; }
.ad-label{
  font-size:10px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-400); margin-bottom:9px; display:block;
}
.ad-slot{
  border:1px dashed var(--line-2); background:var(--cream-3);
  border-radius:var(--r); display:grid; place-items:center;
  color:var(--ink-400); font-size:13px;
}
.ad-slot--leaderboard{ min-height:110px; }
.ad-slot--rectangle{ min-height:260px; }
.ad-wrap--inline{ margin:36px 0; }

/* 13. NEWSLETTER ───────────────────────────────────────────────────────── */
.newsletter{
  background:var(--cream-2); border-top:1px solid var(--line);
  border-bottom:1px solid var(--line); padding:66px 0;
}
.newsletter__grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.newsletter__title{ font-size:clamp(26px,2.8vw,34px); margin-bottom:14px; }
.newsletter__form{ display:flex; gap:10px; }
.newsletter__form input{
  flex:1; padding:15px 18px; border:1px solid var(--line-2); border-radius:var(--r);
  font:inherit; font-size:15px; background:var(--paper); color:var(--ink-800); min-width:0;
}
.newsletter__form input:focus{ outline:none; border-color:var(--terracotta); }
.newsletter__note{ font-size:12.5px; color:var(--ink-400); margin:12px 0 0; }

/* 14. FORM ─────────────────────────────────────────────────────────────── */
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:var(--ink-800); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; padding:14px 16px; border:1px solid var(--line-2); border-radius:var(--r);
  font:inherit; font-size:15px; background:var(--paper); color:var(--ink-800);
}
.field textarea{ min-height:170px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--terracotta); }
.field__hint{ font-size:12.5px; color:var(--ink-400); margin:7px 0 0; }
.check{ display:flex; gap:11px; align-items:flex-start; font-size:14px; color:var(--ink-500); }
.check input{ margin-top:4px; accent-color:var(--terracotta); width:16px; height:16px; flex:0 0 auto; }
.contact-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:52px; }
.contact-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; }
.contact-card h3{ font-size:18px; margin-bottom:10px; }
.contact-card p{ font-size:14.5px; color:var(--ink-500); margin:0 0 12px; }
.contact-card a{ font-size:14.5px; font-weight:600; }

/* 15. LEGAL / LONG-FORM ────────────────────────────────────────────────── */
.legal{ display:grid; grid-template-columns:250px minmax(0,1fr); gap:60px; align-items:start; padding:56px 0 0; }
.toc{ position:sticky; top:100px; }
.toc__title{ font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--ink-400); margin-bottom:16px; }
.toc ol{ list-style:none; counter-reset:toc; display:grid; gap:2px; }
.toc a{
  display:block; padding:8px 0 8px 26px; font-size:13.5px; color:var(--ink-500);
  border-left:2px solid var(--line); position:relative; counter-increment:toc;
}
.toc a::before{ content:counter(toc); position:absolute; left:9px; font-size:11px; color:var(--ink-400); }
.toc a:hover{ color:var(--terracotta); border-left-color:var(--terracotta); }
.legal-body h2{ font-size:24px; margin:44px 0 14px; padding-top:8px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body h3{ font-size:17.5px; margin:26px 0 10px; }
.legal-body p, .legal-body li{ font-size:15.5px; line-height:1.78; color:var(--ink-700); }
.legal-body ul{ list-style:none; margin:0 0 18px; }
.legal-body ul li{ padding-left:20px; position:relative; margin-bottom:9px; }
.legal-body ul li::before{ content:"—"; position:absolute; left:0; color:var(--terracotta); }
.legal-body ol{ margin:0 0 18px; padding-left:22px; }
.legal-body ol li{ margin-bottom:9px; }
.callout{
  background:var(--olive-soft); border-left:3px solid var(--olive);
  border-radius:var(--r); padding:22px 26px; margin:26px 0;
}
.callout h3{ margin:0 0 10px; font-size:17px; }
.callout p{ margin:0; font-size:15px; color:var(--ink-700); }
.callout--warn{ background:var(--terracotta-soft); border-left-color:var(--terracotta); }
.updated{ font-size:13px; color:var(--ink-400); }

/* 16. PAGINATION ───────────────────────────────────────────────────────── */
.pagination{ display:flex; align-items:center; justify-content:center; gap:7px; margin-top:52px; }
.page-btn{
  min-width:42px; height:42px; display:grid; place-items:center; padding:0 12px;
  border:1px solid var(--line-2); border-radius:var(--r); background:var(--paper);
  font-size:14px; font-weight:600; color:var(--ink-700);
}
.page-btn:hover{ border-color:var(--terracotta); color:var(--terracotta); }
.page-btn--active{ background:var(--ink-800); border-color:var(--ink-800); color:#fff; }
.page-btn--active:hover{ background:var(--ink-800); color:#fff; }
.page-dots{ color:var(--ink-400); padding:0 4px; }
.result-count{ text-align:center; font-size:13.5px; color:var(--ink-400); margin-top:22px; }

/* 17. FILTER BAR ───────────────────────────────────────────────────────── */
.filter-bar{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px 0; border-bottom:1px solid var(--line); flex-wrap:wrap;
}
.sort-control{
  display:flex; align-items:center; gap:9px; font-size:13.5px;
  color:var(--ink-500); white-space:nowrap;
}
.sort-control select{
  border:1px solid var(--line-2); border-radius:var(--r); background:var(--paper);
  padding:9px 12px; font:inherit; font-size:13.5px; color:var(--ink-800);
}
.filter-panel{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding:30px 0 6px; }
.filter-group h4{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-400); margin-bottom:16px; }
.filter-group label{ display:flex; gap:10px; align-items:center; font-size:14.5px; color:var(--ink-700); padding:6px 0; }

/* 18. FOOTER ───────────────────────────────────────────────────────────── */
.site-footer{ background:var(--night); color:var(--night-muted); padding-top:72px; overflow:hidden; }
.site-footer a{ color:var(--night-text); }
.site-footer a:hover{ color:#fff; }
.footer-top{ display:grid; grid-template-columns:1.15fr 1.85fr; gap:64px; padding-bottom:52px; }
.footer-brand__row{ display:flex; align-items:center; gap:11px; margin-bottom:18px; }
.footer-brand__name{ font-family:var(--serif); font-size:21px; font-weight:600; color:#FBF7F0; }
.footer-tagline{ font-size:14.5px; line-height:1.72; max-width:330px; margin:0 0 16px; }
.footer-sign{ font-family:var(--hand); font-size:20px; color:var(--night-muted); }
.footer-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.footer-col h4{
  font-family:var(--sans); font-size:11px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:#8C7C69; margin-bottom:18px;
}
.footer-col ul{ list-style:none; display:grid; gap:11px; }
.footer-col a{ font-size:14.5px; }
.footer-rule{ height:1px; background:var(--night-line); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 0; flex-wrap:wrap; }
.footer-bottom p{ font-size:13px; margin:0; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid var(--night-line); border-radius:var(--r); color:var(--night-text);
}
.social-row a:hover{ background:var(--night-2); border-color:#4A3B2E; }
.footer-wordmark{
  font-family:var(--serif); font-weight:600; line-height:.82;
  font-size:clamp(64px,15vw,220px); color:#2E241B; text-align:center;
  letter-spacing:-.03em; user-select:none; margin-top:8px;
}

/* 19. MISC ─────────────────────────────────────────────────────────────── */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--ink-800); color:#fff;
  padding:12px 20px; z-index:100; border-radius:0 0 var(--r) 0;
}
.skip-link:focus{ left:0; color:#fff; }
.quote{
  font-family:var(--serif); font-size:clamp(22px,2.6vw,30px); line-height:1.5;
  color:var(--ink-800); border-left:3px solid var(--terracotta);
  padding-left:26px; margin:34px 0; font-weight:400;
}
.values{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.value h3{ font-size:19px; margin-bottom:10px; }
.value p{ font-size:15px; color:var(--ink-500); margin:0; }
.value__num{
  font-family:var(--serif); font-size:14px; font-weight:600; color:var(--terracotta);
  letter-spacing:.1em; margin-bottom:12px; display:block;
}
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat-band__item{ padding:34px 26px; border-right:1px solid var(--line); }
.stat-band__item:last-child{ border-right:0; }
.stat-band__value{ font-family:var(--serif); font-size:34px; font-weight:600; color:var(--ink-800); }
.stat-band__label{ font-size:12.5px; color:var(--ink-400); margin-top:6px; }
.error-page{ text-align:center; padding:120px 0; }
.error-page h1{ font-size:clamp(56px,12vw,120px); color:var(--line-2); }

/* Progressive-enhancement helpers (added by main.js at runtime) */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease; }
.reveal--in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}
.form-note{ font-size:13px; color:var(--ink-500); margin:10px 0 0; }
.form-note--ok{ color:var(--olive); }
.form-note--error{ color:var(--terracotta); }
.newsletter__note.form-note--ok{ color:var(--olive); }
[data-copy]{ cursor:pointer; }

/* 20. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width:1080px){
  :root{ --gutter:26px; }
  .hero__grid{ grid-template-columns:1fr; gap:44px; }
  .hero__media{ order:-1; }
  .hero__note{ right:16px; bottom:-18px; }
  .body-cols{ grid-template-columns:1fr; gap:0; }
  .sidebar{ position:static; margin-top:44px; }
  .legal{ grid-template-columns:1fr; gap:36px; }
  .toc{ position:static; }
  .toc ol{ grid-template-columns:1fr 1fr; gap:0 20px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr; gap:44px; }
  .contact-grid{ grid-template-columns:1fr 1fr; }
  .values{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:860px){
  body{ font-size:16.5px; }
  .section{ padding:64px 0; }
  .main-nav{ display:none; }
  .nav-toggle{ display:grid; }
  .header-actions .header-rule,
  .header-actions .btn{ display:none; }
  .grid-3{ grid-template-columns:1fr 1fr; gap:24px; }
  .stat-strip{ grid-template-columns:1fr 1fr; }
  .stat:nth-child(2){ border-right:0; }
  .stat:nth-child(1), .stat:nth-child(2){ border-bottom:1px solid var(--line); }
  .newsletter__grid{ grid-template-columns:1fr; gap:28px; }
  .filter-panel{ grid-template-columns:1fr 1fr; gap:24px; }
  .stat-band{ grid-template-columns:1fr 1fr; }
  .stat-band__item:nth-child(odd){ border-right:1px solid var(--line); }
  .stat-band__item:nth-child(even){ border-right:0; }
  .stat-band__item:nth-child(1), .stat-band__item:nth-child(2){ border-bottom:1px solid var(--line); }
  .row-item{ grid-template-columns:1fr; gap:16px; }
  .row-item img{ width:100%; }
  .row-item__aside{ text-align:left; }
}
@media (max-width:620px){
  :root{ --gutter:20px; }
  .site-header__inner{ height:66px; gap:14px; }
  .brand__name{ font-size:18px; }
  .section{ padding:52px 0; }
  .hero{ padding:44px 0 40px; }
  .grid-3, .grid-4{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .filter-panel{ grid-template-columns:1fr; }
  .toc ol{ grid-template-columns:1fr; }
  .card{ padding:24px 22px; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:12px; }
  .newsletter__form{ flex-direction:column; }
  .search-bar{ flex-direction:column; }
  .search-bar .btn{ width:100%; }
  .byline__actions{ margin-left:0; width:100%; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .hero__note{ display:none; }
  .step{ grid-template-columns:34px 1fr; gap:14px; }
  .step__num{ width:32px; height:32px; font-size:15px; }
}
@media print{
  .site-header, .site-footer, .ad-wrap, .newsletter, .sidebar, .byline__actions{ display:none; }
  body{ background:#fff; }
}
