/* Base & utility */
*, *::before, *::after { box-sizing: border-box; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement, hidden only when JS is enabled and animation is preferred */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

/* Smooth focus outlines */
a:focus-visible, button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #a7f3d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34d399; }

/* Selection color */
::selection { background: #a7f3d0; color: #064e3b; }
