/* Self-hosted copies of the three Google Fonts families the brand book names
   (SIL Open Font License 1.1, see fonts/LICENSE.md). Served from this origin so
   no reader's browser calls Google, and so font-src 'self' in the CSP holds.
   The FONTS placeholder is replaced with the fingerprinted path at startup. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/776f6dcaf03636cd-bricolage-grotesque-normal-400-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/a79fdb52d4a5c765-bricolage-grotesque-normal-400-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/6bc0f226a5b7884a-ibm-plex-mono-normal-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/08949f728dc52d52-ibm-plex-mono-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/32057cf50dd14bdb-ibm-plex-mono-normal-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/0d1f0b8d0722224e-ibm-plex-mono-normal-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/fonts/bb24f6648f75d909-newsreader-italic-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/fonts/5dfcd10d24af8c82-newsreader-italic-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/45683de03de37187-newsreader-normal-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/6e4f2958c3a7c4a8-newsreader-normal-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* SnarkWire — generated from tokens.json */

:root, [data-theme="light"] {
  --surface-100: #faf8f3;
  --surface-200: #ffffff;
  --surface-300: #efebe1;
  --surface-night: #141414;
  --ink: #141414;
  --ink-muted: #57534a;
  --on-night: #faf8f3;
  --highlight: #d4ff3a;
  --on-highlight: #141414;
  --signal: #c4003d;
  --rule: #ddd7ca;
  --rule-strong: #857f72;
  --focus: #141414;
  --shadow-pop: 6px 6px 0 0 #141414;
}

[data-theme="dark"] {
  --surface-100: #121212;
  --surface-200: #1c1c1b;
  --surface-300: #0a0a0a;
  --surface-night: #262624;
  --ink: #f3f0e7;
  --ink-muted: #aaa598;
  --on-night: #f3f0e7;
  --highlight: #d4ff3a;
  --on-highlight: #141414;
  --signal: #ff6b93;
  --rule: #2f2e2b;
  --rule-strong: #77736a;
  --focus: #d4ff3a;
  --shadow-pop: 6px 6px 0 0 #d4ff3a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --surface-100: #121212;
    --surface-200: #1c1c1b;
    --surface-300: #0a0a0a;
    --surface-night: #262624;
    --ink: #f3f0e7;
    --ink-muted: #aaa598;
    --on-night: #f3f0e7;
    --highlight: #d4ff3a;
    --on-highlight: #141414;
    --signal: #ff6b93;
    --rule: #2f2e2b;
    --rule-strong: #77736a;
    --focus: #d4ff3a;
    --shadow-pop: 6px 6px 0 0 #d4ff3a;
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-none: 0;
  --radius-sm: 3px;
  --radius-pill: 999px;
  --layout-container: 1240px;
  --layout-measure: 680px;
  --layout-rail: 320px;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-serif: Newsreader, Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; }
