/* Overprint Index — design tokens
   Index's calm grid and reading rhythm, printed in Riso's two inks.
   Rule of the inks: Medium Blue carries every word; Olive only carries
   numbers, plates and the misregistered second impression; cherry is a small
   accent on link underlines, headshot rings and tags. */
:root {
  --paper: #F3F7FB;          /* powder-blue stock: a pale, slightly cool sheet */
  --paper-2: #E7EDF5;        /* paper in shadow: placeholders, mats */
  --blue: #2F4FA2;           /* text ink · 6.6:1 on paper */
  --red: #9C9A10;            /* vibrant olive (Matt's reference, saturated) · display, shapes, underlines */
  --red-ink: #747300;        /* same olive, deep enough for small text · 4.65:1 on paper */
  --accent: #D90F3C;         /* cherry accent · link underlines, headshot rings, tags (4.9:1) */
  --accent-tint: #FAD2DB;
  --over: #1E2A22;           /* overprint: olive × blue */
  --blue-tint: #CDD3E8;
  --red-tint: #E6E5B5;
  --rule: color-mix(in srgb, var(--blue) 30%, var(--paper));
  --muted: color-mix(in srgb, var(--blue) 74%, var(--paper));   /* still 4.6:1 */

  --mis-x: 3px;              /* misregistration of the red impression */
  --mis-y: 2px;

  --f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* type scale */
  --t-hero: clamp(52px, 8.2vw, 116px);
  --t-ptitle: clamp(64px, 13vw, 184px);
  --t-row: clamp(34px, 5.2vw, 72px);
  --t-num: clamp(30px, 3.6vw, 52px);
  --t-lede: clamp(19px, 1.9vw, 25px);
  --t-body: 17px;
  --t-small: 14.5px;
  --t-label: 13.5px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px; --s6: 52px; --s7: 84px; --s8: 136px;
  --gutter: max(20px, min(5vw, 72px), env(safe-area-inset-left, 0px));
  --maxw: 1320px;
  --sec: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
/* Printed matter stays on paper at night (as in the Riso issue); the stock just dims. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #E9EEF5; --paper-2: #DDE5EF; }
}
:root[data-theme="dark"] { --paper: #E9EEF5; --paper-2: #DDE5EF; }
