:root {
  color-scheme: light;
  --color-cream: #fffabd;
  --color-blue: #436eb4;
  --color-brown: #54311a;
  --color-butter-yellow: #fffabd;
  --color-blood-orange: #f34213;
  --color-pink: #fc9fb8;
  --color-ink: #1a1a33;
  --color-white: #fffdf1;
  --color-overlay: rgba(26, 26, 51, 0.38);
  --color-overlay-strong: rgba(26, 26, 51, 0.58);
  --font-primary: "PP Neue Montreal", "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Louize Display", "Louize", Georgia, "Times New Roman", serif;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --radius-sm: 0.375rem;
  --border-hairline: 1px solid rgba(255, 253, 241, 0.72);
  --motion-fast: 180ms ease;
  --motion-slow: 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --page-pad: clamp(1.5rem, 3vw, 3.25rem);
}

@font-face {
  font-family: "PP Neue Montreal";
  src: local("PP Neue Montreal Book");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: local("PP Neue Montreal Medium");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Louize Display";
  src: local("Louize Display Italic");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  font-family: var(--font-primary);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
  background: var(--color-white);
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  display: grid;
  grid-template: auto 1fr auto / 1fr;
  padding: var(--page-pad);
  color: var(--color-white);
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background-image: url("assets/sana-wet-footprints-walk.png");
  background-position: center;
  background-size: cover;
  filter: sepia(0.18) saturate(0.86) hue-rotate(-4deg) brightness(1.2) contrast(0.9);
  transform: scale(1.03);
  animation: imageSettle var(--motion-slow) forwards;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.02));
}

.hero__line {
  position: relative;
  width: calc(100vw - (var(--page-pad) * 2));
  max-width: 100%;
  height: 1rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 5rem);
  font-family: var(--font-display);
  font-size: clamp(0.76rem, 1vw, 1.02rem);
  font-style: italic;
  line-height: 1;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
  opacity: 0;
  animation: riseIn 760ms ease 120ms forwards;
}

.hero__line span {
  display: block;
}

.hero__center {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  align-self: auto;
  justify-self: auto;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 14px));
  animation: centerRiseIn 820ms ease 260ms forwards;
}

.hero__kicker {
  margin: 0 0 0.42rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.52rem, 0.62vw, 0.64rem);
  font-weight: 400;
  text-transform: uppercase;
}

.hero__logo {
  margin: 0;
  line-height: 0;
}

.hero__logo-image {
  width: clamp(11rem, 19vw, 18rem);
  height: auto;
  filter: drop-shadow(0 1px 18px rgba(0, 0, 0, 0.24));
}

.hero__note {
  align-self: end;
  max-width: 25rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.12vw, 1.14rem);
  font-style: italic;
  line-height: 1.24;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
  opacity: 0;
  animation: riseIn 760ms ease 420ms forwards;
}

.signup {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: clamp(1.5rem, 5.25vh, 3.6rem);
  width: min(24rem, calc(100% - var(--page-pad) * 2));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  color: var(--color-white);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 1;
  animation: none;
}

.signup__intro,
.signup__message {
  grid-column: 1 / -1;
}

.signup__decoy {
  position: fixed;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup__eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.signup h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.94rem, 1.14vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

.signup__field {
  position: relative;
}

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

.signup input {
  width: 100%;
  min-height: 2.28rem;
  padding: 0.54rem 0.72rem;
  color: var(--color-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 0;
  font-size: 0.84rem;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 10px 28px rgba(0, 0, 0, 0.18);
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.signup input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.signup input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.signup__field {
  grid-column: 1 / -1;
}

.signup__button {
  width: 100%;
  grid-column: 1 / -1;
  min-height: 2.28rem;
  padding: 0 0.72rem;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 10px 28px rgba(0, 0, 0, 0.18);
  transition:
    background var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast);
}

.signup__button:hover,
.signup__button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-1px);
}

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

.signup__message {
  min-height: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  line-height: 1.25;
}

.signup[data-state="error"] .signup__message {
  color: #ffffff;
}

.signup[data-state="success"] .signup__message {
  color: #ffffff;
}

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

@keyframes imageSettle {
  to {
    transform: scale(1);
  }
}

@keyframes centerRiseIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    padding: 1rem;
    overflow: hidden;
  }

  .hero__image {
    background-position: center;
  }

  .hero__line {
    width: calc(100vw - 2rem);
    height: auto;
    gap: 0.6rem;
    font-size: clamp(0.62rem, 2.5vw, 0.78rem);
  }

  .hero__center {
    align-self: center;
  }

  .hero__kicker {
    margin-bottom: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(4.3rem, 20vw, 5.4rem);
  }

  .hero__note {
    display: none;
  }

  .signup {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
    grid-template-columns: 1fr;
  }

  .signup__button {
    width: 100%;
  }

}

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