/* =========================================================================
   Hastha — landing page
   Palette mapped 1:1 from palm/constants/theme.ts so the marketing surface
   and the app cannot drift visually.
   ========================================================================= */

:root {
  /* Surfaces */
  --cream: #F7F1E3;
  --ivory: #FCF7E8;
  --parchment: #EFE6CF;

  /* Ink */
  --ink: #1C1B1A;
  --ink-soft: #3D3A33;
  --ink-muted: #6B6557;

  /* Indigo */
  --indigo: #1E2A78;
  --indigo-deep: #0E1330;
  --indigo-soft: #3F4FA8;

  /* Gold + saffron */
  --saffron: #D97706;
  --marigold: #E89B3A;
  --gold: #C9A227;
  --gold-light: #E5BD3C;

  /* Status */
  --vermillion: #C0322B;
  --leaf: #3F7D58;

  /* Lines */
  --border-light: #E2D9BE;
  --border-dark: #2A2F55;

  /* Mode-driven semantic tokens — light is default ("daylight") */
  --bg: var(--cream);
  --bg-elevated: var(--ivory);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --accent: var(--indigo);
  --accent-soft: var(--indigo-soft);
  --rule: var(--gold);
  --rule-soft: var(--border-light);
  --action: var(--saffron);

  /* Spacing scale (4pt grid, mirrors Spacing in theme.ts) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Type stack — matches Fonts.web in theme.ts */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --deva: 'Tiro Devanagari Sanskrit', 'Cormorant Garamond', Georgia, serif;

  --measure: 64ch;
  --measure-narrow: 38ch;
}

html[data-mode="lamplight"] {
  --bg: var(--indigo-deep);
  --bg-elevated: #161B3D;
  --text: var(--cream);
  --text-muted: #B5AE94;
  --accent: var(--gold-light);
  --accent-soft: #7E8AB8;
  --rule: var(--gold-light);
  --rule-soft: var(--border-dark);
  --action: var(--marigold);
}

/* Subtle parchment grain — pure CSS, no asset.
   In lamplight mode we suppress it; the dark indigo reads cleaner unadorned. */
html[data-mode="lamplight"] body::before { display: none; }

/* ----------------------------------- Reset (light) ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ----------------------------------- Page chrome ------------------------------------ */
html { background: var(--bg); }

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "onum" 1, "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color 320ms ease, color 320ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(60,40,10,0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(60,40,10,0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(60,40,10,0.04) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px, 13px 13px;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

/* Container — broadsheet width */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ----------------------------------- Masthead --------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-bottom: var(--space-xl);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: var(--space-lg);
}

.masthead__dateline,
.masthead__toggle-wrap {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.masthead__dateline { text-align: left; }
.masthead__toggle-wrap { text-align: right; }

.masthead__wordmark {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.12em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  font-feature-settings: "lnum" 1;
}

.masthead__deva {
  display: block;
  font-family: var(--deva);
  font-size: clamp(13px, 1.4vw, 17px);
  font-style: italic;
  color: var(--rule);
  letter-spacing: 0.06em;
  margin-top: var(--space-sm);
}

.masthead__rules {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--space-md);
}
.masthead__rules span {
  height: 1px; background: var(--rule);
}
.masthead__rules span:nth-child(1) { width: 18%; }
.masthead__rules span:nth-child(2) { width: 4%; opacity: 0.6; }
.masthead__rules span:nth-child(3) { width: 18%; }

.lamp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.lamp-toggle:hover { background: var(--rule); color: var(--bg); }
.lamp-toggle__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule);
}
html[data-mode="lamplight"] .lamp-toggle__dot {
  box-shadow: 0 0 8px var(--gold-light), 0 0 16px rgba(229,189,60,0.4);
}

/* ----------------------------------- Section labels --------------------------------- */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rule);
}

.section {
  padding: var(--space-xxxl) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.section__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
  margin: var(--space-md) 0 var(--space-xl);
  font-style: italic;
}

.section__heading-deva {
  display: block;
  font-family: var(--deva);
  font-size: 0.55em;
  color: var(--rule);
  font-style: normal;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ----------------------------------- Lede ------------------------------------------- */
.lede {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
  margin-top: var(--space-xl);
}

.lede__col p {
  margin: 0 0 var(--space-md);
  font-size: 17px;
  line-height: 1.6;
  hyphens: auto;
  text-align: justify;
}

.lede__col:first-child p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 5.2em;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  margin-top: 4px;
  color: var(--accent);
}

.lede__col p sup {
  font-family: var(--sans);
  font-size: 9px;
  vertical-align: super;
  color: var(--rule);
  font-feature-settings: "lnum" 1;
}

/* ----------------------------------- Plate I (palm) --------------------------------- */
.plate {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xxl);
  align-items: start;
  margin-top: var(--space-xl);
}

.plate__figure {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  min-height: 540px;
}

