/* Shared look for the newsletter sign-up and the contact form. Pages theme
   them with --form-accent, --form-ink, --form-dim, --form-heading,
   --form-field (field background, must be solid) and --form-card. */
.swizz-form {
  --accent: var(--form-accent, #7ed957);
  --ink: var(--form-ink, #f2ecff);
  --dim: var(--form-dim, #b9aed6);
  --heading: var(--form-heading, var(--accent));
  --field: var(--form-field, #0d0d12);
  color-scheme: dark;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  color: var(--ink);
}
.swizz-form input,
.swizz-form textarea,
.swizz-form button { font: inherit; font-size: 1rem; }
.swizz-form input::placeholder,
.swizz-form textarea::placeholder { color: var(--dim); opacity: .75; }
/* Keep browser autofill from painting the fields pale blue/yellow. */
.swizz-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px var(--field) inset;
  caret-color: var(--ink);
}
.swizz-form .fine { text-wrap: balance; margin-top: .9rem; font-size: .82rem; color: var(--dim); line-height: 1.5; }
.swizz-form .fine a { color: var(--dim); }
.swizz-form .fine a:hover, .swizz-form .fine a:focus { color: var(--accent); }
.swizz-form .turnstile { display: flex; justify-content: center; }
.swizz-form .turnstile:not(:empty) { margin-top: .8rem; }
.swizz-form .form-status:empty { display: none; }
.swizz-form .form-status { margin-top: .8rem; font-size: .95rem; }
.swizz-form .form-status[data-kind="ok"] { color: var(--accent); font-size: 1.1rem; }
.swizz-form .form-status[data-kind="error"] { color: #ff9a9a; }
.swizz-form .sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Newsletter sign-up card ---------- */
.swizz-signup {
  position: relative;
  max-width: 32rem;
  padding: 1.9rem 1.5rem 1.5rem;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 22px;
  background: var(--form-card, color-mix(in srgb, var(--accent) 5%, transparent));
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
}
.swizz-signup h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--heading);
  text-shadow: 0 0 18px color-mix(in srgb, var(--heading) 45%, transparent);
}
.swizz-signup .lead {
  max-width: 25rem;
  margin: .45rem auto 1.3rem;
  color: var(--ink);
  opacity: .9;
  text-wrap: balance;
}
/* Email box and button share one pill. */
.swizz-signup .pill {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 999px;
  background: var(--field);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.swizz-signup .pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.swizz-signup .pill input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .55rem .4rem .55rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.swizz-signup .pill button {
  flex: none;
  padding: .6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
}
.swizz-signup .pill button:hover:not(:disabled),
.swizz-signup .pill button:focus-visible {
  filter: brightness(1.12);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
  outline: 0;
}
.swizz-signup .pill button:disabled { opacity: .7; cursor: progress; }
.swizz-signup.is-sent .pill,
.swizz-signup.is-sent .turnstile { display: none; }
@media (max-width: 440px) {
  .swizz-signup { padding: 1.6rem 1rem 1.3rem; }
  .swizz-signup .pill { flex-direction: column; align-items: stretch; border-radius: 20px; }
  .swizz-signup .pill input { padding: .65rem .8rem; text-align: center; }
  .swizz-signup .pill button { padding: .7rem 1rem; border-radius: 14px; }
}

/* ---------- Contact form ---------- */
.swizz-contact { text-align: left; }
.swizz-contact .field { display: block; margin-bottom: .9rem; }
.swizz-contact .field span { display: block; font-size: .9rem; color: var(--dim); margin-bottom: .3rem; }
.swizz-contact input,
.swizz-contact textarea {
  width: 100%;
  color: var(--ink);
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--dim) 45%, transparent);
  border-radius: 10px;
  padding: .7rem .9rem;
}
.swizz-contact textarea { min-height: 9rem; resize: vertical; }
.swizz-contact input:focus-visible,
.swizz-contact textarea:focus-visible,
.swizz-contact button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.swizz-contact button {
  padding: .7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.swizz-contact button:hover:not(:disabled) { background: var(--accent); color: #000; }
.swizz-contact button:disabled { opacity: .55; cursor: progress; }
.swizz-contact.is-sent .field,
.swizz-contact.is-sent .actions { display: none; }
/* Once sent, the thank-you lines up with the centred intro above it. */
.swizz-contact.is-sent .form-status,
.swizz-contact.is-sent .fine { text-align: center; text-wrap: balance; }