.headline-l { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 800; letter-spacing: -0.02em; }
.headline-m { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.headline-s { font-family: var(--font-display); font-size: 19px; line-height: 24px; font-weight: 700; }
.pullquote { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; }
.deck { font-family: var(--font-serif); font-size: 21px; line-height: 30px; font-weight: 400; font-style: italic; }
.body { font-family: var(--font-serif); font-size: 19px; line-height: 31px; font-weight: 400; }
.body-s { font-family: var(--font-serif); font-size: 16px; line-height: 24px; font-weight: 400; }
.opinion-l { font-family: var(--font-serif); font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -0.01em; font-style: italic; }
.opinion-m { font-family: var(--font-serif); font-size: 26px; line-height: 31px; font-weight: 600; font-style: italic; }
.kicker { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; }
.meta { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 400; }
.ui { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; }


/* SnarkWire components — reads token variables only */
body { margin: 0; background: var(--surface-100); color: var(--ink); font-family: var(--font-serif); }
.sw-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-4); }
.sw-pad { padding: var(--space-4); }
.sw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-container { box-sizing: border-box; width: 100%; max-width: var(--layout-container); margin: 0 auto; padding-inline: var(--space-8); }
@media (max-width: 720px) { .sw-container { padding-inline: var(--space-4); } }
.sw-root a:focus-visible, .sw-btn:focus-visible, .sw-nav a:focus-visible, .sw-prose a:focus-visible,
.sw-tags a:focus-visible, .sw-pagination a:focus-visible, .sw-storylist a:focus-visible, .sw-textlink:focus-visible,
.sw-arthead a:focus-visible, .sw-masthead__home:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.sw-textlink { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sw-textlink:hover { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

/* Logo — colours follow the theme */
.sw-logo { display: block; flex: none; }
.sw-logo__tile { fill: var(--highlight); }
.sw-logo__face { stroke: var(--on-highlight); }
.sw-logo__word { fill: currentColor; }
.sw-logo__onTile .sw-logo__word { fill: var(--on-highlight); }

/* Skip link */
.sw-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; padding: var(--space-3) var(--space-4);
  background: var(--highlight); color: var(--on-highlight); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; }
.sw-skip:focus { top: var(--space-4); outline: 2px solid var(--on-highlight); outline-offset: 2px; }

/* Highlighter */
.sw-mark { background: var(--highlight); color: var(--on-highlight); border-radius: var(--radius-sm);
  padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Kicker */
.sw-kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.sw-satire { font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--signal); border: 1.5px solid var(--signal); border-radius: var(--radius-pill); padding: 1px 8px; }

/* Button */
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-6);
  font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: box-shadow .12s, background-color .12s; box-sizing: border-box; white-space: nowrap; }
.sw-btn--small { min-height: 36px; padding: 6px var(--space-4); }
.sw-btn--primary { background: var(--ink); color: var(--surface-100); }
.sw-btn--primary:hover { box-shadow: var(--shadow-pop); }
.sw-btn--secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.sw-btn--secondary:hover { border-color: var(--ink); }
.sw-btn--highlight { background: var(--highlight); color: var(--on-highlight); border-color: var(--on-highlight); }
.sw-btn--highlight:hover { box-shadow: 4px 4px 0 0 var(--on-highlight); }
.sw-btn:disabled { background: var(--surface-300); color: var(--ink-muted); border-color: var(--rule); box-shadow: none; cursor: not-allowed; }

/* Masthead */
.sw-masthead { background: var(--surface-100); color: var(--ink); border-bottom: 1px solid var(--rule); }
.sw-masthead__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6) var(--space-4); flex-wrap: wrap; }
.sw-masthead__home { display: inline-block; color: var(--ink); border-radius: var(--radius-sm); }
.sw-masthead__side { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.sw-masthead__actions { display: flex; align-items: center; gap: var(--space-4); }
.sw-dateline { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sw-nav { border-top: 1px solid var(--rule); }
.sw-nav__inner { display: flex; gap: var(--space-1); overflow-x: auto; padding-inline: calc(var(--space-8) - var(--space-3)); }
.sw-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.sw-nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sw-nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 0; height: 4px; background: var(--highlight); }
@media (max-width: 720px) { .sw-dateline { display: none; } .sw-nav__inner { padding-inline: var(--space-1); } }

/* BreakingBar */
.sw-breaking { background: var(--surface-night); color: var(--on-night); }
[data-theme="dark"] .sw-breaking, [data-theme="dark"] .sw-footer { border-block: 1px solid var(--rule-strong); }
.sw-breaking__inner { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-3); }
.sw-breaking__label { flex: none; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-highlight); background: var(--highlight); padding: 4px 8px; }
.sw-breaking a { color: var(--on-night); font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 600; text-decoration: none; }
.sw-breaking a:hover { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sw-breaking a:focus-visible, .sw-footer a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.sw-breaking time { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--on-night); }

