/* ============================================================
   Heritage — the flagship. Faithful port of tucsondailybrief.com's
   Visual Language v2 + Morning Edition hybrid, on place-profile tokens.
   ============================================================ */

:root {
  /* Place palette (profile tokens) mapped onto the heritage roles.
     In Sonoran country these resolve to TDB's locked sand/terracotta. */
  --place-paper: #FBFAF7;
  --place-ink: #1C2420;
  --sand: var(--place-paper);
  --tan: #EDF3EE;
  --terracotta: #22664A;
  --terracotta-dark: #174734;
  --sage: #5E6A63;
  --brown: var(--place-ink);
  --brown-light: color-mix(in srgb, var(--place-ink) 74%, var(--place-paper));

  --bone: #FFFFFF;
  --adobe: #22664A;
  --clay: color-mix(in srgb, #174734 84%, black);
  --dusk: color-mix(in srgb, var(--place-ink) 82%, #174734);
  --shadow: color-mix(in srgb, #1D2420 78%, black);
  --dust: #E4E3DC;

  /* Semantic */
  --bg: var(--sand);
  --bg-elevated: var(--bone);
  --ink: var(--brown);
  --ink-muted: var(--brown-light);
  --ink-quiet: var(--sage);
  --accent: var(--terracotta);
  --accent-hover: var(--adobe);
  --tool: var(--clay);
  --rule: var(--dust);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --serif: "Newsreader", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --t-d1: clamp(2.5rem, 5.5vw, 4.25rem);
  --t-d2: clamp(1.625rem, 3vw, 2.375rem);
  --t-d3: clamp(1.25rem, 1.8vw, 1.5rem);
  --t-lede: clamp(1.063rem, 1.35vw, 1.25rem);
  --t-body: 1.063rem;
  --t-small: 0.875rem;
  --t-kicker: 0.75rem;

  /* Rhythm */
  --gap-xs: 8px;  --gap-s: 16px;  --gap-m: 24px;
  --gap-l: 40px;  --gap-xl: 64px; --gap-xxl: 96px;

  /* Containers */
  --reading: 640px; --editorial: 1040px; --full: 1280px; --home: 1120px;

  --warn: #D98A4A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ─── Atmospheric layers: drifting sun-cast + paper grain ─── */

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(ellipse 1400px 900px at 12% 8%,
      color-mix(in srgb, var(--adobe) 20%, transparent) 0%,
      color-mix(in srgb, var(--adobe) 10%, transparent) 25%,
      color-mix(in srgb, var(--sage) 5%, transparent) 60%,
      transparent 85%);
  background-size: 140% 140%;
  background-position: 0% 0%;
  animation: sun-drift 180s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes sun-drift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 25% 18%; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.38  0 0 0 0 0.18  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

main, header, footer, .container, .masthead, .footer-row, .status {
  position: relative; z-index: 2;
}

/* ─── Containers ─── */

.container {
  max-width: var(--full);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.container--home      { max-width: var(--home); }
.container--editorial { max-width: var(--editorial); }
.container--reading   { max-width: var(--reading); }

/* ─── Type primitives ─── */

a { color: var(--accent); }

.kicker {
  font-family: var(--serif);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.section-head {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
  font-weight: 600;
  font-size: var(--t-d2);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--dusk);
}
.section-head--ruled {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  padding: 30px 0 16px;
  border-bottom: 1px solid var(--rule);
}

/* ─── Status strip (mono, monitoring texture) ─── */

.status {
  background: var(--brown); color: var(--bone); font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.02em; position: relative; z-index: 3;
}
.status .container {
  display: flex; gap: 26px; align-items: center;
  padding-top: 7px; padding-bottom: 7px; overflow-x: auto; white-space: nowrap;
}
.status .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); margin-right: 7px; vertical-align: 1px;
}
.status .warn { color: var(--warn); }
.status .warn .dot { background: var(--terracotta); }
.status b { font-weight: 600; color: var(--bone); }
.status .spacer { flex: 1; }

/* ─── Masthead (compact flex row, site-wide) ─── */

.masthead { padding-top: clamp(24px, 3.5vw, 40px); padding-bottom: 0; }
.masthead__row {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.masthead__kicker {
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  width: 100%;
  margin-bottom: 14px;
  animation: fade-up 0.7s ease-out 0.00s both;
}
.masthead__wordmark {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  animation: fade-up 0.7s ease-out 0.08s both;
}
.masthead__wordmark a { color: inherit; text-decoration: none; }
.masthead__tagline {
  font-family: var(--serif);
  font-size: var(--t-lede);
  font-style: italic;
  color: var(--ink-muted);
  margin-left: auto;
  text-align: right;
  animation: fade-up 0.7s ease-out 0.16s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section nav (padded links + Subscribe button) ─── */

.section-nav {
  padding: var(--gap-s) 0 var(--gap-m);
  border-bottom: 1px solid var(--rule);
}
.nav-main { display: flex; align-items: center; gap: var(--gap-s); flex-wrap: wrap; }
.streams-nav {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: baseline;
  font-size: var(--t-small); letter-spacing: 0.04em;
}
.streams-nav a, .streams-nav .active {
  font-family: var(--serif); font-weight: 600; text-decoration: none;
  padding: 6px 11px; border-radius: 3px; font-size: 0.95rem;
}
.streams-nav a { color: var(--ink-muted); transition: background 0.15s, color 0.15s; }
.streams-nav a:hover { background: var(--tan); color: var(--ink); }
.streams-nav .active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); cursor: default; }
.btn-sub {
  margin-left: auto; background: var(--accent); color: var(--bone);
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 8px 17px; border-radius: 3px; transition: background 0.15s;
}
.btn-sub:hover { background: var(--accent-hover); }

/* ─── Edition dateline ─── */

.edition {
  display: flex; align-items: center; gap: 14px; padding: 14px 0 0;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); font-weight: 600;
}
.edition .rule { flex: 1; height: 1px; background: var(--rule); }
.edition .loc { color: var(--ink-muted); letter-spacing: 0.08em; }

/* ─── Homepage: lead + rundown ─── */

.lead-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 48px;
  padding: 34px 0 12px; position: relative;
}
.lead-grid.solo { grid-template-columns: 1fr; }
.lead { position: relative; }
.lead-grid .featured__sun {
  position: absolute; top: -6px; right: -24px; width: 104px; height: 104px;
  color: var(--accent); opacity: 0.85; margin: 0; pointer-events: none;
}
.lead__kicker {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.lead__head {
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.02;
  letter-spacing: -0.022em; color: var(--ink); margin-bottom: 16px;
}
.lead__head a { color: inherit; text-decoration: none; }
.lead__head a:hover { color: var(--accent); }
.lead__dek {
  font-size: 1.2rem; font-style: italic; color: var(--ink-muted);
  max-width: 33em; margin-bottom: 22px;
}
.link-arrow {
  font-weight: 600; color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.link-arrow:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.rundown {
  background: var(--bone); border: 1px solid var(--rule);
  border-top: 3px solid var(--accent); border-radius: 4px;
  padding: 20px 24px 12px; align-self: end;
  box-shadow: 0 2px 18px color-mix(in srgb, var(--brown) 6%, transparent);
}
.rundown h2 {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); font-family: var(--serif); font-weight: 700;
  margin-bottom: 10px;
}
.rundown ol { list-style: none; counter-reset: rd; }
.rundown li {
  counter-increment: rd; display: flex; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--tan); font-size: 0.97rem; line-height: 1.38;
}
.rundown li::before {
  content: counter(rd); font-family: var(--display); font-weight: 700;
  font-variation-settings: "SOFT" 60, "WONK" 1; color: var(--accent);
  font-size: 1.1rem; line-height: 1.3; min-width: 16px;
}
.rundown a { color: var(--ink); text-decoration: none; }
.rundown a:hover { color: var(--accent); }

/* ─── Homepage: "Latest across town" ruled table ─── */

.across { display: grid; grid-template-columns: repeat(4, 1fr); }
.across .cell { padding: 18px 20px 24px 0; border-right: 1px solid var(--rule); }
.across .cell + .cell { padding-left: 20px; }
.across .cell:last-child { border-right: none; }
.across .eyebrow {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 9px;
}
.across .eyebrow.sage { color: var(--sage); }
.across .eyebrow.clay { color: var(--clay); }
.across .cell h3 {
  font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 30;
  font-size: 1.16rem; line-height: 1.22; letter-spacing: -0.01em;
}
.across .cell h3 a { color: var(--ink); text-decoration: none; }
.across .cell h3 a:hover { color: var(--accent); }
.across .cell .meta { font-size: 0.82rem; color: var(--sage); margin-top: 7px; }

/* ─── The week at a glance ─── */

.wk-h {
  display: flex; align-items: baseline; gap: 16px; padding: 34px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.wk-h h2 {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.012em;
  color: var(--ink);
}
.wk-h .note {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--sage);
}
.week {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule); border-top: none; background: var(--bone);
}
.week .day { padding: 14px 15px 16px; border-right: 1px solid var(--rule); min-height: 150px; }
.week .day:last-child { border-right: none; }
.week .dh {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); font-weight: 600;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 9px;
}
.week .day.today { background: color-mix(in srgb, var(--terracotta) 6%, transparent); }
.week .day.today .dh { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.week ul { list-style: none; }
.week li { font-size: 0.86rem; line-height: 1.32; padding: 6px 0; }
.week .mk {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 1px;
}
.week .mk.brief { color: var(--ink-muted); }
.week .mk.preview { color: var(--sage); }
.week a { color: var(--ink); text-decoration: none; }
.week a:hover { color: var(--terracotta); }
.week .none { color: var(--ink-quiet); font-size: 0.8rem; }

/* ─── Recent daily briefs (two-column) ─── */

.recent-list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px;
  list-style: none;
}
.recent-list li {
  display: flex; gap: 14px; align-items: baseline; padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.recent-list .d {
  font-size: 0.8rem; color: var(--sage); font-weight: 600; min-width: 92px;
  letter-spacing: 0.03em;
}
.recent-list a { color: var(--ink); text-decoration: none; font-size: 0.98rem; line-height: 1.32; }
.recent-list a:hover { color: var(--accent); }
.see-all { padding: 16px 0 8px; }

/* ─── Subscribe panel ─── */

.subscribe { padding: var(--gap-xl) 0; }
.subscribe__panel {
  background: var(--bone); border: 1px solid var(--rule);
  display: grid; grid-template-columns: 240px 1fr; align-items: stretch;
  position: relative; overflow: hidden;
}
.subscribe__art {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--adobe) 60%, var(--terracotta-dark) 100%);
  position: relative; overflow: hidden; min-height: 220px;
}
.subscribe__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.subscribe__body { padding: clamp(28px, 4vw, 44px); }
.subscribe__eyebrow {
  font-size: var(--t-kicker); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.subscribe__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 12px;
}
.subscribe__body p { color: var(--ink-muted); font-size: var(--t-body); max-width: 56ch; margin-bottom: var(--gap-m); }
.subscribe__button {
  display: inline-block; padding: 14px 22px;
  font-family: var(--serif); font-size: var(--t-body); font-weight: 600;
  letter-spacing: 0.04em; color: var(--bone); background: var(--clay);
  border: none; cursor: pointer; text-decoration: none;
  transition: background 220ms ease;
}
.subscribe__button:hover { background: var(--dusk); }
.subscribe__fine { font-size: var(--t-small); color: var(--ink-muted); font-style: italic; margin-top: var(--gap-s); }

