/* The CX Frontline — design system.
   Modern broadsheet: light paper page, navy ink, orange as editorial marker.
   Structure comes from hairline rules and typographic hierarchy — not cards. */

:root {
  --paper: #fdfdfb;
  --paper-2: #faf9f5;
  --surface-2: #f6f5f1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #0f172a;
  --brand: #f97316;
  --brand-2: #ea580c;
  --brand-deep: #c2410c; /* AA-safe orange for small text on paper */
  --brand-ink: #ffffff;
  --brand-soft: rgba(249, 115, 22, 0.28);
  --line: #e4e2da;
  --line-2: #d8d5cb;
  --rule-faint: rgba(15, 23, 42, 0.05);
  --line-strong: #0f172a;
  --maxw: 1120px;
  --measure: 68ch;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* one spacing scale (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
time { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- labels & kickers ---------- */
.kicker, .kicker-inline, .dateline-label, .board-rule span, .footer-nav-h {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--brand-deep); margin: 0;
}
.kicker a:hover { color: var(--ink); }
.kicker-inline { display: inline-block; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40; background: rgba(253,253,251,.94);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(15,23,42,.06); }
.masthead-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.brand-mark { display: block; }
.brand-name { font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; line-height: 1; }
.masthead-rule { height: 2px; background: var(--brand); transform-origin: left; transform: scaleX(0); animation: rule-draw .7s var(--ease) .15s forwards; }
@keyframes rule-draw { to { transform: scaleX(1); } }
.nav { display: flex; gap: 24px; margin-left: auto; overflow-x: auto; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; padding: 12px 2px; border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s; white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.nav-cta {
  background: var(--ink); color: #fff; font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; padding: 9px 18px;
  transition: background .18s;
}
.nav-cta:hover { background: var(--brand-2); }
.nav-cta:active, .signup-form button:active, .prose-page button:active { transform: translateY(1px); }

/* ---------- headline marker underline ---------- */
.hl {
  background-image: linear-gradient(var(--brand-soft), var(--brand-soft));
  background-repeat: no-repeat; background-position: 0 88%;
  background-size: 100% .14em; transition: background-size .22s var(--ease);
}
a:hover .hl { background-size: 100% .42em; }

/* ---------- engraved emblem ---------- */
.emblem-svg { display: block; width: 100%; height: 100%; color: var(--ink); overflow: visible; }
.emblem-svg .emblem-hair { opacity: .8; }
.emblem-svg .emblem-ticks { opacity: .55; }
.emblem-svg .emblem-peak { fill: var(--brand); }

/* ---------- front-page flag / nameplate ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 68%, transparent 100%);
}
.flag {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3.4vw, 40px);
  padding: clamp(26px, 4vw, 44px) 24px clamp(16px, 2.4vw, 22px);
  border-top: 3px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 -2px var(--line-strong);
}
.flag::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--line-strong);
}
.flag-emblem { width: clamp(58px, 8vw, 88px); aspect-ratio: 1; flex-shrink: 0; }
.flag-word { text-align: center; min-width: 0; }
.flag-the {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 2.1vw, 1.35rem); color: var(--muted); line-height: 1; margin-bottom: 2px;
  letter-spacing: .01em;
}
.flag-name {
  display: block; font-weight: 900; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(2.1rem, 7.4vw, 4.4rem); color: var(--ink); text-wrap: balance;
}
.flag-motto {
  display: block; font-family: var(--serif); font-style: italic; color: var(--ink-2);
  font-size: clamp(.86rem, 1.5vw, 1.02rem); line-height: 1.4; margin-top: 10px;
  max-width: 52ch; margin-left: auto; margin-right: auto; text-wrap: pretty;
}
.flag-meta {
  display: flex; flex-direction: column; gap: 7px; text-align: right; white-space: nowrap;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.flag-meta .flag-meta-b { color: var(--ink); }
.flag-meta .flag-date { color: var(--brand-deep); letter-spacing: .08em; }
.flag-meta-sep { height: 1px; background: var(--line); margin: 1px 0; }

/* ---------- edition strip / beat index ---------- */
.edition-strip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); flex-wrap: wrap;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.edition-strip-h {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); flex-shrink: 0;
}
.beat-index {
  list-style: none; margin: 0; padding: 0; counter-reset: beat;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(14px, 2vw, 26px);
}
.beat-index li {
  counter-increment: beat; position: relative;
  font-size: .82rem; font-weight: 600; letter-spacing: -.005em; color: var(--ink);
}
.beat-index li::before {
  content: counter(beat, decimal-leading-zero); margin-right: 8px;
  font-size: .64rem; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums;
  vertical-align: 1px;
}
.beat-index li + li::after {
  content: ""; position: absolute; left: calc(-1 * clamp(7px, 1vw, 13px)); top: 3px; bottom: 3px;
  width: 1px; background: var(--line);
}

/* ---------- index: splash ---------- */
.splash { padding-top: clamp(26px, 4vw, 40px); }
.dateline {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 10px;
}
.dateline-label { color: var(--muted); letter-spacing: .14em; font-size: .68rem; }

.lead-wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 3.4vw, 40px) 0 clamp(30px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.lead-wrap::before {
  content: ""; position: absolute; inset: 6px 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--rule-faint) 0 1px, transparent 1px 25%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
}
.lead-story { position: relative; z-index: 1; min-width: 0; }
.lead-title {
  font-size: clamp(2.15rem, 5.2vw, 3.7rem); line-height: 1.03; letter-spacing: -.03em;
  font-weight: 800; margin: 12px 0 18px; max-width: 20ch; text-wrap: balance;
}
.standfirst {
  font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55;
  color: var(--ink-2); max-width: 56ch; margin: 0 0 18px; text-wrap: pretty;
}
.byline { color: var(--muted); font-size: .84rem; font-weight: 500; margin: 0; font-variant-numeric: tabular-nums; }
.byline-sep { color: var(--faint); padding: 0 2px; }