/* Footer */
.sw-footer { background: var(--surface-night); color: var(--on-night); padding-block: var(--space-12) var(--space-6); margin-top: var(--space-16); }
.sw-footer__top { display: flex; gap: var(--space-8) var(--space-12); align-items: flex-start; }
.sw-footer__brand { flex: 4 1 0; min-width: 0; }
.sw-footer__col { flex: 3 1 0; min-width: 0; }
.sw-footer__col--wide { flex-grow: 6; }
.sw-footer__brand p { font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 26px; margin: var(--space-4) 0 0; max-width: 30ch; }
.sw-footer__follow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; margin-top: var(--space-6); padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong); color: var(--on-night); font-family: var(--font-display); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .12s, color .12s; }
.sw-footer__follow svg { color: var(--highlight); }
.sw-footer__follow:hover { border-color: var(--highlight); color: var(--highlight); }
.sw-footer__col h2 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight);
  margin: 0 0 var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule-strong); }
.sw-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sw-footer__col--wide ul { columns: 3; column-gap: var(--space-6); }
.sw-footer__col li { break-inside: avoid; }
.sw-footer__col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-night); font-family: var(--font-display); font-size: 15px; text-decoration: none; }
.sw-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sw-footer__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-8);
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--rule-strong); }
.sw-footer__disclaimer { margin: 0; flex: 1 1 36rem; font-family: var(--font-serif); font-size: 15px; line-height: 22px; max-width: 72ch; }
.sw-footer__disclaimer strong { color: var(--highlight); }
.sw-footer__legal { margin: 0; flex: 0 1 auto; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--on-night); opacity: .8; }
@media (max-width: 960px) { .sw-footer__top { flex-wrap: wrap; } .sw-footer__brand { flex-basis: 100%; } }
@media (max-width: 600px) {
  .sw-footer { padding-block: var(--space-8) var(--space-6); }
  .sw-footer__top { flex-direction: column; align-items: stretch; gap: var(--space-8); }
  .sw-footer__brand, .sw-footer__col { flex: none; }
  .sw-footer__col--wide ul { columns: 2; }
  .sw-footer__col a, .sw-footer__follow { min-height: 40px; }
  .sw-footer__bottom { margin-top: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) { .sw-footer__follow { transition: none; } }

/* ArticleCard */
.sw-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-none);
  transition: box-shadow .12s, background-color .12s; }
