/* =========================================================================
   freepatrickgordon.com — shared design system

   The tokens below are lifted verbatim from "A Manufactured Narrative," the
   dual-track timeline that anchors the site's look. Every page draws from
   these; no page defines a colour of its own.

   Typeface is Newsreader throughout. (Earlier project notes said Fraunces —
   that came from the Coverage Trace artifact, which has been normalised onto
   this system.)
   ========================================================================= */

:root {
  --bg: #0E0C0A;
  --bg-raised: #16130F;
  --bg-sunken: #090807;
  --ink: #F0E8D7;
  --ink-dim: #A89C8A;
  --ink-faint: #524A3F;
  --rule: #2E2822;

  --accent-political: #DEB63A;
  --accent-political-dim: #8A7220;
  --accent-media: #86A5B8;
  --accent-media-dim: #4C5F6B;
  --accent-produced: #7FAE8A;   /* records handed over; used only for that */
  /* records custodians: one colour each, never green (green = produced) */
  --cust-ago: #DEB63A;
  --cust-msp: #86A5B8;
  --cust-salem: #A996C8;
  --cust-uspis: #CF8BA3;
  --accent-crisis: #E25A47;
  --accent-crisis-glow: rgba(226, 90, 71, 0.3);

  --shadow: 0 10px 40px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4);

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --chrome-h: 52px;

  color-scheme: dark;
}

/* ---- self-hosted faces -------------------------------------------------
   Served from our own origin so a locked page makes no third-party request.
   Variable fonts: one file each for Newsreader and Plex Sans. */

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-sans.woff2') format('woff2-variations');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---- reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--chrome-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; }
