/* ==========================================================
   Typography: Fraunces (tiêu đề, kiểu sách truyện), Dancing Script (nét tay),
   Be Vietnam Pro (nội dung). Khoảng cách chữ được nới cho dấu tiếng Việt.
   ========================================================== */
:root {
  --display: 'Fraunces', Georgia, serif;
  --serif: 'Fraunces', Georgia, serif;
  --script: 'Dancing Script', 'Segoe Script', cursive;
}
[hidden] { display: none !important; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero-script {
  font: 700 clamp(30px, 3.4vw, 56px)/1 var(--script);
  color: #D4F59B; rotate: -4deg; transform-origin: left bottom;
  margin: 0 0 .1em .15em; text-shadow: 0 2px 20px rgba(0, 30, 10, .4);
}
.hero-title {
  font-family: var(--display);
  font-weight: 650; font-size: clamp(52px, 8.2vw, 150px);
  line-height: .98; letter-spacing: -.018em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
/* chừa chỗ cho dấu chồng (ờ, ỗ, ộ) khi dòng bị cắt overflow */
.hero-title .line { padding-top: .14em; margin-top: -.14em; padding-bottom: .12em; }
.hero-card strong { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0; }

/* ---------- Loader ---------- */
.loader-bracket { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.loader-enter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; opacity: 0; visibility: hidden; }
.enter-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--green-deep); background: transparent; color: var(--green-deep);
  font: 600 16px/1 var(--sans); letter-spacing: .01em;
  transition: background .35s, color .35s, translate .35s var(--ease);
}
.enter-btn:hover, .enter-btn:focus-visible { translate: 0 -2px; }
.enter-btn--sound { background: var(--green-deep); color: var(--white); }
.enter-btn--sound:hover { background: var(--green); border-color: var(--green); }
.enter-btn:not(.enter-btn--sound):hover { background: rgba(15, 92, 48, .08); }
.enter-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.enter-eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.enter-eq i:nth-child(2) { animation-delay: -.3s; }
.enter-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.enter-eq i { transform-origin: bottom; }

/* ---------- Lời mở đầu ---------- */
.statement-text {
  font-family: var(--display); font-weight: 420; font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.24; letter-spacing: -.004em; max-width: 24ch;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

/* ---------- Dải chữ chạy ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; background: var(--green-deep); color: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: .5em; width: max-content; font-size: clamp(48px, 7vw, 120px); line-height: 1.1; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.01em; }
.marquee-track em { font: 700 1.02em/1 var(--script); color: #B9F27C; font-style: normal; padding: 0 .08em; }
.marquee-track i { font-style: normal; font-size: .5em; color: #7CC242; }

/* ---------- Tiêu đề các phần ---------- */
.journey-head h2, .memories-head h2, .letters-head h2, .meet h2 {
  font-family: var(--display); font-weight: 620;
  font-size: clamp(44px, 6.2vw, 104px); line-height: 1.02; letter-spacing: -.012em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  max-width: 14ch;
}
.journey-head, .memories-head, .letters-head { margin-bottom: clamp(32px, 5vh, 56px); }
.journey-head { padding-bottom: 0; }

/* ---------- Mùa ---------- */
.season-numeral { font-family: var(--display); font-weight: 800; letter-spacing: 0; font-variation-settings: "SOFT" 100, "opsz" 144; }
.season-meta { font-size: 14px; letter-spacing: .01em; }
.season-title {
  margin: 0; max-width: 24ch; color: var(--green-deep);
  font: 650 clamp(24px, 2.45vw, 38px)/1.2 var(--display);
  letter-spacing: -.012em; text-wrap: balance;
  font-variation-settings: "SOFT" 80, "opsz" 72;
}
.season-slogan { font: 700 clamp(22px, 1.8vw, 28px)/1.25 var(--script); color: var(--green); }
.season-caption { font-family: var(--display); font-weight: 380; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.72; letter-spacing: 0; color: #2A4430; font-variation-settings: "SOFT" 100, "opsz" 14; }
.rail-year b { font-family: var(--display); font-weight: 700; letter-spacing: 0; }

/* ---------- Thẻ & mục lục ---------- */
.fan-card b, .index-card-roman { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.index-card b { font-family: var(--display); font-weight: 650; letter-spacing: -.005em; }
.season-index-head h2 { font-weight: 650; letter-spacing: -.012em; }
.season-pill b { font-family: var(--display); font-weight: 700; letter-spacing: 0; }

/* ---------- Hẹn gặp ---------- */
.meet p { font-family: var(--display); font-style: italic; font-weight: 380; }
.countdown strong { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.countdown span { letter-spacing: .02em; }

/* ---------- Tâm tình ---------- */
.wish-form label { letter-spacing: .005em; }
.wish-form input[type="text"], .wish-form textarea { font-family: var(--display); font-weight: 400; }
.wish-wall h3 { font: 700 30px/1.1 var(--script); color: var(--green-deep); }
.wish-entry h3 { font-family: var(--display); font-weight: 650; }
.wish-entry p { font-family: var(--display); font-weight: 380; }
.wish-empty { font: 700 22px/1.4 var(--script); color: var(--green); }
.form-note:empty { display: none; }

/* ---------- Footer ---------- */
.footer-big { font-family: var(--display); font-weight: 750; letter-spacing: -.02em; line-height: .9; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.footer-row p { font: 700 26px/1.3 var(--script); color: #D4F59B; }

/* ---------- Nav ---------- */
.brand { letter-spacing: .005em; }
/* chữ trong ngăn kéo menu: xem .nav-label / .nav-num ở main.css */

@media (max-width: 899px) {
  .hero-title { font-size: clamp(44px, 12.5vw, 88px); }
  .marquee-track { font-size: 48px; }
  .hero-script { font-size: 30px; }
}

/* ---------- Kéo (drag) ---------- */
.reels .film { cursor: grab; user-select: none; -webkit-user-select: none; }
.reels .film.is-dragging { cursor: grabbing; }
.film img, .marquee, .journey-track img { -webkit-user-drag: none; user-select: none; }
.reels .film-track { will-change: transform; }
@media (min-width: 900px) {
  .has-gsap .journey-track { cursor: grab; }
  .has-gsap .journey-track.is-dragging, .has-gsap .journey-track.is-dragging * { cursor: grabbing !important; }
}
.has-gsap .reels [data-cursor], .has-gsap .reels { cursor: none; }
