/* Mẫu Ngọc Trai Đỏ — thẻ trắng giấy mịn #fbfaf7 (hạt tối rất mờ) xen thẻ đỏ đậm burgundy #7b1f1d (đậm #5e1614, vân giấy nhám sáng),
   chữ đỏ đậm trên thẻ trắng, chữ trắng kem #f6eee4 trên thẻ đỏ. Khuy cài hạt ngọc trai vẽ bằng radial-gradient (ánh trắng ngà #f7f4ee → xám ngọc #a89f92) có bóng đổ.
   Chữ có chân Bona Nova (ngày lớn nét thanh, chữ in hoa, thân bài) + viết tay The Nautigal (Save the Date, tên lồng, tên nhà hàng).
   Thẻ túi gập mũi chéo (clip-path), lịch tháng khoanh tròn ngày cưới, dải giấy mờ vellum (backdrop-filter). Góc vuông. Màu đo bằng mắt từ ảnh tham chiếu. */

.t-ngoc-trai-do {
  --red: #7b1f1d;
  --red-deep: #5e1614;
  --paper: #fbfaf7;
  --mist: #ecebe7;
  --cream: #f6eee4;
  --ink: #7b1f1d;
  --soft: #9a5a54;
  --f-serif: "Bona Nova", Georgia, serif;
  --f-script: "The Nautigal", cursive;
  --gate-bg: #7b1f1d;
  --gate-ink: #f6eee4;
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .88 0 0 0 .3 -.14'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .18 -.08'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--f-serif);
  font-variant-numeric: lining-nums;
}
.t-ngoc-trai-do * { font-variant-numeric: lining-nums; }
.t-ngoc-trai-do .thiepmai-frame { background-color: var(--paper); background-image: var(--grain-dark); }
.t-ngoc-trai-do .thiepmai-frame > section { position: relative; }
.t-ngoc-trai-do p, .t-ngoc-trai-do h1, .t-ngoc-trai-do h2, .t-ngoc-trai-do figure { margin: 0; }
.t-ngoc-trai-do .ph { inset: 0; }

/* giấy */
.t-ngoc-trai-do .nt-white { padding: 44px 26px; text-align: center; background-color: var(--paper); background-image: var(--grain-dark); }
.t-ngoc-trai-do .nt-mist { padding: 44px 26px; text-align: center; background-color: var(--mist); background-image: var(--grain-dark); }
.t-ngoc-trai-do .nt-red, .t-ngoc-trai-do .nt-redbox {
  color: var(--cream); background-color: var(--red);
  background-image: var(--grain-light), linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16));
}
.t-ngoc-trai-do .nt-red { padding: 44px 26px; text-align: center; }

/* hạt ngọc trai: ánh sáng góc trên trái, viền tối dưới phải, bóng đổ xuống giấy */
.t-ngoc-trai-do .nt-pearl {
  display: block; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 7%, #fbf9f4 16%, #ece7de 40%, #d4cdc1 66%, #b2a99b 88%, #9c9284 100%);
  box-shadow: inset -2px -3px 5px rgba(110, 98, 84, .35), inset 2px 2px 3px rgba(255, 255, 255, .9), 0 2px 2px rgba(40, 20, 15, .35), 1px 6px 8px -2px rgba(40, 20, 15, .3);
}

/* chữ dùng chung */
.t-ngoc-trai-do .nt-caps { font-weight: 400; text-transform: uppercase; letter-spacing: .16em; text-wrap: balance; }
.t-ngoc-trai-do .nt-script { font-family: var(--f-script); font-weight: 400; }
.t-ngoc-trai-do .nt-h2 { font-size: 60px; line-height: 1.1; }
.t-ngoc-trai-do .nt-addr { margin-top: 6px; font-size: 17px; line-height: 1.5; font-style: italic; color: var(--soft); }
.t-ngoc-trai-do .nt-lunar { margin-top: 6px; font-size: 15px; font-style: italic; color: var(--soft); }
.t-ngoc-trai-do .nt-venue { font-size: 26px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; text-wrap: balance; }
.t-ngoc-trai-do .nt-when { margin-top: 4px; font-size: 13px; line-height: 1.7; letter-spacing: .12em; }
/* tên đôi viết tay lồng nhau: tên chú rể lệch trái, tên cô dâu lệch phải chồng lên */
.t-ngoc-trai-do .nt-names { display: grid; font: 400 54px/1 var(--f-script); }
.t-ngoc-trai-do .nt-names span:first-child { justify-self: start; padding-left: 4%; }
.t-ngoc-trai-do .nt-names span:last-child { justify-self: end; margin-top: -.2em; padding-right: 4%; }
.t-ngoc-trai-do .nt-names--sm { font-size: 46px; }

