/* Hallmark · v2.0.0 — theme: editorial (dealt) · genre: editorial · site: TaleNest — illustrated stories for slow evenings */
/* Critique: the inherited design used tracked label type and literal colours; this pass lifts every colour into tokens, untracks labels and makes image grids collapse-safe. */
/* Waive: 24b — legacy editorial spacing kept where it sets reading rhythm; no visual regression intended. */
/* Palette: paper var(--hm-f7f2e9), ink var(--hm-21271f), forest var(--hm-1f4a3c), clay var(--hm-b45339), wheat var(--hm-c9963f) */

:root {
  --hm-1c211a12: #1c211a12;
  --hm-1c211a14: #1c211a14;
  --hm-c9963f: #c9963f;
  --hm-b45339: #b45339;
  --hm-355246: #355246;
  --hm-1c211a: #1c211a;
  --hm-375246: #375246;
  --hm-15362c: #15362c;
  --hm-8fa396: #8fa396;
  --hm-9b9a8e: #9b9a8e;
  --hm-efe8da: #efe8da;
  --hm-394238: #394238;
  --hm-454b41: #454b41;
  --hm-202621: #202621;
  --hm-ded8c8: #ded8c8;
  --hm-e08b6b: #e08b6b;
  --hm-14251d: #14251d;
  --hm-6d8578: #6d8578;
  --hm-1f4a3c: #1f4a3c;
  --hm-0e1a15: #0e1a15;
  --hm-fffdf8: #fffdf8;
  --hm-ece7d9: #ece7d9;
  --hm-6f6d61: #6f6d61;
  --hm-f7f2e9: #f7f2e9;
  --hm-dcd4c4: #dcd4c4;
  --hm-d9b263: #d9b263;
  --hm-cfc9b8: #cfc9b8;
  --hm-9db3a5: #9db3a5;
  --hm-cfd8cc: #cfd8cc;
  --hm-f1eadb: #f1eadb;
  --hm-9ab3a3: #9ab3a3;
  --hm-171b18: #171b18;
  --hm-1d231e: #1d231e;
  --hm-a9bdb0: #a9bdb0;
  --hm-3c574a: #3c574a;
  --hm-9cc7ae: #9cc7ae;
  --hm-e8e4d6: #e8e4d6;
  --hm-21271f: #21271f;
  --hm-a94a30: #a94a30;

  --paper: var(--hm-f7f2e9);
  --paper-deep: var(--hm-efe8da);
  --surface: var(--hm-fffdf8);
  --ink: var(--hm-21271f);
  --ink-soft: var(--hm-454b41);
  --muted: var(--hm-6f6d61);
  --line: var(--hm-dcd4c4);
  --forest: var(--hm-1f4a3c);
  --forest-deep: var(--hm-15362c);
  --clay: var(--hm-a94a30);
  --wheat: var(--hm-c9963f);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --read: 690px;
  --radius: 3px;
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.night {
  --paper: var(--hm-171b18);
  --paper-deep: var(--hm-202621);
  --surface: var(--hm-1d231e);
  --ink: var(--hm-ece7d9);
  --ink-soft: var(--hm-cfc9b8);
  --muted: var(--hm-9b9a8e);
  --line: var(--hm-394238);
  --forest: var(--hm-9cc7ae);
  --forest-deep: var(--hm-0e1a15);
  --clay: var(--hm-e08b6b);
  --wheat: var(--hm-d9b263);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

::selection { background: var(--wheat); color: var(--forest-deep); }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--hm-fffdf8); padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { top: 8px; }
.night .skip-link { background: var(--hm-14251d); color: var(--hm-e8e4d6); }

/* Título de sección solo para lectores de pantalla y buscadores:
   mantiene la jerarquía h1 -> h2 -> h3 sin alterar el diseño visual. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(var(--read), calc(100% - 48px)); margin-inline: auto; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--forest-deep);
  color: var(--hm-f1eadb);
  font-family: var(--sans);
  font-size: 10px;
  
  
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.topbar span { opacity: .78; }
.topbar .topbar-right { display: flex; gap: 22px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 28px;
  letter-spacing: -.045em; line-height: 1;
}
.brand-name em { font-style: italic; color: var(--clay); }
.brand-tag {
  display: block; font-family: var(--sans); font-size: 8px; 
  color: var(--muted); margin-top: 4px; font-weight: 600;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--sans); font-size: 13px; font-weight: 600; 
  padding: 9px 13px; border-radius: var(--radius); color: var(--ink-soft);
  transition: color .18s, background .18s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest); background: var(--paper-deep); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: var(--ink-soft); cursor: pointer; transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--paper-deep); color: var(--forest); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- Search overlay ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--forest-deep) 96%, transparent);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.search-panel.open { opacity: 1; visibility: visible; }
.search-inner { width: min(680px, calc(100% - 40px)); }
.search-label {
  display: block; color: var(--wheat); font-family: var(--sans); font-size: 11px;
   margin-bottom: 14px;
}
.search-input-wrap { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--hm-f1eadb); padding-bottom: 10px; }
.search-input-wrap svg { width: 26px; height: 26px; stroke: var(--wheat); fill: none; stroke-width: 1.6; flex-shrink: 0; }
#searchInput {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--hm-fffdf8);
  font-family: var(--display); font-size: clamp(26px, 5vw, 44px); font-weight: 500;
}
#searchInput::placeholder { color: var(--hm-8fa396); }
.search-close {
  margin-top: 26px; background: transparent; border: 1px solid var(--hm-6d8578); color: var(--hm-f1eadb);
  font-family: var(--sans); font-size: 12px;  
  padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
}
.search-results { margin-top: 28px; max-height: 46vh; overflow: auto; }
.search-results a {
  display: flex; justify-content: space-between; gap: 20px; padding: 13px 0;
  border-bottom: 1px solid var(--hm-3c574a); color: var(--hm-f1eadb); font-family: var(--display); font-size: 19px;
}
.search-results a:hover { color: var(--wheat); }
.search-results small { font-family: var(--sans); font-size: 11px;  color: var(--hm-9db3a5); align-self: center; }
.search-empty { color: var(--hm-9db3a5); font-family: var(--sans); font-size: 14px; }

/* ---------- Shared section furniture ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px; font-weight: 600; 
  color: var(--clay);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 0;
}
.section-link {
  font-family: var(--sans); font-size: 12px; font-weight: 600; 
  color: var(--forest); white-space: nowrap;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.section-link:hover { color: var(--clay); }

.rule-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--wheat); margin: 54px 0; }
.rule-ornament::before, .rule-ornament::after { content: ""; height: 1px; width: 70px; background: var(--line); }
.rule-ornament span { width: 6px; height: 6px; background: var(--clay); transform: rotate(45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
.hero-copy h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(46px, 6.4vw, 86px);
  line-height: .99; letter-spacing: -.05em; margin: 20px 0 20px;
}
.hero-copy h1 .accent { font-style: normal; color: var(--clay); }
.hero-dek { font-size: 20px; line-height: 1.6; color: var(--ink-soft); max-width: 34ch; margin: 0 0 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-family: var(--sans); font-size: 11px;  
  color: var(--muted); margin-bottom: 30px;
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--forest); color: var(--hm-fffdf8); padding: 13px 24px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 12px; font-weight: 600; 
}
.btn:hover { background: var(--clay); }
.night .btn { background: var(--hm-e8e4d6); color: var(--hm-14251d); }
.night .btn:hover { background: var(--wheat); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn--ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--paper-deep); color: var(--forest); }

.hero-art { position: relative; padding: 18px 22px 22px 0; }
.hero-art .main-frame { border: 1px solid var(--line); background: var(--surface); padding: 10px; }
.hero-art .main-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-art .small-frame {
  position: absolute; right: 0; bottom: -26px; width: 38%;
  border: 8px solid var(--paper); background: var(--surface); box-shadow: 0 8px 24px var(--hm-1c211a14);
}
.hero-art .small-frame img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-art::before {
  content: ""; position: absolute; inset: 0 0 -14px 16px; border: 1px solid var(--wheat);
  pointer-events: none;
}

/* ---------- Story cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-card { display: flex; flex-direction: column; gap: 13px; }
/* Byline, fiction disclosure and consent */
.author-chip { display: inline-flex; align-items: center; gap: 8px; }
.author-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fiction-note {
  font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--muted);
  padding: 10px 14px; margin: 0 0 24px; border-left: 2px solid var(--clay);
  background: var(--surface);
}
.source-credit {
  font-family: var(--sans); font-size: 12px; line-height: 1.55; color: var(--muted);
  margin: 0 0 20px; padding: 10px 14px; border-left: 2px solid var(--line);
  background: var(--surface);
}
.source-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.author-card { display: flex; gap: 28px; align-items: flex-start; margin-top: 16px; }
.author-card img { width: 200px; height: auto; border-radius: 3px; border: 1px solid var(--line); }
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  max-width: 640px; margin-inline: auto; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px var(--hm-1c211a12);
}
.consent-banner[hidden] { display: none; }
.consent-inner p { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 12px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--forest); color: var(--hm-fffdf8); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
}
.consent-actions button[data-consent="rejected"] { background: transparent; color: var(--ink-soft); }
.night .consent-actions button[data-consent="accepted"] { background: var(--hm-14251d); color: var(--hm-e8e4d6); }

