:root {
  --phong-chu: 'EB Garamond', Georgia, serif; --viet-tay: 'Great Vibes', cursive;
  --muc: #3f3b2c; --nhan: #3f6b4a; --vang: #a8793a; --vien: #dcc08a; --giay: #fffaf0;
  --nut: linear-gradient(180deg, #527f5c, #38603f); --chu-nut: #fff;
  --o-dem: #fff; --chu-dem: #3f6b4a; --canh: linear-gradient(140deg, #fff0cf, #e9bd7d);
  --nen-ngoai: #eee3cb;
}
h1, h2, .ten, .ten-bia, .ten-khach { color: var(--nhan); font-family: var(--viet-tay); font-weight: 400; }
h2 { margin-bottom: 18px; font-size: 2.75rem; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }

.co-js .bia { background: url(hinh/giay.svg), var(--giay); }
.bia::before, .bia::after, .dau::before, .dau::after, footer::before, footer::after { content: ''; position: absolute; top: 0; left: 0; width: min(46vw, 230px); aspect-ratio: 340 / 320; background: url(hinh/goc-nga.svg) center / contain no-repeat; pointer-events: none; }
.bia::after { top: auto; left: auto; right: 0; bottom: 0; transform: rotate(180deg); }
.khung-bia { z-index: 1; width: 100%; font-size: 1.25rem; }
.anh-bia { width: auto; height: min(34svh, 320px); margin-bottom: 14px; filter: drop-shadow(0 10px 16px rgb(120 90 40 / .18)); }
.chu-bia { font-size: 1.375rem; }
.ten-bia { font-size: min(17vw, 5rem, 165vw / var(--n), 1100px / var(--n)); line-height: 1.4; white-space: nowrap; }
.kinh-moi { margin: 22px 0 24px; }
.co-js .bia { perspective: 1200px; }
.dang-mo .khung-bia { transform-origin: 50% 0; animation: mo-to 1.4s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes mo-to { to { opacity: 0; transform: rotateX(80deg); } }
.bia.dang-mo { animation: mo-dan .8s .9s forwards; }
@keyframes mo-dan { to { opacity: 0; transform: scale(1.05); } }

.thiep { background: url(hinh/giay.svg), var(--giay); }
.dau { position: relative; padding: 120px 24px 8px; font-size: 1.25rem; }
.dau::before, .dau::after, footer::before, footer::after { width: 140px; }
.dau::after, footer::after { left: auto; right: 0; transform: scaleX(-1); }
.logo { width: auto; max-width: 180px; height: 80px; margin: 0 auto 14px; object-fit: contain; }
h1 { font-size: min(17vw, 5rem, 160vw / var(--n), 780px / var(--n)); line-height: 1.35; white-space: nowrap; }
[data-dai].ten-bia, h1[data-dai] { font-size: min(10.5vw, 3rem); line-height: 1.3; white-space: normal; text-wrap: balance; }
.anh-dau { width: 100%; margin-top: 24px; border: 8px solid #fff; border-radius: 240px 240px 24px 24px; box-shadow: 0 14px 34px rgb(120 90 40 / .2); }
.hai-ho { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 -12px; }
.hai-ho h3, .nam, .lich time, .so-ngay { color: var(--nhan); font-weight: 600; }
.ten-khach { font-size: 2.875rem; line-height: 1.4; }
.to-thiep { margin: 22px 0; padding: 28px 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgb(120 90 40 / .13); }
.to-thiep .nut { margin-top: 18px; }
.to-thiep h3 { margin-top: 12px; }
.lich ol { display: grid; gap: 18px; max-width: 340px; margin: 0 auto; text-align: left; }
.lich li { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: baseline; }
.lich time { font-size: 1.25rem; }
.dem-ngay, .tra-loi { background: #f3ead6; }
.moc + .moc { margin-top: 24px; }
.boc-do ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.boc-do li { padding: 8px 18px; border-radius: 999px; background: #fff; box-shadow: 0 6px 14px rgb(120 90 40 / .12); }
footer { position: relative; padding: 136px 24px 110px; }
footer .ten { font-size: 2.875rem; line-height: 1.4; }
