/* =====================================================
   LUMMET PUBLIC SITE — DESIGN TOKENS
   Light is the default; dark applies via [data-theme="dark"]
   (set by /static/js/theme.js, which follows the OS setting until the
   visitor picks one). Fonts are SELF-HOSTED subsets under /static/fonts
   (no third-party request; CSP font-src 'self' is unchanged):
     display + body  Instrument Sans 400 / 700 (one neutral grotesque, enterprise look)
   ===================================================== */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/instrument-400-v1.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/instrument-700-v1.woff") format("woff"); }

:root,
:root[data-theme="light"] {
  /* Enterprise palette: neutral canvas, one blue accent, no gradients, no glow.
     --accent-2 is the optional secondary accent an admin can set (accent_color_secondary). */
  --accent: #1a56db;
  --accent-2: #1a56db;
  --accent-ink: #1447b8;
  --band: #1a56db;
  --accent-soft: rgba(26, 86, 219, 0.08);

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #eef1f6;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #111827;
  --ink-dim: #4b5563;
  --ink-faint: #6b7280;
  --border: #e5e7eb;
  --border-strong: #cfd4dc;
  --header-bg: #ffffff;
  --ok: #0f7b4f;
  --ok-soft: rgba(15, 123, 79, 0.1);

  --dark-1: #0f172a;
  --dark-2: #111c33;
  --on-dark: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.74);
  --danger: #c0262d;
  --danger-soft: rgba(192, 38, 45, 0.08);

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 2px 8px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.09);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #5b9bff;
  --accent-2: #5b9bff;
  --accent-ink: #8db8ff;
  --band: #1d4ed8;
  --accent-soft: rgba(91, 155, 255, 0.14);

  --bg: #0b0f17;
  --bg-soft: #111723;
  --bg-tint: #151c2b;
  --surface: #111723;
  --surface-raised: #161e2e;
  --ink: #f3f4f6;
  --ink-dim: #b4bac6;
  --ink-faint: #8a92a3;
  --border: #232b3b;
  --border-strong: #323c52;
  --header-bg: #0b0f17;
  --ok: #3ccf96;
  --ok-soft: rgba(60, 207, 150, 0.14);
  --danger: #ff7a85;
  --danger-soft: rgba(255, 122, 133, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

:root {
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.925rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 8px;

  --container: 1200px;
  --narrow: 760px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
