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

/* ── Reveal on Scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    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);
  }
}

/* Fallback: always visible if JS is disabled */
.no-js .reveal,
:not(.no-js) .reveal { /* JS will add .revealed */ }

/* ── Navbar scroll state ── */
#site-header.scrolled {
  background: rgba(253, 251, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ── Mobile menu transitions ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open {
  max-height: 400px;
}

/* ── Selection color ── */
::selection {
  background: rgba(184, 88, 45, 0.2);
  color: inherit;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #B8582D;
  outline-offset: 2px;
}
