/* ==========================================================================
   BASE: fonts, tokens, reset, type and the shared motion hooks
   ========================================================================== */
@font-face { font-family: 'Big Shoulders'; src: url('../fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('../fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0b0a0a;
  --ink-2: #141211;
  --ink-3: #201d1b;
  --paper: #f1ebdf;
  --paper-2: #e4dccc;
  --on-paper: #171412;
  --on-light: #171412;       /* dark text on a light fill, wherever it sits */
  --gold: #c9b48a;           /* champagne accent for labels and rules */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 104px;
  --radius: 3px;
  --lift: 0 18px 40px rgba(0, 0, 0, .45);
  --on-paper-2: #5a5249;
  --red: #e3141b;
  --red-text: #ff4a4f;      /* red that clears 4.5:1 on ink, for small text */
  --red-paper: #b90d13;     /* red that clears 4.5:1 on newsprint */
  --metal: #b8a98f;
  --line: rgba(241, 235, 223, .16);
  --line-paper: rgba(23, 20, 18, .18);
  --muted: rgba(241, 235, 223, .66);

  --display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;

  --gut: clamp(16px, 2.6vw, 44px);
  --chyron-h: 34px;
  --top-h: 64px;
  --expo: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; min-height: 100svh; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
img, video, svg { display: block; max-width: 100%; }
img { background: var(--ink-3); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--paper); color: var(--on-light); transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
.d { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.d-xl { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.d-l { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.d-m { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: .94; }
.d-s { font-size: clamp(1.4rem, 2.1vw, 2.1rem); line-height: .98; font-weight: 800; }
.s { font-family: var(--serif); font-weight: 400; }
.s-i { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: -.01em; }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.22; font-weight: 300; }
.m { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--muted); }
.metal { color: var(--metal); }
.red { color: var(--red); }

/* Layout */
.wrap { padding-inline: var(--gut); }
.sec { padding-block: clamp(72px, 12vw, 180px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }
/* "Paper" sections are now the dark editorial surface: the same names, night colours. */
.paper { --on-paper: var(--paper); --on-paper-2: rgba(241, 235, 223, .62); --line-paper: rgba(241, 235, 223, .14); --red-paper: var(--red-text); --paper-2: var(--ink-3); background: #0e0d0c; color: var(--paper); }
.paper .muted { color: var(--on-paper-2); }
.paper .metal { color: var(--gold); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.paper .rule { border-color: var(--line-paper); }

/* Page header shared by every channel */
.ph { padding: calc(var(--top-h) + clamp(20px, 3vw, 40px)) var(--gut) clamp(24px, 3vw, 44px); position: relative; }
.ph-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(20px, 3vw, 44px); }
.ph-sub { max-width: 34ch; margin-top: clamp(20px, 3vw, 40px); }

/* Buttons */
.btn { --bg: var(--paper); --fg: var(--on-light); position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 26px; background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; will-change: transform; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--expo); }
.btn > * { position: relative; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn-red { --bg: var(--red); --fg: #fff; }
.btn-red::before { background: var(--ink); }
.btn-line { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.tlink { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.tlink:hover { color: var(--red-text); }
.paper .tlink:hover { color: var(--red-paper); }

/* Motion hooks. Anything JS animates starts visible unless html.motion is on,
   so a script failure or reduced-motion setting can never hide content. */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-in { display: block; will-change: transform; }
.motion [data-unmask] { clip-path: inset(100% 0 0 0); }
.motion [data-unmask].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--expo); }
.motion [data-unmask="side"] { clip-path: inset(0 100% 0 0); }
.motion [data-unmask="side"].is-in { clip-path: inset(0 0 0 0); }
.motion [data-fade] { opacity: 0; transform: translateY(16px); }
.motion [data-fade].is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform 1s var(--expo); }
.ofit { width: 100%; height: 100%; object-fit: cover; }

/* Marquee band */
.band { display: block; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: .1em; }
.band-track { display: inline-flex; will-change: transform; }
.band-chunk { display: inline-flex; align-items: center; gap: .4em; padding-right: .4em; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1; }
.band-chunk i { font-family: var(--serif); font-weight: 300; text-transform: none; }
.band-dot { width: .28em; height: .28em; border-radius: 50%; background: var(--red); }
.band-red { background: var(--red); color: #fff; border: 0; }
.band-red .band-dot { background: #fff; }
.paper .band { border-color: var(--line-paper); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

html { scrollbar-width: thin; scrollbar-color: var(--ink-3) var(--ink); }
