/* Self-hosted type — no CDN (strict same-origin posture). Variable fonts:
 * one file per family covers every weight we use. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 13px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Instrument-panel discipline: identifiers and measurements read in mono. */
.mono, .cell-mono { font-family: var(--font-mono); }

/* Uppercase tracked micro-label — section headers, table headers, KPI labels. */
.microlabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

::selection { background: rgba(200, 16, 46, 0.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[data-icon] { display: inline-flex; align-items: center; }
.lucide { width: 1em; height: 1em; stroke-width: 2; }
