:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --background: #ffffff;
  --rule: #d2d2d7;
  --link: #0b63ce;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --background: #1c1c1e;
    --rule: #3a3a3c;
    --link: #5ea8ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

header nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.links {
  padding-left: 1.25rem;
}

@media (max-width: 40rem) {
  table {
    display: block;
    overflow-x: auto;
  }
}
