/* Stencil Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');
/* /Stencil Fonts */

:root {
  /* ── shadcn base tokens — warm cream paper, moss primary ───────── */
  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.27 0.03 60);
  --card: oklch(0.99 0.008 88);
  --card-foreground: oklch(0.27 0.03 60);
  --popover: oklch(0.99 0.008 88);
  --popover-foreground: oklch(0.27 0.03 60);
  --primary: oklch(0.45 0.085 140);
  --primary-foreground: oklch(0.98 0.012 95);
  --secondary: oklch(0.93 0.035 25);
  --secondary-foreground: oklch(0.36 0.07 28);
  --muted: oklch(0.945 0.015 80);
  --muted-foreground: oklch(0.48 0.03 65);
  --accent: oklch(0.935 0.03 130);
  --accent-foreground: oklch(0.32 0.06 140);
  --destructive: oklch(0.55 0.16 30);
  --destructive-foreground: oklch(0.985 0.01 90);
  --border: oklch(0.88 0.02 80);
  --input: oklch(0.88 0.02 80);
  --ring: oklch(0.6 0.08 140);
  --success: oklch(0.52 0.1 145);
  --warning: oklch(0.5 0.12 70);
  --chart-1: oklch(0.55 0.1 140);
  --chart-2: oklch(0.65 0.13 45);
  --chart-3: oklch(0.78 0.08 20);
  --chart-4: oklch(0.85 0.11 95);
  --chart-5: oklch(0.72 0.08 300);
  --sidebar: oklch(0.955 0.015 85);
  --sidebar-foreground: oklch(0.27 0.03 60);
  --sidebar-primary: oklch(0.45 0.085 140);
  --sidebar-primary-foreground: oklch(0.98 0.012 95);
  --sidebar-accent: oklch(0.92 0.025 110);
  --sidebar-accent-foreground: oklch(0.3 0.05 140);
  --sidebar-border: oklch(0.88 0.02 80);
  --sidebar-ring: oklch(0.6 0.08 140);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.018 85);
  --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.006 90);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.935 0.015 82);
  --border-muted: oklch(0.91 0.018 80);
  --border-strong: oklch(0.78 0.03 75);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.03 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) 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.08 140 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.16 30);
  --error-foreground: oklch(0.985 0.01 90);

  /* ── radius — soft card corners, letterpress-rounded ──────────── */
  --radius: 0.625rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, ui-serif, serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace;
  --font-weight-display: 500;
  --line-height-display: 1.08;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — soft, warm paper lift ──────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(74, 56, 30, 0.06), 0 1px 1px rgba(74, 56, 30, 0.04);
  --shadow-md: 0 6px 16px rgba(74, 56, 30, 0.1), 0 2px 4px rgba(74, 56, 30, 0.05);
  --shadow-lg: 0 18px 40px rgba(74, 56, 30, 0.16), 0 4px 10px rgba(74, 56, 30, 0.06);

  /* ── motion — gentle spring ───────────────────────────────────── */
  --duration-fast: 140ms;
  --duration-normal: 260ms;
  --duration-slow: 480ms;
  --ease-standard: cubic-bezier(0.34, 1.2, 0.64, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens — deep moss evening, cream ink ─────────── */
  --background: oklch(0.21 0.015 75);
  --foreground: oklch(0.95 0.02 85);
  --card: oklch(0.25 0.018 75);
  --card-foreground: oklch(0.95 0.02 85);
  --popover: oklch(0.25 0.018 75);
  --popover-foreground: oklch(0.95 0.02 85);
  --primary: oklch(0.76 0.1 140);
  --primary-foreground: oklch(0.2 0.04 140);
  --secondary: oklch(0.32 0.04 25);
  --secondary-foreground: oklch(0.93 0.03 25);
  --muted: oklch(0.29 0.015 75);
  --muted-foreground: oklch(0.74 0.025 80);
  --accent: oklch(0.31 0.035 135);
  --accent-foreground: oklch(0.92 0.04 130);
  --destructive: oklch(0.7 0.16 30);
  --destructive-foreground: oklch(0.15 0.03 30);
  --border: oklch(1 0 0 / 11%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.7 0.09 140);
  --success: oklch(0.74 0.11 145);
  --warning: oklch(0.8 0.12 75);
  --chart-1: oklch(0.72 0.1 140);
  --chart-2: oklch(0.72 0.13 45);
  --chart-3: oklch(0.8 0.08 20);
  --chart-4: oklch(0.86 0.11 95);
  --chart-5: oklch(0.75 0.08 300);
  --sidebar: oklch(0.18 0.015 75);
  --sidebar-foreground: oklch(0.95 0.02 85);
  --sidebar-primary: oklch(0.76 0.1 140);
  --sidebar-primary-foreground: oklch(0.2 0.04 140);
  --sidebar-accent: oklch(0.28 0.025 120);
  --sidebar-accent-foreground: oklch(0.92 0.04 130);
  --sidebar-border: oklch(1 0 0 / 11%);
  --sidebar-ring: oklch(0.7 0.09 140);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.24 0.015 75);
  --surface-elevated: oklch(0.3 0.02 75);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 22%);

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

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.7 0.09 140 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.16 30);
  --error-foreground: oklch(0.15 0.03 30);
}

/* Stencil Tweaks */
:root:not(.dark) {
  --background: #fdfdfd;
  --card: #f3f0e6;
  --primary: #297d1a;
}
:root {
  --radius: 0.25rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --font-weight-display: 400;
  --spacing-base: 0.35rem;
}
/* /Stencil Tweaks */