:root {
  --phong-chu: 'EB Garamond', Georgia, serif; --viet-tay: 'Great Vibes', cursive;
  --muc: #4b2320; --nhan: #a51a2b; --vang: #b5813a; --vien: #dcb877; --giay: #fff9ef;
  --nut: linear-gradient(180deg, #f9e2a4, #d7a650); --chu-nut: #6a0f1a;
  --gam: url(hinh/gam.svg) center top / 130px, radial-gradient(120% 70% at 50% 35%, #b82436, #7c0d1b);
  --o-dem: rgb(255 238 200 / .13); --chu-dem: #fbe3ad; --canh: linear-gradient(140deg, #f5a3a3, #c93446);
  --nen-ngoai: #7c0d1b;
}
body { background: var(--gam) fixed; }
.song-hy { width: 62px; margin: 0 auto; }
.ten, .ten-bia, .ten-khach, h1, h2 { font-family: var(--viet-tay); font-weight: 400; }
h2 { margin-bottom: 18px; color: var(--nhan); font-size: 2.75rem; line-height: 1.25; }
h2.thuong { margin-bottom: 10px; font: 600 1.5rem/1.35 var(--phong-chu); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }

.co-js .bia { background: var(--gam); color: #fbe3ad; }
.bia .song-hy { width: min(13svh, 58px); }
.chu-bia { margin: 6px 0 2px; font-size: 1.25rem; }
.cong { width: auto; height: min(52svh, 112vw, 520px); filter: drop-shadow(0 16px 26px rgb(50 0 8 / .45)); }
.ten-bia { display: flex; gap: .22em; margin-top: 4px; font-size: min(9vw, 2.75rem, 190vw / var(--n), 900px / var(--n)); line-height: 1.5; white-space: nowrap; }
.ten-bia.hai-dong { display: block; line-height: 1.25; }
.ten-bia.hai-dong span:first-child { display: block; }
.ten-bia.hai-dong ~ .kinh-moi { font-size: 1.125rem; line-height: 1.35; }
.khung-bia:has(.hai-dong) .cong { height: min(44svh, 112vw, 520px); }
.ten-bia i, h1 i { font-style: normal; }
.kinh-moi { margin-bottom: 12px; font-size: 1.25rem; }
/* Hai cánh cửa gấm mở ra hai bên, rồi khách đi qua cổng hoa. */
.co-js .bia { background: radial-gradient(60% 45% at 50% 45%, #fff3cf, #f0c877 70%); perspective: 1300px; }
.canh-cua { position: absolute; top: 0; bottom: 0; left: 0; width: 50.2%; background: var(--gam); transform-origin: 0 50%; }
.canh-cua.phai { right: 0; left: auto; transform-origin: 100% 50%; }
.dang-mo .canh-cua { box-shadow: inset 0 0 0 2px #e6bd6c; transform: rotateY(-100deg); transition: transform 1.7s cubic-bezier(.6, 0, .3, 1); }
.dang-mo .canh-cua.phai { transform: rotateY(100deg); }
.dang-mo .khung-bia > :not(.cong) { opacity: 0; transition: opacity .5s; }
.dang-mo .cong { animation: qua-cong 2.2s cubic-bezier(.6, 0, .3, 1) forwards; }
.bia.dang-mo { animation: mo-dan .8s 1.5s forwards; }
@keyframes qua-cong { to { transform: scale(2.6); } }
@keyframes mo-dan { to { opacity: 0; } }

.thiep { background: url(hinh/giay.svg), var(--giay); }
.dau { position: relative; }
.anh-dau { width: 100%; -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.ten-dau { margin-top: -34px; padding: 0 12px 20px; position: relative; }
.ten-dau > p { font-size: 1.375rem; color: var(--vang); font-weight: 500; }
h1 { color: var(--nhan); font-size: min(17vw, 5rem, 190vw / var(--n), 900px / var(--n)); line-height: 1.2; white-space: nowrap; }
h1 span:first-child { display: block; }
.ten-dau .ngay { color: var(--muc); font-size: 1.5rem; }

.bao-hy::before, .bao-hy::after, .tra-loi::before { content: ''; position: absolute; top: 0; left: 0; width: 132px; aspect-ratio: 340 / 320; background: url(hinh/goc-do.svg) center / contain no-repeat; }
.bao-hy::after { left: auto; right: 0; transform: scaleX(-1); }
.thiep .bao-hy { padding-top: 96px; }
.hai-ho { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 36px -14px 40px; }
.hai-ho h3 { margin-bottom: 6px; color: var(--nhan); }
.hai-ho p { font-size: 1.0625rem; line-height: 1.5; }
.hai-ho .noi { color: #7d5640; }
.doi-ten { margin-top: 18px; }
.doi-ten .ten { color: var(--nhan); font-size: min(3.5rem, 190vw / var(--n), 900px / var(--n)); line-height: 1.3; }
.doi-ten .va { color: var(--vang); font: 400 2.5rem/1.3 var(--viet-tay); }
.vai { color: #7d5640; }

.moi, .dem-ngay, footer { background: var(--gam); }
.thiep .moi { padding: 44px 16px; }
.to-thiep { padding: 40px 18px 36px; border-radius: 22px; background: url(hinh/giay.svg), var(--giay); box-shadow: 0 18px 40px rgb(50 0 8 / .4), inset 0 0 0 8px var(--giay), inset 0 0 0 9.5px var(--vien); }
.ten-khach { color: var(--nhan); font-size: min(3rem, 170vw / var(--n)); line-height: 1.4; }
.vao-luc { margin-top: 18px; font-size: 1.25rem; }
.so-ngay { color: var(--nhan); font-weight: 600; }
.tai { margin-top: 18px; font-size: 1.25rem; }
.to-thiep .nut { margin: 18px 0 24px; }
.loi-nhan { padding: 0 6px; color: #7d5640; }

.lich ol { position: relative; display: grid; gap: 26px; max-width: 350px; margin: 8px auto 0; text-align: left; }
.lich ol::before { content: ''; position: absolute; top: 14px; bottom: 30px; left: 92px; width: 2px; background: var(--vien); }
.lich li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 42px; align-items: baseline; }
.lich li::before { content: ''; position: absolute; top: 9px; left: 86px; width: 14px; height: 14px; border: 3px solid var(--giay); border-radius: 50%; background: var(--nhan); }
.lich time { color: var(--nhan); font-size: 1.375rem; font-weight: 600; }

.dem-ngay h2 { color: #fbe3ad; }
caption { color: #fbe3ad; }
.lich-thang th { color: var(--vang); }

.moc { max-width: 340px; margin: 0 auto 28px; }
.moc:last-child { margin-bottom: 0; }
.nam { color: var(--vang); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }

.album { padding-top: 24px !important; }

.tra-loi { background: #fbe9dc; }
.thiep .tra-loi { padding-top: 132px; }
.bao-li-xi { display: grid; place-items: center; width: 150px; height: 200px; margin: 4px auto 22px; border-radius: 14px; background: radial-gradient(120% 60px at 50% 0, #d23a48 98%, transparent), var(--gam); box-shadow: 0 14px 28px rgb(90 20 30 / .3), inset 0 0 0 2px #e6bd6c; }
.hoi { background: #fbe9dc; }
footer { padding: 0 24px 100px; color: #fbe3ad; font-size: 1.25rem; }
footer img { width: calc(100% + 48px); max-width: none; margin: 0 -24px 28px; }
footer .ten { margin-top: 14px; font-size: 2.875rem; line-height: 1.4; }