/* ─── Section index pages ─── */

.page-head { padding-top: var(--gap-xl); margin-bottom: var(--gap-l); }
.section-intro {
  font-family: var(--serif); font-style: italic; font-size: var(--t-lede);
  color: var(--ink-muted); max-width: 56ch;
  margin: var(--gap-s) 0 0; padding-left: var(--gap-m);
  border-left: 3px solid var(--accent);
}
.section-intro a { color: var(--accent); }

.post-list { list-style: none; padding-top: var(--gap-m); border-top: 1px solid var(--rule); }
.post-list li {
  padding: var(--gap-m) 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 140px 1fr; gap: var(--gap-m);
  align-items: baseline;
}
.post-list .post-date {
  font-size: var(--t-kicker); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-quiet);
}
.post-list a {
  font-family: var(--display);
  font-variation-settings: "opsz" 32, "SOFT" 40, "WONK" 0;
  font-weight: 600; font-size: 1.25rem; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  transition: color 200ms ease;
}
.post-list a:hover { color: var(--accent); }
.post-list .post-lede {
  grid-column: 2; margin-top: 6px; color: var(--ink-muted);
  font-size: var(--t-small); line-height: 1.5; font-style: italic;
}
.post-list .empty {
  display: block; color: var(--ink-muted); font-style: italic;
  padding: var(--gap-l) 0;
}

