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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.23 0.03 240);
  --card: oklch(0.94 0 0);
  --card-foreground: oklch(0.23 0.03 240);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.23 0.03 240);
  --primary: oklch(0.434 0.085 248);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.935 0 0);
  --secondary-foreground: oklch(0.31 0.08 245);
  --muted: oklch(0.94 0 0);
  --muted-foreground: oklch(0.5 0.03 240);
  --accent: oklch(0.9 0.005 240);
  --accent-foreground: oklch(0.23 0.03 240);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.85 0.005 240);
  --input: oklch(0.8 0.01 240);
  --ring: oklch(0.68 0.118 212);
  --success: oklch(0.47 0.09 160);
  --success-soft: oklch(0.94 0.02 160);
  --warning: oklch(0.47 0.1 70);
  --warning-soft: oklch(0.95 0.03 80);
  --chart-1: oklch(0.271 0.045 251);
  --chart-2: oklch(0.373 0.063 241);
  --chart-3: oklch(0.476 0.082 232);
  --chart-4: oklch(0.578 0.1 222);
  --chart-5: oklch(0.68 0.118 212);
  --sidebar: oklch(0.271 0.045 251);
  --sidebar-foreground: oklch(0.93 0.01 240);
  --sidebar-primary: oklch(0.68 0.118 212);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.43 0.09 235);
  --sidebar-accent-foreground: oklch(0.756 0.032 239);
  --sidebar-border: oklch(0.38 0.08 240);
  --sidebar-ring: oklch(0.55 0.11 225);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.94 0 0);
  --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.92 0.003 240);
  --border-muted: oklch(0.89 0.004 240);
  --border-strong: oklch(0.6 0.03 240);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.04 240);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: oklch(0.43 0.09 235);
  --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) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.68 0.118 212 / 0.4);

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

  /* ── radius — sharp square corners everywhere ─────────────────── */
  --radius: 0rem;
  --radius-none: 0rem;
  --radius-sm: 0rem;
  --radius-lg: 0rem;
  --radius-xl: 0rem;
  --radius-full: 0rem;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: Sora, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 300;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — none by brand ──────────────────────────────────── */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 160ms;
  --duration-slow: 260ms;
  --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.17 0.02 240);
  --foreground: oklch(0.93 0.01 240);
  --card: oklch(0.23 0.03 240);
  --card-foreground: oklch(0.93 0.01 240);
  --popover: oklch(0.23 0.03 240);
  --popover-foreground: oklch(0.93 0.01 240);
  --primary: oklch(0.7 0.1 225);
  --primary-foreground: oklch(0.15 0.03 240);
  --secondary: oklch(0.27 0.03 240);
  --secondary-foreground: oklch(0.93 0.01 240);
  --muted: oklch(0.27 0.03 240);
  --muted-foreground: oklch(0.68 0.03 240);
  --accent: oklch(0.29 0.04 240);
  --accent-foreground: oklch(0.93 0.01 240);
  --destructive: oklch(0.68 0.18 25);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.34 0.03 240);
  --input: oklch(0.38 0.03 240);
  --ring: oklch(0.7 0.1 225);
  --success: oklch(0.78 0.1 160);
  --success-soft: oklch(0.3 0.04 160);
  --warning: oklch(0.82 0.11 80);
  --warning-soft: oklch(0.32 0.05 75);
  --chart-1: oklch(0.7 0.1 225);
  --chart-2: oklch(0.6 0.1 230);
  --chart-3: oklch(0.5 0.09 235);
  --chart-4: oklch(0.8 0.06 220);
  --chart-5: oklch(0.88 0.03 220);
  --sidebar: oklch(0.13 0.02 240);
  --sidebar-foreground: oklch(0.88 0.01 240);
  --sidebar-primary: oklch(0.7 0.1 225);
  --sidebar-primary-foreground: oklch(0.13 0.02 240);
  --sidebar-accent: oklch(0.23 0.03 240);
  --sidebar-accent-foreground: oklch(0.99 0 0);
  --sidebar-border: oklch(0.25 0.03 240);
  --sidebar-ring: oklch(0.7 0.1 225);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.2 0.02 240);
  --surface-elevated: oklch(0.27 0.03 240);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.26 0.03 240);
  --border-muted: oklch(0.3 0.03 240);
  --border-strong: oklch(0.5 0.03 240);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.78 0.02 240);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.7 0.1 225 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.18 25);
  --error-foreground: oklch(0.99 0 0);
}
