/* Nightbuild brand tokens — palette "Moonstone" (minimal · calm, pale steel blue).
   Light and dark are derived from the same seeds (hue 235–240). See brand.md. */

:root {
  color-scheme: light dark;

  /* Light mode */
  --background: oklch(0.985 0.004 240);
  --foreground: oklch(0.190 0.012 240);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.190 0.012 240);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.190 0.012 240);
  --primary: oklch(0.480 0.070 240);
  --primary-foreground: oklch(0.980 0 0);
  --secondary: oklch(0.945 0.009 240);
  --secondary-foreground: oklch(0.190 0.012 240);
  --muted: oklch(0.955 0.004 240);
  --muted-foreground: oklch(0.450 0.012 240);
  --accent: oklch(0.935 0.014 240);
  --accent-foreground: oklch(0.190 0.012 240);
  --destructive: oklch(0.550 0.220 25);
  --destructive-foreground: oklch(0.980 0 0);
  --border: oklch(0.825 0.004 240);
  --input: oklch(0.965 0.004 240);
  --ring: oklch(0.480 0.070 240);
  --radius: 0.375rem;

  /* Gradients — one per screen at most; never under body text */
  --gradient-bg: linear-gradient(135deg, oklch(0.985 0.004 240) 0%, oklch(0.955 0.008 255) 100%);
  --gradient-accent: linear-gradient(to right, oklch(0.480 0.070 240) 0%, oklch(0.500 0.070 210) 100%);

  /* Typography — Inter + JetBrains Mono (see css/fonts.css) */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode */
    --background: oklch(0.130 0.008 240);
    --foreground: oklch(0.970 0.005 240);
    --card: oklch(0.180 0.010 240);
    --card-foreground: oklch(0.970 0.005 240);
    --popover: oklch(0.200 0.010 240);
    --popover-foreground: oklch(0.970 0.005 240);
    --primary: oklch(0.800 0.060 235);
    --primary-foreground: oklch(0.100 0 0);
    --secondary: oklch(0.220 0.020 240);
    --secondary-foreground: oklch(0.970 0.005 240);
    --muted: oklch(0.200 0.010 240);
    --muted-foreground: oklch(0.670 0.005 240);
    --accent: oklch(0.240 0.020 240);
    --accent-foreground: oklch(0.970 0.005 240);
    /* L lowered from the 0.65 default so white labels reach 4.5:1 */
    --destructive: oklch(0.550 0.220 25);
    --destructive-foreground: oklch(0.980 0 0);
    --border: oklch(0.340 0.010 240);
    --input: oklch(0.180 0.010 240);
    --ring: oklch(0.800 0.060 235);

    --gradient-bg: linear-gradient(135deg, oklch(0.130 0.008 240) 0%, oklch(0.160 0.012 255) 100%);
    --gradient-accent: linear-gradient(to right, oklch(0.800 0.060 235) 0%, oklch(0.820 0.060 205) 100%);
  }
}
