/* Mẫu Bưu Thiếp Cam — các tấm thiệp giấy đặt trên nền vải đỏ #7a1c22 (vân vải SVG). Giấy kem #f6f1e1 / trắng #fdfcf8,
   cam đất #b8692f (chữ in nổi đổ bóng nâu), chữ đen #2b2522. Chữ in nổi Bevan (chân vuông dày kiểu áp phích cũ), chữ viết tay Sansita Swashed, chữ thân Fraunces. Góc vuông. */

.t-buu-thiep-cam {
  --copper: #b8692f;
  --copper-deep: #8e4a1c;
  --cloth: #7a1c22;
  --cream: #f6f1e1;
  --white: #fdfcf8;
  --ink: #2b2522;
  --soft: #5c514a;
  --f-serif: "Fraunces", Georgia, serif;
  --f-script: "Sansita Swashed", cursive;
  --f-emboss: "Bevan", serif;
  --gate-bg: #f6f1e1;
  --gate-ink: #2b2522;
  color: var(--ink);
  font-family: var(--f-serif);
}
.t-buu-thiep-cam .thiepmai-frame {
  background-color: var(--cloth);
  background-image: 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='1.4 .35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.t-buu-thiep-cam .thiepmai-frame > section { position: relative; }
.t-buu-thiep-cam p, .t-buu-thiep-cam h1, .t-buu-thiep-cam h2, .t-buu-thiep-cam figure { margin: 0; }
.t-buu-thiep-cam .ph { inset: 0; }

/* chữ dùng chung */
.t-buu-thiep-cam .bt-sec { padding: 30px 22px; text-align: center; }
.t-buu-thiep-cam .bt-hand { font-family: var(--f-script); font-weight: 700; color: var(--ink); }
.t-buu-thiep-cam .bt-caps { font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.t-buu-thiep-cam .bt-copper { color: var(--copper); font-weight: 600; text-transform: uppercase; }
/* chữ cam in nổi: thân sáng, bóng nâu lệch xuống phải */
.t-buu-thiep-cam .bt-emboss {
  font-family: var(--f-emboss); font-weight: 400; text-transform: uppercase; color: #c97a3d; line-height: 1.1; text-wrap: balance;
  text-shadow: 1px 1px 0 var(--copper-deep), 2px 2px 0 var(--copper-deep), 3px 3px 2px rgba(60, 25, 5, .25);
}
.t-buu-thiep-cam .bt-h2 { font-size: 30px; line-height: 1.3; }
.t-buu-thiep-cam .bt-h2--light { color: var(--cream); }
.t-buu-thiep-cam .bt-lunar { margin-top: 4px; font-size: 13px; color: var(--soft); }
.t-buu-thiep-cam .bt-bigdate {
  display: inline-block; margin-top: 2px; padding: 0 4px 4px; font: 700 40px/1.1 var(--f-serif); color: var(--copper);
  border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 -2px var(--white), 0 6px 0 -2px var(--ink);
}
.t-buu-thiep-cam .bt-card {
  margin: 22px 16px; padding: 28px 22px 30px; background: var(--white); text-align: center;
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .6);
}
/* ảnh viền trắng như bưu thiếp */
.t-buu-thiep-cam .bt-photo { padding: 10px; background: var(--white); box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6); }
.t-buu-thiep-cam .bt-photo__in { position: relative; height: 100%; }
.t-buu-thiep-cam .bt-rings { width: 72px; height: 52px; color: var(--ink); }
.t-buu-thiep-cam .bt-waves { width: 90px; height: 34px; color: var(--ink); }
/* ô ngày kiểu tem: nền cam, khung chỉ kem, số xếp dọc */
.t-buu-thiep-cam .bt-datebox {
  flex: none; display: grid; gap: 2px; padding: 14px 16px; background: var(--copper); outline: 2px solid var(--cream); outline-offset: -7px;
  font: 600 30px/1.1 var(--f-serif); color: var(--white); text-align: center; rotate: 4deg;
}

