/* Base: reset, type, buttons, form controls. */

:root {
  /* Bricolage: quirky grotesk that reads like a hand-made OS, not a SaaS default.
     Martian Mono: file paths, numbers, tab titles. Bungee: rubber-stamp callouts. */
  --font-ui: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --font-stamp: "Bungee", Impact, "Arial Black", "Haettenschweiler", sans-serif;

  --r-sm: 3px;
  --r-md: 6px;
  --shadow-win: 6px 6px 0 var(--ink);
  --taskbar-h: 46px;
  --ticker-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

h1, h2, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

kbd {
  font: 600 11px/1 var(--font-mono);
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

/* Buttons: flat, hard edge, press moves down like a physical key. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 80ms, box-shadow 80ms, background-color 120ms;
}
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: 0.45; transform: none; box-shadow: 0 3px 0 var(--ink); }
.btn:disabled:hover { background: var(--surface-3); }
.btn--acid:disabled:hover { background: var(--acid); }
.btn--acid { background: var(--acid); color: var(--acid-ink); }
.btn--acid:hover { background: var(--acid-hi); }
.btn--warn { background: transparent; color: var(--warn); border-color: var(--warn); box-shadow: 0 3px 0 #6b4700; }
.btn--warn:hover { background: rgba(255, 176, 32, 0.12); }

input[type="range"] {
  accent-color: var(--acid);
  width: 100%;
  min-height: 32px;
}
input[type="checkbox"] {
  accent-color: var(--acid);
  width: 20px;
  height: 20px;
  margin: 0;
}

.note { color: var(--muted); font-size: 12.5px; }