/* ---------- editor's dispatch (from the desk) ---------- */
.dispatch {
  position: relative; z-index: 1; align-self: stretch;
  padding-left: clamp(22px, 2.4vw, 34px); border-left: 1px solid var(--line-strong);
}
.dispatch-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.dispatch-h .kicker { color: var(--brand-2); }
.dispatch-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dispatch-note {
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.62; color: var(--ink);
  margin: 0 0 16px; text-wrap: pretty;
}
.dispatch-note .lead-in { font-variant-caps: all-small-caps; letter-spacing: .04em; font-weight: 600; color: var(--brand-deep); }
.dispatch-sign {
  margin: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
}
.dispatch-sign::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--brand); vertical-align: 3px; margin-right: 10px; }

/* ---------- index: story board ---------- */
.board { padding: clamp(30px, 3.4vw, 42px) 24px 10px; }
.board-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.board-rule span { color: var(--ink); white-space: nowrap; }
.board-rule::before { content: ""; width: 34px; height: 3px; background: var(--brand); }
.board-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.story { padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.story-grid .story:not(:nth-child(3n+1))::before {
  content: ""; position: absolute; left: -20px; top: 26px; bottom: 26px; width: 1px; background: var(--line);
}
.story-title { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin: 10px 0 10px; text-wrap: balance; }
.story-summary { color: var(--ink-2); font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- signup band ---------- */
.signup-band { padding: 40px 24px 20px; }
.signup-in {
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  padding: 36px 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.signup-h { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 10px 0 8px; text-wrap: balance; }
.signup-sub { color: var(--ink-2); margin: 0; font-size: .98rem; }
.signup-form { display: flex; gap: 0; max-width: 460px; justify-self: end; width: 100%; }
.signup-form input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line-strong);
  border-right: 0; background: #fff; color: var(--ink); font: inherit; font-size: .95rem;
  transition: box-shadow .18s;
}
.signup-form input::placeholder { color: var(--faint); }
.signup-form input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--brand); }
.signup-form button {
  padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .08em; cursor: pointer; transition: background .18s, border-color .18s;
}
.signup-form button:hover { background: var(--brand-2); border-color: var(--brand-2); }
.signup-form button { white-space: nowrap; min-height: 44px; }
.signup-form button[disabled] { opacity: .72; cursor: wait; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-bar { height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.article-head { padding-top: clamp(30px, 4vw, 44px); max-width: 880px; }
.crumb { color: var(--muted); font-size: .8rem; font-weight: 500; margin: 0 0 6px; }
.back { color: var(--muted); font-weight: 600; }
.back:hover { color: var(--brand-2); }
.article-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.026em;
  font-weight: 800; margin: 14px 0 16px; text-wrap: balance;
}
.article-meta { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 12px 0; margin-top: 26px; }
.article-meta .byline strong { color: var(--ink); font-weight: 600; }

.prose { max-width: var(--measure); padding-top: 34px; font-size: 1.12rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 3.4em; line-height: .82;
  float: left; padding: .02em .12em 0 0; margin-top: .02em; color: var(--ink);
}
.prose h2 { font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.25; margin: 44px 0 14px; text-wrap: balance; }
.prose h3 { font-size: 1.22rem; margin: 32px 0 10px; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 6px; list-style: none; }
.prose li { margin: 10px 0; padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brand); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 30px; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: .18em;
  font-size: .78rem; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums;
}
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .18s, text-decoration-color .18s; }
.prose a:visited { text-decoration-color: var(--brand-deep); }
.prose a:hover { color: var(--brand-deep); text-decoration-color: var(--brand-deep); }
.prose blockquote {
  margin: 38px 0; padding: 4px 0 4px 34px; position: relative; border-left: 0;
}
.prose blockquote::before {
  content: "\201C"; position: absolute; left: -6px; top: -14px;
  font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--brand); font-weight: 600;
}
.prose blockquote::after {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--brand-soft);
}
.prose blockquote p {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin: 0 0 10px;
}
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.prose pre { background: var(--primary); color: #e2e8f0; padding: 18px 20px; overflow-x: auto; border-left: 3px solid var(--brand); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { margin: 28px 0; height: auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

/* tables — wrapped in .table-scroll by the enhancement script */
.table-scroll { overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.5; margin: 30px 0; }
.table-scroll table { margin: 0; }
.prose th {
  text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--line-strong);
  padding: 10px 18px 10px 0;
}
.prose td { border-bottom: 1px solid var(--line); padding: 12px 18px 12px 0; vertical-align: top; }
.prose tr > :last-child { padding-right: 0; }

