:root {
  color-scheme: dark;
  --ink: #19161c;
  --paper: #f4eadb;
  --muted: #bdb1bc;
  --brass: #f0c48a;
  --line: #423946;
  --field: #211c25;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  font: 100% / 1.5 var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  width: min(100% - clamp(2rem, 8vw, 8rem), 88rem);
  min-height: 100svh;
  margin: 0 auto;
  padding-block-end: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
}

[hidden] {
  display: none !important;
}

.site-header {
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6.25rem;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--brass);
}

.wordmark {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font: 1.55rem / 1.1 var(--serif);
  letter-spacing: -0.025em;
  text-decoration: none;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  min-height: 38rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: #201b25;
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding: clamp(2rem, 4.4vw, 4.5rem);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: normal;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 5.65vw, 6.1rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.intro {
  max-width: 36ch;
  margin-block-start: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
}

.waitlist {
  margin-block-start: 2.25rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-block-start: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
}

input,
button {
  min-height: 3.125rem;
  border-radius: 0.4rem;
  font: inherit;
}

input {
  flex: 1 1 11rem;
  width: 100%;
  min-width: 0;
  padding-inline: 0.875rem;
  border: 1px solid #776878;
  background: var(--field);
  color: var(--paper);
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

button {
  padding-inline: 1rem;
  border: 1px solid transparent;
  background: var(--brass);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #f8d8ac;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.hint,
.feedback {
  margin-block-start: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.feedback {
  color: #ffb6ae;
}

.feedback:empty {
  margin: 0;
}

.waitlist h2 {
  font-size: 2rem;
  line-height: 1.15;
}

.waitlist section p {
  margin-block: 0.5rem 1rem;
  color: var(--muted);
}

.text-button,
.text-button:hover:not(:disabled) {
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero-art {
  position: relative;
  min-height: 100%;
  background: var(--ink);
}

.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 50%;
}

@media (width <= 65rem) {
  .hero-copy {
    padding: clamp(1.5rem, 4vw, 3rem);
  }

  .form-row button {
    flex: 1 1 auto;
  }
}

@media (width <= 49rem) {
  .site-header {
    min-height: 5rem;
  }

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

  .hero-copy {
    padding-block: 2rem;
  }

  h1 {
    font-size: clamp(2.6rem, 8vw, 4.7rem);
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 1.55;
  }
}
