:root {
  color-scheme: light;
  --canvas: #f7f8f8;
  --surface: #eef2f1;
  --text: #171a14;
  --muted: #565d58;
  --border: #d9dfdd;
  --primary: #0e6f68;
  --primary-hover: #0b5f59;
  --primary-foreground: #f9fbfa;
  --focus: #87bdb8;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #101513;
    --surface: #17201d;
    --text: #edf2f0;
    --muted: #b5c0bb;
    --border: #2b3834;
    --primary: #6fc1b9;
    --primary-hover: #87d0c9;
    --primary-foreground: #10201d;
    --focus: #79c9c1;
    --shadow: 0 28px 80px rgba(2, 8, 6, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.hero,
footer {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.hero {
  min-height: calc(100dvh - 96px);
  padding-block: clamp(56px, 10vh, 104px);
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

h1,
p {
  margin: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(3.75rem, 6vw, 5.2rem);
  font-weight: 700;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: normal;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.58;
}

.actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.button-secondary {
  border-color: var(--border);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

footer {
  min-height: 96px;
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .hero,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: calc(100dvh - 126px);
    padding-block: 72px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3.4rem, 15vw, 5.1rem);
  }

  .hero-copy > p {
    max-width: 38ch;
    margin-top: 24px;
  }

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

  .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
