/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

ul {
  list-style: none;
}

/* ── Mobile Menu Animations ── */
#menuBtn[aria-expanded="true"] #bar1 {
  transform: translateY(5px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] #bar2 {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* ── 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);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

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

/* ── Selection ── */
::selection {
  background: #bf2828;
  color: #fefdfb;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf9f3;
}

::-webkit-scrollbar-thumb {
  background: #d96b54;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bf2828;
}

/* ── Print ── */
@media print {
  header, footer, #menuBtn, .reveal { display: none; }
  body { color: #1a1412; background: white; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75rem; color: #666; }
}
