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

/* Scale the whole page with the screen: 16px up to 1440px wide, growing to 22px on very wide screens */
html {
  font-size: clamp(1rem, 0.68rem + 0.36vw, 1.375rem);
  /* Links to a section stop below the menu, which stays on top of the page */
  scroll-padding-top: 6.5rem;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 { font-size: var(--fs-h3); }

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus { top: 1rem; }