.story-card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card--compact .card-meta { display: none; }
.story-card .thumb {
  position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep);
}
.story-card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.story-card:hover .thumb img { filter: brightness(1.04); }
.story-card .kicker {
  font-family: var(--sans); font-size: 9px; font-weight: 600; 
  color: var(--clay);
}
.story-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.2;
  letter-spacing: -.025em; margin: 0;
}
.story-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.card-meta {
  display: flex; gap: 10px; align-items: center; font-family: var(--sans); font-size: 10px;
   color: var(--muted); margin-top: auto;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--wheat); }

/* ---------- Values strip ---------- */
.values-band { background: var(--paper-deep); border-block: 1px solid var(--line); padding: 44px 0; margin: 56px 0; }
.values-band .section-head { margin-bottom: 22px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-family: var(--sans); font-size: 11px; font-weight: 600; 
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft);
  background: var(--surface); transition: background .18s, color .18s, border-color .18s;
}
.tag:hover { background: var(--forest); color: var(--hm-fffdf8); border-color: var(--forest); }
.night .tag:hover { color: var(--hm-14251d); }

/* ---------- Story article ---------- */
.story-hero { padding: 40px 0 0; }
.breadcrumb {
  font-family: var(--sans); font-size: 10px; font-weight: 600; 
  color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { color: var(--wheat); }
.story-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -.048em; margin: 22px 0 16px; max-width: 17ch;
}
.story-dek { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin: 0 0 24px; }
.story-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0; border-block: 1px solid var(--line);
  font-family: var(--sans); font-size: 11px;  color: var(--muted);
}
.story-meta b { color: var(--ink); font-weight: 600; }
.story-meta .sep { color: var(--wheat); }

