@font-face {
  font-family: "Sweet Sans Pro";
  src: url("assets/fonts/SweetSansPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("assets/fonts/SweetSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171816;
  --muted: #61645f;
  --line: #dcded9;
  --paper: #fbfcfa;
  --green: #1f4c3e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Figtree", Arial, sans-serif;
  --label: "Sweet Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 82px;
}

.wordmark {
  color: inherit;
  font-family: var(--label);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  display: block;
  margin-top: 3px;
  font-family: var(--label);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 82px);
}

.hero > :not(.hero-terrain) {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(70px, 9vh, 120px) 0 clamp(100px, 14vh, 170px);
}

.hero-copy {
  transform: translateY(-2vh);
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font: 400 clamp(64px, 7.2vw, 104px) / .9 var(--serif);
  letter-spacing: -3.8px;
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-terrain {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: -13vw;
  width: min(76vw, 1080px);
  height: min(72vh, 690px);
  overflow: hidden;
  opacity: .16;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 82%, transparent 100%);
}

.hero-terrain::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, transparent 18%, transparent 78%, var(--paper) 100%);
}

.hero-terrain img,
#terrain-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-terrain img {
  filter: sepia(.2) hue-rotate(95deg) saturate(.65) contrast(1.08);
  transform: scale(1.08);
}

#terrain-lines {
  opacity: .72;
}

.access-form {
  width: min(100%, 430px);
  margin-top: 40px;
}

.access-control {
  position: relative;
  width: 194px;
  height: 42px;
  border-bottom: 1px solid var(--ink);
  transition: width 420ms cubic-bezier(.22, 1, .36, 1);
}

.access-form.is-expanded .access-control {
  width: min(100%, 430px);
}

.access-trigger,
.access-submit {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.access-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  width: 100%;
  padding: 0;
  font-family: var(--label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.access-trigger:hover .arrow-icon,
.access-submit:hover .arrow-icon {
  transform: translate(2px, -2px);
}

.access-form.is-expanded .access-trigger {
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

#access-email {
  width: 100%;
  height: 100%;
  padding: 0 48px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease 120ms;
}

#access-email::placeholder {
  color: #8a8d87;
}

.access-form.is-expanded #access-email {
  opacity: 1;
  pointer-events: auto;
}

.access-submit {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease 120ms;
}

.access-form.is-expanded .access-submit {
  opacity: 1;
  pointer-events: auto;
}

.access-form.is-submitting .access-submit {
  cursor: wait;
  opacity: .45;
}

.access-form.is-complete .access-control {
  width: 100%;
  border-color: var(--green);
}

.access-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.access-status.is-error {
  color: #8a3026;
}

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

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

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 36px, 1200px);
  }

  .nav {
    height: 72px;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
    padding: 64px 0 110px;
  }

  .hero-copy {
    transform: none;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(57px, 16.2vw, 80px);
    letter-spacing: -2.8px;
  }

  .lede {
    max-width: 390px;
    font-size: 16px;
  }

  .hero-terrain {
    top: 23vh;
    right: -48vw;
    width: 142vw;
    height: 64vh;
    opacity: .1;
  }

  .access-form {
    margin-top: 34px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #terrain-lines {
    display: none;
  }

  .access-control,
  .access-trigger,
  #access-email,
  .access-submit {
    transition: none;
  }
}
