/* ── Base ── */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
@supports not (animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1)) {
  .reveal { transition-duration: 0.5s; }
}

/* ── Navbar scroll state ── */
#site-header.scrolled {
  background: rgba(247, 244, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 63, 34, 0.08);
}

/* ── Focus visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #2d6a3f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection { background: #a3c5a4; color: #0f2b19; }
