:root {
  /* Palette sampled from the logo: #0a0a10 (cold near-black) + #ffffff. Nothing else in it. */
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-sunken: #f5f6f8;
  --ink: #0a0a10;
  --ink-soft: #5c6070;
  --line: rgba(10, 10, 16, 0.14);
  --line-hard: #0a0a10;
  --card: #ffffff;
  --red: #d8352a;
  --blue: #2b52ff;
  --orange: var(--red); /* legacy alias */
  --shadow-lg: none;
  /* ponytail: system stacks, zero webfont bytes — same choice commitglobal.org makes */
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* applyAppTheme() stamps data-theme on <html> everywhere — one dark palette for the whole site. */
:root[data-theme='dark'] {
  --paper: #0a0a10;
  --panel: #14151c;
  --panel-sunken: #1b1c25;
  --ink: #ffffff;
  --ink-soft: #9298a8;
  --line: rgba(255, 255, 255, 0.16);
  --line-hard: rgba(255, 255, 255, 0.22);
  --card: #14151c;
  --red: #ff5347;
  --blue: #6d86ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body > * {
  position: relative;
  z-index: 1;
}

.surface-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--ink-soft);
}