/* ---------- 1. bìa ---------- */
.t-ngoc-trai-do .nt-cover { padding: 52px 26px 40px; }
.t-ngoc-trai-do .nt-std { position: relative; display: inline-block; }
.t-ngoc-trai-do .nt-std__kicker { position: absolute; left: 0; top: -8px; font-size: 40px; line-height: 1; rotate: -9deg; transform-origin: left bottom; white-space: nowrap; }
.t-ngoc-trai-do .nt-big { padding-top: 26px; font: 400 76px/1 var(--f-serif); letter-spacing: .02em; }
.t-ngoc-trai-do .nt-pair { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font: 400 15px/1.4 var(--f-serif); text-transform: uppercase; letter-spacing: .18em; color: var(--soft); }
.t-ngoc-trai-do .nt-pair span { white-space: nowrap; }
.t-ngoc-trai-do .nt-pair svg { width: 30px; height: 20px; color: var(--ink); }
.t-ngoc-trai-do .nt-cover__pearl { margin: 22px auto 0; }
.t-ngoc-trai-do .nt-cover__photo { position: relative; height: 430px; margin-top: 30px; }
.t-ngoc-trai-do .nt-dots { display: flex; align-items: baseline; gap: 8px; margin: 30px auto 0; max-width: 340px; padding-bottom: 4px; border-bottom: 1px dotted rgba(123, 31, 29, .55); text-align: left; }
.t-ngoc-trai-do .nt-dots span { flex: none; font-size: 11px; }
.t-ngoc-trai-do .nt-dots b { font: 400 36px/1 var(--f-script); }

/* ---------- 2. thẻ túi gập ---------- */
.t-ngoc-trai-do .nt-party { padding-top: 10px; }
.t-ngoc-trai-do .nt-pocket { position: relative; margin: 0 -6px; padding: 16px 16px 46px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 30px -22px rgba(60, 25, 20, .45); }
/* nếp gấp tờ trắng bên dưới mũi thẻ */
.t-ngoc-trai-do .nt-pocket::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; border-top: 1px solid rgba(0, 0, 0, .05); }
.t-ngoc-trai-do .nt-pocket__card {
  position: relative; padding: 30px 22px 74px; color: var(--cream); text-align: center;
  background-color: var(--red); background-image: var(--grain-light), linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 92px), 74% 100%, 0 calc(100% - 22px));
}
.t-ngoc-trai-do .nt-pocket__pearl { position: absolute; left: calc(16px + (100% - 32px) * .74 - 12px); bottom: 34px; }
.t-ngoc-trai-do .nt-pocket__lead { margin-top: 16px; font-size: 12px; line-height: 1.8; }
.t-ngoc-trai-do .nt-pocket__guest { margin-top: 2px; font-size: 44px; line-height: 1.2; }
.t-ngoc-trai-do .nt-pocket__venue { margin-top: 10px; font-size: 52px; line-height: 1.1; text-wrap: balance; }
.t-ngoc-trai-do .nt-pocket__addr { margin-top: 6px; font-size: 12px; line-height: 1.7; letter-spacing: .1em; }
.t-ngoc-trai-do .nt-pocket__when { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; margin-top: 22px; text-align: right; }
.t-ngoc-trai-do .nt-pocket__when .nt-caps { font-size: 12px; line-height: 1.8; }
.t-ngoc-trai-do .nt-pocket__dm { display: grid; text-align: left; font: 400 46px/1.15 var(--f-serif); }
.t-ngoc-trai-do .nt-pocket__lunar { font-size: 13px; font-style: italic; opacity: .85; }
.t-ngoc-trai-do .nt-end-line { margin-top: 26px; font-size: 16px; line-height: 1.6; font-style: italic; color: var(--soft); }

