/* useitonce design tokens. Light and dark via light-dark(); override with .theme-light / .theme-dark on <html>. */

:root {
  color-scheme: light dark;

  --bg: light-dark(#ffffff, #09090b);
  --fg: light-dark(#09090b, #fafafa);
  --card: light-dark(#ffffff, #111113);
  --raised: light-dark(#ffffff, #27272a);
  --muted: light-dark(#f4f4f5, #1c1c1f);
  --muted-fg: light-dark(#63636b, #a1a1aa);
  --border: light-dark(#e4e4e7, #27272a);
  --input: light-dark(#d4d4d8, #3f3f46);

  --primary: light-dark(#18181b, #fafafa);
  --primary-fg: light-dark(#fafafa, #18181b);
  --secondary: light-dark(#f4f4f5, #27272a);
  --secondary-fg: light-dark(#18181b, #fafafa);

  --accent: light-dark(#2563eb, #60a5fa);
  --accent-fg: light-dark(#ffffff, #09090b);
  --accent-soft: light-dark(#eff6ff, #172554);
  --accent-soft-fg: light-dark(#1d4ed8, #bfdbfe);
  --ring: var(--accent);

  --success: light-dark(#15803d, #4ade80);
  --success-soft: light-dark(#f0fdf4, #052e16);
  --warning: light-dark(#b45309, #fbbf24);
  --warning-soft: light-dark(#fffbeb, #451a03);
  --danger: light-dark(#dc2626, #f87171);
  --danger-fg: #ffffff;
  --danger-soft: light-dark(#fef2f2, #450a0a);

  --shadow-sm: 0 1px 2px light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.4));
  --shadow-md: 0 6px 16px -4px light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.6)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.3));

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --font-sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --tracking-head: -0.025em;

  --text-xs: 12px;   /* line-height 16px */
  --text-sm: 14px;   /* 20px */
  --text-md: 15px;   /* 24px, body */
  --text-base: 16px; /* 24px, lead */
  --text-lg: 17px;   /* 24px, h3 */
  --text-xl: 22px;   /* 30px, h2 */
  --text-2xl: 30px;  /* 36px, h1 */
  --text-3xl: 44px;  /* 48px, hub display */
  --text-mono: 13px; /* 20px */
}

:root.theme-light { color-scheme: light; }
:root.theme-dark { color-scheme: dark; }

/* Self-hosted Geist (OFL), Latin subsets cut to the weights in use: sans 400 to 600, mono 400 to 500 */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

/* Arial sized to Geist's metrics, so the swap to Geist moves no text */

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 106.99%;
  ascent-override: 93.94%;
  descent-override: 27.57%;
  line-gap-override: 0%;
}
