:root {
  --bg: #fafaf8;
  --text: #1f2328;
  --text-muted: #656d76;
  --accent: #0969da;
  --rule: #d1d9e0;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --rule: #30363d;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 64px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

strong {
  font-weight: 600;
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.links li {
  margin-bottom: 0.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  body {
    padding: 40px 20px;
  }
  h1 {
    font-size: 1.875rem;
  }
}