/* ─── Individual daily brief pages ─── */

.brief-header {
  margin-bottom: var(--gap-l); padding-bottom: var(--gap-l);
  border-bottom: 2px solid var(--accent);
}
.brief-kicker {
  font-size: var(--t-kicker); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brief-date {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 0.98; letter-spacing: -0.02em; color: var(--ink);
}
.brief-weekday {
  font-family: var(--serif); font-style: italic; font-size: var(--t-lede);
  color: var(--ink-muted); margin-top: 8px;
}

.brief-body { font-size: 1.125rem; line-height: 1.7; }
.brief-body h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.15; letter-spacing: -0.012em; color: var(--clay);
  margin: var(--gap-xl) 0 var(--gap-m); position: relative;
}
.brief-body h2:first-child { margin-top: 0; }
.brief-body p { margin-bottom: var(--gap-m); color: var(--ink); }
.brief-body ul, .brief-body ol { margin: 0 0 var(--gap-m) 24px; }
.brief-body li { margin-bottom: 8px; }
.brief-body strong { font-weight: 600; color: var(--dusk); }

.brief-body > h2:first-child + p::first-letter,
.brief-body > p:first-child::first-letter {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-weight: 700; font-size: 4.2em; line-height: 0.85; float: left;
  padding: 6px 12px 0 0; margin-top: 4px; color: var(--accent);
}