/* ---------- 3. báo tin ---------- */
.t-ngoc-trai-do .nt-news { border-top: 1px solid rgba(123, 31, 29, .12); }
.t-ngoc-trai-do .nt-news__kicker { font-size: 40px; line-height: 1.1; }
.t-ngoc-trai-do .nt-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; font-size: 16px; line-height: 1.5; }
.t-ngoc-trai-do .nt-fam__side { margin-bottom: 4px; font-size: 12px; letter-spacing: .24em; color: var(--soft); }
.t-ngoc-trai-do .nt-fam__addr { margin-top: 4px; font-size: 14px; text-wrap: balance; font-style: italic; color: var(--soft); }
.t-ngoc-trai-do .nt-news__lead { margin-top: 24px; font-size: 13px; line-height: 1.7; }
.t-ngoc-trai-do .nt-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 24px; }
.t-ngoc-trai-do .nt-photos figure { position: relative; aspect-ratio: 3 / 4; }
.t-ngoc-trai-do .nt-news__name { font: 400 30px/1.2 var(--f-serif); text-transform: uppercase; letter-spacing: .04em; text-wrap: balance; }
.t-ngoc-trai-do .nt-news__role { margin-top: 4px; font-size: 11px; letter-spacing: .3em; color: var(--soft); }
.t-ngoc-trai-do .nt-news__and { margin: 4px 0 2px; font-size: 44px; line-height: 1; }
.t-ngoc-trai-do .nt-news .nt-when:first-child { margin-top: 24px; }
.t-ngoc-trai-do .nt-news__date { margin-top: 8px; font: 400 52px/1.1 var(--f-serif); letter-spacing: .02em; }
.t-ngoc-trai-do .nt-news__bye { margin-top: 14px; font-size: 32px; line-height: 1.2; }

/* ---------- 4. lịch: thẻ đỏ trong phong bì trắng ---------- */
.t-ngoc-trai-do .nt-cal__pic { position: relative; aspect-ratio: 4 / 3; margin: -44px -26px 0; }
.t-ngoc-trai-do .nt-env { position: relative; margin: -70px 0 0; padding: 0 22px; }
/* nắp sau phong bì: tam giác trắng nhô lên sau thẻ */
.t-ngoc-trai-do .nt-env::before { content: ""; position: absolute; left: 0; right: 0; top: 80px; bottom: 0; background: #fff; box-shadow: 0 18px 30px -22px rgba(60, 25, 20, .5); }
.t-ngoc-trai-do .nt-env__card {
  position: relative; padding: 28px 22px 120px; color: var(--cream);
  background-color: var(--red); background-image: var(--grain-light), linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16));
}
.t-ngoc-trai-do .nt-cal__std { margin-top: 26px; text-align: left; font-size: 34px; line-height: 1; }
.t-ngoc-trai-do .nt-cal__head { margin-top: 2px; padding-bottom: 10px; text-align: left; font-size: 24px; border-bottom: 1px solid rgba(246, 238, 228, .7); }
.t-ngoc-trai-do .nt-cal__grid { margin-top: 10px; }
.t-ngoc-trai-do .nt-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-ngoc-trai-do .nt-cal__row span { position: relative; display: grid; place-items: center; height: 38px; font-size: 17px; }
.t-ngoc-trai-do .nt-cal__row--head span { height: 30px; font-size: 11px; letter-spacing: .1em; opacity: .75; }
.t-ngoc-trai-do .nt-cal__row span.is-day::before { content: ""; position: absolute; width: 32px; height: 32px; border: 1px solid var(--cream); border-radius: 50%; }
/* túi trước phong bì: hai vạt chéo gặp nhau, khuy ngọc trai giữa */
.t-ngoc-trai-do .nt-env__front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to top right, #f7f6f2 50%, transparent 50.4%) left / 50.2% 100% no-repeat, linear-gradient(to top left, #fbfaf7 50%, transparent 50.4%) right / 50.2% 100% no-repeat;
  filter: drop-shadow(0 -2px 3px rgba(60, 25, 20, .14));
}
.t-ngoc-trai-do .nt-env__pearl { position: absolute; left: 50%; top: 4px; translate: -50% 0; }

