@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.964 0.011 78);
  --foreground: oklch(0.235 0.015 58);
  --card: oklch(0.984 0.008 80);
  --card-foreground: oklch(0.235 0.015 58);
  --popover: oklch(0.984 0.008 80);
  --popover-foreground: oklch(0.235 0.015 58);
  --primary: oklch(0.455 0.062 54);
  --primary-foreground: oklch(0.975 0.012 80);
  --secondary: oklch(0.918 0.016 78);
  --secondary-foreground: oklch(0.3 0.025 56);
  --muted: oklch(0.93 0.013 78);
  --muted-foreground: oklch(0.52 0.02 60);
  --accent: oklch(0.918 0.016 78);
  --accent-foreground: oklch(0.3 0.025 56);
  --destructive: oklch(0.53 0.16 32);
  --destructive-foreground: oklch(0.975 0.012 80);
  --border: oklch(0.872 0.016 76);
  --input: oklch(0.872 0.016 76);
  --ring: oklch(0.55 0.05 54);
  --success: oklch(0.52 0.08 140);
  --warning: oklch(0.67 0.12 62);
  --chart-1: oklch(0.455 0.062 54);
  --chart-2: oklch(0.6 0.1 40);
  --chart-3: oklch(0.56 0.045 72);
  --chart-4: oklch(0.72 0.055 88);
  --chart-5: oklch(0.4 0.03 60);
  --sidebar: oklch(0.948 0.014 78);
  --sidebar-foreground: oklch(0.235 0.015 58);
  --sidebar-primary: oklch(0.455 0.062 54);
  --sidebar-primary-foreground: oklch(0.975 0.012 80);
  --sidebar-accent: oklch(0.9 0.017 82);
  --sidebar-accent-foreground: oklch(0.3 0.025 56);
  --sidebar-border: oklch(0.872 0.016 76);
  --sidebar-ring: oklch(0.55 0.05 54);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.944 0.014 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(0.992 0.006 80);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.915 0.013 76);
  --border-muted: oklch(0.892 0.015 76);
  --border-strong: oklch(0.78 0.024 68);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.41 0.022 58);

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

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

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.53 0.16 32);
  --error-foreground: oklch(0.975 0.012 80);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --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 ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 55 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 55 / 0.09);
  --shadow-lg: 0 18px 44px oklch(0.28 0.03 55 / 0.16);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 340ms;
  --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.185 0.012 52);
  --foreground: oklch(0.938 0.012 80);
  --card: oklch(0.226 0.014 52);
  --card-foreground: oklch(0.938 0.012 80);
  --popover: oklch(0.226 0.014 52);
  --popover-foreground: oklch(0.938 0.012 80);
  --primary: oklch(0.7 0.07 60);
  --primary-foreground: oklch(0.2 0.02 52);
  --secondary: oklch(0.28 0.016 52);
  --secondary-foreground: oklch(0.938 0.012 80);
  --muted: oklch(0.28 0.016 52);
  --muted-foreground: oklch(0.72 0.018 66);
  --accent: oklch(0.28 0.016 52);
  --accent-foreground: oklch(0.938 0.012 80);
  --destructive: oklch(0.66 0.15 32);
  --destructive-foreground: oklch(0.975 0.012 80);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.6 0.06 60);
  --success: oklch(0.68 0.09 140);
  --warning: oklch(0.76 0.11 64);
  --chart-1: oklch(0.7 0.07 60);
  --chart-2: oklch(0.72 0.11 42);
  --chart-3: oklch(0.58 0.05 72);
  --chart-4: oklch(0.8 0.055 88);
  --chart-5: oklch(0.55 0.04 60);
  --sidebar: oklch(0.16 0.011 52);
  --sidebar-foreground: oklch(0.938 0.012 80);
  --sidebar-primary: oklch(0.7 0.07 60);
  --sidebar-primary-foreground: oklch(0.2 0.02 52);
  --sidebar-accent: oklch(0.26 0.015 52);
  --sidebar-accent-foreground: oklch(0.938 0.012 80);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.6 0.06 60);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.013 52);
  --surface-elevated: oklch(0.28 0.016 52);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.78 0.016 72);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.6 0.06 60 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.66 0.15 32);
  --error-foreground: oklch(0.975 0.012 80);
}
