@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.982 0.004 80);
  --foreground: oklch(0.21 0.008 50);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.21 0.008 50);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.21 0.008 50);
  --primary: oklch(0.49 0.045 50);
  --primary-foreground: oklch(0.985 0.004 80);
  --secondary: oklch(0.945 0.008 75);
  --secondary-foreground: oklch(0.28 0.012 50);
  --muted: oklch(0.955 0.006 75);
  --muted-foreground: oklch(0.48 0.014 60);
  --accent: oklch(0.945 0.008 75);
  --accent-foreground: oklch(0.28 0.012 50);
  --destructive: oklch(0.52 0.18 27);
  --destructive-foreground: oklch(0.985 0.004 80);
  --border: oklch(0.915 0.008 75);
  --input: oklch(0.88 0.01 75);
  --ring: oklch(0.49 0.045 50);
  --success: oklch(0.5 0.09 140);
  --warning: oklch(0.62 0.12 75);
  --chart-1: oklch(0.49 0.045 50);
  --chart-2: oklch(0.55 0.06 135);
  --chart-3: oklch(0.42 0.035 260);
  --chart-4: oklch(0.65 0.1 80);
  --chart-5: oklch(0.7 0.02 70);
  --sidebar: oklch(0.965 0.006 78);
  --sidebar-foreground: oklch(0.21 0.008 50);
  --sidebar-primary: oklch(0.49 0.045 50);
  --sidebar-primary-foreground: oklch(0.985 0.004 80);
  --sidebar-accent: oklch(0.935 0.008 75);
  --sidebar-accent-foreground: oklch(0.28 0.012 50);
  --sidebar-border: oklch(0.915 0.008 75);
  --sidebar-ring: oklch(0.49 0.045 50);

  /* ── brand accents (three pathways + important flag) ─────────── */
  --aia-accent: #2C4A72;
  --bafa-accent: #4A5568;
  --bpw-accent: #2E8277;
  --important: #C8963E;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.962 0.006 78);
  --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(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.95 0.006 75);
  --border-muted: oklch(0.935 0.007 75);
  --border-strong: oklch(0.82 0.012 70);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.012 55);

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

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.49 0.045 50 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.18 27);
  --error-foreground: oklch(0.985 0.004 80);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 3px 10px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 10px 28px rgba(28, 25, 23, 0.09);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --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.19 0.006 55);
  --foreground: oklch(0.95 0.006 80);
  --card: oklch(0.23 0.007 55);
  --card-foreground: oklch(0.95 0.006 80);
  --popover: oklch(0.23 0.007 55);
  --popover-foreground: oklch(0.95 0.006 80);
  --primary: oklch(0.78 0.05 60);
  --primary-foreground: oklch(0.2 0.008 50);
  --secondary: oklch(0.29 0.008 55);
  --secondary-foreground: oklch(0.93 0.006 80);
  --muted: oklch(0.29 0.008 55);
  --muted-foreground: oklch(0.74 0.012 70);
  --accent: oklch(0.29 0.008 55);
  --accent-foreground: oklch(0.93 0.006 80);
  --destructive: oklch(0.68 0.17 25);
  --destructive-foreground: oklch(0.985 0.004 80);
  --border: oklch(1 0 0 / 11%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.78 0.05 60);
  --success: oklch(0.72 0.1 140);
  --warning: oklch(0.8 0.12 80);
  --chart-1: oklch(0.78 0.05 60);
  --chart-2: oklch(0.72 0.07 135);
  --chart-3: oklch(0.7 0.04 260);
  --chart-4: oklch(0.8 0.1 80);
  --chart-5: oklch(0.6 0.02 70);
  --sidebar: oklch(0.22 0.007 55);
  --sidebar-foreground: oklch(0.95 0.006 80);
  --sidebar-primary: oklch(0.78 0.05 60);
  --sidebar-primary-foreground: oklch(0.2 0.008 50);
  --sidebar-accent: oklch(0.29 0.008 55);
  --sidebar-accent-foreground: oklch(0.93 0.006 80);
  --sidebar-border: oklch(1 0 0 / 11%);
  --sidebar-ring: oklch(0.78 0.05 60);

  /* ── brand accents ────────────────────────────────────────────── */
  --aia-accent: #8FB4D9;
  --bafa-accent: #8A96AB;
  --bpw-accent: #6FC4B8;
  --important: #D9AC5C;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.006 55);
  --surface-elevated: oklch(0.27 0.007 55);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 22%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.8 0.008 75);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.78 0.05 60 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.17 25);
  --error-foreground: oklch(0.985 0.004 80);
}
