@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
/* The engine's twelve named faces, one representative web font each, so the Brand
   Kit picker can render every option in its own character. Loaded lazily by the
   browser — only fetched on the screens that actually render these names. */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Playfair+Display:wght@600&family=DM+Sans:wght@600&family=Fraunces:opsz,wght@9..144,600&family=Cormorant+Garamond:wght@600&family=Space+Grotesk:wght@600&family=Spectral:wght@600&family=Baloo+2:wght@600&family=Work+Sans:wght@600&family=Nunito:wght@700&family=Anton&family=Lora:wght@600&display=swap');

:root {
  /* Remi is light-only — never follow the device's dark preference. This keeps
     native controls, scrollbars, autofill and the initial paint on light. */
  color-scheme: light;

  /* ── shadcn base tokens ───────────────────────────────────────── */
  /* Brand: purple #8C2A8C · olive #9CAB3C · text #2E2430 · bg #FDFBFD */
  --background: oklch(0.991 0.003 325);
  --foreground: oklch(0.276 0.028 321);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.276 0.028 321);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.276 0.028 321);
  --primary: oklch(0.472 0.177 328);
  --primary-foreground: oklch(0.991 0.003 325);
  --secondary: oklch(0.955 0.006 325);
  --secondary-foreground: oklch(0.32 0.03 322);
  --muted: oklch(0.958 0.005 325);
  --muted-foreground: oklch(0.52 0.022 320);
  --accent: oklch(0.955 0.014 328);
  --accent-foreground: oklch(0.472 0.177 328);
  --destructive: oklch(0.577 0.222 25);
  --destructive-foreground: oklch(0.991 0.003 325);
  --border: oklch(0.912 0.006 325);
  --input: oklch(0.912 0.006 325);
  --ring: oklch(0.472 0.177 328);
  --success: oklch(0.708 0.135 116);
  --warning: oklch(0.77 0.135 74);
  --warning-foreground: oklch(0.44 0.09 66);
  --chart-1: oklch(0.472 0.177 328);
  --chart-2: oklch(0.708 0.135 116);
  --chart-3: oklch(0.62 0.14 300);
  --chart-4: oklch(0.77 0.135 74);
  --chart-5: oklch(0.58 0.1 340);
  --sidebar: oklch(0.985 0.003 325);
  --sidebar-foreground: oklch(0.276 0.028 321);
  --sidebar-primary: oklch(0.472 0.177 328);
  --sidebar-primary-foreground: oklch(0.991 0.003 325);
  --sidebar-accent: oklch(0.955 0.014 328);
  --sidebar-accent-foreground: oklch(0.472 0.177 328);
  --sidebar-border: oklch(0.912 0.006 325);
  --sidebar-ring: oklch(0.472 0.177 328);

  /* ── olive — secondary brand colour (Strong badge, positive states) */
  --olive: oklch(0.708 0.135 116);
  --olive-foreground: oklch(0.28 0.05 118);
  --olive-muted: color-mix(in srgb, var(--olive) 18%, var(--background));
  --olive-soft:  color-mix(in srgb, var(--olive) 10%, var(--background));

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.972 0.005 325);
  --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(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.95 0.005 325);
  --border-muted: oklch(0.93 0.006 325);
  --border-strong: oklch(0.85 0.008 325);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.024 321);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, black);
  --primary-muted: color-mix(in srgb, var(--primary) 15%, 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.472 0.177 328 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.577 0.222 25);
  --error-foreground: oklch(0.991 0.003 325);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.625rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --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.19 0.018 320);
  --foreground: oklch(0.955 0.004 325);
  --card: oklch(0.235 0.02 320);
  --card-foreground: oklch(0.955 0.004 325);
  --popover: oklch(0.235 0.02 320);
  --popover-foreground: oklch(0.955 0.004 325);
  --primary: oklch(0.68 0.16 328);
  /* White on purple — the sign-in / create-account buttons read clearly instead
     of dark-purple text on purple. */
  --primary-foreground: oklch(0.991 0.003 325);
  --secondary: oklch(0.3 0.022 320);
  --secondary-foreground: oklch(0.955 0.004 325);
  --muted: oklch(0.3 0.022 320);
  --muted-foreground: oklch(0.72 0.02 322);
  --accent: oklch(0.34 0.05 328);
  --accent-foreground: oklch(0.92 0.02 328);
  --destructive: oklch(0.66 0.19 25);
  --destructive-foreground: oklch(0.98 0.004 325);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.68 0.16 328);
  --success: oklch(0.75 0.14 118);
  --warning: oklch(0.82 0.14 74);
  --warning-foreground: oklch(0.9 0.06 74);
  --chart-1: oklch(0.68 0.16 328);
  --chart-2: oklch(0.75 0.14 118);
  --chart-3: oklch(0.7 0.13 300);
  --chart-4: oklch(0.82 0.14 74);
  --chart-5: oklch(0.7 0.1 340);
  --sidebar: oklch(0.235 0.02 320);
  --sidebar-foreground: oklch(0.955 0.004 325);
  --sidebar-primary: oklch(0.68 0.16 328);
  --sidebar-primary-foreground: oklch(0.18 0.02 320);
  --sidebar-accent: oklch(0.34 0.05 328);
  --sidebar-accent-foreground: oklch(0.92 0.02 328);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.68 0.16 328);

  /* ── olive ────────────────────────────────────────────────────── */
  --olive: oklch(0.75 0.14 118);
  --olive-foreground: oklch(0.2 0.03 118);
  --olive-muted: color-mix(in srgb, var(--olive) 22%, var(--background));
  --olive-soft:  color-mix(in srgb, var(--olive) 14%, var(--background));

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.225 0.02 320);
  --surface-elevated: oklch(0.28 0.022 320);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.75 0.015 322);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-tint: color-mix(in srgb, var(--primary) 10%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.68 0.16 328 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.66 0.19 25);
  --error-foreground: oklch(0.98 0.004 325);
}

/* Stencil Tweaks */
:root {
  --background: #FDFBFD;
  --primary: #8C2A8C;
  --font-display: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Poppins, ui-sans-serif, system-ui, sans-serif;
}
/* /Stencil Tweaks */