/* Mẫu Ngà Nâu — thiệp giấy trắng ngà mịn #f6f1e6 (lót thẻ gập #ece4d4), chữ nâu socola #5b3a29 (chữ nhỏ nâu sữa #8a6a55),
   đặt trên nền bàn nâu sẫm #3a2620 (bóng #2a1b16) có vân mờ. Chữ lồng: chữ cái chú rể đứng trước, chữ cái cô dâu lồng phía sau (lệch trái lên),
   nét chữ trước có viền giấy ngà để tạo khe "lồng". Chữ có chân Newsreader (optical size tự đổi theo cỡ: cỡ lớn nét thanh đậm rõ cho chữ lồng / ngày lớn,
   cỡ nhỏ cho thân), chữ viết tay Island Moments. Cả hai có tiếng Việt, OFL. Không hoạ tiết thêm, góc vuông. */

.t-nga-nau {
  --table: #3a2620;
  --table-deep: #2a1b16;
  --paper: #f6f1e6;
  --paper-2: #ece4d4;
  --ink: #5b3a29;
  --soft: #8a6a55;
  --line: rgba(91, 58, 41, .38);
  --ivory-ink: #efe6d6;
  --f-serif: "Newsreader", Georgia, serif;
  --f-script: "Island Moments", cursive;
  --gate-bg: #f6f1e6;
  --gate-ink: #5b3a29;
  --grain-table: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .75 0 0 0 0 .62 0 0 0 .18 -.06'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-paper: 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='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .14 -.05'/%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-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}
.t-nga-nau * { font-variant-numeric: lining-nums; }
.t-nga-nau .thiepmai-frame {
  background-color: var(--table);
  background-image: var(--grain-table), radial-gradient(120% 60% at 20% 10%, rgba(255, 220, 190, .07), transparent 60%), linear-gradient(180deg, var(--table), var(--table-deep));
  background-size: 200px 200px, 100% 100%, 100% 100%;
}
.t-nga-nau .thiepmai-frame > section { position: relative; }
.t-nga-nau p, .t-nga-nau h1, .t-nga-nau h2, .t-nga-nau figure { margin: 0; }
.t-nga-nau .ph { inset: 0; }

/* nền bàn + thẻ giấy ngà */
.t-nga-nau .nn-table { padding: 22px 20px; }
.t-nga-nau .nn-card {
  position: relative; padding: 40px 26px; text-align: center; color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain-paper), linear-gradient(155deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40%, rgba(120, 90, 60, .06));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 18px 30px -14px rgba(10, 4, 2, .7);
}
/* ảnh in đặt trên bàn: viền giấy ngà */
.t-nga-nau .nn-print { position: relative; border: 9px solid var(--paper); background: var(--paper); box-shadow: 0 18px 30px -14px rgba(10, 4, 2, .75); }

/* chữ dùng chung */
.t-nga-nau .nn-caps { font-weight: 500; text-transform: uppercase; letter-spacing: .14em; text-wrap: balance; }
.t-nga-nau .nn-small { font-size: 12.5px; line-height: 1.75; letter-spacing: .09em; color: var(--soft); }
.t-nga-nau .nn-script { font-family: var(--f-script); font-weight: 400; }
.t-nga-nau .nn-h2 { font-size: 56px; line-height: 1.05; color: var(--ink); }
.t-nga-nau .nn-addr { margin-top: 4px; font-size: 16px; line-height: 1.5; font-style: italic; color: var(--soft); }
.t-nga-nau .nn-lunar { margin-top: 8px; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--soft); }
.t-nga-nau .nn-venue { margin-top: 2px; font: 500 25px/1.2 var(--f-serif); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); text-wrap: balance; }
.t-nga-nau .nn-vline { display: block; width: 1px; height: 58px; margin: 20px auto 0; background: var(--line); }
/* Kính mời: chữ in hoa nhỏ, chữ đầu mỗi từ lớn hơn (small caps như thiệp gốc) */
.t-nga-nau .nn-kinhmoi { font-size: 13px; letter-spacing: .1em; font-variant-caps: normal; color: var(--ink); }
.t-nga-nau .nn-kinhmoi::first-letter { font-size: 1.35em; }

