:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #273236;
  --muted: #637176;
  --wine: #382334;
  --teal: #1f6667;
  --line: #ded8cc;
  --white: #fffdf9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input { font: inherit; }

.page {
  width: min(1120px, calc(100% - 96px));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  padding-block: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.055em;
  text-decoration: none;
}

.main {
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: 76px 56px;
}

.intro { width: min(100%, 680px); margin-inline: auto; }

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7.8vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 em {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.07em;
}

.lead {
  margin: 25px 0 39px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-wrap: pretty;
}

.waitlist { max-width: 558px; }

.waitlist > label {
  display: block;
  margin-bottom: 9px;
  font-size: .82rem;
  font-weight: 600;
}

.form-row { display: flex; align-items: stretch; gap: 10px; }

input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #b7b4aa;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

input[aria-invalid="true"] { border-color: #923f3a; }

button {
  flex-shrink: 0;
  min-height: 54px;
  padding: 12px 25px;
  border: 1px solid var(--wine);
  border-radius: 7px;
  background: var(--wine);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}

button:hover:not(:disabled) { background: #251621; }
button:disabled { cursor: wait; opacity: .65; }

.purpose {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.8;
}

.purpose a { display: inline-block; }

.form-status {
  min-height: 3.2em;
  margin: 15px 0 0;
  color: var(--teal);
  font-size: .85rem;
}

.form-status[data-state="error"], .no-script { color: #923f3a; }
.no-script { font-size: .85rem; }
.honeypot { display: none; }

.footer {
  min-height: 81px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}

.footer a { padding-block: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.privacy-main { align-items: start; padding-block: 56px 72px; }
.privacy-content { width: min(100%, 680px); margin-inline: auto; }
.privacy-content h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
.privacy-content h2 { margin: 32px 0 8px; font-size: 1.12rem; font-weight: 600; }
.privacy-content p, .privacy-content ul { color: var(--muted); font-size: .95rem; }
.privacy-content a { color: var(--ink); }
.privacy-content .updated { margin-top: 18px; font-size: .78rem; }

@media (max-width: 640px) {
  .page { width: calc(100% - 48px); }
  .header { min-height: 88px; }
  .main { padding-block: 56px 40px; }
  h1 { font-size: clamp(3.25rem, 11vw, 4.7rem); }
  .lead { max-width: 310px; margin-block: 24px 32px; }
  .footer { min-height: 72px; }
}

@media (max-width: 420px) {
  .form-row { flex-direction: column; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