/* ---------- 1. bìa ---------- */
.t-buu-thiep-cam .bt-cover { padding: 26px 16px 8px; }
.t-buu-thiep-cam .bt-cover__photo { width: 330px; height: 380px; margin-left: auto; rotate: 3deg; }
.t-buu-thiep-cam .bt-env { position: relative; z-index: 1; margin-top: -54px; padding: 22px 20px 24px; background: var(--cream); rotate: -2.5deg; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .65); }
.t-buu-thiep-cam .bt-env__top { display: flex; align-items: center; gap: 10px; }
.t-buu-thiep-cam .bt-env__couplet { flex: 1; font-size: 16px; line-height: 1.35; rotate: -6deg; }
.t-buu-thiep-cam .bt-env__top .bt-waves { width: 70px; height: 28px; }
.t-buu-thiep-cam .bt-env__mid { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.t-buu-thiep-cam .bt-env__mid > div { flex: 1; min-width: 0; }
.t-buu-thiep-cam .bt-env__title { font-size: 40px; white-space: nowrap; }
.t-buu-thiep-cam .bt-env__sub { margin-top: 2px; font-size: 22px; }
.t-buu-thiep-cam .bt-env__sub::after { content: ""; display: block; width: 150px; height: 10px; margin: -2px 0 0 60px; border-bottom: 1.5px solid var(--ink); border-radius: 0 0 50% 50%; rotate: -4deg; }
.t-buu-thiep-cam .bt-env__names { margin-top: 8px; font-size: 19px; font-weight: 600; color: var(--copper); }
.t-buu-thiep-cam .bt-env__to { margin-top: 20px; padding-bottom: 4px; border-bottom: 2px dotted var(--soft); font-size: 14px; }
.t-buu-thiep-cam .bt-env__to b { font: 700 22px var(--f-script); }

/* ---------- 2. thiệp mời tiệc ---------- */
.t-buu-thiep-cam .bt-party__pic { position: relative; aspect-ratio: 4 / 3; margin: -10px -8px 18px; }
.t-buu-thiep-cam .bt-party__kinh { font-size: 22px; line-height: 1.15; color: var(--copper); text-align: left; rotate: -4deg; }
.t-buu-thiep-cam .bt-dots { margin: 2px 0 0; padding-bottom: 4px; border-bottom: 2px dotted var(--soft); }
.t-buu-thiep-cam .bt-party__guest { font: 700 24px/1.3 var(--f-script); }
.t-buu-thiep-cam .bt-party__lead { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.t-buu-thiep-cam .bt-party__venue { margin-top: 10px; font-size: 30px; }
.t-buu-thiep-cam .bt-party__addr { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.t-buu-thiep-cam .bt-party__time { margin-top: 14px; font-size: 18px; }
.t-buu-thiep-cam .bt-party__end { margin-top: 14px; font-size: 21px; rotate: -3deg; }

/* ---------- 3. báo tin ---------- */
.t-buu-thiep-cam .bt-frame { padding: 16px 12px 18px; border: 2px solid var(--copper); }
.t-buu-thiep-cam .bt-frame__title { font-size: 22px; color: var(--copper); }
.t-buu-thiep-cam .bt-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; font-size: 13px; line-height: 1.5; }
.t-buu-thiep-cam .bt-fam__side { color: var(--copper); font-weight: 700; margin-bottom: 2px; }
.t-buu-thiep-cam .bt-fam__addr { margin-top: 4px; font-size: 12px; color: var(--soft); }
.t-buu-thiep-cam .bt-news__lead { margin-top: 22px; font-size: 14px; line-height: 1.5; }
.t-buu-thiep-cam .bt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.t-buu-thiep-cam .bt-pair__pic { position: relative; aspect-ratio: 3 / 4; }
.t-buu-thiep-cam .bt-news__name { font-size: 25px; }
.t-buu-thiep-cam .bt-news__role { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0; font-size: 18px; }
.t-buu-thiep-cam .bt-rings--sm { width: 48px; height: 35px; }
.t-buu-thiep-cam .bt-news__when { margin-top: 20px; font-size: 14px; line-height: 1.5; }
.t-buu-thiep-cam .bt-news__at { margin-top: 8px; font-size: 20px; color: var(--copper); }
.t-buu-thiep-cam .bt-news__when .bt-party__time { margin-top: 0; }

/* ---------- 4. lịch ---------- */
.t-buu-thiep-cam .bt-cal { background: var(--cream); }
.t-buu-thiep-cam .bt-cal__month { margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--copper); }
.t-buu-thiep-cam .bt-cal__grid { margin-top: 14px; }
.t-buu-thiep-cam .bt-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-buu-thiep-cam .bt-cal__row span { position: relative; display: grid; place-items: center; height: 40px; font-size: 15px; }
.t-buu-thiep-cam .bt-cal__row--head span { height: 32px; font-weight: 700; font-size: 13px; color: var(--copper); border-bottom: 1.5px solid var(--copper); }
.t-buu-thiep-cam .bt-cal__row span.is-day { color: var(--white); font-weight: 700; }
.t-buu-thiep-cam .bt-cal__row span.is-day::before { content: ""; position: absolute; z-index: -1; width: 34px; height: 34px; background: var(--copper); outline: 1.5px solid var(--cream); outline-offset: -4px; rotate: 4deg; }
.t-buu-thiep-cam .bt-cal__row span { z-index: 0; }

/* ---------- đếm ngược ---------- */
.t-buu-thiep-cam .bt-cd__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.t-buu-thiep-cam .bt-cd__row p { display: grid; padding: 12px 0 10px; background: var(--copper); color: var(--white); outline: 1.5px solid var(--cream); outline-offset: -6px; }
.t-buu-thiep-cam .bt-cd__row b { font: 700 28px/1.1 var(--f-serif); }
.t-buu-thiep-cam .bt-cd__row span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 5. đường đến ---------- */
.t-buu-thiep-cam .bt-way__waves { position: absolute; top: 18px; right: 18px; width: 70px; height: 26px; opacity: .6; }
.t-buu-thiep-cam .bt-way__venue { margin-top: 4px; font-size: 26px; }
.t-buu-thiep-cam .bt-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.t-buu-thiep-cam .bt-btn {
  display: inline-block; padding: 12px 22px; border: 2px solid var(--copper); border-radius: 0; background: var(--copper); color: var(--white);
  font: 600 14px var(--f-serif); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.t-buu-thiep-cam .bt-btn--ghost { background: transparent; color: var(--copper); }

/* sự kiện thêm (gói 2) */
.t-buu-thiep-cam .thiepmai-events { padding: 0 16px 10px; }
.t-buu-thiep-cam .thiepmai-event { background: var(--white); color: var(--ink); }

/* ---------- 6. lịch trình ---------- */
.t-buu-thiep-cam .bt-program__list { margin: 10px 0 0; padding: 0; list-style: none; text-align: left; }
.t-buu-thiep-cam .bt-program__list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 14px; }
.t-buu-thiep-cam .bt-program__list b { font-weight: 700; color: var(--copper); }
.t-buu-thiep-cam .bt-program__list i { flex: 1; border-bottom: 2px dotted rgba(43, 37, 34, .35); }
.t-buu-thiep-cam .bt-program__list span { max-width: 62%; text-align: right; }
.t-buu-thiep-cam .bt-program__list small { display: block; text-transform: none; font-weight: 400; font-size: 12px; color: var(--soft); }

/* ---------- câu thơ ---------- */
.t-buu-thiep-cam .bt-quote p { font-size: 20px; line-height: 1.6; color: var(--cream); }

/* ---------- 7. album ---------- */
.t-buu-thiep-cam .bt-album__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 12px; margin-top: 16px; }
.t-buu-thiep-cam .bt-album__pic { padding: 7px; }
.t-buu-thiep-cam .bt-album__pic .bt-photo__in { aspect-ratio: 3 / 4; }
.t-buu-thiep-cam .bt-album__pic { width: calc(50% - 6px); box-sizing: border-box; }
.t-buu-thiep-cam .bt-album__pic--a { rotate: -2deg; }
.t-buu-thiep-cam .bt-album__pic--b { rotate: 2deg; margin-top: 12px; }
.t-buu-thiep-cam .bt-album__pic--wide, .t-buu-thiep-cam .bt-album__pic--full { width: 100%; rotate: -1deg; }
.t-buu-thiep-cam .bt-album__pic--wide .bt-photo__in, .t-buu-thiep-cam .bt-album__pic--full .bt-photo__in { aspect-ratio: 3 / 2; }

