/* ============================================================
   UPPER INT GAMES · doc brand layer
   "Uppercase" identity on paper: structural black frame,
   architectural cream paper, monument fuchsia, momentum orange.
   Faces: Anton (display) + Space Grotesk (body), same as the landing.
   Every doc derives from these tokens; no literals at call sites.
   ============================================================ */

:root {
  /* landing palette */
  --ink: #080708;
  --ink-2: #100d0e;
  --cream: #F2D2A4;
  --cream-dim: rgba(242, 210, 164, 0.62);
  --fuchsia: #D8004C;
  --orange: #FF8A00;

  /* paper extension (docs read on light ground; cream stays the panel color) */
  --paper: #FBF2E0;
  --paper-deep: #F2D2A4;
  --ink-soft: rgba(8, 7, 8, 0.74);
  --ink-faint: rgba(8, 7, 8, 0.58);
  --line: rgba(8, 7, 8, 0.22);
  --line-soft: rgba(8, 7, 8, 0.12);
  --cream-line: rgba(242, 210, 164, 0.28);

  --grad: linear-gradient(90deg, var(--fuchsia), var(--orange));

  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", sans-serif;

  /* type scale (print-first, pt) */
  --t-micro: 6.5pt;
  --t-label: 7.5pt;
  --t-body: 10pt;
  --t-lead: 12.5pt;
  --t-h3: 16pt;
  --t-h2: 22pt;
  --t-h1: 34pt;
  --t-hero: 52pt;
  --t-numeral: 92pt;

  /* spacing scale (mm, matches the page grid) */
  --m1: 2mm;
  --m2: 4mm;
  --m3: 6mm;
  --m4: 10mm;
  --m5: 16mm;

  --page-pad: 14mm;
  --spine-w: 10mm;
  --radius: 1.2mm;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* static grain, print-safe (no animation: docs are read, not watched) */
.grain-static {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
}

::selection { background: var(--fuchsia); color: var(--cream); }
