@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..800;1,300..800&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);                       /* white paper #FFFFFF */
  --foreground: oklch(0.205 0.005 106);            /* near-black ink #1A1A18 */
  --card: oklch(1 0 0);                             /* white panels, delineated by hairline */
  --card-foreground: oklch(0.205 0.005 106);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.205 0.005 106);
  --primary: oklch(0.51 0.09 78);                  /* brass #866529 */
  --primary-foreground: oklch(0.985 0.002 106);
  --secondary: oklch(0.925 0.003 106);             /* #E8E8E6 */
  --secondary-foreground: oklch(0.205 0.005 106);
  --muted: oklch(0.94 0.003 106);
  --muted-foreground: oklch(0.52 0.008 106);        /* #6B6B66 */
  --accent: oklch(0.94 0.003 106);
  --accent-foreground: oklch(0.205 0.005 106);
  --destructive: oklch(0.48 0.16 28);              /* brick #A8322D */
  --destructive-foreground: oklch(0.985 0.002 106);
  --border: oklch(0.918 0.003 106);                /* hairline #E6E6E3 */
  --input: oklch(0.875 0.004 106);                 /* input/stronger hairline #DADAD6 */
  --ring: oklch(0.205 0.005 106);                  /* focus = ink */
  --success: oklch(0.51 0.09 78);                  /* brass = on track */
  --warning: oklch(0.55 0.1 50);                   /* burnt brass #A6633F */
  --chart-1: oklch(0.51 0.09 78);
  --chart-2: oklch(0.205 0.005 106);
  --chart-3: oklch(0.55 0.1 50);
  --chart-4: oklch(0.7 0.06 80);
  --chart-5: oklch(0.48 0.16 28);
  --sidebar: oklch(0.975 0.002 106);               /* ivory offset #F7F7F6 */
  --sidebar-foreground: oklch(0.205 0.005 106);
  --sidebar-primary: oklch(0.205 0.005 106);
  --sidebar-primary-foreground: oklch(0.985 0.002 106);
  --sidebar-accent: oklch(0.915 0.003 106);
  --sidebar-accent-foreground: oklch(0.205 0.005 106);
  --sidebar-border: oklch(0.905 0.003 106);
  --sidebar-ring: oklch(0.205 0.005 106);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.975 0.002 106);  /* ivory offset #F7F7F6 */
  --surface-hover:   color-mix(in srgb, var(--foreground) 4%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 8%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.918 0.003 106);         /* row dividers = hairline #E6E6E3 */
  --border-muted: oklch(0.918 0.003 106);
  --border-strong: oklch(0.875 0.004 106);         /* #DADAD6 */

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.41 0.007 106);   /* #474742 */

  /* ── 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.205 0.005 106);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.48 0.16 28);
  --error-foreground: oklch(0.985 0.002 106);

  /* ── radius (flat, square editorial surfaces) ─────────────────── */
  --radius: 0rem;
  --radius-none: 0rem;
  --radius-sm: 0rem;
  --radius-lg: 0rem;
  --radius-xl: 0rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-figure: "Bodoni Moda", "Didot", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.1;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows (kept flat — brand is shadowless) ────────────────── */
  --shadow-sm: 0 0 0 0 transparent;
  --shadow-md: 0 0 0 0 transparent;
  --shadow-lg: 0 0 0 0 transparent;

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --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.004 106);
  --foreground: oklch(0.95 0.003 106);
  --card: oklch(0.215 0.004 106);
  --card-foreground: oklch(0.95 0.003 106);
  --popover: oklch(0.215 0.004 106);
  --popover-foreground: oklch(0.95 0.003 106);
  --primary: oklch(0.72 0.1 80);
  --primary-foreground: oklch(0.19 0.004 106);
  --secondary: oklch(0.27 0.004 106);
  --secondary-foreground: oklch(0.95 0.003 106);
  --muted: oklch(0.27 0.004 106);
  --muted-foreground: oklch(0.68 0.008 95);
  --accent: oklch(0.27 0.004 106);
  --accent-foreground: oklch(0.95 0.003 106);
  --destructive: oklch(0.64 0.17 28);
  --destructive-foreground: oklch(0.985 0.002 106);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.72 0.1 80);
  --success: oklch(0.72 0.1 80);
  --warning: oklch(0.7 0.11 52);
  --chart-1: oklch(0.72 0.1 80);
  --chart-2: oklch(0.9 0.003 106);
  --chart-3: oklch(0.7 0.11 52);
  --chart-4: oklch(0.55 0.07 80);
  --chart-5: oklch(0.64 0.17 28);
  --sidebar: oklch(0.165 0.004 106);
  --sidebar-foreground: oklch(0.95 0.003 106);
  --sidebar-primary: oklch(0.95 0.003 106);
  --sidebar-primary-foreground: oklch(0.19 0.004 106);
  --sidebar-accent: oklch(0.25 0.004 106);
  --sidebar-accent-foreground: oklch(0.95 0.003 106);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.72 0.1 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.165 0.004 106);
  --surface-elevated: oklch(0.25 0.004 106);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.78 0.005 100);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.72 0.1 80 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.64 0.17 28);
  --error-foreground: oklch(0.985 0.002 106);
}

/* Bodoni Moda for people's names and figures — used by <Figure> in design.tsx */
.font-figure {
  font-family: var(--font-figure);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.005em;
}
