:root {
  --bg: #e8e4db;
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.6);
  --body: rgba(0, 0, 0, 0.8);
  --line: rgba(0, 0, 0, 0.2);
  --line-strong: rgba(0, 0, 0, 0.6);
  --error: #8f1f1f;
  --success: #1f5a36;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.landing {
  width: min(100%, 1024px);
  min-height: min(780px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-mark {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}

.headline-group {
  margin-bottom: 32px;
}

h1 {
  margin: 0;
  font-family: "EB Garamond", "Times New Roman", serif;
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-wrap: balance;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  font-style: italic;
}

.intro {
  width: min(100%, 672px);
  margin: 0 0 40px;
  color: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
}

.waitlist {
  width: min(100%, 512px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 64px;
}

.waitlist input {
  width: 100%;
  min-width: 0;
  height: 49px;
  padding: 0 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  outline: none;
  transition: border-color 160ms ease;
}

.waitlist input::placeholder {
  color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.waitlist input:focus {
  border-bottom-color: var(--line-strong);
}

.waitlist input:disabled {
  opacity: 0.7;
}

.waitlist button,
.joined-pill {
  min-height: 48px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.waitlist button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.waitlist button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

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

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

.waitlist.joined {
  grid-template-columns: auto;
  justify-items: center;
}

.waitlist.joined input,
.waitlist.joined button {
  display: none;
}

.waitlist.joined .status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.details {
  width: min(100%, 1024px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
}

.details div {
  min-width: 0;
}

.details dt {
  margin: 0 0 8px;
  font-family: "EB Garamond", "Times New Roman", serif;
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.9);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  line-height: 1.5;
}

.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) {
  .site-shell {
    align-items: flex-start;
    padding: 40px 24px;
  }

  .landing {
    min-height: calc(100vh - 80px);
  }

  .brand-mark {
    margin-bottom: 40px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 4.75rem);
  }

  .waitlist {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 52px;
  }

  .waitlist input {
    max-width: 320px;
    text-align: center;
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 480px) {
  .site-shell {
    padding: 36px 20px;
  }

  .headline-group {
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4rem);
  }

  .intro {
    margin-bottom: 36px;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
