/* Parallax Custody · tokens. One sheet for the desktop console, the phone and the direction boards.
   Palette is the world's 3+1 (WORLD.md §3). Red is only ever a line of sight, a track or the fix (and the one alert). */

/* type: Ryan's merge of his two favourites from type_options.jpg (type_merge.jpg, M1); faces and licences in FONTS.md */
@font-face { font-family: "Tomorrow"; src: url("/fonts/parallax/Tomorrow-300.woff2") format("woff2"); font-weight: 300; }
@font-face { font-family: "Tomorrow"; src: url("/fonts/parallax/Tomorrow-400.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Tomorrow"; src: url("/fonts/parallax/Tomorrow-500.woff2") format("woff2"); font-weight: 500; }
@font-face { font-family: "Tomorrow"; src: url("/fonts/parallax/Tomorrow-600.woff2") format("woff2"); font-weight: 600; }
@font-face { font-family: "Spline Sans Mono"; src: url("/fonts/parallax/SplineSansMono-300_700.woff2") format("woff2"); font-weight: 300 700; }
/* Hanken Grotesk (OFL): the phone's system and app text. A served face that sits close to iOS; never presented as Apple's own system face. */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/parallax/HankenGrotesk-100_900.woff2") format("woff2"); font-weight: 100 900; }

:root {
  /* ---- colour. Every colour on every page and in the canvas engine comes from this block. ----
     World: Orbit Light (locked by Ryan, 22 Oct 2026; key-art/r2_g2.png, from his ref refs/ryan/7.png).
     Palette primitives. To change the palette, edit these, or point the semantic tokens below at new ones. Nothing else names a hue. */
  --space: #05070B;                        /* the ground: deep space */
  --navy: #0E1622;                         /* panels */
  --steel: #2A3A4C;                        /* structural lines: rules, rings, axes */
  --cyan: #7FD3F5;                         /* atmosphere: the Earth's limb, and the selected state, sparingly */
  --bone: #ECEAE4;                         /* type and hairlines */
  --flare: #FF4A1C;                        /* signal red-orange: dotted tracks, lines of sight, the fix, the one alert. Nothing else. */
  --os-white: #FFFFFF;                     /* iOS system chrome only (lock screen, status bar, cursor) */
  --os-black: #000000;

  /* semantic colours: pages read these; custody.js reads --ground --ground-2 --ink --ink-2 --signal --rule --select --atmos --map-bg --loupe-fill */
  --ground: var(--space);                  /* page, map and app ground */
  --ground-2: var(--navy);                 /* raised dark surface (held button, Live Activity, sheet) */
  --ink: var(--bone);                      /* primary text, FUI hairlines, marks */
  --ink-2: color-mix(in srgb, var(--bone) 58%, var(--steel));    /* secondary text: a cool grey, 7:1 on space */
  --signal: var(--flare);                  /* lines of sight, tracks, the fix: nothing else */
  --alert: var(--signal);                  /* the one alert state (word, list marker, banner edge) */
  --select: var(--cyan);                   /* the selected or tasked thing (sensor marks, the selected row) */
  --atmos: var(--cyan);                    /* the Earth's limb glow */
  --on-ink: var(--ground);                 /* text and marks on an ink-filled control */
  --os-ink: var(--os-white);
  --os-ground: var(--os-black);

  /* derived: follow the semantic colours automatically */
  --ink-1: var(--ink);
  --ink-3: color-mix(in srgb, var(--ink) 40%, transparent);       /* tertiary: axis labels, disabled */
  --rule-0: color-mix(in srgb, var(--steel) 60%, transparent);    /* list row separators */
  --rule: var(--steel);                                           /* 1 px structural rules */
  --rule-2: color-mix(in srgb, var(--steel) 65%, var(--bone));    /* emphasised hairline */
  --fill-1: color-mix(in srgb, var(--ink) 4.5%, transparent);     /* hover / selected row */
  --panel: var(--navy);                                           /* docked panels: opaque, so map labels never ghost through */
  --panel-strong: color-mix(in srgb, var(--navy) 97%, transparent);
  --surface-2: var(--navy);                                       /* phone sheet, Live Activity */
  --ink-press: color-mix(in srgb, var(--ink) 88%, var(--navy));   /* an ink-filled control while pressed */
  --signal-dim: color-mix(in srgb, var(--signal) 55%, transparent);
  --os-material: color-mix(in srgb, var(--navy) 60%, transparent);   /* lock-screen button material */

  /* grounds: real imagery under the UI (placeholders until the Blender plates land in parallax/3d/renders) */
  --map-ground-image: url("img/space.jpg"); /* desktop map, full frame, under the canvas */
  --map-ground-position: center;
  --map-ground-size: cover;
  --map-ground-opacity: 1;
  --map-ground-filter: none;
  --map-ground-blend: normal;
  --map-bg: transparent;                   /* the canvas's own fill over the ground image */
  --loupe-fill: color-mix(in srgb, var(--space) 86%, transparent);
  --scope-ground-image: url("img/space.jpg");   /* phone scope */
  --lock-wall: url("img/lockwall.jpg");    /* phone lock-screen wallpaper (the Earth limb) */

  /* type */
  --f-ui: "Tomorrow", system-ui, sans-serif;        /* UI text and the state word: future-DIN */
  --f-data: "Spline Sans Mono", ui-monospace, monospace;   /* values: IDs, coordinates, times, km */
  --f-hero: "Tomorrow", sans-serif;                  /* the one hero number: future-DIN Light (Ryan, 23 Oct) */
  --f-state: var(--f-ui);                            /* the one state word per beat */
  --hero-w: 300; --hero-st: 100%; --hero-ls: -.01em;
  --state-w: 500; --state-st: 100%; --state-ls: -.015em;
  --f-ios: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --w-text: 100%;    /* font-stretch for UI text */
  --w-wide: 100%;    /* font-stretch for titles (faces with a width axis only) */

  /* desktop type ladder (px at 1440). Hero sizes are checked at board-cell scale by render.py */
  --t-hero: 112px;
  --t-state: 48px;
  --t-title: 20px;
  --t-body: 14px;
  --t-label: 12px;
  --t-data: 12.5px;
  --t-small: 11px;

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r-chip: 2px; --r-card: 3px;

  /* desktop frame */
  --header-h: 48px;
  --list-w: 232px;     /* the uncertainty tape */
  --panel-w: 392px;
  --dock-h: 204px;     /* the custody horn, under the map */
  --strip-h: 164px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--f-ui); font-stretch: var(--w-text); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.data { font-family: var(--f-data); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wide { font-stretch: var(--w-wide); }
.hero { font-family: var(--f-hero); font-weight: var(--hero-w); font-stretch: var(--hero-st); letter-spacing: var(--hero-ls); line-height: .92; font-variant-numeric: tabular-nums; }
.state { font-family: var(--f-state); font-weight: var(--state-w); font-stretch: var(--state-st); letter-spacing: var(--state-ls); }
.dim { color: var(--ink-2); }
.red { color: var(--signal); }
/* every animated value is set from setT(t); nothing may tween on its own */
*, *::before, *::after { transition: none !important; animation: none !important; }
