/* template73 "Hoa Sen / Áo Dài" — style.css: bảng màu, chữ, nút, bìa nụ sen, hero khung vòm, thiệp
   vòm hai họ, cô dâu chú rể, lịch trình ngày vui, và tô lại module dùng chung (dock, nút nhạc, menu).
   Skin cho các component dùng chung (lịch, chuyện tình, album…) ở sections.css.

   Bảng màu — trắng ngà là nền, đỏ hồng cho chữ/nút, hồng phấn ở cánh sen, xanh lá sen điểm nhỏ:
     ngà      #FCF8F2 — nền cột nội dung     hồng ngà #F8ECE8 — dải xen kẽ
     bàn      #F1E2DD — nền ngoài cột (màn rộng)
     đỏ hồng  #B23A55 — tiêu đề, nút (5.5:1 trên ngà)   hồng đậm #8C2641 — hover
     hồng phấn #F3D5DA — quầng, nền nhạt
     mực      #3B2A31 — chữ thân bài (12:1)   mực nhạt #7A5F68 — chữ phụ (5.4:1)
     lá sen   #6F8F72 — cuống, lá
   Khác template70–72: không nền đỏ, không ấn son; hình chủ đạo là khung vòm (border-radius tròn
   nửa trên) thay cho khung vuông.
   Hướng chữ: dùng thuộc tính logic (inline-start/end) để dir="rtl" tự lật. */

:root {
  --t73-ivory: #FCF8F2;
  --t73-tint: #F8ECE8;
  --t73-desk: #F1E2DD;
  --t73-rose: #B23A55;
  --t73-rose-deep: #8C2641;
  --t73-blush: #F3D5DA;
  --t73-ink: #3B2A31;
  --t73-muted: #7A5F68;
  --t73-sage: #6F8F72;
  --t73-line: rgba(178, 58, 85, .3);
  --t73-arch: 1000px 1000px 0 0;   /* bán kính lớn → trình duyệt co về đúng nửa vòng tròn */
  --t73-serif: 'Noto Serif Display', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --t73-script: 'Great Vibes', 'Noto Serif Display', cursive;
  --t73-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Nền trang & cột nội dung ---------- */
body {
  margin: 0;
  font-family: var(--t73-sans);
  font-weight: 300;
  color: var(--t73-ink);
  background: var(--t73-desk);
  -webkit-font-smoothing: antialiased;
}
html.t73-cover-lock,
html.t73-cover-lock body { overflow: hidden; }

.t73-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.t73 .wrapper {
  position: relative;
  width: 100%;
  max-width: 575px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--t73-ivory);
  box-shadow: 0 18px 60px rgba(120, 50, 70, .14);
}
.t73 img { max-width: 100%; }
.t73, .t73-cover { font-variant-numeric: lining-nums; }
.t73-tint { background: var(--t73-tint); }

/* ---------- Chữ ---------- */
.t73 .section-title,
.t73 h1, .t73 h2, .t73 h3, .t73 h4 {
  font-family: var(--t73-serif);
  font-weight: 400;
  line-height: 1.2;
}
.t73 .section-title {
  margin-bottom: .2rem;
  font-size: clamp(1.9rem, 7.6vw, 2.4rem);
  text-align: center;
  color: var(--t73-rose);
}
.t73 .section-sub-title {
  max-width: 30rem;
  margin: 0 auto 1.8rem;
  font-family: var(--t73-sans);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.75;
  text-align: center;
  color: var(--t73-muted);
}
.t73-kicker {
  margin: 0 0 .6rem;
  font-family: var(--t73-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--t73-rose);
}
/* Tên viết tay. Great Vibes chỉ có Latin/Việt/Cyrillic — chữ khác (Ả Rập, Thái, CJK…) rơi về
   Noto Serif Display / font hệ thống, vẫn đọc được. */
