/* Reset / base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Utility: screen-reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Page wrapper */
.page {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;

  /*spacer for fixed sticky header bar
  padding-top: var(--hdr-h, 96px);  */
}

/* Box-sizing on pseudos too */
*, *::before, *::after { box-sizing: border-box; }

/* Media defaults: images/videos never overflow */
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

/* Form controls inherit site font */
button, input, textarea, select { font: inherit; }

/* Reasonable focus ring for keyboard users */
:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

/* Smooth scroll, but respect reduced-motion */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Optional: unify link coloring with text (you style links locally) */
a { color: inherit; text-decoration: none;}

/* Headings share the sans-serif system stack */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 3.5rem);
  line-height: 1.2;
}

:root {
  --page-pad: clamp(18px, 4.5vw, 60px);
}
