/* ============================================================
   Pharoah Forge Kit — BASE LAYER  (forge-kit-base.css)
   Safe for every product site. No palette, no component classes —
   only resets, accessibility primitives, and motion hygiene.
   Source of truth: products/_shared/. Deployed copies live in each
   product's assets/ (run _shared/sync-kit.sh after editing).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

/* Anchor targets clear fixed/sticky headers */
[id] { scroll-margin-top: 88px; }

/* --- Accessibility primitives ------------------------------ */

/* Focus ring: products set --pk-focus (falls back to currentColor) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pk-focus, currentColor);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  padding: 8px 16px;
  background: var(--pk-focus, #000);
  color: var(--pk-on-accent, #fff);
  font-weight: 600; border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --- Motion hygiene ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