html[data-mode="lamplight"] .plate__figure {
  border-color: var(--border-dark);
}

.plate__corners {
  position: absolute; inset: 10px;
  pointer-events: none;
}
.plate__corners::before, .plate__corners::after {
  content: ""; position: absolute; width: 28px; height: 28px;
  border: 1px solid var(--rule);
}
.plate__corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.plate__corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.palm-svg {
  width: 100%;
  height: auto;
  max-height: 600px;
  margin: 0 auto;
  display: block;
}

.palm-svg .hand-outline {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.32;
}

.palm-svg .palm-line {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2.4;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke 200ms ease, stroke-width 200ms ease, filter 200ms ease;
}

.palm-svg .palm-line:hover,
.palm-svg .palm-line[data-active="true"] {
  stroke: var(--action);
  stroke-width: 3.4;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--action) 50%, transparent));
}

.palm-svg .mount-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--text-muted);
  opacity: 0.7;
}

.palm-svg .ornament {
  stroke: var(--rule);
  stroke-width: 0.8;
  fill: none;
  opacity: 0.45;
}

.plate__caption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}
.plate__caption strong {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text);
}

/* Marginal annotation card */
.plate__margin {
  position: sticky;
  top: var(--space-xxl);
  border-left: 1px solid var(--rule);
  padding: var(--space-md) 0 var(--space-md) var(--space-xl);
  min-height: 280px;
}

.plate__margin-prompt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-sm);
}

.plate__annotation {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.plate__annotation[data-visible="true"] {
  opacity: 1; transform: none;
}

.plate__annotation h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  margin: 0 0 var(--space-xs);
}
.plate__annotation .deva {
  font-family: var(--deva);
  color: var(--rule);
  font-size: 14px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: var(--space-md);
}
.plate__annotation p {
  margin: 0 0 var(--space-md);
  font-size: 15.5px;
  line-height: 1.55;
}
.plate__annotation cite {
  font-family: var(--sans);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.plate__legend {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.plate__legend button {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  transition: color 160ms ease, border-color 160ms ease;
}
.plate__legend button:hover,
.plate__legend button[data-active="true"] {
  color: var(--action);
  border-color: var(--action);
}

/* ----------------------------------- Tradition (4 excerpts) ------------------------- */
.tradition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl) var(--space-xxxl);
  margin-top: var(--space-xl);
}

.tradition__entry {
  position: relative;
  padding-left: var(--space-xl);
}

.tradition__entry::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 1px; height: calc(100% - 16px);
  background: var(--rule);
}

.tradition__entry h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 4px;
}
.tradition__entry .deva {
  font-family: var(--deva);
  color: var(--rule);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.tradition__entry blockquote {
  margin: var(--space-md) 0 var(--space-md);
  font-size: 16.5px;
  line-height: 1.6;
  font-style: italic;
}
.tradition__entry blockquote::before { content: "\201C"; font-size: 1em; padding-right: 2px; }
.tradition__entry blockquote::after { content: "\201D"; }
.tradition__entry cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-style: normal;
}

/* ----------------------------------- Specimen reading ------------------------------- */
.specimen {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xxl);
  margin-top: var(--space-xl);
  position: relative;
}

.specimen::before, .specimen::after {
  content: "Specimen reading — for illustration only";
  position: absolute;
  top: var(--space-md);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.65;
}
.specimen::before { left: var(--space-xxl); }
.specimen::after { right: var(--space-xxl); content: "Folio · Plate II"; }

.specimen__inner {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
}

.specimen__head {
  text-align: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}
.specimen__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}
.specimen__head .meta {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.specimen__lede {
  font-size: 16.5px;
  line-height: 1.65;
  text-align: justify;
  margin: 0 0 var(--space-lg);
}
.specimen__lede::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 4.4em;
  line-height: 0.9;
  padding: 4px 10px 0 0;
  color: var(--accent);
}

.specimen__entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--rule-soft);
}
.specimen__entry h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0;
  text-align: right;
}
.specimen__entry h4 small {
  display: block;
  font-family: var(--deva);
  color: var(--rule);
  font-size: 12px;
  font-style: normal;
}
.specimen__entry p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.specimen__entry sup {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--rule);
  font-feature-settings: "lnum" 1;
  vertical-align: super;
}

.specimen__sources {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}
.specimen__sources strong {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  font-size: 10.5px;
  margin-right: var(--space-sm);
}

/* ----------------------------------- Ledger (pricing) ------------------------------- */
.ledger {
  margin-top: var(--space-xl);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: var(--space-xl) 0;
  position: relative;
}
.ledger::before, .ledger::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: var(--rule);
  opacity: 0.5;
}
.ledger::before { top: 4px; }
.ledger::after { bottom: 4px; }

.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px dashed var(--rule-soft);
  gap: var(--space-lg);
}
.ledger__row:last-of-type { border-bottom: 0; }

