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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.995 0.004 330);
  --foreground: oklch(0.33 0.045 200);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.33 0.045 200);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.33 0.045 200);
  --primary: oklch(0.56 0.21 357);
  --primary-foreground: oklch(0.995 0.004 330);
  --secondary: oklch(0.95 0.035 325);
  --secondary-foreground: oklch(0.33 0.045 200);
  --muted: oklch(0.965 0.015 330);
  --muted-foreground: oklch(0.48 0.03 205);
  --accent: oklch(0.955 0.025 330);
  --accent-foreground: oklch(0.33 0.045 200);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.99 0.006 85);
  --border: oklch(0.9 0.03 325);
  --input: oklch(0.88 0.03 325);
  --ring: oklch(0.56 0.21 357);
  --success: oklch(0.5 0.1 175);
  --warning: oklch(0.72 0.14 80);
  /* Pastel set from the reference map: teal, lavender, butter, peach, bubblegum */
  --chart-1: oklch(0.84 0.09 210);
  --chart-2: oklch(0.84 0.07 285);
  --chart-3: oklch(0.94 0.08 105);
  --chart-4: oklch(0.87 0.06 45);
  --chart-5: oklch(0.83 0.13 330);
  --sidebar: oklch(0.97 0.02 330);
  --sidebar-foreground: oklch(0.33 0.045 200);
  --sidebar-primary: oklch(0.56 0.21 357);
  --sidebar-primary-foreground: oklch(0.995 0.004 330);
  --sidebar-accent: oklch(0.93 0.04 328);
  --sidebar-accent-foreground: oklch(0.33 0.045 200);
  --sidebar-border: oklch(0.9 0.03 325);
  --sidebar-ring: oklch(0.56 0.21 357);

  /* ── brand bands ──────────────────────────────────────────────── */
  --hero: oklch(0.79 0.17 326);
  --hero-foreground: oklch(0.27 0.045 200);
  --ink: oklch(0.27 0.045 200);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.97 0.02 330);
  --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.94 0.02 328);
  --border-muted: oklch(0.92 0.025 326);
  --border-strong: oklch(0.75 0.05 320);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.035 205);

  /* ── 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.56 0.21 357 / 0.4);

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

  /* ── 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, "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-bubbly: Chewy, "DM Sans", ui-rounded, system-ui, sans-serif;
  --font-weight-display: 500;
  --line-height-display: 1.1;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(30, 58, 58, 0.06);
  --shadow-md: 0 4px 14px rgba(30, 58, 58, 0.1);
  --shadow-lg: 0 14px 36px rgba(30, 58, 58, 0.14);

  /* ── 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 ───────────────────────────────────────── */
  --background: oklch(0.22 0.03 210);
  --foreground: oklch(0.96 0.012 330);
  --card: oklch(0.26 0.032 210);
  --card-foreground: oklch(0.96 0.012 330);
  --popover: oklch(0.26 0.032 210);
  --popover-foreground: oklch(0.96 0.012 330);
  --primary: oklch(0.74 0.17 345);
  --primary-foreground: oklch(0.2 0.04 350);
  --secondary: oklch(0.31 0.035 210);
  --secondary-foreground: oklch(0.96 0.012 330);
  --muted: oklch(0.31 0.035 210);
  --muted-foreground: oklch(0.76 0.03 300);
  --accent: oklch(0.32 0.04 220);
  --accent-foreground: oklch(0.96 0.012 330);
  --destructive: oklch(0.68 0.17 25);
  --destructive-foreground: oklch(0.15 0.03 25);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.74 0.17 345);
  --success: oklch(0.75 0.11 175);
  --warning: oklch(0.8 0.14 82);
  --chart-1: oklch(0.8 0.09 210);
  --chart-2: oklch(0.8 0.07 285);
  --chart-3: oklch(0.9 0.08 105);
  --chart-4: oklch(0.83 0.06 45);
  --chart-5: oklch(0.79 0.13 330);
  --sidebar: oklch(0.19 0.028 210);
  --sidebar-foreground: oklch(0.96 0.012 330);
  --sidebar-primary: oklch(0.74 0.17 345);
  --sidebar-primary-foreground: oklch(0.2 0.04 350);
  --sidebar-accent: oklch(0.3 0.035 210);
  --sidebar-accent-foreground: oklch(0.96 0.012 330);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.74 0.17 345);

  /* ── brand bands ──────────────────────────────────────────────── */
  --hero: oklch(0.5 0.17 330);
  --hero-foreground: oklch(0.98 0.01 330);
  --ink: oklch(0.27 0.045 200);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.25 0.03 210);
  --surface-elevated: oklch(0.31 0.035 210);

  /* ── 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.84 0.02 300);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.74 0.17 345 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.17 25);
  --error-foreground: oklch(0.15 0.03 25);
}