.t73-script {
  font-family: var(--t73-script) !important;
  font-weight: 400 !important;
  letter-spacing: 0;
}
.t73-amp {
  display: block;
  font-family: var(--t73-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .5em;
  line-height: 1.4;
  color: var(--t73-rose);
}
.t73-ribbon { display: block; width: 200px; height: 24px; margin: .4rem auto 1.1rem; color: var(--t73-rose); }

/* ---------- Nút: bo tròn hẳn (pill) — mềm hơn nút vuông của t70–t72 ---------- */
.t73-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.8rem;
  border: 1px solid var(--t73-rose);
  border-radius: 999px;
  font-family: var(--t73-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.t73-btn:focus-visible { outline: 2px solid var(--t73-rose); outline-offset: 3px; }
.t73-btn--rose { color: #fff; background: var(--t73-rose); }
.t73-btn--rose:hover { color: #fff; background: var(--t73-rose-deep); border-color: var(--t73-rose-deep); }
.t73-btn--line { color: var(--t73-rose); background: transparent; }
.t73-btn--line:hover { color: #fff; background: var(--t73-rose); }

/* ---------- Khung vòm ---------- */
.t73-arch {
  position: relative;
  margin: 0;
  border-radius: var(--t73-arch);
}
.t73-arch img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: var(--t73-arch);
}
/* Nét vòm thứ hai lệch ra ngoài như viền ô cửa. */
.t73-arch::before {
  content: "";
  position: absolute;
  inset: -9px -9px 0;
  border: 1px solid var(--t73-line);
  border-bottom: 0;
  border-radius: var(--t73-arch);
  pointer-events: none;
}

/* ---------- Bìa nụ sen "Mở thiệp" ---------- */
.t73-cover {
  position: fixed;
  inset: 0;
  z-index: 100001;              /* trên nút nhạc (99999) và badge Wedding Plan (99998) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(70% 45% at 50% 40%, rgba(243, 213, 218, .75), transparent 70%),
    var(--t73-ivory);
  transition: opacity .75s ease;
}
.t73-cover[hidden] { display: none; }
/* Khung vòm mảnh ôm cả bìa. */
.t73-cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--t73-line);
  border-radius: var(--t73-arch);
  pointer-events: none;
}
.t73-cover__kicker { position: relative; transition: opacity .4s ease; }
.t73-cover__flower {
  position: relative;
  width: min(72vw, 300px);
  margin: 4px 0 6px;
}
.t73-bloom { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.t73-cover__ripple { display: block; width: 78%; height: auto; margin: -6px auto 0; color: var(--t73-rose); opacity: .5; }
.t73-cover__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 124, 147, .45), rgba(243, 213, 218, 0) 70%);
  transform: translate(-50%, -50%) scale(.55);
  opacity: .5;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), opacity 1.4s ease;
}
/* Mỗi cánh xoay quanh gốc hoa (100,128 trong viewBox). Khép: góc chỉ còn ~12% → thành nụ. */
.t73-p {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(100px, 128px) rotate(calc(var(--a) * .12)) scale(calc(var(--s) * .94));
  transition: transform 1.25s cubic-bezier(.25, .8, .25, 1);
}
.t73-bloom > g:first-child .t73-p { transition-delay: .12s; }
.t73-cover.is-opening .t73-p { transform: translate(100px, 128px) rotate(var(--a)) scale(var(--s)); }
.t73-cover.is-opening .t73-cover__glow { transform: translate(-50%, -50%) scale(2.6); opacity: 1; }
.t73-cover__names {
  position: relative;
  margin: 0 0 .2rem;
  font-family: var(--t73-script);
  font-size: clamp(2.3rem, 11vw, 2.9rem);
  line-height: 1.12;
  color: var(--t73-ink);
  overflow-wrap: anywhere;
}
.t73-cover__names > span:not(.t73-amp) { display: block; }
.t73-cover__names .t73-amp { font-size: .45em; }
.t73-cover__date {
  position: relative;
  margin: .2rem 0 1.3rem;
  font-family: var(--t73-serif);
  font-size: 1.05rem;
  letter-spacing: .26em;
  color: var(--t73-muted);
}
.t73-cover__open { position: relative; animation: t73-breathe 2.6s ease-in-out infinite; }
@keyframes t73-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178, 58, 85, .35); }
  50% { box-shadow: 0 0 0 10px rgba(178, 58, 85, 0); }
}
.t73-cover__names, .t73-cover__date, .t73-cover__open { transition: opacity .45s ease, transform .6s ease; }
.t73-cover.is-opening .t73-cover__kicker,
.t73-cover.is-opening .t73-cover__names,
.t73-cover.is-opening .t73-cover__date,
.t73-cover.is-opening .t73-cover__open { opacity: 0; transform: translateY(10px); animation: none; }
.t73-cover.is-leaving { opacity: 0; }
.t73-cover.is-leaving .t73-cover__flower { transform: scale(1.18); transition: transform .8s ease; }