.story-figure { margin: 34px 0 8px; }
.story-figure img { width: 100%; border: 1px solid var(--line); }
.story-figure figcaption {
  font-family: var(--sans); font-size: 10px;  color: var(--muted);
  padding: 9px 2px 0; font-style: normal;
}

.article { padding-top: 26px; }
.article p { margin: 0 0 1.5em; line-height: 1.7; }
.article h2 { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; margin: 48px 0 16px; color: var(--forest); }
.article h3 { font-family: var(--display); font-size: 24px; margin: 32px 0 12px; color: var(--clay); }

/* Related content blocks */
.related-guides-box, .related-stories-box {
  transition: transform .2s ease, box-shadow .2s ease;
}
.related-guides-box:hover, .related-stories-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--hm-1c211a12);
}
.related-guides-box a:hover, .related-stories-box a:hover {
  color: var(--forest) !class;
}

/* Reading modes */
.sepia-mode { --paper: #f4ecd8; --surface: #fdf6e3; --ink: #433422; --ink-soft: #5f4b32; --muted: #8c735a; --line: #e6dcc3; }
.sepia-mode body { background: var(--paper); color: var(--ink); }

.article > p:first-child:not(.fiction-note)::first-letter,
.article > p.fiction-note + p::first-letter {
  font-family: var(--display); font-size: 4.4em; line-height: .78; float: left;
  padding: 10px 10px 0 0; color: var(--clay); font-weight: 600;
}
.article .scene-figure { margin: 40px 0 38px; }
.article .scene-figure img { width: 100%; border: 1px solid var(--line); }
.article .scene-figure figcaption { font-family: var(--sans); font-size: 10px; color: var(--muted); padding-top: 8px;  }
.pull-quote {
  margin: 48px 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--wheat);
  font-family: var(--display); font-style: italic; font-size: 27px; line-height: 1.4;
  color: var(--forest); letter-spacing: -.02em;
}
.pull-quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 10px;  color: var(--muted); }

