/* BlochVector brand — shared by the public site and the admin area.
   Source of truth: the BlochVector design system (tokens.json). */

@font-face { font-family: "STIX Two Text"; src: url("/fonts/stix-two-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("/fonts/stix-two-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("/fonts/stix-two-text-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Math"; src: url("/fonts/stix-two-math-symbols.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --field: #F5F6FB;
  --sheet: #FFFFFF;
  --ink: #1F2A7A;
  --ink-muted: #4A5390;
  --rule: #D9DCEC;
  --ground: #1F2A7A;
  --mark-ground: #1F2A7A;
  --excited: #F4A62A;
  --excited-text: #9A5B00;
  --decohered: #896852;
  --decohered-text: #6B5248;
  --on-ground: #F5F6FB;
  --on-excited: #1F2A7A;
  --focus: #1F2A7A;
  --tint-ground: #E7EAF8;
  --tint-excited: #FCEFD6;
  --tint-noise: #EFE6E0;
  --vacuum: #0B0F30;
  --on-vacuum: #ECEEF8;
  --on-vacuum-muted: #A9AFD6;
  --vacuum-rule: #2A3166;
  --ground-on-vacuum: #8C96F0;

  --serif: "STIX Two Text", "STIX Two Math", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 4px; --radius-md: 12px; --radius-pill: 999px;
  color-scheme: light;
}
/* Dark: follows the device, unless the visitor picked Light or Dark with the switch in the header
   (theme.js sets data-theme on <html> before the page paints). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: #0E1238;
    --sheet: #161B4A;
    --ink: #ECEEF8;
    --ink-muted: #A9AFD6;
    --rule: #2A3166;
    --ground: #8C96F0;
    --mark-ground: #5D69E0;
    --excited: #F4A62A;
    --excited-text: #F4A62A;
    --decohered: #A88673;
    --decohered-text: #C9A999;
    --on-ground: #0E1238;
    --on-excited: #0E1238;
    --focus: #F4A62A;
    --tint-ground: #1C2259;
    --tint-excited: #2E2742;
    --tint-noise: #2A2340;
    --vacuum: #070A22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --field: #0E1238;
  --sheet: #161B4A;
  --ink: #ECEEF8;
  --ink-muted: #A9AFD6;
  --rule: #2A3166;
  --ground: #8C96F0;
  --mark-ground: #5D69E0;
  --excited: #F4A62A;
  --excited-text: #F4A62A;
  --decohered: #A88673;
  --decohered-text: #C9A999;
  --on-ground: #0E1238;
  --on-excited: #0E1238;
  --focus: #F4A62A;
  --tint-ground: #1C2259;
  --tint-excited: #2E2742;
  --tint-noise: #2A2340;
  --vacuum: #070A22;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must win over any display rule, or "hidden" panels still show. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body {
  background: var(--field);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--ground); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }

/* Mark and lockup */
.bv-mark { display: block; flex: none; }
.bv-mark .bar { fill: var(--mark-ground); }
.bv-mark .ket { stroke: var(--excited); }
.bv-mark.decohered .bar { fill: var(--decohered); }
.bv-mark.decohered .ket { stroke: var(--decohered); }
.bv-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.bv-lockup .bv-mark { width: 26px; height: 26px; }
.bv-wordmark { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1; }

/* Buttons */
.bv-btn {
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
  min-height: 40px; padding: 0 var(--space-4);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
}
.bv-btn:hover { border-color: var(--ink-muted); }
.bv-btn.primary { background: var(--ink); color: var(--field); border-color: var(--ink); }
.bv-btn.primary:hover { opacity: 0.9; }
.bv-btn.noise { color: var(--decohered-text); }
.bv-btn.math { font-family: var(--serif); font-size: 17px; min-width: 44px; }
.bv-btn.big { min-height: 50px; padding: 0 22px; font-size: 16px; }
.bv-btn.on-dark { background: transparent; color: var(--on-vacuum); border-color: var(--on-vacuum-muted); }
.bv-btn.on-dark:hover { border-color: var(--on-vacuum); }
.bv-btn[disabled], .bv-btn.primary[disabled]:hover { opacity: 0.45; cursor: not-allowed; }
.bv-btn[disabled]:hover { border-color: var(--rule); }
.bv-btn.primary[disabled]:hover { border-color: var(--ink); }

/* Status tags */
.bv-tag { font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: var(--radius-pill); border: 1.5px solid transparent; white-space: nowrap; display: inline-block; }
.bv-tag.binding { background: var(--excited); color: var(--on-excited); }
.bv-tag.final { background: var(--ground); color: var(--on-ground); }
.bv-tag.advisory { border-color: var(--decohered); color: var(--decohered-text); }
.bv-tag.watching { border-color: var(--excited-text); color: var(--excited-text); }

/* Forms */
.bv-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); }
.bv-field label { font-size: 14px; font-weight: 600; }
.bv-field .hint { font-size: 13px; color: var(--ink-muted); }
.bv-input {
  font: 16px/1.4 var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%;
}
.bv-input:hover { border-color: var(--ink-muted); }
.bv-input::placeholder { color: var(--ink-muted); opacity: 0.75; }
.bv-switch { display: inline-flex; align-items: center; gap: 10px; font: 15px var(--sans); cursor: pointer; }
.bv-switch input { width: 20px; height: 20px; accent-color: var(--ground); }

/* Sans helpers */
.sans { font-family: var(--sans); }
.muted { color: var(--ink-muted); }