/* ---------- Nút menu (mở offcanvas components/menu) ---------- */
.t73-menu-btn {
  position: fixed;
  top: 14px;
  right: max(18px, calc(50% - 287px + 20px));
  z-index: 120;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--t73-line);
  border-radius: 50%;
  background: rgba(252, 248, 242, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.t73-menu-btn.is-visible { opacity: 1; visibility: visible; }
.t73[dir="rtl"] .t73-menu-btn { right: auto; left: max(18px, calc(50% - 287px + 20px)); }
.t73-menu-btn span { display: block; height: 1.5px; background: var(--t73-rose); border-radius: 2px; }
.t73-menu-btn:focus-visible { outline: 2px solid var(--t73-rose); outline-offset: 2px; }

/* ---------- Hero ---------- */
.t73-hero {
  position: relative;
  padding: 58px 28px 70px;
  text-align: center;
  background: radial-gradient(90% 40% at 50% 0, rgba(243, 213, 218, .55), transparent 70%);
}
.t73-arch-photo {
  position: relative;
  width: min(76%, 310px);
  margin: 22px auto 0;
  padding-bottom: 40px;
}
.t73-arch-photo .t73-arch img { box-shadow: 0 16px 40px rgba(120, 50, 70, .18); }
.t73-arch-photo__lotus {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 170px;
  height: 119px;
  margin-left: -85px;
  filter: drop-shadow(0 6px 10px rgba(120, 50, 70, .12));
}
.t73-hero__names {
  margin: 10px 0 20px;
  font-family: var(--t73-script) !important;
  font-size: clamp(2.7rem, 13vw, 3.5rem);
  line-height: 1.08;
  color: var(--t73-ink);
  overflow-wrap: anywhere;
}
.t73-hero__names > span:not(.t73-amp) { display: block; }
.t73-hero__names .t73-amp { font-size: .42em; margin: .15em 0; }
.t73-date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  margin: 0 auto;
}
.t73-date__side {
  padding-block: 8px;
  border-block: 1px solid var(--t73-line);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--t73-muted);
}
.t73-date__day {
  font-family: var(--t73-serif);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--t73-rose);
}
.t73-hero__time {
  margin: 12px 0 0;
  font-family: var(--t73-serif);
  font-size: 1.25rem;
  letter-spacing: .12em;
  color: var(--t73-ink);
}
.t73-lunar {
  margin: 8px 0 0;
  font-family: var(--t73-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--t73-muted);
}

/* Màn xuất hiện của hero — chạy khi bìa mở (.t73-is-open). Ẩn ban đầu chỉ khi bìa đang chờ
   (html.t73-cover-lock): JS hỏng hay edit mode thì hero vẫn hiện nguyên. */
html.t73-cover-lock .t73:not(.t73-is-open) .t73-rise { opacity: 0; transform: translateY(16px); }
.t73-is-open .t73-rise {
  animation: t73-rise .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.2s + var(--d, 0) * .12s);
}
@keyframes t73-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Thiệp mời trong khung vòm ---------- */
.t73-invite { padding: 60px 18px; }
.t73-card {
  position: relative;
  padding: 78px 18px 52px;
  text-align: center;
  border: 1px solid var(--t73-line);
  border-radius: 1000px 1000px 14px 14px / 1000px 1000px 14px 14px;
  background: var(--t73-ivory);
  box-shadow: 0 10px 30px rgba(120, 50, 70, .08);
}
/* nét vòm trong, cách viền ngoài 7px */
.t73-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--t73-line);
  border-radius: inherit;
  opacity: .6;
  pointer-events: none;
}
.t73-card__lotus { display: block; width: 116px; height: 81px; margin: 0 auto 18px; }
.t73-families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 1.1rem;
}
.t73-families--single { grid-template-columns: 1fr; }
.t73-family { min-width: 0; padding: 0 4px; }
.t73-family__title {
  margin: 0 0 .6rem;
  font-family: var(--t73-sans) !important;
  font-size: .74rem;
  font-weight: 600 !important;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--t73-rose);
}
.t73-family__parent {
  margin: 0 0 .3rem;
  font-family: var(--t73-serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--t73-ink);
  overflow-wrap: anywhere;
}
.t73-family__parent small { font-family: var(--t73-sans); font-size: .78rem; color: var(--t73-muted); }
.t73-family__address { margin: .4rem 0 0; font-size: .8rem; line-height: 1.55; color: var(--t73-muted); overflow-wrap: anywhere; }
.t73-invite__announce {
  max-width: 21rem;
  margin: 0 auto 1.3rem;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t73-ink);
}
.t73-invite__couple { margin: 0 0 .6rem; }
.t73-invite__person { display: block; }
.t73-invite__person small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t73-muted);
}
.t73-invite__person .t73-script {
  display: block;
  font-size: clamp(2.1rem, 10vw, 2.6rem);
  line-height: 1.2;
  color: var(--t73-rose);
  overflow-wrap: anywhere;
}
.t73-invite__couple .t73-amp { font-size: 1.1rem; margin: .2rem 0 .5rem; }
.t73-invite .section-title { font-size: clamp(1.6rem, 6.6vw, 2rem); }
.t73-invite__body { margin: .8rem 0 1.3rem; font-size: .96rem; line-height: 1.85; }
.t73-invite__honor {
  max-width: 24rem;
  margin: 0 auto 1.6rem;
  font-family: var(--t73-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--t73-rose);
}