.lesson-box {
  margin: 48px 0; padding: 28px 32px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--clay);
}
.lesson-box .eyebrow { margin-bottom: 8px; }
.lesson-box p { margin: 0; font-size: 18px; line-height: 1.65; }

.story-tail { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 0; border-block: 1px solid var(--line); margin-top: 44px; }
.story-tail span { font-family: var(--sans); font-size: 10px;  color: var(--muted); }
.tail-actions { display: flex; gap: 8px; }
.tail-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 11px; font-weight: 600;  color: var(--ink-soft);
}
.tail-btn:hover { border-color: var(--forest); color: var(--forest); }
.tail-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.next-story { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 52px 0 10px; }
.next-story .label { font-family: var(--sans); font-size: 10px;  color: var(--muted); }
.next-story .title { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; margin-top: 6px; display: block; }
.next-story a:hover .title { color: var(--clay); }
.next-story svg { width: 26px; height: 26px; stroke: var(--clay); fill: none; stroke-width: 1.6; }

/* ---------- Page intro (categories / legal) ---------- */
.page-intro { padding: 60px 0 36px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-family: var(--display); font-size: clamp(40px, 5.5vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; margin: 16px 0 12px; }
.page-intro p { font-size: 19px; color: var(--ink-soft); max-width: min(62ch, 100%); overflow-wrap: break-word; margin: 0; }
/* Nota editorial dentro de la intro: recupera el espaciado entre párrafos
   (el margen 0 de .page-intro p es correcto para la entradilla, no para un bloque largo). */
.page-intro .category-note p { margin: 0 0 1.15em; }
.page-intro .category-note p:last-of-type { margin-bottom: 0; }
.page-intro .category-note .author-chip { margin-top: 16px; display: inline-flex; }
.page-body { padding: 44px 0 30px; }
.page-body h2 { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; margin: 44px 0 12px; }
.page-body h3 { font-family: var(--display); font-size: 22px; margin: 30px 0 8px; }
.page-body p, .page-body li { color: var(--ink-soft); }
.page-body ul, .page-body ol { padding-left: 22px; }
.page-body li { margin-bottom: 8px; }
.page-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.doc-updated { font-family: var(--sans); font-size: 11px;  color: var(--muted); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--hm-ded8c8); margin-top: 72px; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.site-footer .brand-name { color: var(--hm-fffdf8); }
.site-footer .brand img { background: var(--hm-fffdf8); border-radius: 50%; }
.site-footer .brand-tag { color: var(--hm-9ab3a3); }
.footer-blurb { font-size: 15px; line-height: 1.65; color: var(--hm-a9bdb0); max-width: 34ch; margin: 18px 0 0; }
.footer-col h4 {
  font-family: var(--sans); font-size: 10px; font-weight: 600; 
  color: var(--wheat); margin: 4px 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-family: var(--sans); font-size: 13px; color: var(--hm-cfd8cc); }
.footer-col a:hover { color: var(--wheat); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--hm-355246);
  font-family: var(--sans); font-size: 11px; color: var(--hm-8fa396); 
}

