/* Custom overrides and utilities */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #b5653e;
  color: #faf4f0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #faf8f4;
}
::-webkit-scrollbar-thumb {
  background: #d4c4a4;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b5653e;
}

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

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(181, 101, 62, 0.1);
}

nav.scrolled .text-terracotta-700 {
  color: #7d4028;
}

nav.scrolled .text-terracotta-600 {
  color: #9a5030;
}
