/* ================================================================
   RESET & BASE STYLES
   Modern CSS reset + foundational body/element styles.
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-ivory);
  color: var(--clr-ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:focus-visible {
  outline: 2px solid var(--clr-chartreuse);
  outline-offset: 2px;
}

button {
  font-family: var(--ff-body);
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--clr-chartreuse);
  outline-offset: 2px;
}

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

ul, ol {
  list-style: none;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--clr-green);
  color: var(--clr-chartreuse);
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- Screen-reader only --- */
.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;
}

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

/* --- Print --- */
@media print {
  nav, footer, .ticker, .search-overlay, .toast { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 10pt; color: #666; }
}
