/* Base: fonts, reset, typography, page skeleton. No raw colours — tokens only. */

/* Self-hosted fonts (SIL Open Font License), Latin only to keep them small */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
/* Manrope is a variable font: one file covers every weight from 200 to 800 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 var(--space-3); letter-spacing: -0.015em; }
h1 { font-size: var(--text-xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-base); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }

a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }

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

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

/* Explicit width:100% so containers never shrink-wrap inside flex parents */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.muted { color: var(--color-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
