*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, .display {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  letter-spacing: .01em;
}

section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1060px;
}

.text-center {
  text-align: center;
}

.relative-z-1 {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: #5a4030;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.divider {
  height: 2px;
  background: var(--gold);
  opacity: .12;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-80  { transition-delay: .08s; }
.fade-in--delay-100 { transition-delay: .1s; }
.fade-in--delay-120 { transition-delay: .12s; }
.fade-in--delay-150 { transition-delay: .15s; }
.fade-in--delay-160 { transition-delay: .16s; }

.books-grid .fade-in:nth-child(1) { transition-delay: 0ms; }
.books-grid .fade-in:nth-child(2) { transition-delay: 70ms; }
.books-grid .fade-in:nth-child(3) { transition-delay: 140ms; }
.books-grid .fade-in:nth-child(4) { transition-delay: 210ms; }
.books-grid .fade-in:nth-child(5) { transition-delay: 280ms; }
.books-grid .fade-in:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint {
    animation: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
  }
}
