/* website-base.css — cross-cutting a11y + shared base for the PUBLIC WEBSITE
   (marketing pages + auth funnel + settings). Loaded by every website page
   EXCEPT the journal app shell (journal.html — its own stylesheets, the other
   build thread's territory) and reset.html (the deliberately self-contained,
   cache-independent recovery page). Keep this lean and additive — it's the
   shared layer that stops the per-page drift the 2026-06-14 site audit found.
   Loads AFTER visual-vocab.css, so its --vv-* tokens are available here. */

/* ── Visible keyboard focus ──────────────────────────────────────────────
   The site's button language is text-on-void (no border/fill), so the browser
   default focus ring is nearly invisible on the near-black background and
   keyboard users lose their place. Give every interactive element a clear cyan
   ring — only on keyboard focus (:focus-visible), so mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="menuitem"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--vv-cyan-accent, #7ab8f5);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Respect prefers-reduced-motion ──────────────────────────────────────
   The site runs perpetual orb spins + cinematic entrance animations. Users who
   set reduced-motion (vestibular sensitivity) must get a still, instant site.
   Nuclear-but-correct near-instant override. Scoped to the website only — the
   journal does not load this file, so its motion is unaffected. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Screen-reader-only utility ──────────────────────────────────────────
   Visually-hidden headings/labels that keep the accessible outline intact
   without changing the visual design (used for per-page <h1>s + input labels). */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Shared legal footer ─────────────────────────────────────────────────
   The auth / account / checkout surfaces carry no rich marketing footer, so
   Terms / Privacy / Contact were unreachable there. This is the minimal,
   consistent footer for those pages — styling lives here so it can't drift.
   On the flex-column pages, margin-top:auto pins it to the bottom. */
.legal-footer {
  width: 100%;
  margin-top: auto;
  padding: 22px 24px;
  text-align: center;
  font-family: var(--vv-font-label, sans-serif);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vv-text-quiet, rgba(232, 240, 255, 0.24));
}
.legal-footer a {
  color: var(--vv-text-muted, rgba(232, 240, 255, 0.42));
  text-decoration: none;
  transition: color 0.18s ease;
}
.legal-footer a:hover { color: var(--vv-cyan-accent, #7ab8f5); }
.legal-footer .sep { opacity: 0.4; margin: 0 6px; }
