/* Reset, document defaults, accessibility basics. Values from the approved mockup (A). */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-stretch: 100%;
  min-height: 100vh;
  overflow-x: clip;            /* nothing may scroll the page sideways; clip keeps sticky alive */
}

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

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

/* headings take face, size and line-height from their class, per mockup node */
h1, h2, h3, h4 { font: inherit; }

a { color: inherit; }

ul, ol { list-style: none; padding: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.dim { color: var(--color-muted); }
.on-light .dim, .sec--light .dim { color: var(--color-muted-light); }

/* Visible focus is not optional. */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.visually-hidden.visually-hidden { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* skip link — from the mockup: slides down from above */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: var(--z-modal);
  padding: 12px 18px; background: var(--color-brand); color: var(--color-on-brand);
  font-weight: 700; text-decoration: none;
  transition: transform var(--dur-base) var(--ease);
}
.skip-link:focus { transform: translateY(96px); }

/* A hidden element must stay hidden even when a component sets display. */
[hidden][hidden] { display: none !important; }

/* Tap targets: 24×24 minimum (WCAG 2.2 AA, 2.5.8) by a pseudo-element, never padding. */
.tap-target { position: relative; }
.tap-target::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%;
  height: 100%; min-height: 24px; z-index: 1;
}

/* Icons inherit colour; size comes from the context. */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; }
.icon--missing { display: inline-block; outline: 1px dashed var(--color-error); }

/* Long-form text (legal, história): one readable measure. */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 850; font-stretch: 80%;
  font-size: var(--fs-h3); line-height: var(--lh-snug); text-transform: uppercase;
  margin-top: 2.2em;
}
.prose h3 { font-weight: 700; font-size: 1.125rem; margin-top: 1.6em; }
.prose ul { list-style: none; display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; background: var(--color-brand);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-data-light); }
.prose strong { font-weight: 700; }
