/* Stencil Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');
/* /Stencil Fonts */

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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #F5E2D0;
  --foreground: oklch(0.21 0.005 60);
  --card: oklch(0.955 0.025 72);
  --card-foreground: oklch(0.21 0.005 60);
  --popover: oklch(0.965 0.02 72);
  --popover-foreground: oklch(0.21 0.005 60);
  --primary: oklch(0.55 0.2 30);
  --primary-foreground: oklch(0.985 0.01 70);
  --secondary: oklch(0.76 0.11 340);
  --secondary-foreground: oklch(0.21 0.005 60);
  --muted: oklch(0.88 0.04 68);
  --muted-foreground: oklch(0.52 0.06 60);
  --accent: oklch(0.88 0.04 68);
  --accent-foreground: oklch(0.21 0.005 60);
  --destructive: oklch(0.55 0.2 28);
  --destructive-foreground: oklch(0.985 0.01 70);
  --border: oklch(0.80 0.055 65);
  --input: oklch(0.80 0.055 65);
  --ring: oklch(0.65 0.21 30);
  --success: oklch(0.55 0.11 150);
  --warning: oklch(0.70 0.13 70);
  /* darker versions for words, clearing 4.5:1 on cream and card */
  --success-text: oklch(0.45 0.11 150);
  --warning-text: oklch(0.48 0.12 70);
  --chart-1: oklch(0.65 0.21 30);
  --chart-2: oklch(0.76 0.11 340);
  --chart-3: oklch(0.70 0.07 65);
  --chart-4: oklch(0.21 0.005 60);
  --chart-5: oklch(0.55 0.11 150);
  --sidebar: oklch(0.89 0.045 66);
  --sidebar-foreground: oklch(0.21 0.005 60);
  --sidebar-primary: oklch(0.21 0.005 60);
  --sidebar-primary-foreground: oklch(0.985 0.01 70);
  --sidebar-accent: oklch(0.84 0.05 66);
  --sidebar-accent-foreground: oklch(0.21 0.005 60);
  --sidebar-border: oklch(0.80 0.055 65);
  --sidebar-ring: oklch(0.65 0.21 30);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.89 0.045 66);
  --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(0.97 0.018 72);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.87 0.04 66);
  --border-muted: oklch(0.84 0.05 66);
  --border-strong: oklch(0.70 0.07 65);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.38 0.02 60);

  /* ── 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) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── primary as text (darker coral that clears 4.5:1 on cream/white,
        for small labels & links; --primary stays for icons & fills) ─ */
  --primary-text: oklch(0.5 0.18 30);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.65 0.21 30 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.2 28);
  --error-foreground: oklch(0.985 0.01 70);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 1rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.125rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Bricolage Grotesque;
  --font-sans: DM Sans;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.05;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows (flat brand: effectively none) ───────────────────── */
  --shadow-sm: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-md: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-lg: 0 0 0 0 rgba(0, 0, 0, 0);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --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.21 0.008 60);
  --foreground: oklch(0.93 0.03 70);
  --card: oklch(0.25 0.01 60);
  --card-foreground: oklch(0.93 0.03 70);
  --popover: oklch(0.27 0.01 60);
  --popover-foreground: oklch(0.93 0.03 70);
  --primary: oklch(0.70 0.19 30);
  --primary-foreground: oklch(0.15 0.005 60);
  --secondary: oklch(0.72 0.11 340);
  --secondary-foreground: oklch(0.15 0.005 60);
  --muted: oklch(0.30 0.012 60);
  --muted-foreground: oklch(0.70 0.05 65);
  --accent: oklch(0.30 0.012 60);
  --accent-foreground: oklch(0.93 0.03 70);
  --destructive: oklch(0.65 0.19 28);
  --destructive-foreground: oklch(0.985 0.01 70);
  --border: oklch(0.38 0.025 62);
  --input: oklch(0.38 0.025 62);
  --ring: oklch(0.70 0.19 30);
  --success: oklch(0.70 0.11 150);
  --warning: oklch(0.78 0.13 75);
  --success-text: oklch(0.70 0.11 150);
  --warning-text: oklch(0.78 0.13 75);
  --chart-1: oklch(0.70 0.19 30);
  --chart-2: oklch(0.72 0.11 340);
  --chart-3: oklch(0.70 0.07 65);
  --chart-4: oklch(0.93 0.03 70);
  --chart-5: oklch(0.70 0.11 150);
  --sidebar: oklch(0.18 0.008 60);
  --sidebar-foreground: oklch(0.93 0.03 70);
  --sidebar-primary: oklch(0.70 0.19 30);
  --sidebar-primary-foreground: oklch(0.15 0.005 60);
  --sidebar-accent: oklch(0.28 0.012 60);
  --sidebar-accent-foreground: oklch(0.93 0.03 70);
  --sidebar-border: oklch(0.38 0.025 62);
  --sidebar-ring: oklch(0.70 0.19 30);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.18 0.008 60);
  --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(0.30 0.012 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.28 0.015 60);
  --border-muted: oklch(0.32 0.02 60);
  --border-strong: oklch(0.50 0.04 62);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.80 0.035 68);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 22%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 12%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── primary as text (dark mode: lighter coral reads on dark) ─── */
  --primary-text: oklch(0.78 0.16 30);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.70 0.19 30 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.65 0.19 28);
  --error-foreground: oklch(0.985 0.01 70);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.125rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Fraunces, 'Instrument Serif', Georgia, ui-serif, serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.05;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-md: 0 0 0 0 rgba(0, 0, 0, 0);
  --shadow-lg: 0 0 0 0 rgba(0, 0, 0, 0);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --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;
}

/* Stencil Tweaks */
@layer base {
  h1, h2, h3, h4 { font-weight: var(--font-weight-display); }
}

/* /Stencil Tweaks */