.brief-body hr {
  border: none; height: 1px; background: var(--rule);
  margin: var(--gap-l) 0; position: relative;
}
.brief-body hr::after {
  content: ""; position: absolute; top: -3px; left: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
  transform: translateX(-50%);
}

.brief-body a {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%;
  background-repeat: no-repeat; padding-bottom: 1px;
  transition: color 200ms ease;
}
.brief-body a:hover { color: var(--accent); }

/* ─── Generic post pages (previews, about) ─── */

article.post-page { font-size: 1.125rem; line-height: 1.7; }
article.post-page .post-meta {
  font-size: var(--t-kicker); color: var(--ink-quiet);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  margin-bottom: 14px;
}
article.post-page > h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: var(--gap-l); padding-bottom: var(--gap-l);
  border-bottom: 2px solid var(--accent);
}
article.post-page h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 0;
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.18; letter-spacing: -0.01em; color: var(--clay);
  margin: var(--gap-xl) 0 var(--gap-m);
}
article.post-page h2:first-of-type { margin-top: 0; }
article.post-page h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 0;
  font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--dusk);
  margin: var(--gap-l) 0 12px;
}
article.post-page p { margin-bottom: var(--gap-m); }
article.post-page ul, article.post-page ol { margin: 0 0 var(--gap-m) 24px; }
article.post-page li { margin-bottom: 8px; }
article.post-page strong { font-weight: 600; color: var(--dusk); }
article.post-page a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid currentColor; transition: color 200ms ease;
}
article.post-page a:hover { color: var(--accent-hover); }
article.post-page hr { border: none; height: 1px; background: var(--rule); margin: var(--gap-l) 0; }

/* ─── Citation chips ([S#] → sources.html#s#), in the p.source register ─── */

.brief-body .cite, article.post-page .cite {
  font-family: var(--serif); font-size: 0.72em; font-weight: 600;
  color: var(--ink-quiet); text-decoration: none; background: none;
  border-bottom: 1px dotted var(--dust); vertical-align: super;
  padding: 0 1px; margin: 0 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.brief-body .cite:hover, article.post-page .cite:hover {
  color: var(--accent); border-color: var(--accent);
}

/* ─── Back link ─── */

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: var(--t-small); font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent); text-decoration: none;
  margin: var(--gap-l) 0; transition: gap 200ms ease, color 200ms ease;
}
.back-link:hover { color: var(--accent-hover); gap: 14px; }

