:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #171717;
  --muted: #66665f;
  --line: #deded7;
  --soft: #eeeeea;
  --max: 980px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { opacity: .68; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-weight: 800;
  letter-spacing: .22em;
  text-decoration: none;
  font-size: .96rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
}

.hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 88px 0 68px;
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.lead {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: .94rem;
  background: var(--text);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.section {
  border-top: 1px solid var(--line);
  padding: 76px 0;
}

.section.narrow .wrap {
  max-width: 760px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 178px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .meta {
  margin-top: 24px;
  font-size: .86rem;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 56px;
  font-size: 1.7rem;
}

.prose h3 {
  margin-top: 34px;
}

.prose p,
.prose li {
  color: #353531;
}

.prose ul {
  padding-left: 20px;
}

.kicker {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 12px;
}

.notice {
  margin: 30px 0;
  padding: 18px 20px;
  background: var(--soft);
  border-left: 3px solid var(--text);
  color: #353531;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
}

.muted { color: var(--muted); }

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    align-items: flex-start;
    padding: 22px 0;
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

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

  .card {
    min-height: 0;
    padding: 22px;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

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

  .button {
    width: 100%;
  }
}
