:root {
  color-scheme: light dark;
  --bg: #f5f5f2;
  --fg: #171717;
  --muted: #666;
  --line: rgba(127,127,127,.22);
  --card: rgba(127,127,127,.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #eee;
    --muted: #aaa;
    --card: rgba(255,255,255,.05);
  }
}

* { box-sizing: border-box; }

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

main {
  width: min(920px, calc(100% - 40px));
  margin: auto;
}

header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding: 110px 0 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 18px 0 30px;
}

.lead, .page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

article h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

article p { color: var(--muted); }

.page {
  padding: 90px 0 120px;
}

.page h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

footer {
  margin-top: 80px;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 700px) {
  .hero { padding: 75px 0 55px; }
  .cards { grid-template-columns: 1fr; }
  header { min-height: 72px; }
}
