/*
 * AI Lab design tokens (SK-T). One file, shared byte-for-byte by Fleet
 * (fleet/portal/static/) and www.ai-lab.com (sites/www-ai-lab/app/).
 * Spec: PLAN-fleet-skin-and-site.md §1. Ratios: README.md. Frozen; a change needs a new order.
 *
 * :root is light. Dark applies when the system asks for it and the page is not
 * forced light, or when theme-toggle.js forces it. The two dark blocks below must
 * stay byte-identical (tests/test_ai_lab_tokens.py), so the media one is not indented.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/Geist-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --muted: oklch(0.97 0 0);
  --accent: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --muted-foreground: oklch(0.53 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.63 0 0);
  --ring: #0b6bcb;
  --brand: #1e90ff;
  --brand-strong: #0b6bcb;
  --brand-secondary: #5cb3ff;
  --destructive: oklch(0.505 0.213 27.518);
  --destructive-foreground: #ffffff;
  --positive: #087f5b;
  --caution: #9a5b00;
  --mark: #1e90ff;
  --grid-line: oklch(0.708 0 0);
  --shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.05), 0 0 0 1px rgb(0 0 0 / 0.1);

  --radius: 0.625rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-pill: 999px;

  --spacing: 0.25rem;
  --container: 80rem;
  --gutter: 1rem;

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-7xl: 4.5rem;
  --tracking-tight: -0.025em;
  --font-weight-heading: 500;
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;

  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --muted: oklch(0.269 0 0);
  --accent: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(0.55 0 0);
  --ring: #5cb3ff;
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.205 0 0);
  --positive: #66e0c8;
  --caution: #f2bd68;
  --mark: #7aa2ff;
  --grid-line: oklch(0.439 0 0);
  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.1);
}
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --muted: oklch(0.269 0 0);
  --accent: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(0.55 0 0);
  --ring: #5cb3ff;
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.205 0 0);
  --positive: #66e0c8;
  --caution: #f2bd68;
  --mark: #7aa2ff;
  --grid-line: oklch(0.439 0 0);
  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.1);
}
