/* ==========================================================================
   Base: element defaults layered over Bootstrap's reboot
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

a { color: var(--c-green-600); text-underline-offset: 3px; }
a:hover { color: var(--c-green-800); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--c-gold-500); outline-offset: 2px; border-radius: 2px; }

.container { max-width: var(--container-max); }
.container.narrow { max-width: 820px; }
.section { padding-block: var(--space-section); }
.section--muted { background: var(--c-surface); }
.text-gold { color: var(--c-gold-500); }

.icon { flex-shrink: 0; vertical-align: middle; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--c-gold-500); color: var(--c-ink); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
