:root {
  --bg: #fbfbf8;
  --text: #1d211c;
  --muted: #5d665b;
  --rule: #dfe3da;
  --accent: #2f7d3a;
  --panel: #f0f3ec;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141713;
    --text: #e6eae2;
    --muted: #9aa596;
    --rule: #2e342c;
    --accent: #7bc77f;
    --panel: #1d211b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 4rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

header.site img { width: 32px; height: 32px; }

header.site nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 0.95rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.25rem; }

.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.9rem; }

.summary {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.summary ul { margin: 0; padding-left: 1.2rem; }

.hero { text-align: center; padding: 3rem 0 1rem; }
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: 2.6rem; margin-top: 1rem; }

ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.25rem; }

code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--panel);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site nav { gap: 0.9rem; }
  h1 { font-size: 1.7rem; }
}
