/* Legit9ja — reset, base elements, accessibility (spec §2, §4). */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 17px; } }

img, picture, video, iframe { max-width: 100%; display: block; height: auto; }
img { background: var(--c-surface); }         /* avoids flash before load */

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

h1, h2, h3, h4 { font-family: var(--f-headline); font-weight: 700; line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-weight: 800; font-size: var(--fs-36); }

ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }

/* Accessibility ---------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--c-chrome); color: #fff; padding: 10px 16px; z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .15s;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Shared wrappers -------------------------------------------------------- */
.container { width: min(100% - 2*var(--s-2), var(--wide)); margin-inline: auto; }
.section { margin-block: var(--section-gap); }
.eyebrow {                       /* category label — AA-compliant accent text */
  font: 700 11px/1 var(--f-headline);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent-strong);
}
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
