/* ============================================================
   ADAS Brief
   Sans for signal and structure, serif for reading.
   ============================================================ */

:root {
  --paper:        #ffffff;
  --paper-sunk:   #f6f4f1;
  --paper-raised: #ffffff;
  --ink:          #14161a;
  --ink-soft:     #565c66;
  --ink-faint:    #868c96;
  --rule:         #e5e2dd;
  --rule-strong:  #14161a;
  --accent:       #c8102e;
  --accent-ink:   #ffffff;
  --draft:        #8a6100;
  --draft-soft:   #fdf3dd;
  --shell:        #0f1114;
  --shell-ink:    #f2f0ec;
  --shell-soft:   #9aa1ac;
  --shell-rule:   #2b3038;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 35rem;
  --wide: 78rem;
  --radius: 10px;
  --radius-sm: 4px;
  --header-h: 66px;
}

/* Light is the default for everyone, regardless of system setting. Dark is an
   explicit choice made with the footer toggle and remembered in localStorage. */
:root[data-theme="dark"] {
    --paper:        #0f1114;
    --paper-sunk:   #171a1f;
    --paper-raised: #171a1f;
    --ink:          #f0eeea;
    --ink-soft:     #a9b0ba;
    --ink-faint:    #7f8792;
    --rule:         #282d35;
    --rule-strong:  #f0eeea;
    --accent:       #ff5a6e;
    --accent-ink:   #1a0a0d;
    --draft:        #e2b45c;
    --draft-soft:   #2a2113;
    --shell:        #08090b;
    --shell-ink:    #f0eeea;
    --shell-soft:   #8b929c;
    --shell-rule:   #23272e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200; font-size: 14px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Utility strip + sticky header ---------- */

.utility {
  border-bottom: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.utility__inner { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; flex-wrap: wrap; }
.utility a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.utility a:hover { color: var(--accent); border-color: var(--accent); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(8px);
}
.masthead__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3ch;
  text-decoration: none;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1;
  flex: none;
}
.wordmark__adas { color: var(--ink); }
.wordmark__brief { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }

.nav {
  display: flex;
  gap: 21px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Chips, meta ---------- */

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.chip:hover { background: var(--ink); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; opacity: .6; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--accent); }
.meta svg { width: 13px; height: 13px; flex: none; opacity: .75; }
.meta time { display: inline-flex; align-items: center; gap: 5px; }

.badge-draft {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--draft);
  background: var(--draft-soft);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 2px 6px;
}

/* ---------- Section headings ---------- */

.section {
  padding-top: 72px;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section__head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.032em;
  margin: 0;
  line-height: 1.1;
}
.section__head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.more-link .arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform .18s ease;
}
.more-link:hover .arrow { transform: translateX(3px); }
.more-link:hover { color: var(--accent); }

/* ---------- Cover art ---------- */

.cover {
  border-radius: var(--radius);
  overflow: hidden;
  background: #101318;
  aspect-ratio: 8 / 5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--wide { aspect-ratio: 5 / 2; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 60px 0 8px;
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.037em;
  font-weight: 800;
  margin: 18px 0 16px;
}
.hero__title a { text-decoration: none; }
.hero__title a:hover { color: var(--accent); }
.hero__dek {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 32rem;
}

/* ---------- Story cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 34px 40px;
}
.card { border-top: 2px solid var(--rule-strong); padding-top: 16px; }
.card__cover { display: block; margin: 0 0 16px; }
.card__cover .cover { aspect-ratio: 16 / 9; }
.card__title {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 10px 0 8px;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__dek {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

/* ---------- Beat columns ---------- */

.beat-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 34px 30px;
}
.beat-col { display: flex; flex-direction: column; }
.beat-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.beat-col__head h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
}
.beat-col__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.beat-col__head .n { margin-left: auto; font-size: 12px; color: var(--ink-faint); }

.beat-lead__title {
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.016em;
  font-weight: 700;
  margin: 0 0 8px;
}
.beat-lead__title a { text-decoration: none; }
.beat-lead__title a:hover { color: var(--accent); }
.beat-lead__dek { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.5; }