/* ---------- đếm ngược ---------- */
.t-ngoc-trai-do .nt-cd { padding: 36px 24px; }
.t-ngoc-trai-do .nt-cd__title { font-size: 13px; }
.t-ngoc-trai-do .nt-cd__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.t-ngoc-trai-do .nt-cd__row p { display: grid; padding: 4px 0; }
.t-ngoc-trai-do .nt-cd__row p + p { border-left: 1px solid rgba(246, 238, 228, .35); }
.t-ngoc-trai-do .nt-cd__row b { font: 400 42px/1.1 var(--f-serif); }
.t-ngoc-trai-do .nt-cd__row span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- 5. đường đến + dải vellum ---------- */
.t-ngoc-trai-do .nt-way { padding-top: 64px; }
.t-ngoc-trai-do .nt-vellum {
  position: absolute; z-index: 2; left: 50%; top: -26px; width: 300px; translate: -50% 0; rotate: -3deg; padding: 12px 10px;
  background: rgba(250, 248, 244, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); color: var(--red); white-space: nowrap;
}
.t-ngoc-trai-do .nt-vellum span { font: 400 21px/1 var(--f-serif); letter-spacing: .04em; }
.t-ngoc-trai-do .nt-vellum i { font: normal 400 38px/1 var(--f-script); }
.t-ngoc-trai-do .nt-way .nt-venue { margin-top: 8px; }
.t-ngoc-trai-do .nt-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.t-ngoc-trai-do .nt-btn {
  display: inline-block; padding: 12px 24px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: var(--cream);
  font: 700 13px var(--f-serif); text-transform: uppercase; letter-spacing: .16em; text-decoration: none; cursor: pointer;
}
.t-ngoc-trai-do .nt-btn--ghost { background: transparent; color: var(--red); }

/* sự kiện thêm (gói 2) */
.t-ngoc-trai-do .thiepmai-events { padding: 16px; }
.t-ngoc-trai-do .thiepmai-event { background: #fff; color: var(--ink); }

/* ---------- 6. lịch trình ---------- */
.t-ngoc-trai-do .nt-program { border-top: 1px solid rgba(123, 31, 29, .12); }
.t-ngoc-trai-do .nt-program__list { margin: 16px auto 0; padding: 0; max-width: 320px; list-style: none; }
.t-ngoc-trai-do .nt-program__list li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(123, 31, 29, .2); text-align: left; }
.t-ngoc-trai-do .nt-program__list b { font: 400 24px var(--f-serif); }
.t-ngoc-trai-do .nt-program__list span { font-size: 13px; }
.t-ngoc-trai-do .nt-program__list small { display: block; margin-top: 2px; font-size: 15px; text-transform: none; letter-spacing: 0; font-style: italic; color: var(--soft); }

/* ---------- câu thơ ---------- */
.t-ngoc-trai-do .nt-quote p { font: italic 400 21px/1.6 var(--f-serif); }

/* ---------- 7. album ---------- */
.t-ngoc-trai-do .nt-album__grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.t-ngoc-trai-do .nt-album__pic { width: calc(50% - 5px); }
.t-ngoc-trai-do .nt-album__in { position: relative; aspect-ratio: 3 / 4; border: 5px solid var(--paper); box-sizing: border-box; }
.t-ngoc-trai-do .nt-album__pic--wide, .t-ngoc-trai-do .nt-album__pic--full { width: 100%; }
.t-ngoc-trai-do .nt-album__pic--wide .nt-album__in, .t-ngoc-trai-do .nt-album__pic--full .nt-album__in { aspect-ratio: 3 / 2; }

