:root {
  color-scheme: light;
  --background: #f8f8f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #62666d;
  --line: #e4e4e2;
  --brand: #223546;
  --radius: 18px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus {
  color: var(--brand);
}

.home-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.home-shell {
  width: min(100%, var(--content-width));
  text-align: center;
}

.hero {
  margin-top: 0;
  padding: 112px 0 88px;
  border-top: 0;
}

.hero h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(64px, 15vw, 132px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero p {
  margin: 28px auto 0;
  max-width: 640px;
  color: var(--text);
  font-size: clamp(22px, 4.8vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.footer-links,
.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  color: var(--muted);
}

.footer-links a,
.support-links a {
  font-size: 17px;
  font-weight: 600;
}

.site-header {
  display: flex;
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.brand-link {
  color: var(--brand);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
}

.content-page {
  width: min(100% - 40px, var(--content-width));
  margin: 56px auto 88px;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

.content-page h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

section p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.support-links {
  justify-content: flex-start;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (min-width: 641px) {
  .home-page {
    place-items: start center;
  }

  .home-shell {
    margin-top: clamp(120px, 20vh, 196px);
  }
}

@media (max-width: 640px) {
  .home-page {
    padding: 24px 18px;
  }

  .hero {
    padding: 84px 0 68px;
  }

  .site-header {
    width: min(100% - 32px, 980px);
    align-items: flex-start;
    flex-direction: column;
  }

  .content-page {
    width: min(100% - 32px, var(--content-width));
    margin: 32px auto 56px;
    padding: 28px;
    border-radius: 14px;
  }

  .lead {
    font-size: 19px;
  }

  section {
    margin-top: 32px;
    padding-top: 26px;
  }

  section h2 {
    font-size: 22px;
  }

  section p {
    font-size: 17px;
  }
}
