:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #171717;
  --muted: #64625d;
  --line: #dedbd3;
  --panel: #ffffff;
  --accent: #1f7a5c;
  --accent-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.hero,
.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 64px;
}

.hero h1,
.page h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.page h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 80px;
}

.grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}

.grid h2 {
  margin-top: 0;
}

p,
li {
  color: var(--muted);
}

ul {
  padding-left: 22px;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page {
    padding-top: 56px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11110f;
    --text: #f4f1ea;
    --muted: #aaa69c;
    --line: #302e2a;
    --panel: #181714;
    --accent: #58c99b;
    --accent-text: #08130f;
  }
}
