:root {
  color-scheme: light dark;
  --text: #1c2430;
  --muted: #566173;
  --background: #ffffff;
  --rule: #d9dee6;
  --link: #0b5cad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6eaf0;
    --muted: #a3adbb;
    --background: #12161c;
    --rule: #2c3440;
    --link: #7db7f5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main,
header,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 24px;
  border-bottom: 1px solid var(--rule);
}

header a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.muted,
footer {
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

nav a {
  margin-right: 1rem;
}
