@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');
/* Kalnia + Libre Franklin — used only inside the landing hero's type specimen panel, not app-wide. */
@import url('https://fonts.googleapis.com/css2?family=Kalnia:wght@400;500;600&family=Libre+Franklin:wght@400;500;600&display=swap');

/* IvyOra Display — the brand title face, served from the app's own assets.
   block (with the preloads in root.tsx) keeps titles from painting in a
   fallback serif first and then jumping when IvyOra arrives. */
@font-face {
  font-family: 'IvyOra Display';
  src: url('/assets/fonts/IvyOra-Display-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'IvyOra Display';
  src: url('/assets/fonts/IvyOra-Display-Regular%20(1).woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'IvyOra Display';
  src: url('/assets/fonts/IvyOra%20Display%20Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.975 0.008 85);
  --foreground: oklch(0.2 0.012 60);
  --card: oklch(0.985 0.006 85);
  --card-foreground: oklch(0.2 0.012 60);
  --popover: oklch(0.985 0.006 85);
  --popover-foreground: oklch(0.2 0.012 60);
  --primary: oklch(0.43 0.016 125);
  --primary-foreground: oklch(0.975 0.008 85);
  --secondary: oklch(0.94 0.01 80);
  --secondary-foreground: oklch(0.2 0.012 60);
  --muted: oklch(0.94 0.01 80);
  --muted-foreground: oklch(0.5 0.015 65);
  --accent: oklch(0.93 0.012 80);
  --accent-foreground: oklch(0.2 0.012 60);
  --destructive: oklch(0.5 0.17 25);
  --destructive-foreground: oklch(0.975 0.008 85);
  --border: oklch(0.86 0.014 75);
  --input: oklch(0.86 0.014 75);
  --ring: oklch(0.43 0.016 125);
  --success: oklch(0.52 0.1 150);
  --warning: oklch(0.66 0.13 70);
  --chart-1: oklch(0.43 0.016 125);
  --chart-2: oklch(0.3 0.02 60);
  --chart-3: oklch(0.6 0.06 50);
  --chart-4: oklch(0.72 0.05 75);
  --chart-5: oklch(0.82 0.03 80);
  --sidebar: oklch(0.965 0.009 85);
  --sidebar-foreground: oklch(0.2 0.012 60);
  --sidebar-primary: oklch(0.43 0.016 125);
  --sidebar-primary-foreground: oklch(0.975 0.008 85);
  --sidebar-accent: oklch(0.93 0.012 80);
  --sidebar-accent-foreground: oklch(0.2 0.012 60);
  --sidebar-border: oklch(0.86 0.014 75);
  --sidebar-ring: oklch(0.43 0.016 125);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.01 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.99 0.005 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.93 0.01 80);
  --border-muted: oklch(0.9 0.012 78);
  --border-strong: oklch(0.72 0.016 70);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.38 0.014 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) 14%, 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.43 0.016 125 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.17 25);
  --error-foreground: oklch(0.975 0.008 85);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'IvyOra Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  /* Labels and figures use the body face too; tabular-nums keeps columns aligned */
  --font-mono: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --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 (editorial: hairlines, not shadows) ──────────────── */
  --shadow-sm: 0 0 0 1px oklch(0.2 0.012 60 / 0.06);
  --shadow-md: 0 0 0 1px oklch(0.2 0.012 60 / 0.08);
  --shadow-lg: 0 0 0 1px oklch(0.2 0.012 60 / 0.1), 0 8px 24px oklch(0.2 0.012 60 / 0.06);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --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.17 0.01 60);
  --foreground: oklch(0.93 0.01 85);
  --card: oklch(0.2 0.01 60);
  --card-foreground: oklch(0.93 0.01 85);
  --popover: oklch(0.2 0.01 60);
  --popover-foreground: oklch(0.93 0.01 85);
  --primary: oklch(0.78 0.03 125);
  --primary-foreground: oklch(0.15 0.01 60);
  --secondary: oklch(0.25 0.01 60);
  --secondary-foreground: oklch(0.93 0.01 85);
  --muted: oklch(0.25 0.01 60);
  --muted-foreground: oklch(0.66 0.012 75);
  --accent: oklch(0.25 0.01 60);
  --accent-foreground: oklch(0.93 0.01 85);
  --destructive: oklch(0.68 0.17 25);
  --destructive-foreground: oklch(0.15 0.01 60);
  --border: oklch(1 0.01 85 / 12%);
  --input: oklch(1 0.01 85 / 16%);
  --ring: oklch(0.78 0.03 125);
  --success: oklch(0.7 0.1 150);
  --warning: oklch(0.78 0.13 70);
  --chart-1: oklch(0.78 0.03 125);
  --chart-2: oklch(0.85 0.02 80);
  --chart-3: oklch(0.7 0.06 50);
  --chart-4: oklch(0.55 0.05 75);
  --chart-5: oklch(0.4 0.03 80);
  --sidebar: oklch(0.19 0.01 60);
  --sidebar-foreground: oklch(0.93 0.01 85);
  --sidebar-primary: oklch(0.78 0.03 125);
  --sidebar-primary-foreground: oklch(0.15 0.01 60);
  --sidebar-accent: oklch(0.25 0.01 60);
  --sidebar-accent-foreground: oklch(0.93 0.01 85);
  --sidebar-border: oklch(1 0.01 85 / 12%);
  --sidebar-ring: oklch(0.78 0.03 125);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.2 0.01 60);
  --surface-elevated: oklch(0.24 0.01 60);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.76 0.012 80);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.78 0.03 125 / 0.45);

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

/* Stencil Tweaks */
:root:not(.dark) {
  --background: #F1F0EF;
  --foreground: #171714;
  --primary: #4E5147;
  --border: #615C55;
  --primary-hover: #30322C;
}
:root {
  --font-display: 'IvyOra Display', serif;
  --font-weight-display: 600;
  --radius: 3px;
}
/* /Stencil Tweaks */