:root {
  /* Inverted: the light-scheme palette is the former dark one's, and vice
     versa. color-scheme still names the schemes in their usual order, since it
     tells the browser which one the page is in -- it drives scrollbars and form
     controls, not these variables. */
  color-scheme: light dark;
  --bg: #1a1a1a;
  --fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f2f4f6;
    --fg: #14171a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1 {
  margin: 0;
  padding: 0 1rem;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
