/* base.css — minimal global resets + accessibility defaults. Component-internal
   styles live in each element's constructable stylesheet (css``); this is only
   the document-level baseline. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--pg-bg);
  color: var(--pg-fg);
  font: var(--pg-fs-md)/var(--pg-lh) var(--pg-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#app { min-height: 100dvh; }

/* Visible, consistent focus for keyboard users across the app + shadow roots. */
:focus-visible { outline: none; box-shadow: var(--pg-focus); border-radius: var(--pg-radius-sm); }

a { color: var(--pg-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Screen-reader-only utility (used by labels/announcements). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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