/* ---------- 8. hồi âm ---------- */
.t-buu-thiep-cam .bt-rsvp { background: var(--cream); }
.t-buu-thiep-cam .bt-rsvp__rings { position: absolute; top: 16px; right: 16px; width: 56px; height: 40px; }
.t-buu-thiep-cam .bt-rsvp__title { font-size: 34px; text-align: left; }
.t-buu-thiep-cam .bt-rsvp__lead { margin-top: 6px; font-size: 14px; text-align: left; color: var(--soft); }
.t-buu-thiep-cam .bt-form { display: grid; gap: 4px; margin-top: 10px; }
.t-buu-thiep-cam .bt-field {
  width: 100%; box-sizing: border-box; padding: 12px 2px; border: 0; border-bottom: 2px dotted var(--soft); border-radius: 0;
  background: transparent; font: 400 15px var(--f-serif); color: var(--ink); outline: none; appearance: none;
}
.t-buu-thiep-cam .bt-field:focus { border-bottom-style: solid; border-bottom-color: var(--copper); }
.t-buu-thiep-cam .bt-form .bt-btn { margin-top: 16px; justify-self: center; }
.t-buu-thiep-cam .bt-form__msg { min-height: 1.2em; font-size: 13px; color: var(--copper); }
.t-buu-thiep-cam .bt-gift { margin-top: 16px; }