.beat-list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.beat-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.beat-list a {
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  display: block;
}
.beat-list a:hover { color: var(--accent); }
.beat-list .when { display: block; font-size: 11.5px; color: var(--ink-faint); font-weight: 400; margin-top: 5px; letter-spacing: 0.03em; text-transform: uppercase; }
.beat-col .more-link { margin-top: auto; padding-top: 20px; font-size: 13px; }

/* ---------- Article ---------- */

.article { padding: 44px 0 0; }

/* Headline, dek and share sit in a rail that stays put while the story scrolls
   beside it, so the reader always knows what they are in and can share from
   anywhere in the piece. */
.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.article__rail { position: sticky; top: calc(var(--header-h) + 28px); }
.article__body { min-width: 0; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:first-child { color: var(--ink-faint); }
.crumbs a:hover { text-decoration: underline; }

.share { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.share__label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-soft); }
.share__row { display: flex; gap: 10px; }
.share__btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share__btn svg { width: 16px; height: 16px; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.share__btn.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.article__title {
  font-size: clamp(31px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.034em;
  font-weight: 800;
  margin: 16px 0 20px;
}
.article__standfirst {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.article__standfirst p { margin: 0; }
.article__standfirst a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.article__standfirst a:hover { color: var(--accent); border-color: var(--accent); }
.article__meta { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 13px 0; }
.article__cover { margin: 0 0 36px; }
.article__cover figcaption { font-size: 12px; color: var(--ink-faint); margin-top: 10px; letter-spacing: 0.02em; }

.prose {
  max-width: 40rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.63;
}
/* Flow spacing. `.prose > *` zeroes the browser defaults and the adjacent-sibling
   rule that follows puts the gap back — order matters, they share specificity.
   Do not add `.prose p { margin: 0 }` back: it is more specific and kills it. */
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 2.2em;
  padding-top: 1.05em;
  border-top: 1px solid var(--rule);
}
.prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.3; margin-top: 1.8em; }
.prose a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
.prose a:hover { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.87em; background: var(--paper-sunk); padding: 1px 5px; border-radius: var(--radius-sm); }
.prose > p > em:only-child {
  display: block;
  color: var(--ink-soft);
  font-size: 17px;
  border-top: 1px solid var(--rule);
  padding-top: 1.3em;
  margin-top: 0.6em;
}

.article__sources {
  max-width: 40rem;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid var(--rule-strong);
  font-size: 14.5px;
}
.article__sources h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; }
.article__sources ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.article__sources li + li { margin-top: 7px; }
.article__sources a { color: var(--ink-soft); word-break: break-word; }

.article__tags { max-width: 40rem; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 11px;
}

.article__pitch {
  max-width: 40rem;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}
.article__pitch a { color: var(--ink); border-bottom: 1.5px solid var(--accent); text-decoration: none; }
.article__pitch a:hover { color: var(--accent); }

.draft-notice {
  max-width: 40rem;
  margin: 0 0 26px;
  background: var(--draft-soft);
  border: 1px solid var(--draft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--draft);
}

/* ---------- Newsletter ---------- */

.signup { background: var(--paper-sunk); margin-top: 80px; padding: 66px 0; text-align: center; }
.signup h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.034em; margin: 10px 0 12px; line-height: 1.1; }
.signup p { margin: 0 auto; max-width: 34rem; color: var(--ink-soft); font-size: 16px; font-family: var(--serif); }
.signup__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.signup__form input[type="email"] {
  width: min(360px, 100%);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.signup__form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.signup__note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Page header ---------- */

.page-head { padding: 56px 0 28px; border-bottom: 2px solid var(--rule-strong); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.034em; line-height: 1.08; margin: 10px 0 12px; }
.page-head p { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 40rem; font-family: var(--serif); }

.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin: 0; }

/* ---------- Archive ---------- */