.sw-card:hover, .sw-card:focus-within { background: var(--surface-200); box-shadow: var(--shadow-pop); }
.sw-card__media { aspect-ratio: 16 / 9; margin-bottom: var(--space-2); background: var(--surface-300); overflow: hidden; }
.sw-card__media img, .sw-figure__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-card__media--empty { background-color: var(--surface-300); background-image: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 12px); }
.sw-card__title { margin: var(--space-1) 0 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.sw-card__title a { color: inherit; text-decoration: none; }
.sw-card__title a::after { content: ""; position: absolute; inset: 0; }
.sw-card:hover .sw-card__title a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sw-card__title a:focus-visible { outline: none; }
.sw-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.sw-card__deck { margin: 0; font-family: var(--font-serif); color: var(--ink-muted); }
.sw-card__meta { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sw-card--lead .sw-card__title { font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -.02em; }
.sw-card--lead .sw-card__deck { font-size: 21px; line-height: 30px; font-style: italic; color: var(--ink); }
.sw-card--standard .sw-card__title { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.sw-card--standard .sw-card__deck { font-size: 16px; line-height: 24px; }
.sw-card--compact { flex-direction: row; align-items: flex-start; gap: var(--space-4); }
.sw-card--compact .sw-card__media { width: 88px; flex: none; aspect-ratio: 1; margin: 0; }
.sw-card--compact .sw-card__body { display: flex; flex-direction: column; gap: var(--space-1); }
.sw-card--compact .sw-card__title { font-size: 19px; line-height: 24px; font-weight: 700; }
.sw-card--opinion .sw-card__title { font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: 0; }
@media (max-width: 720px) { .sw-card--lead .sw-card__title { font-size: 40px; line-height: 44px; } }

/* StoryList */
.sw-storylist__title, .sw-sechead__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.sw-storylist__title { font-size: 22px; line-height: 28px; padding-top: var(--space-3); border-top: 4px solid var(--ink); }
.sw-storylist ol, .sw-storylist ul { list-style: none; margin: 0; padding: 0; }
.sw-storylist li { display: flex; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--rule); }
.sw-storylist li > div { display: flex; flex-direction: column; gap: var(--space-1); }
.sw-storylist__n { flex: none; width: 1.4em; font-family: var(--font-display); font-size: 32px; line-height: 32px; font-weight: 800; color: var(--ink-muted); }
.sw-storylist a { font-family: var(--font-display); font-size: 19px; line-height: 24px; font-weight: 700; color: var(--ink); text-decoration: none; text-wrap: balance; }
.sw-storylist a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* SectionHeader */
.sw-sechead { padding-top: var(--space-3); border-top: 4px solid var(--ink); margin-bottom: var(--space-4); }
.sw-sechead__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.sw-sechead__title { font-size: 28px; line-height: 32px; }
.sw-sechead--page { border-top: 0; padding-top: var(--space-8); }
.sw-sechead--page .sw-sechead__title { font-size: 64px; line-height: 64px; letter-spacing: -.02em; }
.sw-sechead__desc { margin: var(--space-3) 0 0; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 30px; color: var(--ink-muted); max-width: 60ch; }

/* ArticleHeader */
.sw-arthead { display: flex; flex-direction: column; gap: var(--space-3); max-width: 880px; }
.sw-arthead__title { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.sw-arthead--opinion .sw-arthead__title { font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.sw-arthead__deck { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 30px; color: var(--ink); max-width: 60ch; }
.sw-arthead__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (max-width: 720px) { .sw-arthead__title { font-size: 34px; line-height: 38px; } }

/* ArticleBody */
.sw-prose { max-width: var(--layout-measure); font-family: var(--font-serif); font-size: 19px; line-height: 31px; color: var(--ink); }
.sw-prose > * + * { margin-top: var(--space-6); }
.sw-prose p { margin-bottom: 0; }
.sw-prose > p:first-child::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 76px; line-height: 64px; padding: 6px var(--space-2) 0 0; }
.sw-prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 700; margin: var(--space-8) 0 0; }
.sw-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sw-prose a:hover { text-decoration-thickness: 3px; }
.sw-prose ul, .sw-prose ol { padding-left: 1.2em; }
.sw-prose li + li { margin-top: var(--space-2); }
.sw-prose blockquote { margin-inline: 0; padding-left: var(--space-6); font-style: italic; }

/* Figure */
.sw-figure { margin: var(--space-8) 0; }
.sw-figure__media { aspect-ratio: 16 / 9; background-color: var(--surface-300); overflow: hidden; }
.sw-figure figcaption { margin-top: var(--space-2); font-family: var(--font-serif); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.sw-figure__credit { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* PullQuote */
.sw-pullquote { margin: var(--space-8) 0; padding-block: var(--space-6); border-block: 2px solid var(--ink); }
.sw-pullquote blockquote { margin: 0; padding: 0; font-style: normal; }
.sw-pullquote p { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.sw-pullquote figcaption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }

/* Correction */
.sw-correction { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-6); background: var(--surface-300); max-width: var(--layout-measure); box-sizing: border-box; }
.sw-correction__label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sw-correction p { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 24px; font-style: italic; color: var(--ink); }

/* TagList */
.sw-tags ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.sw-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-3); border: 1.5px solid var(--rule-strong); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-decoration: none; }
.sw-tags a:hover { border-color: var(--ink); background: var(--surface-200); }

/* Forms */
.sw-field-row { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.sw-field { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 1 240px; }
.sw-field label, .sw-search > label { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.sw-field input, .sw-search input { box-sizing: border-box; min-height: 44px; padding: 0 var(--space-3); border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--surface-200); color: var(--ink); font-family: var(--font-serif); font-size: 17px; }
.sw-field input:focus-visible, .sw-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.sw-field input[aria-invalid="true"] { border-color: var(--signal); border-width: 2px; }
.sw-field__error { margin: 0; font-family: var(--font-display); font-size: 14px; line-height: 20px; color: var(--signal); }
.sw-search { display: flex; flex-direction: column; gap: var(--space-2); }
.sw-search .sw-field-row input { flex: 1 1 240px; }

/* Newsletter */
.sw-newsletter { padding: var(--space-8); background: var(--surface-300); color: var(--ink); }
.sw-newsletter--compact { padding: var(--space-6); }
.sw-newsletter__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 800; }
.sw-newsletter__desc { margin: var(--space-2) 0 var(--space-4); font-family: var(--font-serif); font-size: 16px; line-height: 24px; color: var(--ink-muted); max-width: 52ch; }
.sw-newsletter__done { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; }

/* Pagination */
.sw-pagination ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; align-items: center; }
.sw-pagination a, .sw-pagination__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); box-sizing: border-box;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-pill); }
.sw-pagination__gap { border-color: transparent; color: var(--ink-muted); }
.sw-pagination a:hover { border-color: var(--ink); }
.sw-pagination a[aria-current="page"] { background: var(--ink); color: var(--surface-100); border-color: var(--ink); }