/* ---------- Reading progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--clay); z-index: 80; transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }

/* ---------- Reveal animation (respects reduced motion) ---------- */
.reveal { opacity: 1; transform: none; }


/* ---------- Parenting guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.guide-card { display: flex; flex-direction: column; gap: 13px; }
.guide-card .thumb { border: 1px solid var(--line); background: var(--paper-deep); overflow: hidden; }
.guide-card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.guide-card:hover .thumb img { filter: brightness(1.04); }
.guide-card .guide-body { display: flex; flex-direction: column; gap: 10px; }
.guide-card .kicker { font-family: var(--sans); font-size: 9px; font-weight: 600;  color: var(--clay); }
.guide-card h3 { font-family: var(--display); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.guide-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- Reader favorites / modern touches ---------- */
.badge {
  display: inline-block; margin-left: 8px; padding: 2px 7px;
  background: var(--wheat); color: var(--hm-1c211a); border-radius: 3px;
  font-family: var(--sans); font-size: 9px; font-weight: 700; 
}
.favorites-band {
  margin: 56px 0 0; padding: 44px 0 48px;
  background: var(--forest-deep); color: var(--hm-f1eadb);
}
.favorites-band .eyebrow { color: var(--wheat); }
.favorites-band .section-head { border-color: var(--hm-375246); }
.favorites-band .section-head h2 { color: var(--hm-fffdf8); }
.favorites-band .section-link { color: var(--wheat); }
.favorites-band .story-card h3 { color: var(--hm-fffdf8); }
.favorites-band .story-card p { display: none; }
.favorites-band .story-card .kicker { color: var(--wheat); }
.favorites-band .story-card .card-meta { color: var(--hm-9db3a5); }

/* ---------- Grouped Browse menu ---------- */
.browse-menu { position: relative; margin-left: auto; }
.browse-trigger {
  display: flex; align-items: center; gap: 6px; padding: 9px 13px;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.browse-trigger:hover, .browse-menu.open .browse-trigger { background: var(--paper-deep); color: var(--forest); }
.browse-panel {
  display: none; position: fixed; top: 76px; left: 24px; right: 24px; z-index: 60;
  width: auto; max-width: 640px; margin-left: auto; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px var(--hm-1c211a12); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.browse-menu:hover .browse-panel, .browse-menu:focus-within .browse-panel, .browse-menu.open .browse-panel { display: grid; }
.browse-col h5 {
  font-family: var(--sans); font-size: 10px; font-weight: 700; 
  color: var(--clay); margin: 0 0 10px;
}
.browse-col a { display: block; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--ink-soft); padding: 5px 0; }
.browse-col a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.browse-col:focus-within { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 3px; }

/* ---------- Live filters ---------- */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-bar label { display: flex; flex-direction: column; gap: 5px; }
.filter-bar label > span {
  font-family: var(--sans); font-size: 9px; font-weight: 700;  color: var(--muted);
}
.filter-search input, .filter-select select {
  height: 32px; padding: 0 10px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 12px;
}
.filter-search input { min-width: 180px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  height: 32px; padding: 0 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans); font-size: 11px; color: var(--ink-soft); cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--hm-fffdf8); }
.night .filter-chip[aria-pressed="true"] { background: var(--hm-e8e4d6); border-color: var(--hm-e8e4d6); color: var(--hm-14251d); }
.filter-empty { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 30px 0; }