.year-group + .year-group { margin-top: 48px; }
.year-group > h2 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--rule); padding-bottom: 9px; margin: 0 0 4px;
}
.archive-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.archive-row__date { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.archive-row__title { font-size: 19px; line-height: 1.28; font-weight: 700; letter-spacing: -0.018em; margin: 0 0 7px; }
.archive-row__title a { text-decoration: none; }
.archive-row__title a:hover { color: var(--accent); }

/* ---------- Topic cards ---------- */

.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.beat {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  display: block;
  transition: border-color .18s ease, transform .18s ease;
}
.beat:hover { border-color: var(--accent); transform: translateY(-2px); }
.beat h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; color: var(--accent); }
.beat p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); font-family: var(--serif); }
.beat .beat__count { font-size: 12px; color: var(--ink-faint); margin-top: 14px; display: block; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  padding-top: 44px;
  align-items: start;
}
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field > span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.cform__field > span em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.cform input, .cform textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 11px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.cform textarea { resize: vertical; line-height: 1.5; font-family: var(--serif); font-size: 16.5px; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cform input:disabled, .cform textarea:disabled { background: var(--paper-sunk); color: var(--ink-faint); cursor: not-allowed; }
.cform__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform__note { font-size: 13px; color: var(--ink-faint); max-width: 28rem; }
.cform__note a { color: var(--ink-soft); }

.contact__aside {
  border-left: 2px solid var(--rule-strong);
  padding-left: 28px;
}
.contact__aside h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
.contact__aside ul { margin: 0; padding-left: 1.1em; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.contact__aside li + li { margin-top: 11px; }
.contact__fine { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }

/* ---------- Footer ---------- */

.footer { background: var(--shell); color: var(--shell-soft); margin-top: 0; padding: 56px 0 40px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .wordmark__adas { color: var(--shell-ink); }
.footer h3 { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--shell-ink); margin: 0 0 14px; }
.footer p { margin: 16px 0 0; max-width: 26rem; line-height: 1.55; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 9px; }
.footer a { color: var(--shell-soft); text-decoration: none; }
.footer a:hover { color: #fff; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--shell-soft);
  font: inherit;
  font-size: 13px;
}
.theme-toggle:hover { color: #fff; }
.theme-toggle__track {
  width: 38px; height: 21px;
  border-radius: 999px;
  border: 1px solid var(--shell-rule);
  background: rgba(255,255,255,0.07);
  position: relative;
  flex: none;
  transition: background .18s ease;
}
.theme-toggle__knob {
  position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--shell-soft);
  transition: transform .18s ease, background .18s ease;
}
.theme-toggle[aria-pressed="true"] .theme-toggle__track { background: var(--accent); border-color: var(--accent); }
.theme-toggle[aria-pressed="true"] .theme-toggle__knob { transform: translateX(17px); background: #fff; }

.footer__colophon {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--shell-rule);
  font-size: 13px; color: var(--shell-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

/* Below the desktop breakpoint the beat nav drops to its own scrollable row
   rather than disappearing behind a menu button. */
@media (max-width: 1020px) {
  .masthead__inner { height: auto; flex-wrap: wrap; padding: 12px 0 0; gap: 14px; }
  .nav {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--rule);
    padding: 9px 0;
    gap: 22px;
  }
  .pill { padding: 8px 17px; font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  /* Headline first on small screens, then the cover: the hook does the work. */
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .section { padding-top: 52px; }
  .archive-row { grid-template-columns: 1fr; gap: 5px; }
  .article__cover { margin-bottom: 28px; }
  .article__grid { grid-template-columns: 1fr; gap: 32px; }
  .article__rail { position: static; }
  .share { margin-top: 22px; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .contact__aside { border-left: 0; border-top: 2px solid var(--rule-strong); padding-left: 0; padding-top: 24px; }
  .prose { font-size: 17.5px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cform { grid-template-columns: 1fr; }
  .utility__inner { font-size: 10.5px; }
  .signup { padding: 46px 0; }
}

@media print {
  .masthead, .utility, .signup, .footer, .draft-notice, .article__cover { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose a { border: 0; text-decoration: underline; }
}
