:root {
  color-scheme: light dark;
  --bg: #f4f2ec;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #171713;
  --muted: #656458;
  --line: rgba(23, 23, 19, 0.16);
  --accent: #315c46;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(110, 145, 116, 0.22), transparent 36rem),
    var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
}

main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

footer {
  margin-top: 5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

nav {
  display: flex;
  gap: 1.25rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

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

.hero,
article {
  padding: clamp(4rem, 11vw, 8rem) 0 2rem;
}

article {
  max-width: 700px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

article h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead {
  max-width: 670px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 170px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card span {
  font-weight: 700;
}

.card p {
  margin-top: 2.8rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512;
    --surface: rgba(255, 255, 255, 0.045);
    --text: #eff1e9;
    --muted: #a9ad9f;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #8fc7a3;
  }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }

  header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.25rem 0;
  }
}
