/* Base */
html {
  scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
  background: #d6d0c4;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a89f91;
}

/* Selection */
::selection {
  background: #a02237;
  color: #fefdfc;
}

/* Scroll-reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .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; }
}

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(254, 253, 252, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(168, 159, 145, 0.2);
}

.navbar-scrolled .nav-link {
  color: #4a433c !important;
}

.navbar-scrolled .nav-link:hover {
  color: #a02237 !important;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fdfbf7 inset !important;
  -webkit-text-fill-color: #1f1b17 !important;
}

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

/* Image loading */
img {
  background-color: #eae7e0;
}
