:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --background: #ffffff;
  --rule: #e5e5ea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --link: #4da3ff;
    --background: #111113;
    --rule: #2c2c2e;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

header {
  padding-top: 24px;
}

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}

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

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

code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

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

footer a {
  color: var(--muted);
}
