:root {
  color-scheme: dark;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Arial Black", "Inter", system-ui, sans-serif;
  --bg: #171615;
  --surface: #262423;
  --surface-high: #302d2c;
  --surface-hover: #3b3736;
  --inset: #1e1c1b;
  --line: #423e3d;
  --line-bright: #504d4c;
  --shadow: #0d0c0c;
  --text: #f1eeec;
  --muted: #c5bfbc;
  --dim: #a49e9b;
  --green: #a2d481;
  --green-button: #4f8335;
  --green-hover: #54883a;
  --green-edge: #81c15a;
  --green-shadow: #3a6327;
  --warning: #ffc576;
  --danger: #eba294;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --control-size: 2.75rem;
  --topbar-height: 3.875rem;
  --sidebar-width: 13.25rem;
  --content-max: 80rem;
  --control-shadow: inset 0 1px 0 var(--line-bright), inset 0 -2px 0 var(--shadow);
  --focus: 2px solid var(--green);
}
* { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .75rem;
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
