:root {
  color-scheme: light;
  --ink: #1b2522;
  --muted: #53625d;
  --paper: #fbfaf7;
  --leaf: #2e6f57;
  --coral: #c76b55;
  --line: rgba(27, 37, 34, 0.14);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86svh;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/hero-welcome.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(251, 250, 247, 0.28);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.82) 34%, rgba(251, 250, 247, 0.2) 68%),
    linear-gradient(0deg, rgba(27, 37, 34, 0.16), rgba(27, 37, 34, 0));
}

.hero__content {
  width: min(100%, 680px);
  padding-top: 8svh;
}

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

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(46, 111, 87, 0.35);
  outline-offset: 3px;
}

.button--primary {
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 18px 38px rgba(46, 111, 87, 0.22);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(27, 37, 34, 0.18);
  backdrop-filter: blur(10px);
}

.details {
  padding: clamp(34px, 7vw, 86px) clamp(20px, 6vw, 72px);
  background: var(--paper);
}

.details__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.feature__mark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.feature h2 {
  margin: 38px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .hero {
    min-height: 84svh;
    align-items: end;
    background-position: 58% center;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.86) 52%, rgba(251, 250, 247, 0.18) 100%),
      rgba(251, 250, 247, 0.12);
  }

  .hero__content {
    padding-top: 16svh;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

  .feature {
    min-height: auto;
  }

  .feature h2 {
    margin-top: 28px;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
