/* base.css : theme tokens + reset. Change colors and type here only. */
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Graphite ramp, a touch warm (receipt paper under a desk lamp) */
  --bg: #121211;
  --surface: #191918;
  --surface-2: #20201f;
  --surface-3: #2a2a28;
  --text: #ecebe7;
  --text-2: #a9a8a2;
  --muted: #74736e;
  --hairline: rgba(236, 235, 231, .08);
  --hairline-strong: rgba(236, 235, 231, .14);

  /* One accent: the amber of a mechanical counter. Used rarely. */
  --accent: #e3a43f;
  --accent-ink: #1a1408;

  /* Semantic, toned to sit in the ramp */
  --good: #6cb38a;
  --info: #7ea6d1;
  --warn: #d39a4a;
  --bad: #d4705f;

  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;

  --sidebar-w: 248px;
  --topbar-h: 56px;

  --font: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 120ms;
  --slow: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; transition: text-decoration-color var(--fast) var(--ease); }
a:hover { text-decoration-color: var(--text-2); }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 500; }
h1 { font-size: 20px; line-height: 28px; }
h2 { font-size: 16px; line-height: 24px; }
h3 { font-size: 14px; line-height: 20px; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
.icon { flex: none; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.secondary { color: var(--text-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-success { color: var(--good); }
.text-danger { color: var(--bad); }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
::selection { background: rgba(227, 164, 63, .3); }
