:root {
  --brand-bg: #050505;
  --brand-ink: #f2f2ef;
  --brand-muted: #8e8e8a;
  --brand-line: rgba(242, 242, 239, 0.22);
}

* {
  box-sizing: border-box;
}

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

body,
input,
button {
  font-family: Bahnschrift, "DIN Alternate", sans-serif;
}

body {
  background: var(--brand-bg);
  color: var(--brand-ink);
}

button,
input {
  border: 0;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: clip;
  padding: 36px 40px 28px;
}

.site-main,
.site-footer {
  width: 100%;
}

.site-main {
  display: grid;
  align-items: center;
}

.hero-shell {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 240px) minmax(320px, 580px);
  align-items: end;
  gap: clamp(44px, 8vw, 128px);
  animation: editorial-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-scene {
  position: relative;
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 1;
  perspective: 900px;
}

.logo-fallback,
.logo-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-fallback {
  transition: opacity 250ms ease-out, visibility 250ms ease-out;
}

.logo-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
}

.logo-scene.is-enhanced .logo-fallback {
  opacity: 0;
  visibility: hidden;
}

.announcement {
  min-width: 0;
  padding-bottom: 8px;
}

.eyebrow,
.announcement h1,
.signup-status,
.site-footer p {
  margin: 0;
}

.eyebrow {
  color: var(--brand-muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
}

.announcement h1 {
  max-width: 13ch;
  margin-top: 18px;
  font-family: "Bahnschrift Condensed", "DIN Condensed", sans-serif;
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
  font-stretch: condensed;
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
}

.signup-form {
  margin-top: clamp(32px, 6vh, 64px);
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--brand-line);
}

.signup-row input,
.signup-row button {
  min-height: 48px;
  background: transparent;
  color: var(--brand-ink);
}

.signup-row input {
  width: 100%;
  min-width: 0;
  padding: 0 16px 0 0;
  font-size: 1rem;
  outline: 0;
}

.signup-row input::placeholder {
  color: var(--brand-muted);
  opacity: 1;
}

.signup-row button {
  padding: 0 2px 0 24px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-row:focus-within {
  border-bottom-color: var(--brand-ink);
}

.signup-row input:focus-visible,
.signup-row button:focus-visible {
  outline: 1px solid var(--brand-ink);
  outline-offset: 4px;
}

.signup-status {
  min-height: 18px;
  padding-top: 10px;
  color: var(--brand-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

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

.site-footer {
  padding-top: 28px;
  border-top: 1px solid var(--brand-line);
}

.site-footer p {
  color: var(--brand-muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

@keyframes editorial-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 720px) {
  .page {
    padding-block: 24px 22px;
    padding-inline: 20px;
  }

  .site-main {
    align-items: start;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
  }

  .logo-scene {
    width: min(46vw, 180px);
  }

  .announcement h1 {
    max-width: 100%;
    margin-top: 14px;
    font-size: clamp(2.4rem, 11vw, 3.7rem);
  }

  .signup-form {
    margin-top: 30px;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .signup-row button {
    justify-self: start;
    width: 100%;
    padding: 0;
    border-top: 1px solid var(--brand-line);
    text-align: left;
  }

  .site-footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }

  .logo-fallback,
  .hero-shell {
    transition: none;
    animation: none;
  }
}
