/* Reset + page furniture shared by every page. */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--pwr-navy-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: 0;
}

/* Square corners everywhere — brand rule. Nothing is rounded. */
button, input, a { border-radius: 0; }

/* Focus: Electric Blue is the brand's focus color, but it disappears on navy.
   Use it on light grounds and white on dark ones. */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.on-dark :focus-visible,
[data-ground="dark"] :focus-visible {
  outline-color: var(--pwr-white);
}

/* Screen-reader-only text. */
.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: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
