/* Workspace / Cobalt design tokens · source of truth */
:root {
  --color-canvas: oklch(97.5% 0.008 255);
  --color-surface: oklch(100% 0 0);
  --color-surface-subtle: oklch(96% 0.012 255);
  --color-surface-strong: oklch(92.5% 0.022 255);
  --color-ink: oklch(21% 0.032 258);
  --color-ink-2: oklch(34% 0.034 258);
  --color-neutral: oklch(45% 0.03 258);
  --color-muted: oklch(53.5% 0.026 258);
  --color-rule: oklch(88% 0.018 255);
  --color-rule-strong: oklch(64% 0.034 255);
  --color-accent: oklch(54% 0.2 260);
  --color-accent-hover: oklch(46% 0.19 260);
  --color-accent-soft: oklch(94.5% 0.04 258);
  --color-accent-ink: oklch(99% 0.004 255);
  --color-focus: oklch(58% 0.19 249);
  --color-error: oklch(50% 0.2 25);
  --color-error-soft: oklch(96% 0.035 25);
  --color-success: oklch(48% 0.13 150);
  --color-success-soft: oklch(95% 0.04 150);
  --color-warning: oklch(54% 0.13 72);
  --color-warning-rule: color-mix(in oklch, var(--color-warning) 45%, var(--color-rule));
  --color-warning-surface: color-mix(in oklch, var(--color-warning) 7%, var(--color-surface));
  --color-transparent: oklch(0% 0 0 / 0);
  --color-scrim: oklch(15% 0.025 258 / 0.5);
  --color-shadow: oklch(20% 0.03 258 / 0.12);
  --color-ink-surface: oklch(25% 0.035 258);
  --color-ink-surface-2: oklch(30% 0.034 258);
  --color-ink-surface-rule: oklch(42% 0.03 258);
  --color-ink-surface-muted: oklch(78% 0.018 255);
  --color-ink-surface-text: oklch(96% 0.01 255);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --display-weight: 650;
  --tracking-display: -0.035em;
  --tracking-label: 0.075em;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-3xl: clamp(2rem, 4vw, 3.25rem);

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --content-wide: 96rem;
  --content-thread: 82rem;
  --content-reading: 68ch;
  --content-directory: 88rem;
  --rail-category: clamp(14rem, 18vw, 20rem);
  --rail-context: 18rem;
  --control-height: max(2.75rem, 44px);

  --rule-hair: 1px;
  --rule-strong: 2px;
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-round: 999px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 100ms;
  --dur-short: 160ms;
  --dur-medium: 260ms;
  --dur-long: 420ms;

  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
}