/* ---------- 8. xác nhận ---------- */
.t-ngoc-trai-do .nt-form { display: grid; gap: 4px; margin-top: 12px; }
.t-ngoc-trai-do .nt-field {
  width: 100%; box-sizing: border-box; padding: 12px 2px; border: 0; border-bottom: 1px solid rgba(123, 31, 29, .35); border-radius: 0;
  background: transparent; font: 400 18px var(--f-serif); color: var(--ink); outline: none; appearance: none;
}
.t-ngoc-trai-do .nt-field::placeholder { color: var(--soft); opacity: .8; }
.t-ngoc-trai-do .nt-field:focus { border-bottom-color: var(--red); }
.t-ngoc-trai-do .nt-form .nt-btn { margin-top: 18px; justify-self: center; }
.t-ngoc-trai-do .nt-form__msg { min-height: 1.2em; font-size: 15px; color: var(--red); }
.t-ngoc-trai-do .nt-gift { margin-top: 16px; }

/* ---------- 9. kết ---------- */
.t-ngoc-trai-do .nt-end { padding: 26px 22px 40px; border-top: 1px solid rgba(123, 31, 29, .12); }
.t-ngoc-trai-do .nt-end__photo { position: relative; height: 400px; }
.t-ngoc-trai-do .nt-end__card {
  position: relative; margin: -60px 18px 0; padding: 38px 22px 30px; color: var(--cream);
  background-color: var(--red); background-image: var(--grain-light), linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16));
  box-shadow: 0 16px 28px -16px rgba(60, 20, 15, .6);
}
.t-ngoc-trai-do .nt-end__pearl { position: absolute; left: 50%; top: -12px; translate: -50% 0; }
.t-ngoc-trai-do .nt-end__thanks { margin-top: 14px; font-size: 52px; line-height: 1.1; }
.t-ngoc-trai-do .nt-end__text { margin-top: 8px; font-size: 16px; line-height: 1.6; font-style: italic; }
.t-ngoc-trai-do .nt-end__date { margin-top: 14px; font-size: 13px; letter-spacing: .3em; opacity: .85; }

/* ---------- màn mở thiệp: cửa đỏ, nút mở là hạt ngọc trai lớn ---------- */
.t-ngoc-trai-do .thiepmai-gate__door { background-color: var(--red); background-image: var(--grain-light), linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .14)); }
.t-ngoc-trai-do .thiepmai-gate__label { font-family: var(--f-serif); font-size: 13px; letter-spacing: .22em; }
.t-ngoc-trai-do .thiepmai-gate__guest { font: 400 54px/1.2 var(--f-script); }
.t-ngoc-trai-do .thiepmai-gate__names { font: 400 54px/1.15 var(--f-script); text-wrap: balance; }
.t-ngoc-trai-do .thiepmai-gate__date { font-family: var(--f-serif); font-size: 18px; letter-spacing: .3em; }
.t-ngoc-trai-do .thiepmai-seal {
  width: 76px; height: 76px; margin-top: 30px; border-radius: 50%; filter: none;
  background: radial-gradient(circle at 34% 30%, #fff 0 7%, #fbf9f4 16%, #ece7de 40%, #d4cdc1 66%, #b2a99b 88%, #9c9284 100%);
  box-shadow: inset -6px -8px 14px rgba(110, 98, 84, .38), inset 5px 5px 8px rgba(255, 255, 255, .9), 0 4px 4px rgba(30, 8, 6, .4), 3px 14px 18px -4px rgba(30, 8, 6, .45);
}
.t-ngoc-trai-do .thiepmai-seal__wax, .t-ngoc-trai-do .thiepmai-seal__mark { display: none; }
.t-ngoc-trai-do .thiepmai-seal__hint { margin-top: 16px; font-family: var(--f-serif); font-size: 12px; letter-spacing: .22em; }
