/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background-color: #971d3a;
  color: #fdf2f4;
}

/* ========== NAV SCROLL STATE ========== */
#site-header.scrolled {
  background-color: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(151, 29, 58, 0.08);
}

#site-header.scrolled .font-serif,
#site-header.scrolled .text-burgundy-800 {
  color: #7c1a33;
}

/* ========== NAV LINKS ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #971d3a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========== MOBILE LINKS ========== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(151, 29, 58, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FORM FOCUS ========== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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