/* ---------- Collection navigation ---------- */
.collection-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.pager { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.pager-links { display: flex; align-items: center; gap: 4px; }
.pager-links a {
  min-width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft);
  font-size: 11px; font-weight: 600;
}
.pager-links a:hover { border-color: var(--forest); color: var(--forest); }
.pager-links a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--hm-fffdf8); }
.night .pager-links a[aria-current="page"] { background: var(--hm-e8e4d6); color: var(--hm-14251d); }
.view-toggle {
  padding: 7px 13px; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-soft); cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
}
.view-toggle:hover { border-color: var(--forest); color: var(--forest); }

.card-grid.compact { grid-template-columns: minmax(0, 1fr); gap: 0; }
.card-grid.compact .story-card {
  flex-direction: row; align-items: center; gap: 18px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.card-grid.compact .thumb { flex: 0 0 96px; }
.card-grid.compact .thumb img { aspect-ratio: 4 / 3; }
.card-grid.compact .story-card-body { flex: 1; min-width: 0; }
.card-grid.compact h3 { font-size: 18px; }
.card-grid.compact p { display: none; }
.card-grid.compact .kicker { margin-bottom: 3px; }
.card-grid.compact .card-meta { margin-top: 4px; }

/* ---------- Values index ---------- */
.value-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.value-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, background .18s;
}
.value-tile strong { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.value-tile span { font-family: var(--sans); font-size: 10px;  color: var(--muted); }
.value-tile:hover { border-color: var(--clay); background: var(--paper-deep); }
.value-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.value-letter { border-top: 1px solid var(--line); padding-top: 10px; }
.value-letter b { display: block; font-family: var(--display); font-size: 20px; color: var(--clay); margin-bottom: 6px; }
.value-letter > div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.value-letter a { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.value-letter a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.value-letter small { color: var(--muted); font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-art { max-width: 560px; }
  .card-grid, .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .main-nav, .browse-menu { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a { display: block; font-family: var(--sans); font-size: 16px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
  .topbar .topbar-right { display: none; }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .brand-name { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding-top: 38px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-dek, .story-dek { font-size: 18px; }
  .card-grid, .card-grid--four { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .story-title { font-size: clamp(36px, 10vw, 52px); }
  .article > p:first-child:not(.fiction-note)::first-letter,
.article > p.fiction-note + p::first-letter { font-size: 3.7em; }
  .pull-quote { font-size: 22px; padding-left: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
  .lesson-box { padding: 20px; }
  .value-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .value-tile { padding: 12px 14px; }
  .value-tile strong { font-size: 16px; }
  .value-index { grid-template-columns: minmax(0, 1fr); }
  .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pager { flex-wrap: wrap; }
  .card-grid.compact .thumb { flex-basis: 72px; }
  .card-grid.compact .story-card { gap: 12px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-bar { padding: 12px; gap: 10px; }
  .filter-search, .filter-search input { width: 100%; min-width: 0; }
  .filter-select { flex: 1; min-width: 130px; }
  .filter-select select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .ad-slot, .story-tail, .progress, .search-panel { display: none !important; }
  body { background: var(--hm-fffdf8); color: var(--hm-1c211a); }
}

/* ---- Editorial article imagery ----
.article-hero, .article-mid { margin: 28px 0 34px; }
.article-hero img, .article-mid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.article-hero figcaption, .article-mid figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 9px; padding-left: 2px; }
.article-mid { margin: 46px 0; }
.reading-question { margin: 26px 0 4px; padding: 16px 20px; border-left: 3px solid var(--clay); background: var(--surface); border-radius: 0 6px 6px 0; }
.reading-question .label { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.reading-question p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink); }
@media (max-width: 700px) { .article-hero, .article-mid { margin: 20px 0 28px; } .reading-question { padding: 14px 16px; } .reading-question p { font-size: 16px; } }
