:root {
  --background: #101714;
  --surface: #18221d;
  --text: #f5f1e8;
  --muted: #bdc2b9;
  --quiet: #8f978e;
  --accent: #e4c895;
  --line: #465149;
  --error: #ffc4b8;
  --success: #c6e8bb;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  padding-bottom: var(--keyboard-space, 0px);
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--background);
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.invitation {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.brand {
  margin: 0 0 clamp(52px, 10vh, 96px);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  max-width: 9.5ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 540px;
  margin: clamp(24px, 3vw, 34px) 0 clamp(32px, 4vw, 44px);
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.signup {
  max-width: 580px;
  scroll-margin-block: 24px;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.field input,
.field button {
  min-height: 56px;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 16px;
  outline: none;
  color: var(--text);
  background: var(--surface);
}

.field input::placeholder {
  color: var(--quiet);
}

.field input:focus {
  border-color: var(--accent);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field button {
  border: 1px solid var(--accent);
  padding: 0 22px;
  color: var(--background);
  background: var(--accent);
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
}

.field button:hover,
.field button:focus-visible {
  background: #f0d9ad;
}

.field button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.reassurance,
.status {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.reassurance {
  color: var(--quiet);
}

.status {
  color: var(--text);
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

.status[hidden] {
  display: none;
}

.hero-photo {
  width: 100%;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: min(78svh, 760px);
  object-fit: cover;
  object-position: center 58%;
}

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

@media (max-width: 760px) {
  .landing {
    place-items: start;
    padding: max(20px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }

  .invitation {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .brand {
    margin-bottom: clamp(44px, 9vh, 72px);
  }

  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .lead {
    margin-block: 22px 30px;
  }

  .field {
    grid-template-columns: minmax(0, 1fr);
  }

  .field button {
    width: 100%;
  }

  .hero-photo img {
    height: min(68svh, 540px);
    object-position: center 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
