/* Set-Strike AV, accessibility and feel layer (2026-10-19). WCAG 2.2 AA; the feel skill's restraint, response and
   reduced-motion rules. Loaded last on every page so it wins over the copied framework styles. */

/* Where am I: a focus ring you can always see (2.4.7, 2.4.11) */
:focus-visible { outline: 3px solid #f5c542 !important; outline-offset: 3px !important; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Response: feedback on the press, instant (feel §1) */
.button:active, a.button:active, button:active, input[type="submit"]:active { transform: scale(.97); transition: transform 100ms ease-out; }

/* The hero headline no longer waits 4.2 s to appear (feel §1: kill latency) */
.stav-hero-in { animation-delay: .4s !important; animation-duration: .6s !important; }

/* Target size: every control at least 24 px, the cramped link rows 44 px (2.5.8) */
.linkbox > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
a, button, [role="button"], input, select, textarea { min-height: 24px; }

/* The still that replaced a looping clip fills its frame the way the clip did */
.stav-still { object-fit: cover; width: 100%; height: 100%; }

/* Current page in the nav, visible as well as announced (2.4.8) */
#nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Text the reader can respace without breaking anything (1.4.12) and reflow at 400% (1.4.10) */
p, li, dd, blockquote { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; height: auto; }

/* The three system preferences (feel §14) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stav-hero-in { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  [class*="overlay"], .a11y-panel, #nav { backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  body { --stav-ink: #000; }
  .button, button, input, select, textarea { border: 2px solid currentColor !important; }
  a { text-decoration: underline !important; }
}
@media (forced-colors: active) {
  .button, button { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight !important; }
}

/* The widget's three new options */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-spacing body *:not(svg):not(svg *) { line-height: 1.5 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 2em !important; }
html.a11y-focus :focus-visible { outline: 5px solid #ff00aa !important; outline-offset: 4px !important; }

/* join and request-labor: the section headings became h2 (no level skipped); they keep the h3 look */
.form-grid h2 { grid-column: 1 / -1; margin: 0; font-size: 1.17em; }
.w9 h2 { margin: 0 0 6px; font-size: 1.17em; }
.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--slate); }

/* Fixed full-screen backgrounds move against the scroll: off for reduced motion, and on phones where they jump (feel §14) */
@media (prefers-reduced-motion: reduce), (max-width: 820px) {
  #systems .point, [style*="background-image"] { background-attachment: scroll !important; }
}
