*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --border: #e5e5e5;
  --max-w: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #e5e5e5;
    --muted: #999;
    --accent: #60a5fa;
    --border: #333;
  }
}

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

nav {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
nav a { color: var(--accent); text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav .sep { color: var(--muted); margin: 0 0.35rem; }

main {
  max-width: var(--max-w);
  margin: 2rem auto 3rem;
}

h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 0.75rem; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

ul { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }

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

/* hero (landing page) */
.hero { text-align: center; margin-top: 4rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero .tagline { font-size: 1.15rem; color: var(--muted); margin-bottom: 1rem; }
.hero .links { margin-top: 2rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero .links a {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.hero .links a:hover { background: var(--accent); color: #fff; }

footer {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
