:root {
  --bg: #0e0d0c;
  --bg-elevated: #171513;
  --bg-deep: #221e1a;
  --ink: #f1eee7;
  --muted: #a39d93;
  --signal: #d84a43;
  --signal-soft: rgba(216, 74, 67, .72);
  /* Accessible reds: text-on-dark must clear 4.5:1; surfaces holding light text need a deeper red. */
  --signal-text: #e15c55;
  --signal-deep: #ba3b35;
  --gold: #d2aa59;
  --gold-soft: rgba(210, 170, 89, .72);
  --paper: #e8e4dc;
  --paper-deep: #d9d4ca;
  --paper-ink: #141211;
  --line: rgba(241, 238, 231, .17);
  --paper-line: rgba(20, 18, 17, .18);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --tshadow: 0 1px 2px rgba(5, 5, 5, .96), 0 4px 18px rgba(5, 5, 5, .72), 0 16px 40px rgba(5, 5, 5, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
/* Anchored sections must clear the fixed header (+ notch inset). */
main [id] { scroll-margin-top: calc(96px + env(safe-area-inset-top, 0px)); }
body.menu-open { overflow: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
/* Mobile tap hygiene: no 300ms delay, no double-tap zoom on controls, no gray flash on taps. */
a, button, summary, [role="button"] { touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--bg); background: var(--gold); }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 12px 16px; background: var(--gold); color: var(--bg); font-weight: 700; transition: transform .25s var(--ease-out); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.eyebrow i { width: 32px; height: 1px; background: currentColor; display: inline-block; }
.red { color: var(--signal-text); }
.gold-text { color: var(--gold); }
.body-copy { max-width: 35ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.6; }
.section-marker { color: var(--muted); }
.section-dark { background: var(--bg); color: var(--ink); }
.section-ink { background: var(--ink); color: var(--paper-ink); }
.section-paper { background: var(--paper); color: var(--paper-ink); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .82; text-transform: uppercase; }
h1, h2, h3, .collage-word, .footer-big-word { text-wrap: balance; }

.bracket-link, .bracket-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; transition: color .22s var(--ease-out), transform .22s var(--ease-out); }
.bracket-link span, .bracket-button span { transition: transform .22s var(--ease-out); }
.bracket-link:hover, .bracket-link:focus-visible { color: var(--signal-text); transform: translateX(3px); }
.bracket-link:hover span, .bracket-link:focus-visible span { transform: translate(3px, -2px); }
.give-link { color: var(--gold); }
.give-link:hover, .give-link:focus-visible { color: var(--gold); }
.gold-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--gold); background: var(--gold); color: var(--bg); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; transition: background .22s var(--ease-out), color .22s var(--ease-out), transform .22s var(--ease-out); }
.gold-button span { font-size: 16px; transition: transform .22s var(--ease-out); }
.gold-button:hover, .gold-button:focus-visible { background: transparent; color: var(--gold); transform: translateY(-2px); }
.gold-button:hover span, .gold-button:focus-visible span { transform: translate(3px, -2px); }

.site-noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
main, footer { position: relative; z-index: 2; }
