:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #0b5cad;
  --line: #d9d9d9;
  --panel: #f4f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ececec;
    --muted: #a8a8a8;
    --accent: #7db4f0;
    --line: #333333;
    --panel: #1e1e1e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
}

header {
  border-bottom: 1px solid var(--line);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

a {
  color: var(--accent);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem;
  border-bottom: 1px solid var(--line);
}

code,
.callout {
  background: var(--panel);
  border-radius: 0.375rem;
}

code {
  padding: 0.1rem 0.3rem;
  overflow-wrap: anywhere;
}

.callout {
  padding: 0.75rem 1rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2rem;
  }
}
