:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --body: #3c3c43;
  --muted: #8e8e93;
  --accent: #007aff;
  --line: #e5e5ea;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

header.site a.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

header.site nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

section p, section ul {
  font-size: 15px;
  color: var(--body);
  margin: 0;
}

section ul { padding-left: 20px; }
section li { margin: 4px 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--bg);
  padding: 2px 5px;
  border-radius: 4px;
}

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

footer.site {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a { color: var(--muted); text-decoration: none; }

/* Landing hero */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 480px; margin: 0 auto; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --ink: #ffffff;
    --body: #d1d1d6;
    --muted: #8e8e93;
    --line: #2c2c2e;
  }
}
