/* ============================================================
   waitlist.css — the Buttondown form, on Tentanote's page and at the
   foot of every essay: an address and a button, on one line. The field
   takes the raised surface so it reads as a place to type.
   ============================================================ */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.waitlist {
  margin: 22px auto 0;
  max-width: 26rem;
  display: grid;
  gap: 12px;
}

.waitlist-row { display: flex; gap: 8px; }

.waitlist input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-default);
  background: var(--surface-raised);
  border: 1px solid var(--border-emphasis);
  border-radius: var(--radius-full);
  transition: border-color 120ms ease;
}

.waitlist input::placeholder { color: var(--text-faint); }
.waitlist input:hover { border-color: var(--border-strong); }

.waitlist button {
  flex: none;
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.waitlist button:disabled { opacity: 0.6; cursor: default; }

.waitlist input:focus-visible,
.waitlist button:focus-visible {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus-ring) 40%, transparent);
}

.waitlist-done {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The row holds at a phone's 375pt; only narrower than that does the button
   go under the field, where the field must stop flexing or it has no height. */
@media (max-width: 340px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-row input { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist input { transition: none; }
}
