:root {
  color-scheme: dark;
  --ink: #f3f1ed;
  --muted: rgba(243, 241, 237, 0.68);
  --dim: rgba(243, 241, 237, 0.43);
  --line: rgba(243, 241, 237, 0.2);
  --panel: rgba(20, 21, 20, 0.36);
  --panel-strong: rgba(20, 21, 20, 0.3);
  --button: #f7f4ef;
  --button-ink: #111111;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #090a09;
  color: var(--ink);
  font-family: Quicksand, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(18px, 2.6vw, 40px);
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.72) contrast(0.92) brightness(0.66);
  transform: scale(1.01);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 46%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 31%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 34%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.02) 44%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__content {
  align-self: start;
  width: min(440px, 100%);
  margin-block: clamp(44px, 4.8vw, 72px) 0;
}

h1 {
  margin: 0;
  font-family: Aboreto, Marcellus, Georgia, serif;
  font-size: clamp(54px, 4.9vw, 82px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 0.95;
  color: rgba(236, 231, 220, 0.84);
}

.waitlist-panel {
  --panel-pad: clamp(16px, 1.8vw, 22px);
  width: min(420px, 100%);
  position: relative;
  margin-top: 18px;
  padding: var(--panel-pad);
  border: 1px solid rgba(243, 241, 237, 0.06);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--panel), rgba(26, 27, 26, 0.18));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.hero__lead {
  margin: 0;
  color: rgba(243, 241, 237, 0.78);
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
}

.signup {
  width: 100%;
  margin-top: clamp(42px, 5.2vw, 76px);
  transition: opacity 220ms ease;
}

.signup input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 1px solid rgba(243, 241, 237, 0.2);
  border-radius: 8px;
  background: var(--panel-strong);
  color: rgba(243, 241, 237, 0.82);
  padding: 0 18px;
  outline: none;
  font-size: clamp(15px, 1vw, 17px);
}

.signup input::placeholder {
  color: rgba(243, 241, 237, 0.47);
}

.signup input:focus {
  border-color: rgba(243, 241, 237, 0.64);
}

.signup button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  cursor: pointer;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease;
}

.signup button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.signup button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.signup__note {
  min-height: 20px;
  margin: 10px 4px 0;
  color: var(--dim);
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 500;
  text-align: center;
}

.signup__note.is-error {
  color: #e9b8a9;
}

.signup__note.is-success {
  color: #d6c79c;
}

.signup-success {
  position: absolute;
  left: var(--panel-pad);
  right: var(--panel-pad);
  bottom: var(--panel-pad);
  display: block;
  width: auto;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.waitlist-panel.is-success .signup-success {
  opacity: 1;
  transform: translateY(0);
}

.waitlist-panel.is-success .signup {
  opacity: 0;
  pointer-events: none;
}

.signup-success__title {
  margin: 10px 0 0;
  color: #e4d19e;
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 500;
  line-height: 1.28;
}

.signup-success__copy {
  margin: 18px 0 0;
  color: rgba(243, 241, 237, 0.72);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.65;
  max-width: 33ch;
}

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

@media (max-width: 760px) {
  .hero {
    padding: 18px;
  }

  .hero__image {
    object-position: 69% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.16) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.09) 34%, rgba(0, 0, 0, 0.68) 100%);
  }

  .hero__content {
    align-self: center;
    margin-block: 78px 22px;
  }

  h1 {
    font-size: clamp(72px, 19vw, 96px);
    letter-spacing: 0.16em;
  }

  .waitlist-panel {
    --panel-pad: 18px 12px 14px;
    padding: 18px 12px 14px;
  }

  .signup {
    margin-top: 88px;
  }

  .signup-success {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }

  .signup-success__title {
    font-size: 22px;
  }

  .signup-success__copy {
    margin-top: 14px;
    font-size: 15px;
  }

  .signup-success__footer {
    margin-top: 16px;
    font-size: 13px;
  }

  .signup button,
  .signup input {
    width: 100%;
  }

}
