/* Base: reset, type, layout helpers. Uses tokens only. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); line-height: var(--leading-snug); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

.container {
  width: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-9);
}
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--color-surface-2); }
.section--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.section__head {
  max-width: var(--width-text);
  margin-bottom: var(--space-7);
  display: grid;
  gap: var(--space-4);
}
.section__head--center { margin-inline: auto; text-align: center; }
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: var(--width-text);
}
.section--primary .lede { color: inherit; opacity: 0.82; }
/* On dark bands the bright accent reads fine, so drop the darker text version. */
.section--primary { --color-accent-text: var(--color-accent); }
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text, var(--color-accent));
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-button);
}
.skip-link:focus { top: var(--space-2); }
.num { font-variant-numeric: tabular-nums; }
