/* TLDR on the Haphazard brand (brand book 2026-12-03).
   Phosphor is the brand colour only. Status uses the colour-blind safe set
   (blue ✓, yellow !, vermillion ✕), always with its symbol. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  /* brand */
  --hz-phosphor: #3DFF6E;
  --hz-phosphor-dim: #1E8F3E;
  --hz-void: #050807;
  --hz-night: #0A0C12;
  /* status (never phosphor) */
  --hz-ok: #3D8FD6;
  --hz-warn: #E6B800;
  --hz-bad: #D55E00;
  --hz-mute: #8B949E;
  /* surfaces and text */
  --bg: var(--hz-night);
  --card: #12151C;
  --field: var(--hz-void);
  --fg: #E6EAEE;
  --muted: var(--hz-mute);
  --line: rgba(127, 127, 127, .18);
  --line-strong: rgba(127, 127, 127, .38);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrainsMono Nerd Font", Consolas, ui-monospace, monospace;
  font: 14px/1.55 var(--font-sans);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
button, select, input { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }

button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
button:hover { border-color: var(--hz-phosphor-dim); }
button:disabled { opacity: .5; cursor: default; }
button.primary {
  background: var(--hz-phosphor);
  color: var(--hz-void);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: .02em;
}
button.primary:hover { box-shadow: 0 0 0 3px rgba(61, 255, 110, .22); }

select, input[type="text"], input[type="url"], input[type="password"] {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 0;
}
select:hover, input:hover { border-color: var(--hz-phosphor-dim); }
input[type="checkbox"] { accent-color: var(--hz-phosphor); width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--hz-phosphor); outline-offset: 2px; }

/* small uppercase labels, as on Glance */
.label, label > .label-text { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; }

.muted { color: var(--muted); }
.ok    { color: var(--hz-ok); }   .ok::before    { content: "✓ "; }
.warn  { color: var(--hz-warn); } .warn::before  { content: "! "; }
.error { color: var(--hz-bad); }  .error::before { content: "✕ "; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.ok:empty::before, .warn:empty::before, .error:empty::before { content: none; }
