/* Phrourios Security, tokens. Direction: paper of record (revamp, 2026-11-27).
   The page is the printed report: brand print palette (ink #111619, ground #FFFFFF, teal #1C8C87,
   rule #C9D3D5). Evidence is pasted in as dark prints in the brand screen palette (ground #0B1012,
   ink #E6ECEC, teal #4FD6CF, rule #243034). Source: ../../brand/README.md, Colour.
   Contrast (computed, docs/review-2026-11-27.md): ink-2 9.2:1, ink-3 5.2:1 on paper, rule-strong 3.6:1,
   accent-text 6.0:1. The print teal is 3.9:1 on paper: marks, rules and large type only. */

:root {
  color-scheme: light;

  /* Paper ladder: the page, the sheet a form sits on, a faint wash */
  --color-paper: oklch(98.4% 0.003 205);
  --color-paper-2: oklch(96.6% 0.004 205);
  --color-paper-3: oklch(93.5% 0.005 205);
  --color-sheet: oklch(99.7% 0.002 205);
  --color-plate: oklch(96.6% 0.004 205);

  /* Ink ladder */
  --color-ink: #111619;
  --color-ink-2: oklch(40% 0.012 220);
  --color-ink-3: oklch(52% 0.012 220);

  /* Rules: hairline, the strong section rule, control edges (3:1) */
  --color-rule: #C9D3D5;
  --color-rule-soft: oklch(91% 0.006 205);
  --color-rule-strong: oklch(62% 0.012 220);

  /* Signal: the print teal, one per screen. Text uses the darker step */
  --color-accent: #1C8C87;
  --color-accent-text: oklch(48% 0.085 192);
  --color-accent-ink: oklch(99.7% 0.002 205);
  --color-accent-soft: oklch(56% 0.09 190 / 0.08);
  --color-focus: oklch(48% 0.085 192);

  /* Alert: severity stamps and the incident notice only */
  --color-alert: oklch(50% 0.13 55);
  --color-alert-edge: oklch(50% 0.13 55 / 0.55);
  --color-alert-soft: oklch(75% 0.12 75 / 0.12);

  /* Viewer callout veil, sweep and grid: only drawn inside evidence prints */
  --color-plate-veil: oklch(11.5% 0.008 205 / 0.72);
  --color-sweep: oklch(88% 0.010 205 / 0.14);
  --grid-line: oklch(70% 0.02 205 / 0.06);

  /* Type: brand faces, self-hosted (fonts.css). Mono is the evidence voice only */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Scale: 1.25 from 16px */
  --text-display: clamp(3rem, 6.2vw, 5.25rem);
  --text-section: clamp(2rem, 3.6vw, 3.0625rem);
  --text-title: 1.5625rem;
  --text-lead: 1.25rem;
  --text-lg: 1.125rem;
  --text-md: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --text-mono: 0.8125rem;

  /* Spacing: 4px base */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --section-gap-s: 96px;
  --section-gap: 128px;

  /* Canvas */
  --container: 1280px;
  --gutter: 48px;
  --gap-columns: 32px;
  --nav-h: 64px;

  /* Shape: square paper, 2px on controls, no pills, no shadows */
  --radius-card: 2px;
  --radius-tile: 2px;
  --radius-pill: 2px;
  --shadow-plate: none;

  /* Z */
  --z-base: 1;
  --z-raised: 10;
  --z-rail: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;

  /* Motion: transform and opacity only */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 200ms;
  --dur-long: 320ms;
  --sweep: 8s; /* the one ambient loop: the scope sweep, inside its print */
}

/* Evidence prints: the brand screen palette, scoped. The rack viewer canvas paints #0B0E0F
   (js/rack-viewer.js:75), so its frame must stay in this scope. */
.scope, .plate, .rv-frame {
  color-scheme: dark;
  --color-paper: #0B1012;
  --color-paper-2: oklch(17% 0.012 205);
  --color-paper-3: oklch(21% 0.014 205);
  --color-plate: #0B1012;
  --color-ink: #E6ECEC;
  --color-ink-2: oklch(78% 0.010 205);
  --color-ink-3: oklch(64% 0.012 205);
  --color-rule: #243034;
  --color-rule-soft: oklch(22% 0.012 205);
  --color-accent: #4FD6CF;
  --color-accent-text: #4FD6CF;
  --color-accent-soft: oklch(80% 0.115 195 / 0.1);
  --color-focus: #4FD6CF;
  --color-alert: oklch(78% 0.14 75);
  --color-alert-edge: oklch(78% 0.14 75 / 0.5);
  --color-alert-soft: oklch(78% 0.14 75 / 0.08);
  --grid-line: oklch(70% 0.02 205 / 0.05);
}
