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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

a { color: var(--green); }

#wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
#wordmark span { color: var(--brass); font-weight: 600; }

#tagline {
  font-style: italic;
  color: var(--brass-deep);
  font-size: 0.9rem;
  margin: 0.15rem 0 0;
}

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

/* Honeypot: invisible to humans and assistive tech, visible to naive bots.
   The wrapper is moved off-screen and collapsed; the input itself is also
   zeroed out because a browser's default text-input rendering keeps its
   own non-empty box regardless of an ancestor's size or overflow. Avoiding
   display:none/visibility:hidden means naive bots that only skip those
   two still see and fill the field. */
.hp { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.hp input { width: 0; height: 0; padding: 0; border: 0; }

.hero { padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 6vw, 3.5rem); }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}

#hero-sub {
  color: var(--muted);
  max-width: var(--measure);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

#waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: var(--measure);
}

#email {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#email:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

#submit {
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 650;
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
}
#submit:hover { background: #173B2E; }
#submit[disabled] { opacity: 0.6; cursor: progress; }

#form-error {
  max-width: var(--measure);
  margin: 0.7rem 0 0;
  color: #8C2F1D;
  font-size: 0.9rem;
}

#fine-print {
  color: var(--faint);
  font-size: 0.85rem;
  margin: 0.7rem 0 0;
}

.beats {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding-block: clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 3rem);
  border-top: 1px solid var(--border);
}

.beat h2 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.beat p { color: var(--muted); margin: 0; font-size: 0.97rem; }

#trust {
  max-width: var(--measure);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

#audience {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

footer {
  border-top: 1px solid var(--border);
  padding-block: 1.4rem 2.5rem;
  color: var(--faint);
  font-size: 0.87rem;
}
footer p { margin: 0; display: flex; gap: 0.6rem; }

.prose { max-width: var(--measure); padding-block: 1rem 3rem; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose .lede { color: var(--faint); font-size: 0.9rem; margin-top: 0; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
#wordmark a { color: inherit; text-decoration: none; }

#step-2 h2, #done h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
#step-2-sub { color: var(--muted); max-width: var(--measure); margin: 0 0 1.3rem; }

#details-form {
  display: grid;
  gap: 0.35rem;
  max-width: var(--measure);
}
#details-form label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  margin-top: 0.6rem;
}
#details-form input, #details-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
  resize: vertical;
}
#details-form input:focus-visible,
#details-form textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.details-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
#details-submit {
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 650;
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
}
.linky {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--faint);
  text-decoration: underline;
  cursor: pointer;
}
#details-error { color: #8C2F1D; font-size: 0.9rem; margin: 0.7rem 0 0; }
#done p { color: var(--muted); }

#preview { margin: 0 0 clamp(2rem, 6vw, 3rem); }
#preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(42, 38, 34, 0.07);
}
#preview figcaption {
  color: var(--faint);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}
