@font-face {
  font-family: "Avenir Next CEV";
  src: url("assets/avenir-next-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --stone: #d3b8a9;
  --taupe: #6d615a;
  --ink: #181619;
  --paper: #f4eee9;
  --line: rgba(109, 97, 90, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 320px;
  background: var(--stone);
  color: var(--taupe);
  font-family: "Avenir Next CEV", "Avenir Next", sans-serif;
  font-synthesis: none;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), transparent 42%),
    var(--stone);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 40vw;
  height: 40vw;
  min-width: 320px;
  min-height: 320px;
  border: 1px solid rgba(109, 97, 90, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before {
  top: -28vw;
  right: -9vw;
}

body::after {
  bottom: -31vw;
  left: -7vw;
}

.grain {
  position: fixed;
  z-index: 3;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.landing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 54px) clamp(22px, 5vw, 76px) clamp(22px, 3.5vw, 46px);
}

.eyebrow {
  margin: 0;
  color: rgba(109, 97, 90, 0.82);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(54px, 9vh, 100px) 0 clamp(46px, 8vh, 80px);
  text-align: center;
}

.logo-wrap {
  width: min(72vw, 410px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.signup {
  width: min(100%, 570px);
  margin-top: clamp(46px, 6vh, 68px);
}

.signup h1 {
  margin: 0;
  color: var(--taupe);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.signup__intro {
  max-width: 460px;
  margin: 12px auto 28px;
  color: rgba(109, 97, 90, 0.78);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 300;
  line-height: 1.65;
}

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

input,
button {
  font: inherit;
}

.input-row input {
  min-width: 0;
  padding: 14px 4px 13px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
}

.input-row input::placeholder {
  color: rgba(109, 97, 90, 0.55);
}

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

.input-row button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 3px 10px 20px;
  border: 0;
  background: transparent;
  color: var(--taupe);
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.input-row button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  transition: transform 400ms var(--ease);
}

.input-row button:hover svg,
.input-row button:focus-visible svg {
  transform: translateX(5px);
}

.input-row button:focus-visible {
  outline: 1px solid var(--taupe);
  outline-offset: 5px;
}

.privacy-note {
  margin: 11px 0 0;
  color: rgba(109, 97, 90, 0.64);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.form-status {
  min-height: 1.5em;
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 300;
}

.form-status:empty {
  margin: 0;
}

.press-contact {
  margin: 27px 0 0;
  color: rgba(109, 97, 90, 0.72);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.035em;
}

.press-contact a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(109, 97, 90, 0.42);
  color: var(--taupe);
  text-decoration: none;
  transition: border-color 250ms ease, color 250ms ease;
}

.press-contact a:hover,
.press-contact a:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.press-contact a:focus-visible {
  outline: 1px solid var(--taupe);
  outline-offset: 5px;
}

.input-row button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(40px, 120px) auto;
  align-items: center;
  justify-content: end;
  gap: 14px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.hidden-field,
.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;
}

.reveal {
  animation: reveal 1s var(--ease) both;
}

.reveal--one {
  animation-delay: 100ms;
}

.reveal--two {
  animation-delay: 220ms;
}

.reveal--three {
  animation-delay: 380ms;
}

.reveal--four {
  animation-delay: 520ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(13px);
  }

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

@media (max-width: 600px) {
  .landing {
    padding-inline: 22px;
  }

  .hero {
    padding-block: 42px 34px;
  }

  .logo-wrap {
    width: min(84vw, 340px);
  }

  .signup {
    margin-top: 42px;
  }

  .signup__intro {
    margin-bottom: 22px;
  }

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

  .input-row button {
    justify-content: space-between;
    padding: 13px 3px 12px;
    border-top: 1px solid rgba(109, 97, 90, 0.18);
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    justify-content: stretch;
  }

  .site-footer__line {
    grid-column: 2;
    grid-row: 1;
  }

  .site-footer span:last-child {
    display: none;
  }
}

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

.thanks {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px;
  text-align: center;
}

.thanks__content {
  width: min(100%, 520px);
}

.thanks__logo {
  width: min(76vw, 330px);
  height: auto;
}

.thanks h1 {
  margin: 48px 0 10px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.thanks p {
  margin: 0;
  color: rgba(109, 97, 90, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.thanks a {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--taupe);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
