/* CHANGED 2026-11-10 (Claude Fable 5.2 · SkyUI 3.0.0 · build): after the owner at 16:00 ET ("make the orange more red and with higher saturation"): lamp 4 and spectrum 5 #ff6a1a → #ff4a0a, the building lane #ff6426 → #ff4416, daylight lamp 4 #ffa873 → #ff8257, spectrum 6 #ef5638 → #f0323c so the spectrum still steps from orange to red. Before: archived in _changeLogFiles/20261110_pre-red-orange/. */
/* CHANGED 2026-11-09 (Claude Opus 5.5 · SkyUI 3.0.0 · build): after the owner at 22:00 ET ("change the yellow to a much deeper orange"). Before: archived in _changeLogFiles/20261109_pre-deep-orange/. State: working. Change: the warning colour is a deep orange (#e8590c; daylight #b8430a), not yellow. */
/* CHANGED 2026-11-09 (Claude Fable 5.2 · SkyUI 3.0.0 · architect): after the owner at 20:42 ET ("make the orange more orange; it looks like gold"). Before: archived in _changeLogFiles/20261109_pre-interlock/contract.css. Change: the fourth lamp, the fifth spectrum stop and the Building lane are orange (#ff4a0a, #ff6426). State: working. */
/* CHANGED 2026-11-09 (Claude Fable 5.2 · SkyUI 3.0.0 · architect): crisp pass after the owner at 20:27 and 20:28 ET ("sharp, clean and polished"; the Matrix Room board: "things should look like this"). Before: archived in _changeLogFiles/20261109_pre-matrix/. State: working. Changes: a darker, quieter wall; squarer corners (4 · 8 · 10 · 14 · 20); cooler, darker surfaces; --sk-accent-deep. */
/* CHANGED 2026-11-09 (Claude Fable 5.2 · SkyUI 3.0.0 · architect): style pass after the owner's nineteen reference boards at 20:14 ET (docs/07-STYLE-REFERENCES.md). Before: archived in _changeLogFiles/20261109_pre-styles/. State: working. Change: the sheet is the navy of the Buttons boards. */
/* CHANGED 2026-11-09 (Claude Fable 5.2 · SkyUI 3.0.0 · architect): frost pass after the owner's direction at 19:57 ET ("too glossy; make the glass more frosted"). Before: archived in _changeLogFiles/20261109_pre-frost/. State: working. Changes: one face (Outfit) for people as in every Design System board; glass saturation 1.6 → 1.25; hairline glints; lamp glare down; brighter wall pools. */
/* CHANGED 2026-11-09 (Claude Fable 5.2 · SkyUI 3.0.0 · architect): first version of the v3 token contract. Input names are kept from SkyUI 2 so v2 themes still apply. Values come from the SkyOS UI Design System (sky-optics 2.4, Frost Gallery, Lit Grid, Matrix Room) after the owner's direction of 19:35 ET: more transparency, better defined shadows and glows, a mixture of Neo, Glass and Material. New in v3: cascade layers, the altitude ladder, per-body light, four lamps, frost presets, glow shells. State: working. */

/* The order of every SkyUI 3 style on the page. A later layer always wins, whatever the selector.
   Unlayered CSS (ported v2 families until they are converted) wins over all of them. */
@layer sk.reset, sk.tokens, sk.type, sk.materials, sk.engines, sk.components, sk.shell, sk.themes, sk.state;

/* Numbers the engines animate. Registered so a transition on them interpolates. */
@property --sk-alt  { syntax: '<number>'; inherits: false; initial-value: 0; }   /* altitude: how far a surface stands off what is under it, in depth units */
@property --sk-lift { syntax: '<number>'; inherits: false; initial-value: 0; }   /* temporary extra altitude: hover, press, drag */
@property --sk-glow-p { syntax: '<number>'; inherits: false; initial-value: 0; } /* glow power 0–3 */

