/* ====================================================================
   Continuum design tokens, VENDORED VERBATIM from @gsc/continuum 1.1.0
   (styles/tokens.css). Do not edit this file: a value changed here is a
   fork of the design language that nobody would find. A change belongs
   in the design language, and arrives by taking a newer copy.

   Keyportis is not a React application, so it cannot consume the
   package's components; it takes the language's VALUES and draws its own
   two surfaces with them. Everything Keyportis adds is in surface.css
   and console.css, under its own `kp-` names, so nothing here is
   overridden and no Continuum class is restyled.
   ==================================================================== */

/* ====================================================================
   @gsc/continuum — design tokens · "Liquid Light / Spectral"
   The generative-UI design language. Extracted verbatim from the
   gscChronos-v3 reference app, which is the canonical source of truth.
   Light luminous canvas · full-spectrum iridescence · expressive type.
   ==================================================================== */

:root {
  /* ---- surfaces ---- */
  --paper: #f4f1eb; /* luminous canvas  */
  --paper-2: #faf8f3; /* recessed panel   */
  --raised: #ffffff; /* raised card      */

  /* ---- ink ----
     Every value here is text, so every value clears WCAG AA (4.5:1) against
     --paper, except --ink-4 which is decorative only (dots, separators, faint
     rules) and clears the 3:1 non-text floor. Ratios against --paper #F4F1EB:
     --ink 16.6 · --ink-2 8.6 · --ink-3 4.6 · --ink-4 3.0.
     Do not lighten these. appearance/themes.ts has a test that fails if a
     preset drops a text token below 4.5:1 on its own --paper. */
  --ink: #15120d;
  --ink-2: #4a443a;
  --ink-3: #736d63;
  --ink-4: #958a74;

  /* ---- lines ---- */
  --line: rgba(21, 18, 13, 0.09);
  --line-2: rgba(21, 18, 13, 0.15);
  --line-3: rgba(21, 18, 13, 0.24);

  /* ---- the spectrum (peach→gold→lime→mint→sky→indigo→violet→rose) ---- */
  --spectral: linear-gradient(
    100deg,
    #ff9e6b 0%,
    #ffd56b 16%,
    #a8e06b 32%,
    #5fe0c8 48%,
    #56c2ff 64%,
    #7c8bff 78%,
    #b07cff 90%,
    #ff7cc4 100%
  );
  --spectral-2: linear-gradient(135deg, #56c2ff, #7c8bff, #b07cff, #ff7cc4);

  /* ---- semantic accents (also the AI / "spec" accent = indigo) ----
     TWO TIERS, and the distinction is the whole reason the design still looks
     like itself while being legible:

       --x      the LOOK. Fills, borders, tints, chart strokes, gradient stops,
                the switch, the meter, the focus ring. Unchanged since v1.0.0,
                so every badge background and alert border is pixel-identical.
       --x-ink  the READING. Used ONLY where the colour is text. Same hue and
                saturation, lower lightness, ≥4.5:1 on --paper.

     Colour a word with --x and it is between 2.1:1 and 3.0:1 — under the AA
     floor, and under the large-text floor too. Use --x-ink for the word and
     --x for everything around it. */
  --primary: #7c8bff;
  --ok: #2fb07a;
  --warn: #e8983a;
  --crit: #f2585b;
  --info: #4aa8f0;

  --primary-ink: #4459ff;
  --ok-ink: #227d57;
  --warn-ink: #9f5f13;
  --crit-ink: #dc1115;
  --info-ink: #1071bc;

  /* ---- the solid tier ----
     A THIRD use of the accent: a fill that WHITE text stands on. `--x` under a
     white label is 2.3–3.3:1 (continuum#21), and `--x-ink` is no answer — on a
     dark schema it is lightened to read on the dark canvas. Each `--x-solid` is
     the accent darkened until #FFF on it clears 4.6:1, in every schema;
     appearance/themes.ts derives them the same way for a recoloured one. */
  --primary-solid: #4f63ff;
  --ok-solid: #23845c;
  --warn-solid: #a96414;
  --crit-solid: #e91216;
  --info-solid: #1178c8;

  /* ---- type ---- */
  /* One scale, and nothing readable under 12px (continuum#23). v1.1.0 set text
     at twenty sizes from 8px to 36px — 35 declarations under 12px, the rail's
     group labels at 9px and every table header at 9.5px — so no two screens
     agreed on what was small and nothing could be read comfortably at the
     bottom. Every font-size in the stylesheets is one of these; only the
     fluid display heading (.hero h1) is a clamp. test/type-scale.test.ts
     fails on any other value. */
  --fs-xs: 12px; /* kickers, labels, badges, table headers, hints */
  --fs-sm: 13px; /* buttons, secondary text, table cells */
  --fs-md: 14px; /* body, inputs, navigation */
  --fs-lg: 16px; /* card titles, lead text */
  --fs-xl: 18px; /* brand, dialog titles */
  --fs-2xl: 22px; /* a figure inside a card */
  --fs-3xl: 28px; /* a section heading */
  --fs-4xl: 36px; /* a view heading, a metric */

  --disp: 'Bricolage Grotesque', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- radii ---- */
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --r-pill: 999px;

  /* ---- elevation ---- */
  --shadow-sm: 0 1px 2px rgba(21, 18, 13, 0.05), 0 4px 14px -8px rgba(21, 18, 13, 0.18);
  --shadow: 0 2px 4px rgba(21, 18, 13, 0.04), 0 20px 50px -26px rgba(21, 18, 13, 0.4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
