:root {
  color-scheme: light dark;
  --background: #f5f6f8;
  --surface: #ffffff;
  --text: #17201d;
  --secondary: #5f6965;
  --accent: #247252;
  --accent-strong: #17583d;
  --border: #dfe5e2;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111614;
    --surface: #19201d;
    --text: #f2f6f4;
    --secondary: #b5bfba;
    --accent: #66c796;
    --accent-strong: #8edcac;
    --border: #33413b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

header,
main,
footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

header {
  padding-block: 28px 16px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

nav a {
  font-weight: 650;
  text-decoration: none;
}

.brand {
  margin-right: auto;
  color: var(--text);
  font-size: 19px;
}

main {
  padding-block: 30px 64px;
}

.hero,
.card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.hero {
  padding: clamp(28px, 7vw, 52px);
}

.card {
  margin-top: 18px;
  padding: 24px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 8vw, 58px);
}

h2 {
  margin-top: 42px;
  font-size: 28px;
}

h3 {
  margin-top: 28px;
  font-size: 21px;
}

p,
ul {
  margin-block: 0 18px;
}

.eyebrow,
.meta {
  color: var(--secondary);
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  min-height: 48px;
  margin-top: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.link-grid .card {
  margin-top: 0;
}

footer {
  padding-block: 0 42px;
  color: var(--secondary);
  font-size: 14px;
}

@media (max-width: 560px) {
  nav {
    align-items: flex-start;
  }

  .brand {
    flex-basis: 100%;
  }

  .hero,
  .card {
    border-radius: 20px;
  }
}