@layer sk.tokens {
:root {
  color-scheme: dark;

  /* ── inputs: ground (theme "dusk"; Design System deep grounds) ── */
  --sk-void: #05070c;              /* the wall, farthest away */
  --sk-void-2: #0a1322;            /* second stop of the wall */
  --sk-floor: #070b14;             /* where the wall meets the desk */
  --sk-backdrop-power: .62;           /* how strongly the lamps pool on the wall (0–1.6) */

  /* ── inputs: the lamps. Four orbs of the spectrum; sk.light places them ── */
  --sk-lamp-1: #2ec8d8;            /* cyan */
  --sk-lamp-2: #7b4bd6;            /* violet */
  --sk-lamp-3: #e8478f;            /* pink */
  --sk-lamp-4: #ff4a0a;            /* orange, toward red and at full strength: the owner, 2026-11-10 16:00 ET ("more red and with higher saturation"). Was #ff6a1a. */
  --sk-indigo: #4a63e6;            /* the Lit Grid's blue tile; a tint, never a lamp */
  --sk-void-glow-a: var(--sk-lamp-1); --sk-void-glow-b: var(--sk-lamp-2);   /* v2 names, kept for v2 themes */

  /* ── inputs: surfaces ── */
  --sk-surface: #151b28;           /* neo slab body (Design System neo #1A1F2E, Lit Grid #121E2A) */
  --sk-surface-hi: #1f2838;        /* the face turned to the light */
  --sk-surface-lo: #0f141e;        /* the face turned away */
  --sk-sunk: #0a0e16;              /* wells, inputs, tracks */
  --sk-sheet: #121929;             /* material: the solid sheet content is read on (Matrix Room material) */

  /* ── inputs: ink ── */
  --sk-ink: #eaf2f3;
  --sk-ink-2: #b9c6d4;
  --sk-ink-3: #9eacbf;
  --sk-ink-inv: #0a1016;

  /* ── inputs: accent, spectrum, lanes, status, code layers ── */
  --sk-accent: #2ec8d8;
  --sk-accent-2: #7b4bd6;
  --sk-accent-ink: #04161a;        /* text on an accent fill */
  --sk-spec-1: #19b3a6; --sk-spec-2: #2ec8d8; --sk-spec-3: #7b4bd6; --sk-spec-4: #e8478f; --sk-spec-5: #ff4a0a; --sk-spec-6: #f0323c;
  --sk-ops: #ee81d0; --sk-res: #4db6b5; --sk-bld: #ff4416; --sk-int: #ac5dfd;
  --sk-queued: #999dc4;
  --sk-ok: #3ddc97; --sk-warn: #e8590c; --sk-bad: #ff4256; --sk-info: #4fc6ff;
  --sk-layer-foundation: #2e9e9b; --sk-layer-blueprint: #7a5bb5; --sk-layer-operations: #c9426e; --sk-layer-library: #ec8f45; --sk-layer-projector: #5fbdb5;

  /* ── inputs: light model (sky-optics 2.4) ── */
  --sk-light: #ffffff;             /* colour of the key light */
  --sk-shadow: #000000;            /* colour of cast shadow: never purer than its room */
  --sk-shadow-power: 1;            /* 0–1.5: every shadow, everywhere */
  --sk-twin-power: .05;            /* neo's light twin (.05 by night, .8 by day) */
  --sk-rim-power: 1;               /* the lit edge */
  --sk-glow-power: 1;              /* how hard glowing things shine */
  --sk-lamp-power: 1;              /* how much lamp light lands on a body */
  --sk-spec-power: 1;              /* the hard band of light across the top of glass */
  --sk-lx: .34; --sk-ly: .62;      /* the direction shadows fall. sk.light rewrites these per body */
  --sk-len: 2.6;                   /* shadow length: 2.4 / sun height */

  /* ── inputs: glass. Frost presets live in materials.css: clear 14 px · regular 30 px · frosted 48 px (the Frost Gallery's 8 · 22 · 36, deepened: the owner asked for more frost) ── */
  --sk-glass-tint: #ffffff;        /* the veil colour of plain glass */
  --sk-glass-sat: 1.25;
  --sk-smoke: #0e121c;             /* the veil of smoke glass: dark, for reading through (runtime glass panel rgba(14,18,28,.78)) */
  --sk-smoke-alpha: .64;

  /* ── inputs: shape ── */
  --sk-r-xs: 4px; --sk-r-sm: 8px; --sk-r-md: 10px; --sk-r-lg: 14px; --sk-r-xl: 20px; --sk-r-pill: 999px;
  --sk-bw: 1px;

  /* ── inputs: type ── */
  --sk-font-sans: "Outfit", "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sk-font-display: var(--sk-font-sans);              /* one face for people, as in the Design System: Outfit, thin when large */
  --sk-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sk-fs-base: 16px;
  --sk-ratio: 1.25;
  --sk-track-mono: .22em;
  --sk-fw-body: 400; --sk-fw-strong: 600; --sk-fw-display: 300;

  /* ── inputs: space, time ── */
  --sk-u: 8px;
  --sk-dur-1: 90ms; --sk-dur-2: 160ms; --sk-dur-3: 260ms; --sk-dur-4: 420ms; --sk-dur-5: 700ms;
  --sk-ease: cubic-bezier(.2, .8, .2, 1);
  --sk-ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --sk-ease-xpo: cubic-bezier(.7, 0, .3, 1);
  --sk-spring-snappy: cubic-bezier(.2, .9, .25, 1);  --sk-spring-snappy-ms: 280ms;     /* sk.motion solves the real springs at boot */
  --sk-spring-smooth: cubic-bezier(.2, .8, .2, 1);   --sk-spring-smooth-ms: 460ms;
  --sk-spring-heavy:  cubic-bezier(.3, .7, .2, 1);   --sk-spring-heavy-ms: 640ms;
  --sk-persp: 1400;                /* camera distance for scale-from-height (sky-optics: (1400 − h0) / (1400 − h)) */
  --sk-dv-target: 44px;

  /* ── the altitude ladder (depth units; Charter plane heights, sky-optics data-h) ── */
  --sk-alt-well: -20;
  --sk-alt-floor: 0;
  --sk-alt-panel: 12;
  --sk-alt-tile: 28;
  --sk-alt-raised: 48;
  --sk-alt-floating: 80;
  --sk-alt-held: 110;
  --sk-alt-modal: 140;
  --sk-lift-hover: 16; --sk-lift-press: -12; --sk-lift-drag: 40;      /* Button Forge: 12 → hover 28 → press 0 */

  /* ── stacking bands. Components never write z-index ── */
  --sk-band-sky: 0; --sk-band-floor: 100; --sk-band-windows: 200; --sk-band-chrome: 300; --sk-band-overlay: 400;
  --sk-band-modal: 500; --sk-band-toast: 600; --sk-band-trigger: 700; --sk-band-system: 800;
}

/* ═══ derived ═══ */
:root, [data-sk-scope] {
  --sk-hair: color-mix(in oklab, var(--sk-ink) 10%, transparent);
  --sk-hair-2: color-mix(in oklab, var(--sk-ink) 18%, transparent);
  --sk-accent-soft: color-mix(in oklab, var(--sk-accent) 18%, transparent);
  --sk-accent-line: color-mix(in oklab, var(--sk-accent) 60%, transparent);
  --sk-accent-hi: color-mix(in oklab, var(--sk-accent) 62%, #d9fff4);          /* the mint of the Design System's lit pills */
  --sk-label-ink: color-mix(in oklab, var(--sk-accent) 62%, var(--sk-ink));     /* machine labels wear the accent, as in the Design System */
  --sk-accent-deep: color-mix(in oklab, var(--sk-accent) 24%, var(--sk-sunk));   /* the chosen segment: a deep fill, mint words (Matrix Room) */
  --sk-focus: var(--sk-accent);
  --sk-scrim: color-mix(in oklab, var(--sk-void) 58%, transparent);
  /* shadow parts (sky-optics default family: contact .34, key .30, ambient ≤ .30; raised here because the owner asked for definition) */
  --sk-lo-contact: color-mix(in oklab, var(--sk-shadow) calc(var(--sk-shadow-power) * 82%), transparent);
  --sk-lo: color-mix(in oklab, var(--sk-shadow) calc(var(--sk-shadow-power) * 68%), transparent);
  --sk-lo-2: color-mix(in oklab, var(--sk-shadow) calc(var(--sk-shadow-power) * 36%), transparent);
  --sk-twin: color-mix(in oklab, var(--sk-light) calc(var(--sk-twin-power) * 100%), transparent);
  /* the edges of glass */
  --sk-glint: color-mix(in oklab, var(--sk-light) calc(var(--sk-rim-power) * 12%), transparent);       /* the top edge: a breath, not a shine */
  --sk-glint-2: color-mix(in oklab, var(--sk-light) calc(var(--sk-rim-power) * 11%), transparent);     /* the hairline (Night Boards .07–.14) */
  --sk-rim: color-mix(in oklab, var(--sk-light) calc(var(--sk-rim-power) * 62%), transparent);         /* the edge that faces the light */

  --sk-fs-0: calc(var(--sk-fs-base) / var(--sk-ratio) / 1.06);
  --sk-fs-1: var(--sk-fs-base);
  --sk-fs-2: calc(var(--sk-fs-base) * var(--sk-ratio));
  --sk-fs-3: calc(var(--sk-fs-2) * var(--sk-ratio));
  --sk-fs-4: calc(var(--sk-fs-3) * var(--sk-ratio));
  --sk-fs-5: calc(var(--sk-fs-4) * var(--sk-ratio));
  --sk-fs-6: calc(var(--sk-fs-5) * var(--sk-ratio));
  --sk-fs-7: calc(var(--sk-fs-6) * var(--sk-ratio));
  --sk-fs-mono: max(10.5px, calc(var(--sk-fs-base) * .7));

  --sk-s-1: calc(var(--sk-u) * .5); --sk-s-2: var(--sk-u); --sk-s-3: calc(var(--sk-u) * 1.5); --sk-s-4: calc(var(--sk-u) * 2);
  --sk-s-5: calc(var(--sk-u) * 3); --sk-s-6: calc(var(--sk-u) * 4); --sk-s-7: calc(var(--sk-u) * 6); --sk-s-8: calc(var(--sk-u) * 8);

  --sk-grad-3: linear-gradient(90deg, var(--sk-spec-2), var(--sk-spec-3), var(--sk-spec-4));
  --sk-spectrum: linear-gradient(90deg, var(--sk-spec-1), var(--sk-spec-2) 22%, var(--sk-spec-3) 48%, var(--sk-spec-4) 72%, var(--sk-spec-5) 90%, var(--sk-spec-6));
}
}

/* Daylight (Design System light walls: #EEF2F5, lilac desk #E8E6F8 → #BCBFEE; shadow rgba(38,44,66)). */
@layer sk.themes {
:root[data-sk-mode="light"], [data-sk-scope][data-sk-mode="light"] {
  color-scheme: light;
  --sk-void: #c3cbe6; --sk-void-2: #e6e8f6; --sk-floor: #d5daee; --sk-backdrop-power: 1.25;
  --sk-lamp-1: #7fe3ea; --sk-lamp-2: #b39bff; --sk-lamp-3: #ffaecd; --sk-lamp-4: #ff8257; --sk-indigo: #8fa2ff;
  --sk-surface: #eef2f5; --sk-surface-hi: #ffffff; --sk-surface-lo: #dfe5ee; --sk-sunk: #d6dde8; --sk-sheet: #fafbfc;
  --sk-ink: #14232e; --sk-ink-2: #3c4b5c; --sk-ink-3: #55647a; --sk-ink-inv: #f5f7fb;
  --sk-accent: #0e8f9c; --sk-accent-2: #5b3fd0; --sk-accent-ink: #ffffff; --sk-accent-hi: #0e8f9c;
  --sk-ok: #0d8a56; --sk-warn: #b8430a; --sk-bad: #cf1f37; --sk-info: #0f6fd6;
  --sk-ops: #c0399b; --sk-res: #1c807f; --sk-bld: #c93a12; --sk-int: #7b3fd0;
  --sk-shadow: #262c42; --sk-shadow-power: .5; --sk-twin-power: .85; --sk-rim-power: 3.4; --sk-glow-power: .8; --sk-spec-power: 1.6;
  --sk-glass-tint: #ffffff; --sk-smoke: #f4f6fc; --sk-smoke-alpha: .5; --sk-glass-sat: 1.15;
}
}
