/* ============================================================
   polish.css — lớp hoà nhịp chung (nạp SAU mọi section CSS).
   6 agent dựng song song → mỗi phần một kiểu tiêu đề. File này
   ép chúng về MỘT hệ chữ của tạp chí: kicker vàng có hai gạch mảnh
   → tiêu đề thư pháp vàng cùng cỡ → hoa văn phân cách cùng nhịp.
   ============================================================ */

/* ---------- 1. Kicker (dòng chữ nhỏ trên tiêu đề) ---------- */
#letter .lt-kicker,
#events .ev-kicker,
#gallery .ga-kicker,
#rsvp .rsvp-head .rsvp-kicker,
#rsvp .rsvp-wall .rsvp-kicker,
#gift .gift-kicker {
  margin: 0 0 4px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; line-height: 1.5;
  letter-spacing: .3em; text-indent: .3em; /* cân giữa khi có letter-spacing */
  text-transform: uppercase;
  color: var(--gold-deep); /* kicker vàng (5.6:1 trên kem); tiêu đề thư pháp bên dưới là đỏ son */
  text-align: center;
}
#letter .lt-kicker::before, #letter .lt-kicker::after,
#events .ev-kicker::before, #events .ev-kicker::after,
#gallery .ga-kicker::before, #gallery .ga-kicker::after,
#rsvp .rsvp-kicker::before, #rsvp .rsvp-kicker::after,
#gift .gift-kicker::before, #gift .gift-kicker::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 26px; height: 1px; margin: 0 12px 3px;
  background: linear-gradient(90deg, rgba(217,182,110,0), var(--gold-light));
}
#letter .lt-kicker::after, #events .ev-kicker::after,
#gallery .ga-kicker::after, #rsvp .rsvp-kicker::after,
#gift .gift-kicker::after {
  background: linear-gradient(90deg, var(--gold-light), rgba(217,182,110,0));
}

/* ---------- 1b. Tên cô dâu chú rể (chữ thư pháp) = ĐỎ SON, viền ánh vàng ----------
   Gradient chỉ đi từ #7E1612 → #A8201A (điểm sáng nhất 6.8:1 trên kem) → luôn đạt AA.
   Dấu "&" giữa hai tên vẫn vàng. */
#cover .cv-name,
#letter .lt-full,
#envelope .env-card-names {
  background: linear-gradient(100deg, #7E1612 0%, #A8201A 42%, #8E1B15 68%, #7E1612 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(217,182,110,.7)) drop-shadow(0 2px 5px rgba(126,22,18,.14));
}

/* ---------- 2. Tiêu đề thư pháp: cùng cỡ, cùng nhịp ---------- */
#letter .lt-title,
#events .ev-title,
#gallery .ga-title,
#rsvp .rsvp-title,
#gift .gift-title {
  margin: 0;
  font-size: clamp(46px, 13.6vw, 60px);
  line-height: 1.22;
  padding: .04em .18em .08em;
}
/* 2b. Tiêu đề thư pháp của mọi mục = ĐỎ SON sơn mài (cùng hệ với tên cô dâu chú rể).
   Tên nghi lễ trong thẻ sự kiện (.ev-card-title) giữ vàng. */
#letter .lt-title,
#events .ev-title,
#gallery .ga-title,
#rsvp .rsvp-title,
#gift .gift-title,
#closing .cl-title {
  background: linear-gradient(100deg, #6E120F 0%, #9A1D17 30%, #B8322A 52%, #9A1D17 74%, #6E120F 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(217,182,110,.6));
}
#closing .cl-title { filter: drop-shadow(0 2px 5px rgba(255,253,248,.9)) drop-shadow(0 1px 0 rgba(217,182,110,.6)); }

/* ---------- 3. Hoa văn phân cách: cùng bề rộng, sát tiêu đề ---------- */
#gallery .ga-divider {
  width: min(210px, 60%); height: auto;
  margin: 6px auto 18px;
}
#gallery .ga-head { margin-bottom: 30px; }

/* ---------- 4. Album: placeholder trông như "bản in thử" có chủ đích ---------- */
#gallery .ga-frame.is-ph .ga-ph-couple { opacity: .62; height: 68%; bottom: 25%; }
#gallery .ga-frame--6.is-ph .ga-ph-couple { height: 74%; bottom: 22%; }
#gallery .ga-frame.is-ph .ga-ph-flower { opacity: .5; }
/* hình thoi vàng: bỏ ở khung có cặp đôi (đè giữa 2 khuôn mặt), nâng cao ở khung hoa */
#gallery .ga-frame.is-ph .ga-ph:has(.ga-ph-couple) .ga-ph-mono { display: none; }
#gallery .ga-frame.is-ph .ga-ph-mono { top: 34%; }
#gallery .ga-frame.is-ph .ga-ph-cap {
  font-size: 14px; color: var(--ink); max-width: 15ch; margin: 0 auto 34px;
}
#gallery .ga-frame.is-ph .ga-ph-cap::before {
  content: ""; display: block; width: 22px; height: 1px; margin: 0 auto 7px; background: var(--gold);
}
#gallery .ga-frame--1.is-ph .ga-ph-cap, #gallery .ga-frame--6.is-ph .ga-ph-cap { font-size: 16px; max-width: 22ch; margin-bottom: 30px; }
#gallery .ga-frame--6.is-ph .ga-ph-cap { margin-bottom: 18px; }
#gallery .ga-frame--2.is-ph .ga-ph-cap, #gallery .ga-frame--3.is-ph .ga-ph-cap { font-size: 13px; margin-bottom: 30px; }
#gallery .ga-frame.is-ph .ga-num { bottom: 11px; }
#gallery.ga--all-ph .ga-key { display: none; }
#gallery .ga-soon {
  margin: 22px auto 0; max-width: 30ch; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
#gallery .ga-soon::before {
  content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 12px;
  background: var(--gold-light);
}

/* ---------- 5. Thanh điều hướng: nhãn dễ đọc hơn trên máy 360px ---------- */
#wchrome .chr-item span { font-size: 10.5px; letter-spacing: 0; }
@media (max-width: 380px) {
  #wchrome .chr-item span { font-size: 10px; letter-spacing: -.005em; }
}

/* ---------- 5b. Chọn chữ: vàng champagne thay cho xanh mặc định ---------- */
::selection { background: rgba(217,182,110,.35); color: var(--ink); }

/* ---------- 6. RSVP: nút chọn không xuống dòng; lời cảm ơn ngắt dòng cân ---------- */
#rsvp .rsvp-seg-opt span { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
#rsvp .rsvp-done-title { font-size: clamp(36px, 10.5vw, 44px); word-spacing: .12em; text-wrap: balance; }
