/* Tokens. Licht staat op :root; donker staat twee keer, onder het systeem
   (tenzij iemand licht koos) en onder een expliciete keuze, zodat de
   schakelaar in beide richtingen wint. Fase 4 geeft de rest zijn vorm. */
:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #16161a;
  --muted: #5c5c66;
  --grid: #d9d8d3;
  --accent: #3b3fd8;
  --accent-ink: #ffffff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111114;
    --surface: #1a1a1f;
    --ink: #f1f0ec;
    --muted: #a3a3ad;
    --grid: #33333b;
    --accent: #8f93ff;
    --accent-ink: #111114;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111114;
  --surface: #1a1a1f;
  --ink: #f1f0ec;
  --muted: #a3a3ad;
  --grid: #33333b;
  --accent: #8f93ff;
  --accent-ink: #111114;
}

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

body {
  margin: 0;
  padding-inline: 20px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.kop,
main,
.voet {
  max-width: 68rem;
  margin-inline: auto;
}

.kop {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--grid);
}

.kop-naam {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.kop-stap {
  color: var(--muted);
  flex: 1;
}

#thema {
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

main {
  padding-block: 3rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 40ch;
}

main p {
  color: var(--muted);
  margin: 0;
}

.voet {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--grid);
}

.voet-knop {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink, var(--bg));
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
}

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

@media (max-width: 480px) {
  .voet-knop {
    display: block;
    text-align: center;
  }
}
