/* base.css — reset + focus + essentials */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 76px) + 12px);
}

body { min-height: 100dvh; line-height: 1.6; }

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

ul[role="list"] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

a { color: inherit; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-primary, #1282A1);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--color-navy, #001E54);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible { transform: none; }

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

::selection {
  background: rgba(18, 130, 161, 0.25);
  color: var(--color-heading, #001E54);
}
