/* Custom overrides and enhancements beyond Tailwind */

html {
  scroll-behavior: smooth;
}

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

/* Subtle pattern overlay for visual depth */
section::before {
  content: '';
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
  background: #9a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7d2222;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #9a2a2a;
  outline-offset: 2px;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Selection color */
::selection {
  background: #f9e4e4;
  color: #551717;
}

/* Reduced motion support for reveal animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
