@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #171A24;
  --cream: #E7E4DC;
  --ivory: #F6F3EC;
  --charcoal: #33313B;
  --violet: #A89BD1;
  --deep-violet: #6E5F9E;
  --amber: #E2B95E;
  --deep-amber: #9C7434;
  --content: 72rem;
  color-scheme: light dark;
  font-family: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.landing {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 61svh;
  overflow: visible;
  background: var(--night);
  color: var(--cream);
}

.hero__inner {
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) 0 clamp(4rem, 8vh, 6rem);
  text-align: center;
}

.brand {
  display: block;
  width: clamp(22rem, 34vw, 30rem);
  height: auto;
  margin: 0 auto clamp(1.25rem, 3.5vh, 2.75rem);
}

.hero__copy {
  margin: 0 auto;
}

h1 {
  max-width: 70rem;
  margin: 0 auto;
  font-size: clamp(3.25rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero__copy p {
  max-width: 47rem;
  margin: clamp(1.5rem, 3vh, 2.25rem) auto 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.signup {
  display: flex;
  min-height: 39svh;
  flex-direction: column;
  align-items: center;
  padding: clamp(3.5rem, 7vh, 5rem) 1.5rem 1.75rem;
  background: var(--ivory);
  color: var(--charcoal);
}

.waitlist {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.field,
.waitlist button {
  width: 100%;
}

.waitlist input,
.waitlist button {
  min-height: 4.85rem;
  border-radius: 0.75rem;
}

.waitlist input {
  width: 100%;
  border: 2px solid var(--charcoal);
  outline: 0;
  background: transparent;
  color: var(--charcoal);
  padding: 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    outline-color 160ms ease;
}

.waitlist input::placeholder {
  color: #67636E;
  opacity: 1;
}

.waitlist input:focus {
  border-color: var(--deep-violet);
  outline: 4px solid rgb(110 95 158 / 18%);
  outline-offset: 2px;
}

.waitlist button {
  margin-top: 1rem;
  border: 0;
  background: var(--deep-amber);
  color: var(--ivory);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.waitlist button:hover {
  background: #85612D;
}

.waitlist button:focus-visible {
  outline: 4px solid rgb(110 95 158 / 28%);
  outline-offset: 3px;
}

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

.waitlist button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.65rem;
  margin: 0.75rem 0 0;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.form-status[data-state="success"] {
  color: #2F735C;
}

.form-status[data-state="error"] {
  color: #8A433D;
}

footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer__copyright {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  opacity: 0.62;
}

.footer__copyright a {
  color: inherit;
}

.trap {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 42rem) {
  .hero {
    min-height: 62svh;
  }

  .hero__inner {
    width: min(calc(100% - 2rem), var(--content));
    padding-top: 1.1rem;
    padding-bottom: 3.5rem;
  }

  .brand {
    width: min(16.5rem, 76vw);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
    line-height: 1.04;
  }

  .hero__copy p {
    margin-top: 1.25rem;
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.42;
  }

  .signup {
    min-height: 38svh;
    padding: 3.25rem 1.25rem 1.25rem;
  }

  .waitlist input,
  .waitlist button {
    min-height: 3.9rem;
    border-radius: 0.65rem;
    font-size: 1.05rem;
  }

  .waitlist input {
    padding: 0 1.15rem;
  }
}

@media (max-height: 47rem) and (min-width: 42.01rem) {
  .hero {
    min-height: 31rem;
  }

  .signup {
    min-height: 21rem;
    padding-top: 4.5rem;
  }
}

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

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