/* =====================================================================
   Masthead · the style
   The newsroom: Newsreader for headlines and stories, Public Sans for
   everything around them, on newsprint with ink and one red. Blue only
   for corrections; amber only for paid content.
   Signature pieces: the front page (.front: lead, stories, the latest
   rail, most read), labels that say what a story is (.label: news,
   analysis, opinion, explainer, sponsored, paid political ad), the live
   blog (.live: key points, entries that arrive without moving you, "N
   new updates"), and the corrections ledger (.corrections: dated notes
   with what changed, linked from the sentence that was fixed).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--paid); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; font-optical-sizing: auto; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.01em; }
/* the lit phrase: italic, underscored with the masthead's red rule */
.h1 em, .h2 em { font-style: italic; font-weight: 500; background: linear-gradient(var(--red), var(--red)) left 92% / 100% 0.07em no-repeat; padding-bottom: 0.02em; }
html:not(.calm) .h1 em { animation: ms-rule 1100ms 250ms var(--ease) both; }
@keyframes ms-rule { from { background-size: 0 0.07em; } }
.lead { font: 400 var(--fs-lead)/1.55 var(--serif); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-label)/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.tag b { font-weight: 700; color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .link:hover { color: var(--red); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top line: date and edition ---------- */
.topline { background: var(--ink); color: var(--paper); }
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 36px; padding-block: 7px; font: 500 13.5px/1.4 var(--body); }
.topline b { font-weight: 700; }
.topline a { font-weight: 600; color: var(--paper); text-underline-offset: 3px; }
.topline .ed { display: inline-flex; gap: 12px; align-items: center; }
.topline .ed i { font-style: normal; padding: 2px 7px; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); font: 600 11px/1.3 var(--mono); letter-spacing: 0.04em; }
@media (max-width: 640px) { .topline .wrap { justify-content: center; text-align: center; } .topline .ed { display: none; } }

