/* ============================================================================
   GREISSON — forms.css  ·  the capture/notify form + cookie notice, on slate
   Owned by slice A; linked by any page (A or B) that carries a .capture form or
   loads consent.js. The shared tokens come from css/site.css (slate). The old
   /site.css carried these rules against the legacy cream tokens (--sans,
   --ink-dim); this is the same plumbing restyled for the slate system so the
   forms and the cookie bar look native to it.
   ========================================================================== */

/* --- the capture / notify form -------------------------------------------- */
.capture {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin: 0 auto; max-width: 640px;
}
.capture input[type="email"],
.capture input[type="text"]:not(.hp) {
  font-family: var(--display); font-size: 1rem; line-height: 1.2;
  color: var(--ink); background: var(--ground-deep);
  border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; width: min(300px, 100%);
  transition: border-color .15s ease;
}
.capture input::placeholder { color: var(--ink-faint); }
.capture input:focus-visible { outline: none; border-color: var(--accent); }
.capture .btn { cursor: pointer; }

/* a notify form sat under a price block (e.g. macOS on /quill/) */
.price-notify { margin-top: clamp(28px, 4vw, 44px); }

/* a short line above a form (e.g. the macOS notify prompt on /quill/) */
.capture-lead {
  text-align: center; margin: 0 auto 16px; max-width: 54ch;
  font-family: var(--display); font-style: italic; font-size: 1.04rem;
  color: var(--ink-soft);
}

/* plumbing: hidden honeypot, Turnstile slot, status + thanks messages.
   .hp MUST stay off-screen — a visible honeypot gets filled by real users and
   the server silently drops them (notify.js: `if (body.website) return ok`). */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-slot[hidden] { display: none; }
.cf-slot { display: flex; justify-content: center; margin: 6px 0 0; flex-basis: 100%; }  /* Turnstile ~300px, on its own line */
.capture-status {
  width: 100%; flex-basis: 100%; margin: 10px 0 0; text-align: center;
  font-family: var(--display); font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
}
.capture-status.is-error { color: #f0a58a; }
.capture-thanks {
  margin: 10px auto 0; text-align: center; max-width: 54ch;
  font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink);
}
.capture-note {
  text-align: center; margin: 18px auto 0; max-width: 62ch;
  font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--ink-faint);
}

/* quiet button — used by the cookie bar's "No thanks"; a ghost that isn't gold */
.btn-quiet {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-quiet:hover { background: var(--ground-deep); border-color: var(--ink); color: var(--ink); transform: none; }

a.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.text-link:hover { color: var(--ink); }

/* --- cookie notice (consent.js builds this; classes must be styled here) --- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px;
  flex-wrap: wrap;
  background: var(--ground-deep); border: 1px solid var(--line);
  padding: 14px 20px; box-shadow: 0 12px 34px -10px rgba(0,0,0,.6);
  opacity: 1; transition: opacity .3s ease, transform .3s ease;
}
.cookie-bar.is-dismissed { opacity: 0; transform: translateY(8px); }
.cookie-bar-msg {
  font-family: var(--display); font-size: .96rem; line-height: 1.5;
  color: var(--ink-soft); margin: 0; flex: 1 1 320px;
}
.cookie-bar-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { font-size: .8rem; padding: 10px 20px; }
@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-bar-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; text-align: center; }
}
