: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);
  --hero-copy-size: clamp(0.88rem, 1.12vw, 1.14rem);
}

@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: #171510;
  background: #fcf9e8;
  isolation: isolate;
}

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

.hero__image {
  background-image: url("assets/sana-watermark-full-piece-01-18-tinted-19deg.png");
  background-position: center 47%;
  background-repeat: no-repeat;
  background-size: auto min(93svh, 62rem);
  filter: none;
  opacity: 0.74;
  transform: scale(1.01);
  animation: imageSettle var(--motion-slow) forwards;
}

.hero__shade {
  z-index: -1;
  background: transparent;
}

.hero__line {
  position: relative;
  width: calc(100vw - (var(--page-pad) * 2));
  max-width: 100%;
  height: 1.5rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 5rem);
  font-family: var(--font-display);
  font-size: var(--hero-copy-size);
  font-style: italic;
  line-height: 1;
  text-shadow: none;
  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: none;
  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: var(--hero-copy-size);
  font-weight: 400;
  text-transform: uppercase;
}

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

.hero__logo-image {
  width: clamp(11rem, 19vw, 18rem);
  height: auto;
  filter: brightness(0);
}

.hero__note {
  align-self: end;
  max-width: 25rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-copy-size);
  font-style: italic;
  line-height: 1.24;
  color: #171510;
  text-shadow: none;
  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: #171510;
  text-shadow: none;
  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: var(--hero-copy-size);
  text-transform: uppercase;
}

.signup h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-copy-size);
  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: #171510;
  background: transparent;
  border: 1px solid rgba(23, 21, 16, 0.88);
  border-radius: 0;
  font-size: var(--hero-copy-size);
  outline: none;
  box-shadow: none;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.signup input::placeholder {
  color: rgba(23, 21, 16, 0.58);
}

.signup input:focus {
  background: rgba(23, 21, 16, 0.035);
  border-color: #171510;
  box-shadow: 0 0 0 2px rgba(23, 21, 16, 0.1);
}

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

.signup__button {
  width: 100%;
  grid-column: 1 / -1;
  min-height: 2.28rem;
  padding: 0 0.72rem;
  color: #171510;
  background: transparent;
  border: 1px solid rgba(23, 21, 16, 0.88);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--hero-copy-size);
  font-style: italic;
  line-height: 1;
  text-align: left;
  box-shadow: none;
  transition:
    background var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast);
}

.signup__button:hover,
.signup__button:focus-visible {
  color: #171510;
  background: rgba(23, 21, 16, 0.05);
  border-color: #171510;
  transform: translateY(-1px);
}

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

.signup__message {
  min-height: 0;
  margin: 0;
  color: rgba(23, 21, 16, 0.62);
  font-family: var(--font-display);
  font-size: var(--hero-copy-size);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

.signup__message:empty {
  display: none;
}

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

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

@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-image: url("assets/sana-watermark-full-piece-01-18-tinted-19deg.png");
    background-position: center 46%;
    background-repeat: no-repeat;
    background-size: auto min(76svh, 38rem);
    filter: none;
    opacity: 0.76;
    transform: none;
    animation: none;
  }

  .hero__image::after {
    content: none;
  }

  .hero__line {
    width: calc(100vw - 2rem);
    height: auto;
    gap: 0.6rem;
    font-size: var(--hero-copy-size);
  }

  .hero__center {
    align-self: center;
  }

  .hero__kicker {
    margin-bottom: 0.8rem;
  }

  .hero__logo-image {
    width: clamp(12rem, 48vw, 17rem);
  }

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