/* =========================================================================
   WW1AHT MASTER — BASE  (element defaults + global typography)
   Inherits every value from _variables.css. No colours hardcoded here.
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-base);
  line-height: var(--line-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Headings ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  color: var(--primary);
  margin: 0 0 var(--space-md);
  line-height: var(--lh-heading);
}
h1 { font-size: var(--fs-h1);      line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.2rem; }

/* ---- Body copy --------------------------------------------------------- */
p { margin: 0 0 var(--space-md); }
ul, ol { margin: 0 0 var(--space-md); padding-left: 1.4em; }
li { margin: var(--space-xs) 0; }

blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) var(--space-lg);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

/* ---- Links ------------------------------------------------------------- */
a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--primary); }

/* ---- Media ------------------------------------------------------------- */
img, svg, video { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-lg) 0; }

/* ---- Reusable text roles ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text);
  max-width: 62ch;
}
.meta {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---- Accessibility helpers -------------------------------------------- */
.screen-reader-text {
  position: absolute !important;  /* the single allowed !important: a11y clip */
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--bg);
  padding: var(--space-sm) var(--space-md);
}
.skip-link:focus { left: var(--space-sm); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
