/* Site colour, type and theme tokens (docs/design/site-spec-v1.md 1.3 and 1.4). Hand-authored; loaded after the generated
   tokens.css, which stays byte-identical to docs/design/tokens.css. This file supersedes the deck-derived palette and
   typefaces for site/: it overrides --font-display, --font-body and --font-mono; spacing, radius, state and motion
   tokens from tokens.css stay. All colour in the site, the swarm shaders (read at boot) and the composed SVGs comes from here.
   Rules: no green anywhere except --ok; ultramarine (--signal) on at most ~6% of any viewport except the close slab;
   never ultramarine text on --signal-d. The accent was vermilion until the founder chose ultramarine (2026-11-29). */
:root {
  /* worlds */
  --ink-0: #07080A;
  --ink: #0B0C0F;
  --ink-2: #14161B;
  --ink-3: #1E2128;
  --bone: #ECE6D9;
  --bone-2: #E1D9C8;
  --bone-3: #D3C9B4;
  --signal: #3A4DFF; /* ultramarine, hi-vis: ONLY flag, CTA, human gate, the close slab */
  --signal-d: #2536D6;
  --signal-glow: rgb(58 77 255 / .45);

  /* paper: chaos materials, the same in every world */
  --kraft: #BF9F6B;
  --kraft-d: #8E7348;
  --carbon: #2A2D34;
  --carbon-blue: #2F3A4A;
  --ok: #B8E8D8; /* "matched" only, on ink, sparingly */

  /* text */
  --on-ink: #F1ECE0;
  --on-ink-dim: rgb(241 236 224 / .62);
  --line-ink: rgb(236 230 217 / .14);
  --on-bone: #0B0C0F;
  --on-bone-dim: rgb(11 12 15 / .66);
  --line-bone: rgb(11 12 15 / .14);
  --on-signal: #FFFFFF; /* ultramarine is dark enough that text on it is white (6:1) */
  --seam: 4vw; /* tilted seam height (2deg language) */

  /* the IMPULSE seal motif: two incisions, short = Line 1, deep = Line 2. One proportion everywhere: lane height : gap : reach = 5 : 8 : 22 / 39 */
  --cut-h: 3px;
  --cut-gap: 5px;
  --cut-short: 22px;
  --cut-deep: 39px;
  --cut-k: 1; /* scale: multiply the three lengths above by this (a unitless number) */
  --line2: #8290FF; /* Line 2 (the deep cut); Line 1 is --signal */

  /* type families (override the generated tokens.css) */
  --font-display: 'Unbounded Variable', 'Unbounded Fallback', Arial, sans-serif;
  --font-body: 'Space Grotesk Variable', 'Space Grotesk Fallback', Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type scale: size, weight, tracking, line height */
  --t-h1: clamp(2.4rem, 11vw, 11.5rem);
  --t-h1-w: 800;
  --t-h1-w-rest: 560;
  --t-h1-ls: -0.045em;
  --t-h1-lh: .9;
  --t-h2: clamp(2rem, 6vw, 5.5rem);
  --t-h2-w: 700;
  --t-h2-ls: -0.035em;
  --t-h2-lh: .98;
  --t-h3: clamp(1.25rem, 2.2vw, 2rem);
  --t-h3-w: 600;
  --t-body: clamp(1rem, 1.05vw, 1.2rem);
  --t-body-w: 420;
  --t-body-w-strong: 600;
  --t-body-lh: 1.5;
  --t-data: .72rem;
  --t-data-ls: .12em;
  --t-mega: clamp(10rem, 36vw, 34rem);
  --t-mega-w: 900;
}

/* Per-theme variables: razor-cut bands. The nav, rail, cursor and swarm canvas read these. */
[data-theme=bone] { --bg: var(--bone); --fg: var(--on-bone); --mut: var(--on-bone-dim); --line: var(--line-bone); --acc: var(--signal); }
[data-theme=ink] { --bg: var(--ink); --fg: var(--on-ink); --mut: var(--on-ink-dim); --line: var(--line-ink); --acc: var(--signal); }
[data-theme=signal] { --bg: var(--signal); --fg: var(--on-signal); --mut: rgb(255 255 255 / .78); --line: rgb(255 255 255 / .3); --acc: var(--ink); }

/* Seal motif utilities. Horizontal only, pure gradients, no pseudo-elements. `.cuts` is the eyebrow marker: two stacked
   left-anchored bars (short on top in Line 1, deep below in Line 2). `.cut-rule` is one bare bar; `--deep` makes it the deep cut. */
.cuts {
  display: inline-block;
  flex: none;
  width: calc(var(--cut-deep) * var(--cut-k));
  height: calc(var(--cut-h) * 2 + var(--cut-gap) * var(--cut-k));
  background:
    linear-gradient(var(--signal), var(--signal)) 0 0 / calc(var(--cut-short) * var(--cut-k)) var(--cut-h) no-repeat,
    linear-gradient(var(--line2), var(--line2)) 0 100% / 100% var(--cut-h) no-repeat;
}
.cut-rule {
  display: block;
  width: calc(var(--cut-short) * var(--cut-k));
  height: var(--cut-h);
  background: var(--signal);
}
.cut-rule--deep {
  width: calc(var(--cut-deep) * var(--cut-k));
  background: var(--line2);
}