/* ---------- key takeaways (branded summary box, tagged by enhancement script) ---------- */
.prose .takeaways-h {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em;
  color: var(--brand-deep); margin: 44px 0 0; padding: 16px 26px 0;
  border-top: 3px solid var(--brand); background: var(--paper-2);
}
.prose ul.takeaways-list {
  margin: 0 0 34px; padding: 12px 26px 20px; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.prose ul.takeaways-list li { margin: 12px 0; padding-left: 24px; font-size: .98em; line-height: 1.62; }
.prose ul.takeaways-list li::before { top: .58em; }
.prose ul.takeaways-list li strong { color: var(--ink); }

/* ---------- FAQ (distinct Q&A rhythm, tagged by enhancement script) ---------- */
.prose h2.faq-h { display: flex; align-items: center; gap: 14px; }
.prose h2.faq-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prose p.faq-item { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prose p.faq-item:first-of-type { border-top: 1px solid var(--line-strong); margin-top: 18px; }
.prose p.faq-item > strong:first-child {
  display: block; font-size: 1.04rem; letter-spacing: -.01em; line-height: 1.4;
  margin-bottom: 6px; padding-left: 20px; position: relative;
}
.prose p.faq-item > strong:first-child::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 3px; background: var(--brand);
}
.prose p.faq-item + p:not(.faq-item) { margin-top: 26px; }

.article-end { max-width: var(--measure); padding-top: 10px; padding-bottom: 8px; text-align: center; }
.colophon-emblem { width: 46px; height: 46px; margin: 0 auto 14px; opacity: .9; }
.article-end .byline { color: var(--muted); }

/* ---------- related ---------- */
.related { padding-top: 44px; padding-bottom: 30px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-item { border-bottom: 1px solid var(--line); }
.related-item a {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: baseline;
  padding: 18px 0; transition: background .18s;
}
.related-item a:hover { background: var(--paper-2); }
.related-title { font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.35; }

/* ---------- static pages ---------- */
.page-head { padding-top: 48px; max-width: 820px; }
.page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.028em; font-weight: 800; margin: 12px 0 16px; text-wrap: balance; }
.page-rule { width: 64px; height: 3px; background: var(--brand); margin-top: 24px; }
.prose-page { padding-top: 30px; }
.prose-page > p:first-of-type::first-letter { font-size: inherit; float: none; padding: 0; margin: 0; font-family: inherit; }
.prose-page h2 { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 40px; }
.prose-page form, .prose-page .form { max-width: 480px; }
.prose-page input, .prose-page textarea, .prose-page select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-size: .95rem; margin: 6px 0 16px; transition: border-color .18s, box-shadow .18s;
}
.prose-page input:focus, .prose-page textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.prose-page button, .prose-page [type="submit"] {
  width: auto; padding: 12px 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.prose-page button:hover { background: var(--brand-2); border-color: var(--brand-2); }
/* Normalize any inline-styled forms shipped inside page content to the broadsheet system.
   Content markdown may carry rounded/inline styles; the design system wins. */
.prose-page form input, .prose-page form textarea, .prose-page form select {
  border-radius: 0 !important; border: 1px solid var(--line-2) !important;
  padding: 12px 14px !important; font: inherit !important; background: #fff;
}
.prose-page form input:focus, .prose-page form textarea:focus {
  border-color: var(--ink) !important; box-shadow: inset 0 -2px 0 var(--brand);
}
.prose-page form button, .prose-page form [type="submit"] {
  border-radius: 0 !important; background: var(--ink) !important; color: #fff !important;
  border: 1px solid var(--ink) !important; font: inherit !important; font-weight: 600 !important;
  font-size: .82rem !important; text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 24px !important; min-height: 44px;
}
.prose-page form button:hover { background: var(--brand-2) !important; border-color: var(--brand-2) !important; }
.prose-page form button[disabled] { opacity: .72; cursor: wait; }

/* ---------- footer ---------- */
.footer { background: var(--primary); color: #cbd5e1; margin-top: 56px; border-top: 3px solid var(--brand); }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 52px 24px 28px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { color: #fff; font-weight: 800; letter-spacing: -.01em; }
.footer-tag { color: #94a3b8; font-size: .86rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-h { color: #94a3b8; letter-spacing: .12em; margin-bottom: 4px; }
.footer-nav a { font-size: .92rem; transition: color .18s; padding: 3px 0; }
.footer-nav a:hover { color: var(--brand); }
.footer-note p { margin: 8px 0 0; font-size: .92rem; line-height: 1.6; }
.footer-note a { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.footer-note a:hover { color: var(--brand); }
.footer-note .footer-nav-h { display: block; }
.footer-legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px;
  color: #64748b; font-size: .8rem; display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- motion ---------- */
.reveal-load { opacity: 0; transform: translateY(12px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .masthead-rule { transform: none; animation: none; }
  .hero-canvas { display: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lead-wrap { grid-template-columns: 1fr; gap: 30px; }
  .lead-wrap::before { display: none; }
  .dispatch { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .story-grid .story::before { display: none; }
  .story-grid .story:nth-child(2n)::before { display: block; content: ""; position: absolute; left: -16px; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
  .signup-in { grid-template-columns: 1fr; }
  .signup-form { justify-self: start; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .flag { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding-top: 26px; }
  .flag-emblem { width: 62px; }
  .flag-meta { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 14px; }
  .flag-meta-sep { display: none; }
  .flag-motto { margin-top: 8px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead-in { height: 56px; gap: 14px; }
  .brand-name { font-size: .92rem; white-space: nowrap; }
  .nav { flex: 1; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { gap: 16px; }
  .nav-cta { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .story:nth-child(2n)::before { display: none; }
  .story { padding: 22px 0; }
  .related-item a { grid-template-columns: 1fr; gap: 6px; }
  .signup-form { flex-direction: column; }
  .signup-form input { border-right: 1px solid var(--line-strong); }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .prose { font-size: 1.05rem; }
  .edition-strip { gap: 10px 16px; }
}
