/**
 * Base Reset, Typography & Accessibility
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--aofbd-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--aofbd-body);
  background-color: var(--aofbd-surface-alt);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  color: var(--aofbd-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--aofbd-primary);
  text-decoration: none;
  transition: color var(--aofbd-transition);
}

a:hover {
  color: var(--aofbd-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--aofbd-primary);
  outline-offset: 2px;
}

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

.aofbd-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--aofbd-dark);
  color: #ffffff;
  border-radius: var(--aofbd-radius-sm);
  font-weight: 600;
}

.aofbd-skip-link:focus {
  top: 1rem;
  color: #ffffff;
}
