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

:root {
  /* ── shadcn base tokens ─── warm botanical: terracotta + sage on cream ─── */
  --background: oklch(0.972 0.009 82);
  --foreground: oklch(0.27 0.021 58);
  --card: oklch(0.988 0.006 86);
  --card-foreground: oklch(0.27 0.021 58);
  --popover: oklch(0.988 0.006 86);
  --popover-foreground: oklch(0.27 0.021 58);
  --primary: oklch(0.582 0.128 42);
  --primary-foreground: oklch(0.985 0.012 84);
  --secondary: oklch(0.93 0.022 138);
  --secondary-foreground: oklch(0.36 0.035 135);
  --muted: oklch(0.945 0.013 80);
  --muted-foreground: oklch(0.52 0.022 60);
  --accent: oklch(0.925 0.026 140);
  --accent-foreground: oklch(0.34 0.035 135);
  --destructive: oklch(0.55 0.2 27);
  --destructive-foreground: oklch(0.985 0.012 84);
  --border: oklch(0.9 0.014 74);
  --input: oklch(0.9 0.014 74);
  --ring: oklch(0.582 0.128 42);
  --success: oklch(0.6 0.11 142);
  --warning: oklch(0.72 0.13 68);
  --chart-1: oklch(0.582 0.128 42);
  --chart-2: oklch(0.6 0.075 140);
  --chart-3: oklch(0.72 0.13 68);
  --chart-4: oklch(0.5 0.05 250);
  --chart-5: oklch(0.66 0.11 22);
  --sidebar: oklch(0.955 0.012 80);
  --sidebar-foreground: oklch(0.27 0.021 58);
  --sidebar-primary: oklch(0.582 0.128 42);
  --sidebar-primary-foreground: oklch(0.985 0.012 84);
  --sidebar-accent: oklch(0.925 0.026 140);
  --sidebar-accent-foreground: oklch(0.34 0.035 135);
  --sidebar-border: oklch(0.9 0.014 74);
  --sidebar-ring: oklch(0.582 0.128 42);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.952 0.013 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.995 0.005 86);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.935 0.011 78);
  --border-muted: oklch(0.915 0.013 76);
  --border-strong: oklch(0.8 0.02 66);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.025 60);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 90%, 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) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.582 0.128 42 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.2 27);
  --error-foreground: oklch(0.985 0.012 84);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'Fraunces', ui-serif, Georgia, Cambria, serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.08;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --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 ─── warm charcoal + fired-clay glow ─── */
  --background: oklch(0.2 0.012 55);
  --foreground: oklch(0.94 0.01 80);
  --card: oklch(0.245 0.014 52);
  --card-foreground: oklch(0.94 0.01 80);
  --popover: oklch(0.245 0.014 52);
  --popover-foreground: oklch(0.94 0.01 80);
  --primary: oklch(0.66 0.132 46);
  --primary-foreground: oklch(0.18 0.02 50);
  --secondary: oklch(0.32 0.028 138);
  --secondary-foreground: oklch(0.92 0.02 130);
  --muted: oklch(0.29 0.014 52);
  --muted-foreground: oklch(0.7 0.016 70);
  --accent: oklch(0.34 0.03 140);
  --accent-foreground: oklch(0.92 0.02 130);
  --destructive: oklch(0.62 0.19 25);
  --destructive-foreground: oklch(0.96 0.01 80);
  --border: oklch(1 0 0 / 11%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.66 0.132 46);
  --success: oklch(0.68 0.12 142);
  --warning: oklch(0.78 0.13 68);
  --chart-1: oklch(0.66 0.132 46);
  --chart-2: oklch(0.68 0.08 140);
  --chart-3: oklch(0.78 0.13 68);
  --chart-4: oklch(0.62 0.08 250);
  --chart-5: oklch(0.7 0.12 22);
  --sidebar: oklch(0.225 0.013 53);
  --sidebar-foreground: oklch(0.94 0.01 80);
  --sidebar-primary: oklch(0.66 0.132 46);
  --sidebar-primary-foreground: oklch(0.18 0.02 50);
  --sidebar-accent: oklch(0.34 0.03 140);
  --sidebar-accent-foreground: oklch(0.92 0.02 130);
  --sidebar-border: oklch(1 0 0 / 11%);
  --sidebar-ring: oklch(0.66 0.132 46);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.23 0.013 54);
  --surface-elevated: oklch(0.285 0.015 52);

  /* ── 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.74 0.015 72);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.66 0.132 46 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.62 0.19 25);
  --error-foreground: oklch(0.96 0.01 80);
}
