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

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.977 0.013 215);
  --foreground: oklch(0.37 0.055 222);
  --card: oklch(0.997 0.004 215);
  --card-foreground: oklch(0.37 0.055 222);
  --popover: oklch(0.997 0.004 215);
  --popover-foreground: oklch(0.37 0.055 222);
  --primary: oklch(0.38 0.06 222);
  --primary-foreground: oklch(0.985 0.006 215);
  --secondary: oklch(0.945 0.02 215);
  --secondary-foreground: oklch(0.37 0.055 222);
  --muted: oklch(0.948 0.017 215);
  --muted-foreground: oklch(0.55 0.03 222);
  --accent: oklch(0.945 0.02 215);
  --accent-foreground: oklch(0.37 0.055 222);
  --destructive: oklch(0.6 0.09 35);
  --destructive-foreground: oklch(0.985 0.008 85);
  --border: oklch(0.91 0.022 215);
  --input: oklch(0.91 0.022 215);
  --ring: oklch(0.38 0.06 222);
  --success: oklch(0.6 0.08 160);
  --warning: oklch(0.72 0.1 75);
  --chart-1: oklch(0.38 0.06 222);
  --chart-2: oklch(0.72 0.06 70);
  --chart-3: oklch(0.6 0.08 160);
  --chart-4: oklch(0.75 0.04 245);
  --chart-5: oklch(0.55 0.04 300);
  --sidebar: oklch(0.96 0.016 215);
  --sidebar-foreground: oklch(0.37 0.055 222);
  --sidebar-primary: oklch(0.38 0.06 222);
  --sidebar-primary-foreground: oklch(0.985 0.006 215);
  --sidebar-accent: oklch(0.94 0.02 215);
  --sidebar-accent-foreground: oklch(0.37 0.055 222);
  --sidebar-border: oklch(0.91 0.022 215);
  --sidebar-ring: oklch(0.38 0.06 222);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.957 0.018 215);
  --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.998 0.003 215);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.945 0.016 215);
  --border-muted: oklch(0.93 0.019 215);
  --border-strong: oklch(0.84 0.028 215);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.47 0.042 222);

  /* ── 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.38 0.06 222 / 0.3);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.6 0.09 35);
  --error-foreground: oklch(0.985 0.008 85);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Figtree", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.2;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.7;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.37 0.055 222 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.37 0.055 222 / 0.06);
  --shadow-lg: 0 12px 36px oklch(0.37 0.055 222 / 0.09);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 250ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
  --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 222);
  --foreground: oklch(0.94 0.015 215);
  --card: oklch(0.26 0.028 222);
  --card-foreground: oklch(0.94 0.015 215);
  --popover: oklch(0.26 0.028 222);
  --popover-foreground: oklch(0.94 0.015 215);
  --primary: oklch(0.82 0.06 210);
  --primary-foreground: oklch(0.22 0.03 222);
  --secondary: oklch(0.3 0.03 222);
  --secondary-foreground: oklch(0.94 0.015 215);
  --muted: oklch(0.3 0.03 222);
  --muted-foreground: oklch(0.7 0.025 215);
  --accent: oklch(0.3 0.03 222);
  --accent-foreground: oklch(0.94 0.015 215);
  --destructive: oklch(0.7 0.09 35);
  --destructive-foreground: oklch(0.2 0.02 250);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.82 0.06 210);
  --success: oklch(0.7 0.08 160);
  --warning: oklch(0.78 0.1 75);
  --chart-1: oklch(0.82 0.06 210);
  --chart-2: oklch(0.78 0.06 70);
  --chart-3: oklch(0.7 0.08 160);
  --chart-4: oklch(0.6 0.04 245);
  --chart-5: oklch(0.65 0.04 300);
  --sidebar: oklch(0.24 0.026 222);
  --sidebar-foreground: oklch(0.94 0.015 215);
  --sidebar-primary: oklch(0.82 0.06 210);
  --sidebar-primary-foreground: oklch(0.22 0.03 222);
  --sidebar-accent: oklch(0.3 0.03 222);
  --sidebar-accent-foreground: oklch(0.94 0.015 215);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.82 0.06 210);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.245 0.026 222);
  --surface-elevated: oklch(0.3 0.03 222);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.8 0.02 215);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.82 0.06 210 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.09 35);
  --error-foreground: oklch(0.2 0.02 250);
}

/* Stencil Tweaks */
@font-face {
  font-family: 'AdvercaseFont Regular';
  src: url('/assets/fonts/AdvercaseFont-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: 'Manrope', sans-serif;
  --font-sans: 'Manrope', sans-serif;
}
/* /Stencil Tweaks */