.ledger__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
}
.ledger__name small {
  display: inline-block;
  font-family: var(--deva);
  color: var(--rule);
  font-size: 16px;
  font-style: normal;
  letter-spacing: 0.04em;
  margin-right: var(--space-md);
}
.ledger__name .what {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 4px;
}
.ledger__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  font-feature-settings: "onum" 1, "lnum" 0;
  letter-spacing: 0.02em;
}
.ledger__price small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
}

.ledger__note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: var(--space-md);
  font-style: italic;
  text-align: center;
}

/* ----------------------------------- Two-column editorial --------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xxxl);
  margin-top: var(--space-xl);
}
.two-col__main p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 var(--space-md);
  hyphens: auto;
  text-align: justify;
}
.two-col__main em { font-style: italic; }
.two-col__aside {
  border-left: 1px solid var(--rule);
  padding-left: var(--space-xl);
}
.two-col__aside h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}
.two-col__aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.two-col__aside li {
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  gap: var(--space-md);
}
.two-col__aside li:last-child { border-bottom: 0; }
.two-col__aside li::before {
  content: counter(margin-counter, lower-roman) ".";
  counter-increment: margin-counter;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rule);
  flex-shrink: 0;
  min-width: 28px;
}
.two-col__aside ul { counter-reset: margin-counter; }

/* ----------------------------------- Coming soon ------------------------------------ */
.coming {
  text-align: center;
  margin-top: var(--space-xl);
}

.coming h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 var(--space-md);
}
.coming p {
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.coming__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
}
.coming__badge .glyph {
  width: 16px; height: 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  position: relative;
}
.coming__badge .glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--rule);
  opacity: 0.5;
  clip-path: polygon(20% 0, 100% 50%, 20% 100%, 60% 50%);
}

/* ----------------------------------- Colophon (footer) ------------------------------ */
.colophon {
  margin-top: var(--space-xxxl);
  padding: var(--space-xxxl) 0 var(--space-xxl);
  border-top: 2px solid var(--rule);
  text-align: center;
  position: relative;
}
.colophon::before {
  content: "❦";
  display: block;
  text-align: center;
  font-size: 22px;
  color: var(--rule);
  margin: -42px auto var(--space-lg);
  background: var(--bg);
  width: 44px;
  position: relative;
  z-index: 2;
}

.colophon__motto {
  font-family: var(--deva);
  font-style: italic;
  color: var(--rule);
  font-size: 17px;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-xs);
}
.colophon__motto-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 var(--space-xl);
}

.colophon__disclaimer {
  max-width: 60ch;
  margin: 0 auto var(--space-xl);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.colophon__row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.colophon__row a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.colophon__row a:hover {
  color: var(--action);
  border-bottom-color: var(--action);
}

/* ----------------------------------- Stroke-draw animation -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Lines use pathLength="1" so dasharray/offset operate in normalized units. */
  .palm-svg.is-drawing .palm-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-line 1100ms ease-out forwards;
  }
  .palm-svg.is-drawing #line-life   { animation-delay: 0ms; }
  .palm-svg.is-drawing #line-head   { animation-delay: 220ms; }
  .palm-svg.is-drawing #line-heart  { animation-delay: 440ms; }
  .palm-svg.is-drawing #line-fate   { animation-delay: 660ms; }
  .palm-svg.is-drawing #line-sun    { animation-delay: 880ms; }

  @keyframes draw-line {
    to { stroke-dashoffset: 0; }
  }
}

/* ----------------------------------- Responsive ------------------------------------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .lede { grid-template-columns: 1fr; gap: var(--space-lg); }
  .lede__col p { text-align: left; hyphens: manual; }
  .plate { grid-template-columns: 1fr; }
  .plate__margin { position: static; border-left: 0; border-top: 1px solid var(--rule); padding: var(--space-lg) 0 0; }
  .tradition { grid-template-columns: 1fr; gap: var(--space-xl); }
  .two-col { grid-template-columns: 1fr; gap: var(--space-xl); }
  .two-col__aside { border-left: 0; border-top: 1px solid var(--rule); padding: var(--space-lg) 0 0; }
  .specimen { padding: var(--space-xl) var(--space-lg); }
  .specimen::before, .specimen::after { display: none; }
  .specimen__entry { grid-template-columns: 1fr; gap: var(--space-xs); }
  .specimen__entry h4 { text-align: left; }
  .ledger__row { grid-template-columns: 1fr; }
  .ledger__price { font-size: 24px; }
  .masthead__inner { grid-template-columns: 1fr; text-align: center; }
  .masthead__dateline, .masthead__toggle-wrap { text-align: center; }
}

@media (max-width: 480px) {
  .page { padding: 0 var(--space-lg); }
  .plate__figure { padding: var(--space-md); min-height: auto; }
}

/* ----------------------------------- A11y helpers ----------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 2px;
}
