*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #f7f1e9;
  --muted: rgba(247, 241, 233, 0.72);
  --quiet: rgba(247, 241, 233, 0.48);
  --panel: rgba(12, 10, 8, 0.38);
  --line: rgba(247, 241, 233, 0.62);
  --dark: #090806;
  --edge: clamp(22px, 3vw, 48px);
  --font: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
}

html {
  min-height: 100%;
  background: var(--dark);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--font);
}

button,
input {
  font: inherit;
}

.page {
  --move-x: 0px;
  --move-y: 0px;
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 112px var(--edge) 102px;
  place-items: center;
  isolation: isolate;
}

.media,
.media img,
.shade {
  position: absolute;
  inset: 0;
}

.media {
  z-index: -3;
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.92) contrast(1.04);
  transform: translate3d(var(--move-x), var(--move-y), 0) scale(1.045);
  transform-origin: center;
  animation: breathe 42s ease-in-out infinite alternate;
  will-change: transform;
}

.shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 28%, rgba(0, 0, 0, 0.78));
}

.line {
  position: absolute;
  z-index: 2;
  width: 108px;
  height: 1px;
  opacity: 0.78;
  pointer-events: none;
  animation: draw 1400ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.line-top {
  top: 52px;
  left: var(--edge);
  transform-origin: left center;
}

.line-bottom {
  right: var(--edge);
  bottom: 52px;
  transform-origin: right center;
}

.meta {
  position: absolute;
  z-index: 2;
  max-width: min(340px, calc(100vw - 44px));
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.28em;
  line-height: 1.45;
  text-transform: uppercase;
  animation: reveal 1100ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.meta-top {
  top: 39px;
  right: var(--edge);
  text-align: right;
}

.meta-bottom {
  left: var(--edge);
  bottom: 38px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(488px, 100%);
  justify-items: center;
  gap: 32px;
  text-align: center;
  transform: translateY(-24px);
}

.logo {
  display: block;
  width: min(250px, 68vw);
  height: auto;
  animation: rise 1200ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.copy {
  display: grid;
  gap: 14px;
  animation: rise 1200ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

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

.copy p,
.status {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.copy p {
  max-width: 31rem;
  font-size: 18px;
}

.signup {
  display: grid;
  width: min(430px, 100%);
  gap: 10px;
  padding-top: 8px;
  animation: rise 1200ms cubic-bezier(0.22, 1, 0.36, 1) 380ms both;
}

.signup input,
.signup button {
  width: 100%;
  min-height: 54px;
  border-radius: 0;
}

.signup input {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 18px;
  outline: none;
  backdrop-filter: blur(10px);
}

.signup input::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.signup input:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.signup button {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--dark);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.signup button::after {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 33%,
    rgba(255, 255, 255, 0.36) 50%,
    transparent 67%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signup button:hover,
.signup button:focus-visible {
  background: transparent;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.signup button:hover::after,
.signup button:focus-visible::after {
  transform: translateX(130%);
}

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

.status {
  min-height: 1.45em;
  color: var(--quiet);
  font-size: 14px;
}

.signup.is-complete .status {
  color: var(--ink);
}

.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;
}

@keyframes breathe {
  from {
    transform: translate3d(var(--move-x), var(--move-y), 0) scale(1.045);
  }

  to {
    transform: translate3d(var(--move-x), var(--move-y), 0) scale(1.085);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes draw {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 0.78;
    transform: scaleX(1);
  }
}

@media (max-width: 760px) {
  .page {
    padding-top: 104px;
    padding-bottom: 92px;
  }

  .media img {
    object-position: 53% 58%;
  }

  .line-top {
    top: 42px;
  }

  .line-bottom {
    bottom: 42px;
  }

  .meta {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .meta-top {
    top: 31px;
  }

  .meta-bottom {
    bottom: 29px;
  }

  .hero {
    gap: 28px;
    transform: translateY(-8px);
  }

  .copy p {
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  :root {
    --edge: 20px;
  }

  .page {
    padding-top: 108px;
    padding-bottom: 96px;
  }

  .media img {
    object-position: 56% 54%;
  }

  .line {
    width: 82px;
  }

  .logo {
    width: min(226px, 74vw);
  }

  .copy p {
    max-width: 20rem;
  }

  .signup button {
    min-height: 56px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.17em;
  }

}

@media (max-height: 660px) {
  .page {
    min-height: 680px;
  }

  .hero {
    transform: none;
  }
}

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

  .media img {
    transform: none;
  }

}
