/* Midnight: Dark-first and calm: deep navy, cool cyan, an aurora behind, long soft easing. */

[data-theme="midnight"] {
  --background: oklch(0.17 0.03 265);
  --foreground: oklch(0.95 0.01 260);
  --card: oklch(0.22 0.04 265);
  --card-foreground: oklch(0.95 0.01 260);
  --popover: oklch(0.22 0.04 265);
  --popover-foreground: oklch(0.95 0.01 260);
  --primary: oklch(0.8 0.12 210);
  --primary-foreground: oklch(0.18 0.03 265);
  --secondary: oklch(0.28 0.05 265);
  --secondary-foreground: oklch(0.95 0.01 260);
  --muted: oklch(0.27 0.04 265);
  --muted-foreground: oklch(0.76 0.03 260);
  --accent: oklch(0.3 0.06 280);
  --accent-foreground: oklch(0.95 0.01 260);
  --destructive: oklch(0.7 0.18 20);
  --border: oklch(0.34 0.05 265);
  --input: oklch(0.42 0.06 265);
  --ring: oklch(0.8 0.12 210);
  --chart-1: oklch(0.7 0.17 300);
  --chart-2: oklch(0.8 0.12 210);
  --chart-3: oklch(0.76 0.15 160);
  --radius: 0.8rem;
  --duration-fast: 160ms;
  --duration-normal: 260ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --heading-weight: 600;
  --font-body: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.light [data-theme="midnight"], [data-theme="midnight"].light {
  --background: oklch(0.97 0.01 250);
  --foreground: oklch(0.2 0.04 265);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.04 265);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.04 265);
  --primary: oklch(0.46 0.13 230);
  --primary-foreground: oklch(0.99 0.005 250);
  --secondary: oklch(0.93 0.02 250);
  --secondary-foreground: oklch(0.2 0.04 265);
  --muted: oklch(0.93 0.02 250);
  --muted-foreground: oklch(0.44 0.04 260);
  --accent: oklch(0.92 0.03 270);
  --accent-foreground: oklch(0.2 0.04 265);
  --destructive: oklch(0.52 0.2 25);
  --border: oklch(0.87 0.02 255);
  --input: oklch(0.78 0.03 255);
  --ring: oklch(0.46 0.13 230);
  --chart-1: oklch(0.55 0.18 300);
  --chart-2: oklch(0.55 0.12 220);
  --chart-3: oklch(0.6 0.14 160);
  color-scheme: light;
}

[data-theme="midnight"] :is(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 600;
}
