:root {
  color-scheme: dark;
  --gold: #f4c46d;
  --gold-soft: #ffe2a4;
  --lumi-purple: #7c5cff;
  --forest: #173929;
  --text: #fff8e9;
  --text-soft: rgba(255, 248, 233, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #07100d;
  color: var(--text);
  font-family:
    "Nunito",
    "Avenir Next Rounded",
    "Segoe UI",
    system-ui,
    sans-serif;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: url("assets/hero-forest.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__veil {
  z-index: -2;
  background:
    radial-gradient(circle at 52% 55%, rgba(244, 196, 109, 0.18), transparent 24rem),
    radial-gradient(circle at 72% 34%, rgba(124, 92, 255, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(4, 8, 8, 0.84), rgba(7, 13, 11, 0.44) 48%, rgba(4, 8, 8, 0.78)),
    linear-gradient(180deg, rgba(4, 8, 8, 0.18), rgba(4, 8, 8, 0.62) 78%, rgba(4, 8, 8, 0.9));
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 32vh;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 12, 9, 0.95));
}

.hero__content {
  width: min(42rem, calc(100% - 2rem));
  align-self: center;
  justify-self: start;
  padding: clamp(2rem, 7vw, 6.5rem);
}

.hero__kicker {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 1.5rem rgba(244, 196, 109, 0.42);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0.35rem 2.6rem rgba(0, 0, 0, 0.55);
}

.hero__text {
  max-width: 32rem;
  margin: 1.35rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  text-shadow: 0 0.2rem 1.4rem rgba(0, 0, 0, 0.7);
}

.hero__button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(255, 226, 164, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(244, 196, 109, 0.95), rgba(255, 226, 164, 0.8)),
    rgba(244, 196, 109, 0.92);
  box-shadow:
    0 0 2.5rem rgba(244, 196, 109, 0.24),
    0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  color: #1a1309;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.hero__button:hover {
  border-color: rgba(255, 248, 233, 0.72);
  box-shadow:
    0 0 3.4rem rgba(244, 196, 109, 0.3),
    0 1.1rem 2.7rem rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.hero__button:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.9);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .hero {
    align-items: end;
  }

  .hero__image {
    background-position: 56% center;
  }

  .hero__veil {
    background:
      radial-gradient(circle at 60% 48%, rgba(244, 196, 109, 0.16), transparent 15rem),
      radial-gradient(circle at 78% 30%, rgba(124, 92, 255, 0.16), transparent 16rem),
      linear-gradient(180deg, rgba(4, 8, 8, 0.18), rgba(4, 8, 8, 0.44) 42%, rgba(4, 8, 8, 0.9)),
      linear-gradient(90deg, rgba(4, 8, 8, 0.55), rgba(4, 8, 8, 0.18));
  }

  .hero__content {
    width: 100%;
    padding: 2rem 1.15rem 3rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .hero__text {
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
