:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --text: #1a1a19;
  --muted: #6b6b66;
  --line: #e4e1db;
  --accent: #1f5c4a;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14150f;
    --panel: #1c1e17;
    --text: #f0efe9;
    --muted: #a3a29a;
    --line: #2e3128;
    --accent: #7fd1b0;
    --accent-text: #10231c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover { color: var(--text); }

.site-header nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Layout */
main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.hero { padding: 3.5rem 0 2.5rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.meta {
  margin: -1rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
}

.button:hover { opacity: 0.88; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose */
.prose { max-width: 40rem; }

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose dl { margin: 0; }

.prose dt {
  font-weight: 600;
  margin-top: 1rem;
}

.prose dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* Footer */
.site-footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
