:root {
  --ink: #1d1d1f;
  --ink-soft: #3a3a3c;
  --ink-faint: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --bg-top: #f8f7f4;
  --bg-bottom: #eeebe6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg-bottom);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, p {
  margin: 0;
}

a {
  color: inherit;
}

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

/* Control tower drawing, bottom right */

body {
  position: relative;
}

.nav,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.scene {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: min(80vh, 760px);
  aspect-ratio: 520 / 800;
  pointer-events: none;
}


.scene__art {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

/* Top bar */

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 32px;
}

.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* The one column */

.main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.column {
  width: 100%;
  max-width: 560px;
}

.title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8.4vw, 68px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.5;
}

/* Waitlist */

.waitlist {
  margin-top: 36px;
}

.form {
  display: flex;
  gap: 10px;
}

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(29, 29, 31, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.form__input::placeholder {
  color: #8e8e93;
}

.form__input[aria-invalid="true"] {
  border-color: var(--ink);
}

.button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: #000;
}

.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.button:focus-visible,
.form__input:focus-visible,
.brand:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.form__status {
  margin-top: 14px;
  font-size: 16px;
}

.form__status:empty {
  display: none;
}

.form__status--done {
  font-size: 19px;
  font-weight: 600;
}

.waitlist__note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 14px;
}

/* Listary 7.1 */

.story {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */

.footer {
  padding: 24px 32px 32px;
  color: var(--ink-faint);
  font-size: 14px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1340px) {
  .scene {
    position: relative;
    right: auto;
    height: 240px;
    margin-left: auto;
  }

}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .main {
    align-items: flex-start;
    padding: 32px 20px 16px;
  }

  .form {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer {
    padding: 20px 20px 28px;
  }
}