/* ô ngày lớn: Vào lúc / giờ | ngày | Tháng / Năm */
.t-nga-nau .nn-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 18px auto 0; max-width: 310px; color: var(--ink); }
.t-nga-nau .nn-row p { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.4; }
.t-nga-nau .nn-row p:first-child { text-align: right; padding-right: 14px; }
.t-nga-nau .nn-row p:last-child { text-align: left; padding-left: 14px; }
.t-nga-nau .nn-row b { padding: 0 16px; font: 400 64px/1 var(--f-serif); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- 1. thẻ Save the date ---------- */
.t-nga-nau .nn-cover { padding: 46px 28px 34px; }
/* thẻ gập lót phía sau, lệch nghiêng như thiệp đặt chồng trên bàn */
.t-nga-nau .nn-cover::before {
  content: ""; position: absolute; inset: 58px 34px 20px 22px; background: var(--paper-2); background-image: var(--grain-paper);
  transform: rotate(-4deg); box-shadow: 0 16px 26px -14px rgba(10, 4, 2, .7);
}
.t-nga-nau .nn-std { padding: 34px 22px 36px; }
.t-nga-nau .nn-std__kicker { font-size: 64px; line-height: 1; color: var(--ink); transform: rotate(-4deg); }
.t-nga-nau .nn-std__line { margin: 14px auto 0; max-width: 290px; font-size: 15px; line-height: 1.5; font-style: italic; color: var(--soft); text-wrap: balance; }
.t-nga-nau .nn-std__names { margin-top: 10px; font-size: 46px; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.t-nga-nau .nn-std__names span { white-space: nowrap; }
.t-nga-nau .nn-std__names i { font-style: normal; font-size: .8em; }
.t-nga-nau .nn-std__date { margin-top: 4px; font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.t-nga-nau .nn-std .nn-vline { height: 64px; margin-top: 18px; }

/* chữ lồng: chữ cô dâu phía sau lệch trái lên, chữ chú rể phía trước có viền giấy tạo khe */
.t-nga-nau .nn-mono { position: relative; display: grid; place-items: center; height: 200px; margin-top: 4px; }
.t-nga-nau .nn-mono b { grid-area: 1 / 1; font: 400 172px/1 var(--f-serif); font-variation-settings: "opsz" 72; color: var(--ink); }
.t-nga-nau .nn-mono__b { translate: -30px -18px; }
.t-nga-nau .nn-mono__g { translate: 18px 18px; -webkit-text-stroke: 5px var(--paper); paint-order: stroke fill; }
.t-nga-nau .nn-mono--sm { height: 120px; }
.t-nga-nau .nn-mono--sm b { font-size: 100px; }
.t-nga-nau .nn-mono--sm .nn-mono__b { translate: -18px -10px; }
.t-nga-nau .nn-mono--sm .nn-mono__g { translate: 10px 10px; -webkit-text-stroke-width: 3.5px; }

/* đường kẻ chấm để tên khách + Kính mời */
.t-nga-nau .nn-guestline { margin: 24px auto 0; max-width: 270px; }
.t-nga-nau .nn-guestline b { display: block; min-height: 50px; padding: 0 4px 2px; font-size: 40px; line-height: 1.25; font-weight: 400; color: var(--ink); border-bottom: 1px dotted var(--soft); text-wrap: balance; }
.t-nga-nau .nn-guestline .nn-kinhmoi { margin-top: 12px; }

/* ---------- ảnh bìa ---------- */
.t-nga-nau .nn-photo { padding: 10px 30px 26px; }
.t-nga-nau .nn-photo__pic { height: 470px; transform: rotate(1.5deg); }

/* ---------- 2. thẻ mời tiệc ---------- */
.t-nga-nau .nn-party { padding: 40px 24px 36px; }
.t-nga-nau .nn-guest { margin: 2px 0 8px; font-size: 46px; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.t-nga-nau .nn-party__names { margin: 14px 0 14px; font-size: 48px; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.t-nga-nau .nn-party__names span { white-space: nowrap; }
.t-nga-nau .nn-party__names i, .t-nga-nau .nn-news__amp { font-style: normal; }
.t-nga-nau .nn-party__names i { font-size: .8em; }
.t-nga-nau .nn-end-line { margin-top: 22px; font-size: 15px; line-height: 1.6; font-style: italic; color: var(--soft); }
.t-nga-nau .nn-party .nn-kinhmoi { margin-top: 14px; }

/* ---------- 3. thẻ gập báo tin ---------- */
/* nếp gập ngang giữa thẻ: vệt sáng + bóng mảnh */
.t-nga-nau .nn-fold {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 49.6%, rgba(90, 60, 40, .12) 50%, rgba(255, 255, 255, .55) 50.3%, rgba(0, 0, 0, 0) 51.5%),
    var(--grain-paper), linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(120, 90, 60, .05) 49%, rgba(255, 255, 255, .3) 51%, rgba(120, 90, 60, .07));
}
.t-nga-nau .nn-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.t-nga-nau .nn-fam > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.t-nga-nau .nn-fam__side { margin-bottom: 4px; font-size: 12px; letter-spacing: .22em; color: var(--soft); }
.t-nga-nau .nn-fam__addr { margin-top: 4px; font-size: 13.5px; font-weight: 400; font-style: italic; color: var(--soft); }
.t-nga-nau .nn-news__lead { margin-top: 24px; }
.t-nga-nau .nn-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 18px; }
.t-nga-nau .nn-photos figure { position: relative; aspect-ratio: 3 / 4; }
.t-nga-nau .nn-news__name { font-size: 44px; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.t-nga-nau .nn-news__role { margin-top: 0; font-size: 11px; letter-spacing: .28em; color: var(--soft); }
.t-nga-nau .nn-news__amp { margin: 2px 0 -6px; font-size: 38px; line-height: 1; color: var(--soft); }
.t-nga-nau .nn-news__place { margin-top: 24px; }

/* ---------- 4. ảnh + chữ lồng + lịch ---------- */
.t-nga-nau .nn-cal-wrap { padding-top: 30px; }
.t-nga-nau .nn-cal__pic { aspect-ratio: 3 / 2; margin: 0 14px; transform: rotate(-1.5deg); }
.t-nga-nau .nn-cal { margin-top: -34px; padding: 26px 22px 28px; }
.t-nga-nau .nn-cal__month { margin-top: 6px; font-size: 14px; color: var(--ink); }
.t-nga-nau .nn-cal__grid { margin-top: 12px; }
.t-nga-nau .nn-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-nga-nau .nn-cal__row span { position: relative; display: grid; place-items: center; height: 40px; font-size: 17px; color: var(--ink); }
.t-nga-nau .nn-cal__row--head span { height: 32px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--soft); border-bottom: 1px solid var(--line); }
/* ngày cưới: khung mảnh nâu, chữ đậm */
.t-nga-nau .nn-cal__row span.is-day { font-weight: 600; z-index: 0; }
.t-nga-nau .nn-cal__row span.is-day::before { content: ""; position: absolute; z-index: -1; width: 34px; height: 34px; border: 1px solid var(--ink); background: rgba(91, 58, 41, .06); }

/* ---------- đếm ngược: chữ ngà trên nền bàn ---------- */
.t-nga-nau .nn-cd { padding: 30px 24px 34px; text-align: center; color: var(--ivory-ink); }
.t-nga-nau .nn-cd__title { font-size: 52px; line-height: 1; }
.t-nga-nau .nn-cd__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.t-nga-nau .nn-cd__row p { display: grid; padding: 4px 0; }
.t-nga-nau .nn-cd__row p + p { border-left: 1px solid rgba(239, 230, 214, .3); }
.t-nga-nau .nn-cd__row b { font: 400 40px/1.1 var(--f-serif); }
.t-nga-nau .nn-cd__row span { margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

/* ---------- 5. đường đến ---------- */
.t-nga-nau .nn-way__venue { margin-top: 8px; }
.t-nga-nau .nn-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.t-nga-nau .nn-btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper);
  font: 500 13px var(--f-serif); text-transform: uppercase; letter-spacing: .16em; text-decoration: none; cursor: pointer;
}
.t-nga-nau .nn-btn--ghost { background: transparent; color: var(--ink); }

/* sự kiện thêm (gói 2) */
.t-nga-nau .thiepmai-events { padding: 16px 20px; }
.t-nga-nau .thiepmai-event { background: var(--paper); color: var(--ink); }

/* ---------- 6. lịch trình ---------- */
.t-nga-nau .nn-program__list { margin: 14px auto 0; padding: 0; max-width: 310px; list-style: none; }
.t-nga-nau .nn-program__list li { display: grid; grid-template-columns: 66px 1fr; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.t-nga-nau .nn-program__list b { font: 400 22px var(--f-serif); color: var(--ink); }
.t-nga-nau .nn-program__list span { font-size: 13px; color: var(--ink); }
.t-nga-nau .nn-program__list small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; font-style: italic; color: var(--soft); }

/* ---------- câu thơ: chữ ngà nghiêng trên nền bàn ---------- */
.t-nga-nau .nn-quote { padding: 6px 30px 30px; text-align: center; color: var(--ivory-ink); }
.t-nga-nau .nn-quote .nn-vline { margin: 0 auto 16px; background: rgba(239, 230, 214, .4); }
.t-nga-nau .nn-quote p { font: italic 300 21px/1.6 var(--f-serif); text-wrap: balance; }

/* ---------- 7. album ---------- */
.t-nga-nau .nn-album { text-align: center; }
.t-nga-nau .nn-album .nn-h2 { color: var(--ivory-ink); }
.t-nga-nau .nn-album__grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.t-nga-nau .nn-album__pic { width: calc(50% - 6px); }
.t-nga-nau .nn-album__in { position: relative; aspect-ratio: 3 / 4; border: 6px solid var(--paper); background: var(--paper); box-shadow: 0 12px 20px -12px rgba(10, 4, 2, .8); }
.t-nga-nau .nn-album__pic--wide, .t-nga-nau .nn-album__pic--full { width: 100%; }
.t-nga-nau .nn-album__pic--wide .nn-album__in, .t-nga-nau .nn-album__pic--full .nn-album__in { aspect-ratio: 3 / 2; }

/* ---------- 8. xác nhận ---------- */
.t-nga-nau .nn-form { display: grid; gap: 4px; margin-top: 12px; }
.t-nga-nau .nn-field {
  width: 100%; box-sizing: border-box; padding: 12px 2px; border: 0; border-bottom: 1px dotted var(--soft); border-radius: 0;
  background: transparent; font: 400 17px var(--f-serif); color: var(--ink); outline: none; appearance: none;
}
.t-nga-nau .nn-field::placeholder { color: var(--soft); font-style: italic; }
.t-nga-nau .nn-field:focus { border-bottom: 1px solid var(--ink); }
.t-nga-nau .nn-form .nn-btn { margin-top: 18px; justify-self: center; }
.t-nga-nau .nn-form__msg { min-height: 1.2em; font-size: 15px; color: var(--ink); }
.t-nga-nau .nn-gift { margin-top: 14px; }

/* ---------- 9. kết ---------- */
.t-nga-nau .nn-end { padding: 30px 20px 44px; }
.t-nga-nau .nn-end__photo { height: 420px; margin: 0 8px; transform: rotate(1.5deg); }
.t-nga-nau .nn-end__card { margin: -60px 22px 0; padding: 30px 20px 28px; }
.t-nga-nau .nn-end__thanks { font-size: 60px; line-height: 1; color: var(--ink); }
.t-nga-nau .nn-end__text { margin-top: 10px; font-size: 15px; line-height: 1.6; font-style: italic; color: var(--soft); }
.t-nga-nau .nn-end .nn-vline--sm { height: 34px; margin-top: 14px; }
.t-nga-nau .nn-end__names { margin-top: 12px; font-size: 12px; letter-spacing: .26em; color: var(--ink); }

/* ---------- màn mở thiệp: giấy ngà, chữ nâu ---------- */
.t-nga-nau .thiepmai-gate__door { background-color: var(--paper); background-image: var(--grain-paper); }
.t-nga-nau .thiepmai-gate__label { font-family: var(--f-serif); font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--soft); }
.t-nga-nau .thiepmai-gate__guest { font: 400 50px/1.2 var(--f-script); text-wrap: balance; }
.t-nga-nau .thiepmai-gate__names { font: 400 50px/1.15 var(--f-script); text-wrap: balance; }
.t-nga-nau .thiepmai-gate__date { font-family: var(--f-serif); font-size: 15px; letter-spacing: .24em; }
.t-nga-nau .thiepmai-gate__open { background: var(--ink); color: var(--paper); font-family: var(--f-serif); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; box-shadow: none; }
.t-nga-nau .nn-rsvp .nn-h2 { font-size: 50px; }