/* Page layouts */
.sw-page main { display: block; }
.sw-stack > * + * { margin-top: var(--space-12); }
.sw-lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); padding-top: var(--space-8); }
.sw-lead-grid__side { display: flex; flex-direction: column; gap: var(--space-4); padding-left: var(--space-8); border-left: 1px solid var(--rule); }
.sw-lead-grid__side > * + * { border-top: 1px solid var(--rule); padding-top: var(--space-6); }
.sw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.sw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.sw-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--layout-rail); gap: var(--space-12); align-items: start; }
.sw-rail { display: flex; flex-direction: column; gap: var(--space-8); }
.sw-article { padding-top: var(--space-8); }
.sw-article__meta-end { display: flex; flex-direction: column; gap: var(--space-6); max-width: var(--layout-measure); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--rule); }
.sw-editorial-banner { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); border-block: 1px solid var(--rule); font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.sw-editorial-banner strong { color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.sw-results__count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); margin: var(--space-4) 0 0; }
.sw-results > * { border-bottom: 1px solid var(--rule); }
.sw-404 { padding-block: var(--space-16); max-width: 760px; }
.sw-404__code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--signal); font-weight: 600; text-transform: uppercase; }
.sw-404 h1 { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -.02em; margin: var(--space-3) 0 var(--space-4); }
.sw-404 p { font-family: var(--font-serif); font-size: 21px; line-height: 30px; color: var(--ink-muted); margin: 0 0 var(--space-8); }
@media (max-width: 960px) {
  .sw-lead-grid, .sw-split { grid-template-columns: 1fr; }
  .sw-lead-grid__side { padding-left: 0; border-left: 0; }
  .sw-grid-3, .sw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .sw-grid-3, .sw-grid-4 { grid-template-columns: 1fr; } .sw-404 h1 { font-size: 40px; line-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .sw-card, .sw-btn { transition: none; } }

/* Icons */
.sw-icon { display: inline-block; flex: none; vertical-align: middle; }
.sw-textlink--icon { display: inline-flex; align-items: center; gap: 6px; }
.sw-field__error { display: flex; gap: 6px; align-items: flex-start; }
.sw-field__error .sw-icon { margin-top: 1px; }
.sw-newsletter__done { display: flex; gap: var(--space-2); align-items: center; }
.sw-pagination a { gap: 6px; }
.sw-arthead__read { display: inline-flex; align-items: center; gap: 6px; }
.sw-share { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sw-newsletter .sw-field-row { align-items: flex-start; }
.sw-newsletter .sw-field-row > .sw-btn { margin-top: 24px; }

/* Small screens */
@media (max-width: 720px) {
  .sw-masthead__top { flex-wrap: nowrap; padding-block: var(--space-4) var(--space-3); }
  .sw-masthead__home .sw-logo { height: 32px; width: auto; }
  .sw-masthead__side { gap: var(--space-3); }
  .sw-masthead__actions { gap: var(--space-3); }
  .sw-masthead__actions .sw-textlink { font-size: 0; gap: 0; min-width: 44px; min-height: 44px; justify-content: center; text-decoration: none; }
  .sw-masthead__actions .sw-textlink .sw-icon { width: 22px; height: 22px; }
  .sw-breaking__inner { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
  .sw-breaking time { display: none; }
}

/* Site additions on top of components.css: only what the reference components
   leave to the page. Reads token variables only, same rule as components.css. */
html { background: var(--surface-100); }
.sw-sources { max-width: var(--layout-measure); }
.sw-sources h2 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-2); }
.sw-sources ul { list-style: none; margin: 0; padding: 0; }
.sw-sources li { padding-block: var(--space-2); border-bottom: 1px solid var(--rule); font-family: var(--font-serif); font-size: 16px; line-height: 24px; }
.sw-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.sw-sources a:hover { text-decoration-color: var(--signal); }
.sw-sources__outlet { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.sw-related { margin-top: var(--space-16); }
.sw-latest { margin-top: var(--space-12); }
.sw-latest .sw-pagination { margin-top: var(--space-6); }
.sw-empty { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--ink-muted); padding-block: var(--space-12); }
/* Standing pages (about, standards, contact, privacy): prose without the
   article drop cap, which marks the start of a story rather than a policy. */
.sw-info { margin-bottom: var(--space-16); }
.sw-prose--plain > p:first-child::first-letter { float: none; font: inherit; padding: 0; }
.sw-info__note { border-left: 4px solid var(--signal); padding-left: var(--space-4); }
.sw-contact { display: flex; flex-direction: column; gap: var(--space-6); font-family: var(--font-display); }
.sw-contact .sw-field { flex: none; }
.sw-contact textarea { box-sizing: border-box; min-height: 160px; padding: var(--space-3); border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--surface-200); color: var(--ink); font-family: var(--font-serif); font-size: 17px; line-height: 26px; resize: vertical; }
.sw-contact textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.sw-contact .sw-btn { align-self: flex-start; }
.sw-field__hint { margin: 0; font-family: var(--font-display); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sw-contact__status { margin: 0; font-size: 16px; line-height: 24px; min-height: 24px; }
.sw-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* List pages (tag, opinion, search) and the cartoon archive. */
.sw-listing .sw-card--compact + .sw-card--compact { margin-top: var(--space-6); }
.sw-listing .sw-pagination { margin-top: var(--space-8); }
.sw-search--page { margin-bottom: var(--space-4); max-width: var(--layout-measure); }
.sw-search__summary { margin: 0; min-height: 24px; font-family: var(--font-display); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.sw-cartoons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-8) var(--space-6); }
.sw-cartoon-tile a { display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.sw-cartoon-tile a:hover .sw-cartoon-tile__caption { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.sw-cartoon-tile__media, .sw-cartoon__figure .sw-figure__media { aspect-ratio: 3 / 4; background-color: var(--surface-300); overflow: hidden; }
.sw-cartoon-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-cartoon-tile__caption { font-family: var(--font-serif); font-size: 18px; line-height: 26px; }
.sw-cartoon-tile .sw-card__meta { display: block; margin-top: var(--space-1); }
.sw-cartoons + .sw-pagination { margin-top: var(--space-12); }
.sw-cartoon { max-width: 720px; margin-bottom: var(--space-16); }
.sw-cartoon__figure .sw-figure__media img { object-fit: contain; }
.sw-cartoon__nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; font-family: var(--font-display); }
/* Footnotes. render/footnotes.go synthesises this markup at render time (the
   stored body's allowlist permits none of it). Quieter than the prose it
   annotates and set off by a rule, so the reader can see where the piece ends
   and the notes begin. The marker gets a zero line height so the raised digit
   does not open a gap above its line. */
.sw-prose ol.footnotes { border-top: 1px solid var(--rule); padding-top: var(--space-4); font-size: 16px; line-height: 25px; color: var(--ink-muted); }
.sw-prose ol.footnotes > li { scroll-margin-top: var(--space-6); }
.sw-prose ol.footnotes > li:target { background-color: var(--surface-200); box-shadow: 0 0 0 var(--space-2) var(--surface-200); }
.sw-prose sup.footnote-ref { font-family: var(--font-mono); font-size: .65em; line-height: 0; position: relative; top: -.45em; vertical-align: baseline; padding-left: .1em; }
.sw-prose sup.footnote-ref a, .sw-prose a.footnote-back { text-decoration: none; }
.sw-prose sup.footnote-ref a:hover, .sw-prose a.footnote-back:hover { text-decoration: underline; }

