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

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

body {
  background-color: #fdf8f6;
  color: #3d131a;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ─── Scroll Reveal ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: ensure content is visible even if JS is disabled */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #7B2D3B;
}

/* ─── Nav Transition ─── */
#nav.scrolled {
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* ─── Hamburger Animation ─── */
.menu-line {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

/* ─── Selection ─── */
::selection {
  background: #7B2D3B;
  color: #fdf8f6;
}

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

/* ─── Smooth image loading ─── */
img {
  background-color: #f9ece6;
}
