@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.17 0.006 27);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.17 0.006 27);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.17 0.006 27);
  --primary: oklch(0.55 0.2 27);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0.003 85);
  --secondary-foreground: oklch(0.2 0.006 27);
  --muted: oklch(0.96 0.003 85);
  --muted-foreground: oklch(0.45 0.006 27);
  --accent: oklch(0.955 0.004 85);
  --accent-foreground: oklch(0.2 0.006 27);
  --destructive: oklch(0.55 0.2 27);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.9 0.003 85);
  --input: oklch(0.88 0.003 85);
  --ring: oklch(0.55 0.2 27);
  --success: oklch(0.5 0.13 155);
  --warning: oklch(0.82 0.16 85);
  --chart-1: oklch(0.55 0.2 27);
  --chart-2: oklch(0.82 0.16 85);
  --chart-3: oklch(0.5 0.13 155);
  --chart-4: oklch(0.3 0.006 27);
  --chart-5: oklch(0.65 0.006 27);
  --sidebar: oklch(0.17 0.006 27);
  --sidebar-foreground: oklch(0.97 0 0);
  --sidebar-primary: oklch(0.82 0.16 85);
  --sidebar-primary-foreground: oklch(0.17 0.006 27);
  --sidebar-accent: oklch(0.26 0.006 27);
  --sidebar-accent-foreground: oklch(0.97 0 0);
  --sidebar-border: oklch(0.3 0.006 27);
  --sidebar-ring: oklch(0.82 0.16 85);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.97 0.003 85);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.95 0.003 85);
  --border-muted: oklch(0.925 0.003 85);
  --border-strong: oklch(0.17 0.006 27);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.34 0.006 27);

  /* ── 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) 15%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.82 0.16 85);
  --highlight-foreground: oklch(0.17 0.006 27);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.55 0.2 27 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.21 27);
  --error-foreground: oklch(1 0 0);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.1875rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.1;
  --tracking-display: -0.005em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(20, 12, 10, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 12, 10, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 12, 10, 0.12);

  /* ── 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.15 0.005 27);
  --foreground: oklch(0.97 0.002 85);
  --card: oklch(0.2 0.005 27);
  --card-foreground: oklch(0.97 0.002 85);
  --popover: oklch(0.2 0.005 27);
  --popover-foreground: oklch(0.97 0.002 85);
  --primary: oklch(0.68 0.18 27);
  --primary-foreground: oklch(0.13 0.01 27);
  --secondary: oklch(0.26 0.005 27);
  --secondary-foreground: oklch(0.97 0.002 85);
  --muted: oklch(0.26 0.005 27);
  --muted-foreground: oklch(0.75 0.004 85);
  --accent: oklch(0.27 0.005 27);
  --accent-foreground: oklch(0.97 0.002 85);
  --destructive: oklch(0.68 0.18 27);
  --destructive-foreground: oklch(0.13 0.01 27);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.68 0.18 27);
  --success: oklch(0.72 0.14 155);
  --warning: oklch(0.84 0.16 85);
  --chart-1: oklch(0.68 0.18 27);
  --chart-2: oklch(0.84 0.16 85);
  --chart-3: oklch(0.72 0.14 155);
  --chart-4: oklch(0.9 0.002 85);
  --chart-5: oklch(0.6 0.004 85);
  --sidebar: oklch(0.12 0.005 27);
  --sidebar-foreground: oklch(0.97 0.002 85);
  --sidebar-primary: oklch(0.84 0.16 85);
  --sidebar-primary-foreground: oklch(0.15 0.005 27);
  --sidebar-accent: oklch(0.24 0.005 27);
  --sidebar-accent-foreground: oklch(0.97 0.002 85);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.84 0.16 85);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.18 0.005 27);
  --surface-hover:   color-mix(in srgb, var(--foreground) 8%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 13%, var(--background));
  --surface-elevated: oklch(0.25 0.005 27);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 7%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(0.97 0.002 85);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.85 0.003 85);

  /* ── 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) 12%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.84 0.16 85);
  --highlight-foreground: oklch(0.15 0.005 27);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.68 0.18 27 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.17 27);
  --error-foreground: oklch(0.13 0.01 27);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.1875rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.1;
  --tracking-display: -0.005em;
  --font-weight-body: 400;
  --line-height-body: 1.65;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

  /* ── 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;
}
