:root {
  color-scheme: light;
  --background: #f6f4ee;
  --surface: #ffffff;
  --text: #17201d;
  --muted: #5d6864;
  --accent: #176b4d;
  --accent-dark: #0f5039;
  --border: #d9ddd7;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  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,
main,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.hero {
  display: grid;
  align-content: center;
  min-height: 70vh;
  padding-block: 6rem;
}

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

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

h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.intro {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
}

.text-link {
  font-weight: 750;
  text-underline-offset: 0.25rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 6rem;
  border-top: 1px solid var(--border);
}

.about > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
}

code {
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9em;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  nav > a:first-child {
    display: none;
  }

  .hero {
    min-height: 65vh;
    padding-block: 4rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 4rem;
  }

  footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
