@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  /* Paper #F4F3F1, ink #111, one red #D7141A. No fills, no corners. */
  --background: oklch(0.965 0.002 90);
  --foreground: oklch(0.17 0.004 60);
  --card: oklch(0.965 0.002 90);
  --card-foreground: oklch(0.17 0.004 60);
  --popover: oklch(0.985 0.002 90);
  --popover-foreground: oklch(0.17 0.004 60);
  --primary: oklch(0.55 0.215 28);
  --primary-foreground: oklch(0.985 0.002 90);
  --secondary: oklch(0.92 0.003 90);
  --secondary-foreground: oklch(0.17 0.004 60);
  --muted: oklch(0.93 0.003 90);
  --muted-foreground: oklch(0.44 0.006 60);
  --accent: oklch(0.91 0.004 90);
  --accent-foreground: oklch(0.17 0.004 60);
  --destructive: oklch(0.55 0.215 28);
  --destructive-foreground: oklch(0.985 0.002 90);
  --border: oklch(0.17 0.004 60);
  --input: oklch(0.17 0.004 60);
  --ring: oklch(0.55 0.215 28);
  --success: oklch(0.47 0.12 150);
  --warning: oklch(0.55 0.13 70);
  --chart-1: oklch(0.55 0.215 28);
  --chart-2: oklch(0.17 0.004 60);
  --chart-3: oklch(0.44 0.006 60);
  --chart-4: oklch(0.7 0.12 28);
  --chart-5: oklch(0.78 0.005 60);
  --sidebar: oklch(0.965 0.002 90);
  --sidebar-foreground: oklch(0.17 0.004 60);
  --sidebar-primary: oklch(0.55 0.215 28);
  --sidebar-primary-foreground: oklch(0.985 0.002 90);
  --sidebar-accent: oklch(0.91 0.004 90);
  --sidebar-accent-foreground: oklch(0.17 0.004 60);
  --sidebar-border: oklch(0.17 0.004 60);
  --sidebar-ring: oklch(0.55 0.215 28);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.94 0.003 90);
  --surface-hover:   color-mix(in srgb, var(--foreground) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 9%, var(--background));
  --surface-elevated: oklch(0.985 0.002 90);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.88 0.004 90);
  --border-muted: oklch(0.8 0.005 90);
  --border-strong: oklch(0.17 0.004 60);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.32 0.005 60);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 85%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 14%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 7%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 4%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.55 0.215 28 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.215 28);
  --error-foreground: oklch(0.985 0.002 90);

  /* ── radius — none: the brand has no rounded corners ─────────── */
  --radius: 0rem;
  --radius-none: 0rem;
  --radius-sm: 0rem;
  --radius-lg: 0rem;
  --radius-xl: 0rem;
  --radius-full: 0rem;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Archivo Black", "Arial Black", Impact, ui-sans-serif, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 0.9;
  --tracking-display: -0.03em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — flat; print has no drop shadows ────────────────── */
  --shadow-sm: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-md: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-lg: 0 0 0 0 rgba(0, 0, 0, 0);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --duration-slow: 300ms;
  --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.16 0.004 60);
  --foreground: oklch(0.955 0.002 90);
  --card: oklch(0.16 0.004 60);
  --card-foreground: oklch(0.955 0.002 90);
  --popover: oklch(0.2 0.004 60);
  --popover-foreground: oklch(0.955 0.002 90);
  --primary: oklch(0.66 0.2 28);
  --primary-foreground: oklch(0.14 0.004 60);
  --secondary: oklch(0.24 0.004 60);
  --secondary-foreground: oklch(0.955 0.002 90);
  --muted: oklch(0.23 0.004 60);
  --muted-foreground: oklch(0.74 0.005 90);
  --accent: oklch(0.26 0.004 60);
  --accent-foreground: oklch(0.955 0.002 90);
  --destructive: oklch(0.66 0.2 28);
  --destructive-foreground: oklch(0.14 0.004 60);
  --border: oklch(0.955 0.002 90 / 60%);
  --input: oklch(0.955 0.002 90 / 60%);
  --ring: oklch(0.66 0.2 28);
  --success: oklch(0.72 0.14 150);
  --warning: oklch(0.78 0.14 70);
  --chart-1: oklch(0.66 0.2 28);
  --chart-2: oklch(0.955 0.002 90);
  --chart-3: oklch(0.74 0.005 90);
  --chart-4: oklch(0.5 0.15 28);
  --chart-5: oklch(0.4 0.005 60);
  --sidebar: oklch(0.16 0.004 60);
  --sidebar-foreground: oklch(0.955 0.002 90);
  --sidebar-primary: oklch(0.66 0.2 28);
  --sidebar-primary-foreground: oklch(0.14 0.004 60);
  --sidebar-accent: oklch(0.26 0.004 60);
  --sidebar-accent-foreground: oklch(0.955 0.002 90);
  --sidebar-border: oklch(0.955 0.002 90 / 60%);
  --sidebar-ring: oklch(0.66 0.2 28);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.2 0.004 60);
  --surface-elevated: oklch(0.24 0.004 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.955 0.002 90 / 12%);
  --border-muted: oklch(0.955 0.002 90 / 25%);
  --border-strong: oklch(0.955 0.002 90);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.004 90);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 6%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.66 0.2 28 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.66 0.2 28);
  --error-foreground: oklch(0.14 0.004 60);
}
