@font-face {
  font-family: "Geist";
  src: url("assets/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --page-gutter: clamp(1.5rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

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

body {
  background: #06141f;
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  background-image: url("assets/sparkwell-sunrise.webp");
  background-position: center center;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  background: linear-gradient(
    90deg,
    rgb(2 12 19 / 78%) 0%,
    rgb(2 12 19 / 48%) 30%,
    rgb(2 12 19 / 8%) 58%,
    transparent 72%
  );
}

.hero::after {
  background: linear-gradient(
    180deg,
    rgb(2 10 16 / 20%) 0%,
    transparent 35%,
    transparent 70%,
    rgb(2 10 16 / 34%) 100%
  );
}

.site-header {
  padding: clamp(1.75rem, 4vw, 3.75rem) var(--page-gutter) 0;
}

.logo {
  display: block;
  width: clamp(11.75rem, 18vw, 16rem);
  height: auto;
  filter: drop-shadow(0 0.125rem 0.75rem rgb(0 0 0 / 20%));
}

.hero-content {
  align-self: center;
  max-width: 64rem;
  padding: 1rem var(--page-gutter) clamp(4rem, 12vh, 8.5rem);
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: "Geist", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4.75rem, 8.25vw, 8.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-shadow: 0 0.2rem 1.8rem rgb(0 0 0 / 24%);
  white-space: nowrap;
}

p {
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 0.15rem 1.25rem rgb(0 0 0 / 34%);
  white-space: nowrap;
}

footer {
  padding: 0 var(--page-gutter) clamp(1.5rem, 3vw, 2.75rem);
  color: rgb(255 255 255 / 64%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .hero {
    background-color: #06141f;
    background-image:
      linear-gradient(
        180deg,
        rgb(2 12 19 / 24%) 0%,
        transparent 38%,
        transparent 68%,
        #06141f 100%
      ),
      url("assets/sparkwell-sunrise.webp");
    background-position: center, 62% top;
    background-repeat: no-repeat;
    background-size: 100% 100%, auto 84%;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgb(2 12 19 / 76%) 0%,
      rgb(2 12 19 / 48%) 55%,
      rgb(2 12 19 / 10%) 100%
    );
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgb(2 10 16 / 28%) 0%,
      transparent 30%,
      transparent 60%,
      rgb(2 10 16 / 60%) 100%
    );
  }

  .site-header {
    padding-top: 1.75rem;
  }

  .logo {
    width: 12rem;
  }

  .hero-content {
    align-self: start;
    padding-top: clamp(6rem, 13vh, 8rem);
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(4.25rem, 20vw, 6.5rem);
    letter-spacing: -0.06em;
  }

  p {
    max-width: 24ch;
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: 7ch;
    white-space: normal;
  }

  p {
    max-width: 24ch;
    white-space: normal;
  }
}

@media (max-height: 620px) and (min-width: 701px) {
  .site-header {
    padding-top: 1.5rem;
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(4.5rem, 13vh, 7rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logo,
  .hero-content,
  footer {
    animation: reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-content {
    animation-delay: 120ms;
  }

  footer {
    animation-delay: 220ms;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

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