/* ─── Prev/next edition nav ─── */

.edition-nav {
  display: flex; justify-content: space-between; gap: var(--gap-m);
  margin-top: var(--gap-xl); margin-bottom: var(--gap-xl);
  padding-top: var(--gap-l); border-top: 1px solid var(--rule);
}
.edition-nav__link {
  display: flex; flex-direction: column; gap: 4px; max-width: 48%;
  text-decoration: none; color: var(--ink); transition: color 200ms ease;
}
.edition-nav__prev { margin-right: auto; text-align: left; }
.edition-nav__next { margin-left: auto; text-align: right; }
.edition-nav__link:hover { color: var(--accent); }
.edition-nav__dir {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: var(--t-small); font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent);
}
.edition-nav__next .edition-nav__dir { justify-content: flex-end; }
.edition-nav__date { font-family: var(--serif); font-size: var(--t-small); color: var(--ink-muted); }

/* ─── Dash cards (trust-page numbers) ─── */

.dash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-m);
  margin: var(--gap-l) 0 var(--gap-xl);
}
.dash-card { background: var(--bone); border: 1px solid var(--rule); padding: var(--gap-m); }
.dash-card__eyebrow {
  font-size: var(--t-kicker); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 8px;
}
.dash-card__value {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.0; letter-spacing: -0.02em; color: var(--clay);
  margin-bottom: 6px;
}
.dash-card__caption { font-size: var(--t-small); color: var(--ink-muted); font-style: italic; }

/* ─── Source registry rows ─── */

.src-group { margin-bottom: var(--gap-l); }
.src-group > h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 0;
  font-weight: 600; font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.18; letter-spacing: -0.01em; color: var(--clay);
  margin-bottom: var(--gap-s);
}
.src { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.src strong { font-weight: 600; color: var(--dusk); font-size: var(--t-body); }
.src .inst {
  font-size: var(--t-small); font-style: italic; color: var(--ink-quiet);
  margin-top: 4px; padding-left: var(--gap-s); border-left: 2px solid var(--dust);
}
.topic-flag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--bone); background: var(--clay);
  border: 1px solid var(--terracotta-dark); margin-left: 10px;
  vertical-align: 2px; white-space: nowrap;
}

/* ─── Footer ─── */

.footer-row {
  border-top: 1px solid var(--rule);
  padding: var(--gap-l) 0 var(--gap-xl);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--gap-m); font-size: var(--t-small); color: var(--ink-muted);
  align-items: baseline;
}
.footer-row__byline { font-family: var(--serif); font-style: italic; }
.footer-row__links { display: flex; flex-wrap: wrap; gap: var(--gap-s) var(--gap-m); align-items: baseline; }
.footer-row__links a { color: var(--accent); text-decoration: none; }
.footer-row__links a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ─── Mobile ─── */

@media (max-width: 880px) {
  .masthead__tagline { margin-left: 0; text-align: left; width: 100%; }
  .lead-grid { grid-template-columns: 1fr; gap: 28px; }
  .lead-grid .featured__sun { display: none; }
  .across { grid-template-columns: 1fr 1fr; }
  .across .cell { border-right: none; padding-left: 0 !important; border-top: 1px solid var(--rule); }
  .week { grid-template-columns: 1fr 1fr; }
  .week .day { border-bottom: 1px solid var(--rule); min-height: 0; }
  .recent-list { grid-template-columns: 1fr; }
  .subscribe__panel, .dash-grid { grid-template-columns: 1fr; }
  .subscribe__art { min-height: 120px; }
  .recent-list li, .post-list li { grid-template-columns: 1fr; gap: 4px; }
  .post-list .post-lede { grid-column: auto; }
  .btn-sub { margin-left: 0; }
  .edition-nav { flex-direction: column; }
  .edition-nav__link { max-width: 100%; text-align: left; }
  .edition-nav__next { text-align: left; }
  .edition-nav__next .edition-nav__dir { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .masthead__kicker, .masthead__wordmark, .masthead__tagline { animation: none; opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
