/* ==========================================================================
   CENTAURI 0.5.0 — the spine: ramps, roles, series, type, static dimensions, motion
   GENERATED by scripts/generate.mjs from scripts/tokens.source.mjs. Do not edit.
   A local edit is not a disagreement to adjudicate; it is a build that no
   longer reproduces, and scripts/check.mjs will say so.
   Palette: preset ink, register deep, palette.py 1.0.0.
   Every color was solved against the worst ground in its theme (light oklch(96.000% 0.0040 264.0),
   dark oklch(22.000% 0.0140 254.0)); palette.py --check prints the measurements.
   ========================================================================== */

/* @contrast
   strong on surface >= 7
   prose on surface >= 7
   prose on surface-alt >= 7
   prose on card >= 7
   prose on sheet >= 7
   muted on surface >= 4.5
   muted on card >= 4.5
   muted on sheet >= 4.5
   muted on surface-alt >= 4.5
   subtle on surface >= 4.5
   subtle on surface-alt >= 4.5
   accent on surface >= 4.5
   accent on card >= 4.5
   accent on sheet >= 4.5
   danger on surface >= 4.5
   edge on surface >= 3
   edge on card >= 3
   edge on sheet >= 3
*/
:root {

  /* --- ramps: fixed in both themes --- */
  --color-quartz-50: oklch(95.000% 0.0236 264.0);
  --color-quartz-100: oklch(88.500% 0.0282 264.0);
  --color-quartz-200: oklch(74.000% 0.0366 264.0);
  --color-quartz-300: oklch(66.000% 0.0401 264.0);
  --color-quartz-400: oklch(52.000% 0.0439 264.0);
  --color-quartz-500: oklch(46.000% 0.0436 264.0);
  --color-quartz-600: oklch(40.000% 0.0422 264.0);
  --color-quartz-700: oklch(32.000% 0.0393 264.0);
  --color-quartz-800: oklch(24.000% 0.0356 264.0);
  --color-quartz-850: oklch(22.000% 0.0345 264.0);
  --color-quartz-900: oklch(16.000% 0.0311 264.0);
  --color-quartz-950: oklch(12.500% 0.0289 264.0);
  --color-accent-50: oklch(96.500% 0.0164 269.0);
  --color-accent-100: oklch(92.500% 0.0349 269.0);
  --color-accent-200: oklch(87.000% 0.0463 269.0);
  --color-accent-300: oklch(80.000% 0.0593 269.0);
  --color-accent-400: oklch(66.000% 0.0800 269.0);
  --color-accent-500: oklch(57.000% 0.0888 269.0);
  --color-accent-600: oklch(48.000% 0.0916 269.0);
  --color-accent-700: oklch(40.000% 0.0864 269.0);

  /* --- the four grounds by theme, for theme-color and first paint --- */
  --color-ground-light: oklch(98.500% 0.0030 264.0);
  --color-ground-light-alt: oklch(96.000% 0.0040 264.0);
  --color-ground-dark: oklch(16.000% 0.0100 254.0);
  --color-ground-dark-alt: oklch(19.000% 0.0120 254.0);

  /* --- semantic roles: light-dark(), and they flip --- */
  /* If the surface underneath is a role, the foreground must be a role too. */
  --color-surface: light-dark(oklch(98.500% 0.0030 264.0), oklch(16.000% 0.0100 254.0));
  --color-surface-alt: light-dark(oklch(96.000% 0.0040 264.0), oklch(19.000% 0.0120 254.0));
  --color-card: light-dark(oklch(100.000% 0.0000 0.0), oklch(22.000% 0.0140 254.0));
  --color-sheet: light-dark(oklch(100.000% 0.0000 0.0), oklch(25.500% 0.0150 254.0));
  --color-hairline: light-dark(oklch(88.500% 0.0200 264.0), oklch(32.000% 0.0280 254.0));
  --color-edge: light-dark(oklch(56.000% 0.0240 272.0), oklch(57.500% 0.0260 246.0));
  --color-edge-strong: light-dark(oklch(45.000% 0.0240 272.0), oklch(76.000% 0.0260 246.0));
  --color-strong: light-dark(oklch(22.000% 0.0200 272.0), oklch(95.000% 0.0200 246.0));
  --color-prose: light-dark(oklch(32.000% 0.0183 272.0), oklch(89.000% 0.0183 246.0));
  --color-muted: light-dark(oklch(46.000% 0.0167 272.0), oklch(74.000% 0.0167 246.0));
  --color-subtle: light-dark(oklch(52.000% 0.0150 272.0), oklch(66.000% 0.0150 246.0));
  --color-accent: light-dark(oklch(48.000% 0.1400 269.0), oklch(80.000% 0.1001 269.0));
  --color-danger: light-dark(oklch(50.000% 0.1400 29.0), oklch(78.000% 0.1100 29.0));
  --color-selection: light-dark(oklch(74.500% 0.0550 269.0), oklch(44.000% 0.0700 269.0));
  --color-on-selection: light-dark(oklch(22.000% 0.0200 272.0), oklch(96.500% 0.0177 246.0));

  /* The wash under a hovered or open control. The alpha travels WITH the
     token: 5% black on paper and 8% white on near-black read as the same
     weight, and a shared /5 would make the dark one half of what it should be. */
  --color-tint: light-dark(
    color-mix(in oklab, oklch(16.000% 0.0311 264.0) 5%, transparent),
    color-mix(in oklab, white 8%, transparent)
  );
  /* The scrim behind a sheet or a dialog: the ground's own dark end, never black. */
  --color-scrim: light-dark(
    color-mix(in oklab, oklch(16.000% 0.0311 264.0) 40%, transparent),
    color-mix(in oklab, oklch(12.500% 0.0289 264.0) 60%, transparent)
  );

  /* --- status: five bands, only the top two carry a hue --- */
  --color-status-critical: light-dark(oklch(50.000% 0.1500 29.0), oklch(79.000% 0.1150 29.0));
  --color-status-warning: light-dark(oklch(52.000% 0.1100 68.0), oklch(83.000% 0.1000 68.0));
  --color-status-success: light-dark(oklch(50.000% 0.1100 150.0), oklch(82.000% 0.1000 150.0));
  --color-status-notice: light-dark(oklch(48.000% 0.1100 248.0), oklch(80.000% 0.1000 248.0));
  --color-status-inert: light-dark(oklch(52.000% 0.0150 272.0), oklch(66.000% 0.0150 246.0));

  /* --- marks: the same five meanings drawn rather than written.
     A separate set because a mark owes greyscale RANK, not 4.5:1; its 3:1
     obligation is carried by the hairline edge it is drawn with. --- */
  --color-mark-critical: light-dark(oklch(48.000% 0.1500 29.0), oklch(64.000% 0.1500 29.0));
  --color-mark-notice: light-dark(oklch(58.000% 0.1500 248.0), oklch(73.000% 0.1471 248.0));
  --color-mark-success: light-dark(oklch(68.000% 0.1500 150.0), oklch(82.000% 0.1500 150.0));
  --color-mark-warning: light-dark(oklch(78.000% 0.1275 68.0), oklch(91.000% 0.0652 68.0));
  --color-mark-inert: light-dark(oklch(88.000% 0.0220 264.0), oklch(42.000% 0.0360 254.0));

  /* --- tints: DECORATIVE, never semantic and never data. Two steps each:
     a pastel `wash` the eye reads as the color of the object, and a deeper
     `tint` for anything drawn on top of it. All six share one lightness, so
     in greyscale they are the same tone and cannot carry a ranking. --- */
  --color-tint-rose: light-dark(oklch(50.000% 0.1600 340.0), oklch(80.000% 0.1050 340.0));
  --color-tint-amber: light-dark(oklch(50.000% 0.1600 36.0), oklch(80.000% 0.1050 36.0));
  --color-tint-citron: light-dark(oklch(50.000% 0.1027 95.0), oklch(80.000% 0.1050 95.0));
  --color-tint-jade: light-dark(oklch(50.000% 0.1097 162.0), oklch(80.000% 0.1050 162.0));
  --color-tint-sky: light-dark(oklch(50.000% 0.0871 212.0), oklch(80.000% 0.1050 212.0));
  --color-tint-iris: light-dark(oklch(50.000% 0.1600 288.0), oklch(80.000% 0.1050 288.0));
  --color-wash-rose: light-dark(oklch(95.000% 0.0336 340.0), oklch(27.000% 0.0400 340.0));
  --color-wash-amber: light-dark(oklch(95.000% 0.0255 36.0), oklch(27.000% 0.0400 36.0));
  --color-wash-citron: light-dark(oklch(95.000% 0.0350 95.0), oklch(27.000% 0.0400 95.0));
  --color-wash-jade: light-dark(oklch(95.000% 0.0350 162.0), oklch(27.000% 0.0400 162.0));
  --color-wash-sky: light-dark(oklch(95.000% 0.0350 212.0), oklch(27.000% 0.0400 212.0));
  --color-wash-iris: light-dark(oklch(95.000% 0.0251 288.0), oklch(27.000% 0.0400 288.0));

  /* --- syntax: four colors for code, solved at 4.5:1 because they are TEXT.
     The other two roles a code surface needs are already here: the default is
     `prose` and a comment is `muted`. Separation under every color-vision
     deficiency is measured by series.py, not assumed. (ADR-022) --- */
  --color-syntax-name: light-dark(oklch(30.000% 0.1300 267.8), oklch(88.000% 0.0582 267.8));
  --color-syntax-keyword: light-dark(oklch(40.000% 0.0843 75.3), oklch(80.000% 0.1300 75.3));
  --color-syntax-string: light-dark(oklch(48.000% 0.1300 252.2), oklch(72.000% 0.1300 252.2));
  --color-syntax-number: light-dark(oklch(54.000% 0.1300 29.2), oklch(64.000% 0.1300 29.2));

  /* --- series: the chart palette, and the only ranked set of hues.
     Six categorical steps at 3:1 on surface AND card in each theme, and a
     seven-step sequential ramp from the accent. --- */
  --color-series-1: light-dark(oklch(30.006% 0.1497 268.0), oklch(53.052% 0.1504 268.1));
  --color-series-2: light-dark(oklch(68.029% 0.2144 39.8), oklch(84.105% 0.1501 92.0));
  --color-series-3: light-dark(oklch(61.517% 0.2108 256.1), oklch(53.666% 0.2201 29.1));
  --color-series-4: light-dark(oklch(37.885% 0.1116 43.3), oklch(75.779% 0.1348 243.5));
  --color-series-5: light-dark(oklch(46.205% 0.0883 225.9), oklch(74.853% 0.1590 6.5));
  --color-series-6: light-dark(oklch(53.111% 0.1508 39.8), oklch(68.556% 0.1445 103.6));
  --color-seq-1: light-dark(oklch(94.739% 0.0249 263.3), oklch(29.940% 0.0261 272.3));
  --color-seq-2: light-dark(oklch(84.394% 0.0523 269.6), oklch(40.314% 0.0370 268.5));
  --color-seq-3: light-dark(oklch(74.054% 0.0698 268.0), oklch(50.620% 0.0514 269.4));
  --color-seq-4: light-dark(oklch(63.412% 0.0875 269.4), oklch(61.049% 0.0632 269.5));
  --color-seq-5: light-dark(oklch(53.044% 0.1055 269.1), oklch(71.341% 0.0761 269.1));
  --color-seq-6: light-dark(oklch(42.548% 0.1229 268.7), oklch(81.653% 0.0881 269.5));
  --color-seq-7: light-dark(oklch(31.989% 0.1411 269.0), oklch(91.530% 0.0408 261.0));

  /* --- faces --- */
  --font-sans: var(--font-public-sans, "Public Sans"), ui-sans-serif, system-ui, sans-serif;
  --font-serif: var(--font-newsreader, Newsreader), ui-serif, Georgia, serif;
  --font-mono: var(--font-jetbrains-mono, "JetBrains Mono"), ui-monospace, SFMono-Regular, monospace;

  /* --- the geometric tier, above the reading ladder --- */
  --text-title-sm: 1.125rem;
  --text-title-sm--line-height: 1.3;
  --text-title-sm--letter-spacing: -0.008em;
  --text-title-sm--font-weight: 600;
  --text-title-md: 1.35rem;
  --text-title-md--line-height: 1.28;
  --text-title-md--letter-spacing: -0.011em;
  --text-title-md--font-weight: 600;
  --text-title-lg: 1.62rem;
  --text-title-lg--line-height: 1.22;
  --text-title-lg--letter-spacing: -0.014em;
  --text-title-lg--font-weight: 600;
  --text-title-xl: 1.94375rem;
  --text-title-xl--line-height: 1.15;
  --text-title-xl--letter-spacing: -0.017em;
  --text-title-xl--font-weight: 600;
  --text-display-sm: 2.3325rem;
  --text-display-sm--line-height: 1.12;
  --text-display-sm--letter-spacing: -0.017em;
  --text-display-sm--font-weight: 400;
  --text-display-md: 3.35938rem;
  --text-display-md--line-height: 1.08;
  --text-display-md--letter-spacing: -0.019em;
  --text-display-md--font-weight: 400;
  --text-display-lg: 4.03125rem;
  --text-display-lg--line-height: 1.04;
  --text-display-lg--letter-spacing: -0.021em;
  --text-display-lg--font-weight: 400;
  --text-display-xl: 4.8375rem;
  --text-display-xl--line-height: 1.02;
  --text-display-xl--letter-spacing: -0.023em;
  --text-display-xl--font-weight: 400;

  /* --- STATIC: no profile may change these (ADR-001 A1.1) --- */
  --centauri-static-focus-width: 2px;
  --centauri-static-focus-offset: 2px;
  --centauri-static-target-min: 24px;
  --centauri-static-target-coarse: 44px;
  --centauri-static-gap-icon: 8px;
  --centauri-static-rule-length: 12px;
  --centauri-static-rule-gap: 8px;
  --centauri-static-label-tracking: 0.14em;
  --centauri-static-value-tracking: -0.01em;
  --centauri-static-tick-length: 6px;
  --centauri-static-stroke-hairline: 1px;
  --centauri-static-stroke-edge: 1px;
  --radius-chip: 0px;
  --radius-control: 2px;
  --radius-card: 4px;
  --radius-panel: 6px;
  --radius-pill: 9999px;
  --centauri-static-state-hover: 0.08;
  --centauri-static-state-focus: 0.10;
  --centauri-static-state-pressed: 0.10;
  --centauri-static-state-selected: 0.12;
  --centauri-static-tabbar-height: 56px;
  --centauri-static-rail-collapsed: 56px;
  --centauri-static-rail-expanded: 232px;

  /* --- motion: static. Enter and exit are separate sets, exits capped at
     250ms (ADR-010). A compact product is not a faster product. --- */
  --centauri-static-duration-instant: 0ms;
  --centauri-static-enter-fast: 120ms;
  --centauri-static-enter-base: 200ms;
  --centauri-static-enter-slow: 320ms;
  --centauri-static-exit-fast: 90ms;
  --centauri-static-exit-base: 160ms;
  --centauri-static-exit-slow: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
