:root {
  --bg: #f7f7f5;
  --bg-alt: #ffffff;
  --text: #1a1d1a;
  --text-muted: #5b615b;
  --accent: #1f7a5c;
  --accent-strong: #14513d;
  --border: #e2e3df;
  --tag-bg: #eaf3ef;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.06), 0 1px 1px rgba(20, 30, 25, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12140f;
    --bg-alt: #191d17;
    --text: #eceee9;
    --text-muted: #a3a89f;
    --accent: #4fd1a5;
    --accent-strong: #7ce0bb;
    --border: #2a2e26;
    --tag-bg: #1c2b23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Hero */

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero-nav {
  display: flex;
  gap: 20px;
}

.hero-nav a {
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

/* Sections */

section {
  padding: 56px 0 8px;
  scroll-margin-top: 24px;
}

section h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 28px;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
}

.card p + p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card p.attribution {
  font-size: 0.85rem;
  font-style: italic;
}

.card p.scope {
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--tag-bg);
  padding: 3px 8px;
  border-radius: 6px;
  margin: 0;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 24px 0 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
