:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --text: #1d2321;
  --muted: #5b6460;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --rule: #dcd8ce;
  --max: 68rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816;
    --bg-alt: #1b201e;
    --text: #e7e9e6;
    --muted: #a3aba7;
    --accent: #7fb8a4;
    --accent-ink: #0f1311;
    --rule: #2c3330;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
/* Keep the footer at the bottom of short pages (e.g. 404). */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
/* Limit line length without re-centering the container, so text stays left-aligned with other sections. */
.narrow > * { max-width: 44rem; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.eyebrow { text-transform:uppercase; letter-spacing:.22em; font-size:12px; font-weight:600; color:var(--accent); margin:0 0 14px; }
.hero { padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 22ch; margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 0 2rem; }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.7rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 1.75rem; margin-top: 0; }
.intro { max-width: 60ch; margin: 0 0 2rem; color: var(--muted); }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 40rem) { .grid { grid-template-columns: 1fr; } }
.grid article { border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; }
.grid h3 { margin-top: 0; font-size: 1.1rem; }
.grid p { margin-bottom: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-block: 1.5rem; }
