/* Stencil Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:ital,wght@0,400;0,500;0,600;0,700;1,400&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: oklch(0.982 0.012 85);
  --foreground: oklch(0.27 0.03 290);
  --card: oklch(0.995 0.006 85);
  --card-foreground: oklch(0.27 0.03 290);
  --popover: oklch(0.995 0.006 85);
  --popover-foreground: oklch(0.27 0.03 290);
  --primary: oklch(0.5 0.15 282);
  --primary-foreground: oklch(0.99 0.005 85);
  --secondary: oklch(0.94 0.03 290);
  --secondary-foreground: oklch(0.32 0.06 285);
  --muted: oklch(0.95 0.015 80);
  --muted-foreground: oklch(0.46 0.035 290);
  --accent: oklch(0.945 0.025 290);
  --accent-foreground: oklch(0.3 0.05 285);
  --destructive: oklch(0.56 0.18 25);
  --destructive-foreground: oklch(0.99 0.005 85);
  --border: oklch(0.9 0.02 300);
  --input: oklch(0.88 0.022 300);
  --ring: oklch(0.6 0.13 282);
  --success: oklch(0.52 0.12 150);
  --warning: oklch(0.6 0.13 70);
  --chart-1: oklch(0.6 0.14 282);
  --chart-2: oklch(0.75 0.1 310);
  --chart-3: oklch(0.8 0.08 220);
  --chart-4: oklch(0.82 0.09 60);
  --chart-5: oklch(0.7 0.1 160);
  --sidebar: oklch(0.965 0.015 300);
  --sidebar-foreground: oklch(0.27 0.03 290);
  --sidebar-primary: oklch(0.5 0.15 282);
  --sidebar-primary-foreground: oklch(0.99 0.005 85);
  --sidebar-accent: oklch(0.93 0.03 290);
  --sidebar-accent-foreground: oklch(0.3 0.05 285);
  --sidebar-border: oklch(0.9 0.02 300);
  --sidebar-ring: oklch(0.6 0.13 282);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.96 0.02 300);
  --surface-hover:   color-mix(in srgb, var(--primary) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--primary) 11%, var(--background));
  --surface-elevated: oklch(1 0.004 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.95 0.012 300);
  --border-muted: oklch(0.93 0.016 300);
  --border-strong: oklch(0.8 0.035 295);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.035 290);

  /* ── 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) 16%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 9%,  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.6 0.13 282 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.17 25);
  --error-foreground: oklch(0.99 0.005 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Instrument Serif;
  --font-sans: Raleway;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.4 0.08 290 / 0.06);
  --shadow-md: 0 6px 18px oklch(0.4 0.08 290 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.4 0.08 290 / 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 520ms;
  --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.025 290);
  --foreground: oklch(0.95 0.012 85);
  --card: oklch(0.26 0.028 290);
  --card-foreground: oklch(0.95 0.012 85);
  --popover: oklch(0.26 0.028 290);
  --popover-foreground: oklch(0.95 0.012 85);
  --primary: oklch(0.8 0.1 282);
  --primary-foreground: oklch(0.22 0.04 285);
  --secondary: oklch(0.32 0.04 290);
  --secondary-foreground: oklch(0.93 0.02 290);
  --muted: oklch(0.3 0.025 290);
  --muted-foreground: oklch(0.76 0.03 290);
  --accent: oklch(0.32 0.04 290);
  --accent-foreground: oklch(0.95 0.012 85);
  --destructive: oklch(0.7 0.17 25);
  --destructive-foreground: oklch(0.18 0.02 25);
  --border: oklch(1 0.01 290 / 12%);
  --input: oklch(1 0.01 290 / 16%);
  --ring: oklch(0.72 0.1 282);
  --success: oklch(0.76 0.12 150);
  --warning: oklch(0.82 0.12 75);
  --chart-1: oklch(0.78 0.11 282);
  --chart-2: oklch(0.72 0.1 310);
  --chart-3: oklch(0.75 0.08 220);
  --chart-4: oklch(0.8 0.09 60);
  --chart-5: oklch(0.72 0.1 160);
  --sidebar: oklch(0.24 0.028 290);
  --sidebar-foreground: oklch(0.95 0.012 85);
  --sidebar-primary: oklch(0.8 0.1 282);
  --sidebar-primary-foreground: oklch(0.22 0.04 285);
  --sidebar-accent: oklch(0.32 0.04 290);
  --sidebar-accent-foreground: oklch(0.95 0.012 85);
  --sidebar-border: oklch(1 0.01 290 / 12%);
  --sidebar-ring: oklch(0.72 0.1 282);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.25 0.03 290);
  --surface-hover:   color-mix(in srgb, var(--primary) 8%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--primary) 14%, var(--background));
  --surface-elevated: oklch(0.3 0.03 290);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0.01 290 / 6%);
  --border-muted: oklch(1 0.01 290 / 9%);
  --border-strong: oklch(1 0.01 290 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.02 290);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.72 0.1 282 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.16 25);
  --error-foreground: oklch(0.18 0.02 25);

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.4);
}

/* Stencil Tweaks */
/* /Stencil Tweaks */