@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400..800&family=Atkinson+Hyperlegible+Mono:wght@400..700&display=swap");

/* Down Wind Work: a dark ops console. The app is dark in both schemes,
   so :root and .dark carry the same near-black slate palette. */
:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.155 0.012 250);
  --foreground: oklch(0.96 0.006 250);
  --card: oklch(0.2 0.014 250);
  --card-foreground: oklch(0.96 0.006 250);
  --popover: oklch(0.225 0.015 250);
  --popover-foreground: oklch(0.96 0.006 250);
  --primary: oklch(0.82 0.2 148);
  --primary-foreground: oklch(0.17 0.03 150);
  --secondary: oklch(0.27 0.016 250);
  --secondary-foreground: oklch(0.96 0.006 250);
  --muted: oklch(0.25 0.014 250);
  --muted-foreground: oklch(0.76 0.015 250);
  --accent: oklch(0.28 0.018 250);
  --accent-foreground: oklch(0.97 0.006 250);
  --destructive: oklch(0.56 0.21 25);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.32 0.016 250);
  --input: oklch(0.38 0.018 250);
  --ring: oklch(0.82 0.2 148);
  --success: oklch(0.82 0.2 148);
  --warning: oklch(0.8 0.16 62);
  --chart-1: oklch(0.82 0.2 148);
  --chart-2: oklch(0.8 0.16 62);
  --chart-3: oklch(0.7 0.2 25);
  --chart-4: oklch(0.76 0.12 230);
  --chart-5: oklch(0.72 0.03 250);
  --sidebar: oklch(0.13 0.012 250);
  --sidebar-foreground: oklch(0.93 0.008 250);
  --sidebar-primary: oklch(0.82 0.2 148);
  --sidebar-primary-foreground: oklch(0.17 0.03 150);
  --sidebar-accent: oklch(0.25 0.016 250);
  --sidebar-accent-foreground: oklch(0.97 0.006 250);
  --sidebar-border: oklch(0.27 0.014 250);
  --sidebar-ring: oklch(0.82 0.2 148);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.18 0.013 250);
  --surface-hover:   color-mix(in srgb, var(--foreground) 7%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 12%, var(--background));
  --surface-elevated: oklch(0.245 0.016 250);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.24 0.014 250);
  --border-muted: oklch(0.28 0.015 250);
  --border-strong: oklch(0.46 0.02 250);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.85 0.01 250);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 22%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 13%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%,  var(--background));

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.8 0.16 62);
  --highlight-foreground: oklch(0.18 0.03 60);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.82 0.2 148 / 0.5);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.72 0.19 25);
  --error-foreground: oklch(0.16 0.03 25);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.375rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: -0.015em;
  --font-weight-body: 450;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 500;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.155 0.012 250);
  --foreground: oklch(0.96 0.006 250);
  --card: oklch(0.2 0.014 250);
  --card-foreground: oklch(0.96 0.006 250);
  --popover: oklch(0.225 0.015 250);
  --popover-foreground: oklch(0.96 0.006 250);
  --primary: oklch(0.82 0.2 148);
  --primary-foreground: oklch(0.17 0.03 150);
  --secondary: oklch(0.27 0.016 250);
  --secondary-foreground: oklch(0.96 0.006 250);
  --muted: oklch(0.25 0.014 250);
  --muted-foreground: oklch(0.76 0.015 250);
  --accent: oklch(0.28 0.018 250);
  --accent-foreground: oklch(0.97 0.006 250);
  --destructive: oklch(0.56 0.21 25);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.32 0.016 250);
  --input: oklch(0.38 0.018 250);
  --ring: oklch(0.82 0.2 148);
  --success: oklch(0.82 0.2 148);
  --warning: oklch(0.8 0.16 62);
  --chart-1: oklch(0.82 0.2 148);
  --chart-2: oklch(0.8 0.16 62);
  --chart-3: oklch(0.7 0.2 25);
  --chart-4: oklch(0.76 0.12 230);
  --chart-5: oklch(0.72 0.03 250);
  --sidebar: oklch(0.13 0.012 250);
  --sidebar-foreground: oklch(0.93 0.008 250);
  --sidebar-primary: oklch(0.82 0.2 148);
  --sidebar-primary-foreground: oklch(0.17 0.03 150);
  --sidebar-accent: oklch(0.25 0.016 250);
  --sidebar-accent-foreground: oklch(0.97 0.006 250);
  --sidebar-border: oklch(0.27 0.014 250);
  --sidebar-ring: oklch(0.82 0.2 148);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.18 0.013 250);
  --surface-hover:   color-mix(in srgb, var(--foreground) 7%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 12%, var(--background));
  --surface-elevated: oklch(0.245 0.016 250);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.24 0.014 250);
  --border-muted: oklch(0.28 0.015 250);
  --border-strong: oklch(0.46 0.02 250);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.85 0.01 250);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 22%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 13%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%,  var(--background));

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.8 0.16 62);
  --highlight-foreground: oklch(0.18 0.03 60);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.82 0.2 148 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.19 25);
  --error-foreground: oklch(0.16 0.03 25);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.375rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: -0.015em;
  --font-weight-body: 450;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 500;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}