/* ---------- 9. kết ---------- */
.t-buu-thiep-cam .bt-end { padding: 20px 16px 40px; }
.t-buu-thiep-cam .bt-end__photo { width: 320px; height: 400px; margin: 0 auto; rotate: -2deg; }
.t-buu-thiep-cam .bt-end__card { display: flex; align-items: center; gap: 14px; margin: -50px 6px 0; position: relative; z-index: 1; text-align: left; background: var(--cream); rotate: 1.5deg; }
.t-buu-thiep-cam .bt-end__big { font-size: 36px; }
.t-buu-thiep-cam .bt-end__text { margin-top: 6px; font-size: 17px; line-height: 1.4; }
.t-buu-thiep-cam .bt-datebox--sm { padding: 10px 12px; font-size: 22px; }

/* ---------- màn mở thiệp ---------- */
.t-buu-thiep-cam .thiepmai-gate__door { background: var(--cream); }
.t-buu-thiep-cam .thiepmai-gate__label { font-family: var(--f-serif); font-weight: 600; font-size: 14px; }
.t-buu-thiep-cam .thiepmai-gate__guest { font: 700 30px/1.3 var(--f-serif); }
.t-buu-thiep-cam .thiepmai-gate__names { font: 400 30px/1.2 var(--f-emboss); text-transform: uppercase; color: #c97a3d; text-shadow: 1px 1px 0 #8e4a1c, 2px 2px 0 #8e4a1c; text-wrap: balance; }
.t-buu-thiep-cam .thiepmai-gate__date { font-family: var(--f-serif); font-weight: 600; }
.t-buu-thiep-cam .thiepmai-gate__open { background: var(--copper); color: var(--white); font-family: var(--f-serif); text-transform: uppercase; }
