/* ==========================================================================
   Plain text pages - My Story, Privacy, Terms, the accessibility statement,
   Contact. One readable column, generous spacing, nothing clever.
   ========================================================================== */

/* Narrower than the rest of the site, and centred: the same gap on both
   sides, with the text filling what is between them rather than sitting in a
   column off to one side. */
.page {
  max-width: 40%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-8);
}
@media (max-width: 1600px) { .page { max-width: 55%; } }
@media (max-width: 1200px) { .page { max-width: 70%; } }
@media (max-width: 1000px) { .page { max-width: 100%; } }
/* the page head is shared - see coa-components.css */

/* Long-form text and the callout are shared - see coa-components.css.
   They are components, and the CoA Design System documents them. */

/* ---- the contact form ---- */
/* fills the page's width, like the prose does - a narrower column inside an
   already narrow page just looked off-centre */
/* Fields, the form stack and the required marks are all shared - see Forms
   in coa-components.css, which the CoA Design System's Forms page documents. This
   page had grown its own copy, so the real contact form and the page that
   documents it had drifted apart. The one thing that is genuinely this
   page's: a message box wants more room than a default textarea. */
.form-grid textarea { min-height: 11rem; }

/* While it sends, Send itself says "Sending your message..." with a turning
   circle to the left of the words, inside the button (her ask 2026-12-03).
   The button stays a real, enabled button (no disabled buttons - her rule);
   js/contact-form.js just ignores a second press. CONTACT FORM ONLY for
   now: if she likes it, it becomes a shared button state via the
   Playground and the Design tab. */
#contact-form .btn-spinner { display: none; }
#contact-form .is-busy .btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;   /* the gap that shows it turning */
  border-radius: 50%;
  animation: contact-spin 0.8s linear infinite;
}
/* while sending (her notes 2026-12-03 and 2026-12-04): no border, italic,
   and BOTH colors two palette steps darker than the ready button, so
   "working" looks clearly different from "ready". Fill --wine-5 -> --wine-3
   (#5a1330), words --gray-9 -> --gray-7 (#bcbcbc): 7.04:1, inside the
   6:1 to 8:1 she asked for. (Before 2026-12-04: --gray-9 on the normal
   #771e44 fill, 7.89:1 - too close to the ready button.) The border goes
   transparent rather than away, so the button keeps its size, and the
   hover brighten is off so the fill (and the contrast) never shifts under
   the mouse. The circle is currentColor, so it turns gray with the words. */
#contact-form .is-busy,
#contact-form .is-busy:hover {
  cursor: progress;
  background-color: var(--wine-3);
  color: var(--gray-7);
  font-style: italic;
  border-color: transparent;
  filter: none;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
/* "reduce motion" on (her own PC has it on): still turns, at half speed. It
   is the only moving sign that the message is on its way, and it stops the
   moment the send ends. !important because coa-components.css stops every
   animation with "* { animation-duration: 0.01ms !important }" - this more
   specific selector is the one exception. */
@media (prefers-reduced-motion: reduce) {
  #contact-form .is-busy .btn-spinner { animation-duration: 1.6s !important; }
}

/* zoomed in far, or on a phone: the words get the room back */
@media (max-width: 900px) {
  .page { padding: var(--space-5) var(--space-4) var(--space-8); }
  .page-head { margin-bottom: var(--space-5); }
}
@media (max-width: 560px) {
  .page { padding: var(--space-4) var(--space-3) var(--space-8); }
}
