/* Design tokens — Desert Online Safety Project, 2026 logo
 *
 * World: the valley's community notice board. A deep navy felt board carries
 * white printed notices; the logo's cyan appears as pins, tape and the lit
 * hotline numbers. Navy and cyan come from the 2026 logo master
 * (assets/brand/dosp-logo-2026-master.webp).
 *
 * The logo cyan (#00B4D8) reaches only 5.59:1 on the board and 2.46:1 on
 * paper, so it never carries text: it is a graphic colour (pins, tape, rules).
 * Text that must read as cyan uses --lit, a lighter step of the same hue that
 * clears 7:1 on the board.
 *
 * Every pairing is asserted by scripts/check-contrast.mjs (7:1 text, 4.5:1
 * meaningful boundaries, 3:1 graphics). Do not add a colour here without
 * adding its pairing to that script.
 */

:root {
  /* ---- Board (dark grounds) ---- */
  --board: #0d2d55; /* navy felt, the page ground */
  --board-deep: #0a2242; /* footer and board frame */

  /* ---- Paper (light grounds) ---- */
  --paper: #ffffff;
  --paper-cool: #eef4f8; /* second sheet, tear-off strips */

  /* ---- Ink on paper ---- */
  --ink: #0d2d55; /* 13.78:1 on paper, 12.42:1 on paper-cool */
  --ink-quiet: #34506f; /* 8.32:1 / 7.50:1 */
  --link: #065269; /* deep cyan, 7.83:1 on paper-cool */

  /* ---- Ink on board ---- */
  --ink-on-board: #ffffff; /* 13.78:1 */
  --ink-on-board-quiet: #c9d6e6; /* 9.35:1 */
  --lit: #7fdcf0; /* the one lit colour: hotline numbers, 8.79:1 */

  /* ---- Logo cyan: graphics only, never text ---- */
  --pin: #00b4d8;
  --pin-deep: #0090b0;
  --tape: rgb(0 180 216 / 0.55);

  /* ---- The practice screen ---- */
  --bezel: #1a2a3e; /* monitor frame: a charcoal slate that separates from the navy board; graphic only */
  --bezel-rim: #6683a6; /* the frame edge highlight, 3:1+ on the board */
  --screen: #eef4f8; /* app ground inside the screen (same as paper-cool) */
  --screen-line: #c9d6e6; /* hairlines between app regions: decorative, not meaningful */

  /* ---- The desk the screen stands on: warm oak, graphic only, never text ---- */
  --desk: #b0855a; /* desktop surface, 4.17:1 on the board */
  --desk-edge: #7a5636; /* the front edge, in shade */
  --desk-grain: rgb(90 58 30 / 0.16); /* faint grain lines on the top */
  --desk-shadow: 0 14px 22px -8px rgb(2 10 24 / 0.8); /* the desk's shadow on the board */
  --keycap: #33475f; /* keys inside the keyboard frame: decorative; the frame (bezel) carries the shape */

  /* ---- The valley horizon above the footer: graphic only, never text ---- */
  --horizon-far: #1b467c; /* the far range, a shade lighter than the board, as mountains are at night */
  --horizon-mid: #163f71; /* the nearer hills at dawn, between the board and the far range */
  --horizon-line: #9db4cf; /* turbine masts and blades, stars: thin lines on the board */

  /* ---- Boundaries ---- */
  --boundary: #5a6f86; /* 5.18:1 on paper: perforations, sheet edges */
  --boundary-on-board: #7fdcf0;

  /* ---- Focus: two-tone so it shows on paper and board ---- */
  --focus-ring: #0d2d55;
  --focus-ring-offset: #7fdcf0;

  /* ---- Paper depth: pinned sheets cast a soft, offset shadow ---- */
  --sheet-shadow: 0 1px 0 rgb(0 0 0 / 0.08), 0 10px 22px -6px rgb(2 10 24 / 0.55);

  /* ---- Type ---- */
  /* DES-10: >=18px body, 16px absolute floor. No value below 1rem. */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --size-fine: 1rem;
  --size-body: 1.125rem;
  --size-body-lg: 1.25rem;
  --size-h3: 1.375rem;
  --size-h2: 1.75rem;
  --size-h1: 2.25rem;
  --size-number: 1.75rem; /* hotline numerals */

  --weight-normal: 400;
  --weight-bold: 800;

  --leading-body: 1.55;
  --leading-tight: 1.15;

  /* ---- Space ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem; /* minimum separation between tap targets */
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --target-min: 44px;
  --target-primary: 48px;

  --measure: 36rem;
  --board-width: 68rem; /* 1088px, the widest reading frame */
  --radius: 4px;
  --border-width: 2px;
}

@media (min-width: 40em) {
  :root {
    --size-body: 1.25rem;
    --size-h2: 2rem;
    --size-h1: 3rem;
    --size-number: 2.25rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-quiet: #0d2d55;
    --ink-on-board-quiet: #ffffff;
    --boundary: #0d2d55;
    --sheet-shadow: none;
  }
}