/* ---------- the nameplate ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--ink); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: a folded page with a red rule */
.brand-mark { position: relative; flex: none; align-self: center; width: 26px; height: 32px; background: var(--ink); clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
.brand-mark::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 5px; background: var(--red); }
.brand-word { font: 700 30px/1 var(--display); letter-spacing: -0.03em; font-optical-sizing: auto; }
.brand-sub { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 11px; text-decoration: none; font: 600 14.5px/1 var(--body); color: var(--ink-2); }
.nav-links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; cursor: pointer; place-items: center; border-radius: var(--r-s); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); display: grid; padding: 10px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow-lift); animation: ms-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 26px/1.1 var(--display); color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 12px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--red); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 700 15px/1 var(--body); color: var(--on-red); }
.site-menu .btn::after { display: none; }
@keyframes ms-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav .nav-cta { display: none; } .brand-word { font-size: 25px; } .brand-sub { display: none; } }
@media (min-width: 1101px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(52px, 7.5vw, 96px); }
.section.alt { background: var(--well); }
.section + .section:not(.alt) { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; justify-items: start; max-width: 780px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-2.lean { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2.lean > .section-head { position: sticky; top: 110px; }
.grid-2.side { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean, .grid-2.side { grid-template-columns: minmax(0, 1fr); } .grid-2.lean > .section-head { position: static; } }

/* ---------- labels: what a story is ---------- */
.label { display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.label[data-kind="analysis"] { color: var(--ink); }
.label[data-kind="analysis"]::before { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }
.label[data-kind="opinion"] { color: var(--ink); font: italic 600 14px/1.2 var(--display); letter-spacing: 0; text-transform: none; padding: 2px 9px; border: 1px solid var(--ink); border-radius: 99px; }
.label[data-kind="explainer"] { color: var(--ink); }
.label[data-kind="explainer"]::before { content: "?"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 10.5px/1 var(--body); letter-spacing: 0; }
.label[data-kind="sponsored"], .label[data-kind="political"] { padding: 4px 8px; background: var(--paid); color: var(--paid-ink); }
.label .by { font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.label[data-kind="live"] { color: var(--red); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
html:not(.calm) .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ms-pulse 1.6s infinite; }
@keyframes ms-pulse { to { transform: scale(2.6); opacity: 0; } }

/* ---------- the front page (signature) ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) 280px; gap: 0; border-top: 3px solid var(--ink); }
.front > * { padding: 22px 24px; min-width: 0; }
.front > * + * { border-left: 1px solid var(--line); }
.front > :first-child { padding-left: 0; }
.front > :last-child { padding-right: 0; }
.story { display: grid; gap: 8px; align-content: start; }
.story > .label, .paid-card > .label, .article-head > .label { justify-self: start; }
.story h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.story p { font: 400 16px/1.5 var(--serif); color: var(--ink-2); }
.story .meta { font: 500 13px/1.3 var(--body); color: var(--muted); }
.story + .story { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.story.top h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -0.02em; }
.story.top p { font-size: 18.5px; }
.figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--well); }
.figure svg { width: 100%; height: 100%; }
.figcap { font: 400 13px/1.4 var(--body); color: var(--muted); }
.rail h4, .most h4 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.rail li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rail time { font: 600 13px/1.4 var(--mono); color: var(--red); }
.rail a { font: 600 15.5px/1.35 var(--display); text-decoration: none; }
.rail a:hover { text-decoration: underline; }
.most { counter-reset: most; }
.most li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); counter-increment: most; }
.most li::before { content: counter(most); font: 600 26px/1 var(--display); color: var(--red); }
.most a { font: 600 15.5px/1.35 var(--display); text-decoration: none; }
.most a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .front { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .front > :last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 760px) { .front { grid-template-columns: minmax(0, 1fr); } .front > * { padding-inline: 0; } .front > * + * { border-left: 0; border-top: 1px solid var(--line); } .front > :last-child { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the article ---------- */
.article { --size: 19px; display: grid; gap: 18px; min-width: 0; }
.article-head { display: grid; gap: 14px; justify-items: start; }
.article-head .h1 { font-size: clamp(36px, 4.6vw, 64px); }
.standfirst { font: 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif); color: var(--ink-2); max-width: 46ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 12px; border-block: 1px solid var(--line); width: 100%; font: 500 14px/1.4 var(--body); color: var(--muted); }
.byline b { color: var(--ink); font-weight: 700; }
.byline .face { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--display); }
.byline .updated { color: var(--note); font-weight: 600; text-decoration: none; }
.byline .updated:hover { text-decoration: underline; }
.article-body { font: 400 var(--size)/1.7 var(--serif); color: var(--ink); max-width: 66ch; transition: font-size var(--d) var(--ease); }
.article-body > * + * { margin-top: 1.05em; }
.article-body > p:first-of-type::first-letter { float: left; margin: 0.08em 0.1em -0.1em 0; font: 600 4.1em/0.82 var(--display); color: var(--red); }
.article-body h2 { font: 600 1.35em/1.25 var(--display); margin-top: 1.6em; }
.article-body blockquote { margin-block: 1.4em; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--red); font: italic 500 1.28em/1.4 var(--display); }
.article-body blockquote cite { display: block; margin-top: 0.4em; font: normal 600 0.62em/1.4 var(--body); color: var(--muted); }
.article-body a { text-decoration-color: var(--red); text-underline-offset: 3px; }
/* the sentence that was fixed */
.fixed { background: linear-gradient(transparent 62%, var(--note-soft) 62%); }
a.fixmark { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 3px; padding: 0 5px; border-radius: 10px; background: var(--note); color: var(--paper); font: 700 11px/1 var(--body); text-decoration: none; vertical-align: 0.35em; }
:root[data-theme="dark"] a.fixmark { color: #0b1526; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.fixmark { color: #0b1526; } }
.help-box { display: grid; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--well); font: 400 15px/1.5 var(--body); color: var(--ink-2); }
.help-box b { color: var(--ink); }

/* reader tools: progress and text size */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; background: var(--red); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none; }
.reader { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reader button { min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; font: 700 14px/1 var(--body); color: var(--ink); }
.reader button:hover { border-color: var(--ink); }
.reader button[data-size="1"] { font-size: 17px; }
.reader output { font: 500 13px/1 var(--body); color: var(--muted); min-width: 7ch; }

/* ---------- the trust box ---------- */
.trust { display: grid; gap: 12px; padding: 20px 22px; border: 1px solid var(--ink); background: var(--card); }
.trust h3 { font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.trust dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14.5px; }
.trust dd + dt { margin-top: 10px; }
.trust dt { font-weight: 700; }
.trust dd { color: var(--ink-2); }

/* ---------- the corrections ledger (signature) ---------- */
.corrections { display: grid; gap: 12px; padding: 20px 22px; border-top: 3px solid var(--note); background: var(--note-soft); min-width: 0; }
.corrections h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--note); }
.corrections h3 a { font: 600 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--note); }
.corrections ol { display: grid; gap: 0; }
.fix { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--note) 25%, transparent); scroll-margin-top: 120px; }
.fix:first-child { border-top: 0; padding-top: 4px; }
.fix-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font: 600 13px/1.3 var(--body); color: var(--muted); }
.fix-head b { padding: 2px 7px; background: var(--note); color: var(--paper); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
:root[data-theme="dark"] .fix-head b { color: #0b1526; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fix-head b { color: #0b1526; } }
.fix p { font: 400 16px/1.55 var(--serif); color: var(--ink); }
.fix button[data-diff] { justify-self: start; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 13.5px/1.2 var(--body); color: var(--note); text-decoration: underline; text-underline-offset: 3px; }
.diff { display: grid; gap: 6px; padding: 10px 12px; background: var(--card); font: 400 15px/1.55 var(--serif); }
.diff del { color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.diff ins { text-decoration: none; background: color-mix(in srgb, var(--note) 18%, transparent); }
.diff small { display: block; font: 700 10.5px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html:not(.calm) .fix.flash { animation: ms-flash 1400ms var(--ease); }
@keyframes ms-flash { 0%, 40% { background: color-mix(in srgb, var(--note) 22%, transparent); box-shadow: -12px 0 0 color-mix(in srgb, var(--note) 22%, transparent), 12px 0 0 color-mix(in srgb, var(--note) 22%, transparent); } }
.fix.flash { background: transparent; }
html.calm .fix.flash { outline: 2px solid var(--note); outline-offset: 4px; }
.corrections-none { font: 400 15px/1.5 var(--serif); color: var(--ink-2); }

/* ---------- the live blog (signature) ---------- */
.live { display: grid; gap: 16px; min-width: 0; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.live-head .label { font-size: 13px; }
.live-head p { font: 500 13.5px/1.3 var(--body); color: var(--muted); }
.keypoints { display: grid; gap: 8px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.keypoints h3 { font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.keypoints ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: square; font: 400 16px/1.5 var(--serif); }
.keypoints li::marker { color: var(--red); }
.new-bar { position: sticky; top: 92px; z-index: 5; justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); cursor: pointer; font: 700 14px/1 var(--body); box-shadow: var(--shadow-lift); }
.new-bar::before { content: "↑"; font-weight: 400; }
html:not(.calm) .new-bar:not([hidden]) { animation: ms-drop 360ms var(--snap); }
@keyframes ms-drop { from { opacity: 0; transform: translateY(-10px); } }
.feed { display: grid; gap: 0; }
.entry { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.entry > .when { display: grid; gap: 2px; align-content: start; }
.entry > .when time { font: 600 15px/1.2 var(--mono); color: var(--ink); }
.entry > .when span { font: 500 12.5px/1.2 var(--body); color: var(--muted); }
.entry-body { display: grid; gap: 8px; min-width: 0; }
.entry-body h3 { font: 600 21px/1.25 var(--display); letter-spacing: -0.01em; }
.entry-body p { font: 400 17px/1.6 var(--serif); color: var(--ink); }
.entry-body .who { font: 500 13px/1.3 var(--body); color: var(--muted); }
.entry.pinned { padding: 18px 16px; margin-bottom: 8px; border: 1px solid var(--ink); background: var(--card); }
.entry.pinned::before { content: attr(data-pin-label); position: absolute; top: -10px; left: 14px; padding: 2px 8px; background: var(--ink); color: var(--paper); font: 700 10.5px/1.3 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
html:not(.calm) .entry.arrived { animation: ms-arrive 700ms var(--ease) both; }
@keyframes ms-arrive { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--red) 10%, transparent); } }
.entry.arrived > .when time { color: var(--red); }
@media (max-width: 560px) { .entry { grid-template-columns: minmax(0, 1fr); } .entry > .when { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; } }
.live-auto { justify-self: start; }

/* ---------- paid content ---------- */
.paid-card { display: grid; gap: 10px; padding: 18px 20px; background: color-mix(in srgb, var(--paid) 35%, var(--card)); border: 1px solid color-mix(in srgb, var(--paid-ink) 35%, transparent); }
.paid-card h3 { font: 600 20px/1.25 var(--display); }
.paid-card p { font: 400 15.5px/1.5 var(--body); color: var(--ink-2); }
.paid-card .why { font: 500 12.5px/1.4 var(--body); color: var(--paid-ink); }
.authorised { font: 500 12px/1.4 var(--body); color: var(--muted); }

/* ---------- people, plans, facts, notices ---------- */
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.person .face { grid-row: 1 / span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 22px/1 var(--display); }
.person b { font: 600 19px/1.25 var(--display); }
.person .role { font: 700 11.5px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.person p { font-size: 15px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); background: var(--card); }
.plan { display: grid; gap: 12px; align-content: start; padding: 24px; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { box-shadow: inset 0 4px 0 var(--red); }
.plan .k { font: 700 11.5px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.plan h3 { font: 600 24px/1.2 var(--display); }
.plan .price { font: 600 40px/1 var(--display); letter-spacing: -0.02em; }
.plan .price small { font: 500 14px/1 var(--body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan p { font-size: 15px; color: var(--ink-2); }
.plan ul { display: grid; gap: 6px; font-size: 15px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: 0.7em; background: var(--red); }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--ink); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; overflow-wrap: break-word; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 700 11.5px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.facts b { font: 600 21px/1.25 var(--display); }
.facts p { font-size: 15px; color: var(--ink-2); }
.facts.stack { grid-template-columns: minmax(0, 1fr); }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.notice svg { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.notice b { color: var(--ink); }
.side-box { display: grid; gap: 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); overflow-wrap: break-word; }
.side-box h3 { font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.side-box ul { display: grid; gap: 8px; font-size: 15px; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.labels-key { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.labels-key li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.labels-key li > div { justify-self: start; }
.labels-key p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 620px) { .labels-key li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closing ---------- */
.close { padding-block: clamp(52px, 7.5vw, 92px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; align-items: end; padding: clamp(28px, 5vw, 56px); padding-top: clamp(40px, 6vw, 96px); background: #121212; color: #f1eee7; overflow: hidden; isolation: isolate; }
/* columns of type, set in the corner */
.close-card::before { content: ""; position: absolute; z-index: -1; right: 5%; top: 34px; width: 210px; height: 44px; background: repeating-linear-gradient(transparent 0 9px, rgba(241, 238, 231, 0.14) 9px 11px); -webkit-mask-image: linear-gradient(90deg, #000 0 30%, transparent 30% 35%, #000 35% 65%, transparent 65% 70%, #000 70%); mask-image: linear-gradient(90deg, #000 0 30%, transparent 30% 35%, #000 35% 65%, transparent 65% 70%, #000 70%); }
.close-card::after { content: ""; position: absolute; z-index: -1; right: 5%; top: 20px; width: 210px; height: 6px; background: var(--close-em, #ff8a80); }
html:not(.calm) .close-card::after { animation: ms-press 5s ease-in-out infinite alternate; transform-origin: left; }
@keyframes ms-press { from { transform: scaleX(0.35); } }
.close-card .h2 { color: #fff; }
.close-card .h2 em { background-image: linear-gradient(var(--close-em, #ff8a80), var(--close-em, #ff8a80)); }
.close-card p { color: #cfcac0; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #a39e93; }
.close-card .tag b { color: var(--close-em, #ff8a80); }
.close-card .tag::before { background: var(--close-em, #ff8a80); }
.close-card .btn-red { background: #f1eee7; color: #121212; }
.close-card .btn-red:hover { background: #fff; }
.close-card form { display: grid; gap: 10px; }
.close-card input { min-height: 48px; padding: 0 14px; border: 1px solid #5e5a52; border-radius: var(--r-s); background: #1b1a17; color: #f1eee7; }
.close-card input:focus { outline: none; border-color: #f1eee7; }
.close-card .form-done { background: #2a2824; color: #f1eee7; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: minmax(0, 1fr); } .close-card::before, .close-card::after { display: none; } }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 18px/1.35 var(--display); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--red), var(--red)) center / 10px 1.6px no-repeat, linear-gradient(var(--red), var(--red)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--red); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--red); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--red-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: color-mix(in srgb, var(--red-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 600 16.5px/1.35 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--red) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }
.page-head { border-bottom: 3px solid var(--ink); }
.form-card, .form-card > *, .form-card .fields > * { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .reader, .progress, .new-bar, .close { display: none !important; } body { background: #fff; } .diff { display: grid !important; } }
