:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2522;
  --muted: #66716d;
  --line: #e4e1db;
  --accent: #28685a;
  --accent-strong: #17483f;
  --accent-soft: #dfece7;
  --shadow: 0 16px 40px rgba(29, 37, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  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.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand,
.site-nav,
.site-footer nav,
.actions {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
}

.site-nav,
.site-footer nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

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

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

.hero {
  display: grid;
  min-height: 560px;
  align-content: center;
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero > p:not(.eyebrow),
.page-header > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

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

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--accent-strong);
}

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

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

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

.card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p,
.content p {
  color: var(--muted);
}

.page {
  padding: 74px 0 96px;
}

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

.content {
  max-width: 760px;
  padding-top: 36px;
}

.content h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content a {
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer,
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  main {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: auto;
    padding: 58px 0 68px;
  }

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

  .card {
    min-height: auto;
  }

  .page {
    padding-top: 52px;
  }
}
