:root {
  --bg: #fdfcfa;
  --text: #1f2933;
  --muted: #5f6b76;
  --accent: #2f6f4f;
  --accent-soft: #e7f0eb;
  --border: #e3e0da;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --text: #e8e6e1;
    --muted: #9aa5ae;
    --accent: #6fbf94;
    --accent-soft: #1e2a24;
    --border: #2a3138;
  }
}

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

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

header {
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.25rem;
}

.nav nav a:hover { color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
p { margin-bottom: 1rem; }
p.lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 2rem; }

ul { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.4rem; }

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

.card {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

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

footer {
  border-top: 1px solid var(--border);
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot a { color: var(--muted); }