/* ---------- Cô dâu & chú rể ---------- */
.t73-couple { padding: 64px 20px 56px; text-align: center; }
.t73-couple__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 8px; }
.t73-person { min-width: 0; }
.t73-arch--portrait { width: calc(100% - 18px); max-width: 210px; margin: 9px auto 16px; }
.t73-person__role {
  margin: 0;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t73-rose);
}
.t73-person__name { margin: .1rem 0 .4rem; font-size: 2rem; line-height: 1.2; color: var(--t73-ink); overflow-wrap: anywhere; }
.t73-person__intro { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--t73-muted); }

/* ---------- Lịch trình ngày vui: trục dọc, nụ sen làm mốc ---------- */
.t73-schedule { padding: 64px 22px 40px; text-align: center; }
.t73-timeline {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding-inline-start: 50px;
  text-align: start;
}
.t73-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 30px;
  inset-inline-start: 18px;
  width: 1px;
  background: linear-gradient(var(--t73-rose), var(--t73-line) 85%, transparent);
}
.t73-event { position: relative; padding: 0 0 34px; }
.t73-event__mark {
  position: absolute;
  top: -6px;
  inset-inline-start: -46px;
  width: 26px;
  height: 72px;
  filter: drop-shadow(0 0 0 var(--t73-tint)) drop-shadow(0 0 3px var(--t73-tint));
}
.t73-event__body {
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: var(--t73-ivory);
  box-shadow: 0 8px 22px rgba(120, 50, 70, .07);
}
.t73-event__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
.t73-event__clock { font-family: var(--t73-serif); font-size: 2rem; line-height: 1; color: var(--t73-rose); }
.t73-event__date { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t73-muted); }
.t73-event__lunar { margin: .3rem 0 0; font-family: var(--t73-serif); font-size: .98rem; font-style: italic; color: var(--t73-muted); }
.t73-event__name { margin: .7rem 0 .5rem; font-size: 1.45rem; color: var(--t73-ink); }
.t73-event__image {
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-bottom: 12px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.t73-event__place { margin: 0 0 1rem; font-size: .9rem; line-height: 1.6; color: var(--t73-muted); }
.t73-event__place strong { display: block; font-weight: 600; color: var(--t73-ink); }
.t73-event__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t73-event__actions .t73-btn { min-height: 40px; padding: .5rem .95rem; font-size: .7rem; letter-spacing: .06em; }

/* ---------- Module dùng chung: dock, nút nhạc, menu offcanvas ---------- */
#access-dock { font-family: var(--t73-sans); }
#access-dock .dock-items {
  border-color: var(--t73-line);
  background: rgba(252, 248, 242, .95);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #access-dock .dock-items { background: rgba(252, 248, 242, .85); }
}
#access-dock .dock-link { color: var(--t73-rose); }
#access-dock .dock-link:hover,
#access-dock .dock-link:focus-visible,
#access-dock .dock-link[aria-current] { color: var(--t73-rose-deep); }

body .player .playerIcon {
  border-color: var(--t73-line);
  background-color: rgba(252, 248, 242, .92);
  color: var(--t73-rose);
}
body .player.player--on .playerIcon {
  background-color: var(--t73-rose);
  border-color: var(--t73-rose);
  color: #fff;
}

.t73 .offcanvas-menu {
  max-width: 270px;
  color: var(--t73-ink);
  background: var(--t73-ivory);
  border-inline-start: 2px solid var(--t73-rose);
}
.t73 .offcanvas-menu .nav-link {
  padding: .7rem .4rem;
  font-family: var(--t73-serif);
  font-size: 1.2rem;
  color: var(--t73-ink);
  border-bottom: 1px solid var(--t73-line);
}
.t73 .offcanvas-menu .nav-link:hover { color: var(--t73-rose); }

/* Chuyển động: người đã tắt thì bìa chỉ mờ đi, hero hiện ngay. */
@media (prefers-reduced-motion: reduce) {
  .t73-cover__open { animation: none; }
  .t73-p, .t73-cover__glow, .t73-cover__flower { transition: none; }
  .t73-cover { transition: opacity .3s ease; }
  .t73-is-open .t73-rise { animation: none; }
}

/* ---------- Màn rộng: cột thiệp giữa, hai cụm sen mọc hai bên ---------- */
.t73-side { display: none; }
@media (min-width: 1100px) {
  .t73-side {
    display: block;
    position: fixed;
    bottom: -20px;
    z-index: 0;
    width: 250px;
    height: 618px;
    max-height: 88vh;
    pointer-events: none;
  }
  .t73-side--start { right: calc(50% + 287px + 20px); }
  .t73-side--end { left: calc(50% + 287px + 20px); transform: scaleX(-1); }
  .t73 .wrapper { z-index: 1; }
}

@media (max-width: 374px) {
  .t73-hero { padding-inline: 20px; }
  .t73-date__day { font-size: 3rem; }
  .t73-date { gap: 10px; }
  .t73-families { grid-template-columns: 1fr; gap: 16px; }
  .t73-couple__grid { grid-template-columns: 1fr; }
}
