/* Mẫu Nét Mực — nền trắng ngà, trang trí nét mực vẽ tay, tiêu đề chữ tay in hoa. Bố cục chảy (flow), khung 420px. */

.t-net-muc {
  --ink: #141414;
  --paper: #efedea;
  --muted: #55524d;
  --f-head: "Mali", "Patrick Hand", cursive;
  --f-body: "Patrick Hand", "Mali", cursive;
  --f-script: "Mali", cursive;
  --gate-bg: #efedea;
  --gate-ink: #141414;
  --accent-strong: #141414;
}
.t-net-muc .vela-frame { background: var(--paper); color: var(--ink); }

/* viền "vẽ tay": bo góc lệch nhau cho cảm giác nét bút */
.t-net-muc .nm-sketch,
.t-net-muc .nm-card,
.t-net-muc .nm-btn,
.t-net-muc .nm-field,
.t-net-muc .nm-gift {
  border: 2.2px solid var(--ink);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
}

.t-net-muc .nm-s { position: relative; padding: 36px 28px; text-align: center; }
.t-net-muc .nm-h {
  margin: 0 0 16px;
  font-family: var(--f-head); font-weight: 700;
  font-size: 34px; line-height: 1.1; letter-spacing: .5px;
  text-transform: uppercase;
}
.t-net-muc .nm-h span { display: block; margin-top: 4px; font-size: 20px; letter-spacing: 6px; }
.t-net-muc .nm-p { margin: 0 auto 12px; max-width: 330px; font-family: var(--f-body); font-size: 19px; line-height: 1.4; }
.t-net-muc .nm-p b { font-family: var(--f-head); font-weight: 700; }

/* ---------- 1. bìa ---------- */
.t-net-muc .nm-hero { height: 850px; padding: 0; overflow: hidden; }
.t-net-muc .nm-hero__art { position: absolute; left: 0; top: 0; z-index: 1; width: 420px; height: 850px; pointer-events: none; }
.t-net-muc .nm-hero__photo { position: absolute; left: 90px; top: 175px; width: 240px; height: 340px; overflow: hidden; border-radius: 50%; background: #ddd; }
.t-net-muc .nm-hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.02); }
.t-net-muc .nm-sway { transform-origin: 104px 0; animation: nm-sway 6s ease-in-out infinite; }
.t-net-muc .nm-twinkle { animation: nm-twinkle 2.4s ease-in-out infinite; }
@keyframes nm-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes nm-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.t-net-muc .nm-hero__names {
  position: absolute; left: 66px; top: 548px; width: 288px; height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.t-net-muc .nm-hero__save { font-family: var(--f-body); font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.t-net-muc .nm-hero__name {
  margin: 0; font-family: var(--f-head); font-weight: 700;
  font-size: 29px; line-height: 1.08; text-transform: uppercase; overflow-wrap: anywhere; text-align: center;
}
.t-net-muc .nm-hero__amp { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.15; }
.t-net-muc .nm-hero__date { margin-top: 8px; font-family: var(--f-head); font-weight: 500; font-size: 17px; letter-spacing: 1px; }

.t-net-muc .nm-sketch img,
.t-net-muc .nm-oval img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.02); }

/* ---------- 3. thư mời ---------- */
.t-net-muc .nm-invite { padding-top: 44px; }
.t-net-muc .nm-rings { display: block; width: 200px; height: 136px; margin: 12px auto 0; }

/* ---------- 4. hai gia đình ---------- */
.t-net-muc .nm-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-net-muc .nm-oval {
  position: relative; width: 140px; height: 176px; margin: 0 auto 16px;
  border: 2.4px solid var(--ink); border-radius: 50% 48% 52% 50% / 56% 52% 48% 44%;
  padding: 6px;
}
.t-net-muc .nm-oval::after {
  content: ""; position: absolute; inset: -7px -5px -6px -8px;
  border: 1.4px solid var(--ink); border-radius: 46% 54% 48% 52% / 50% 46% 54% 50%;
  pointer-events: none;
}
.t-net-muc .nm-oval img { border-radius: 50% 48% 52% 50% / 56% 52% 48% 44%; }
.t-net-muc .nm-oval--b { transform: rotate(3deg); }
.t-net-muc .nm-fam__col:first-child .nm-oval { transform: rotate(-3deg); }
.t-net-muc .nm-fam__side { font-family: var(--f-head); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.t-net-muc .nm-fam__parents { margin-top: 4px; font-family: var(--f-body); font-size: 17px; line-height: 1.35; }
.t-net-muc .nm-fam__addr { margin-top: 4px; font-family: var(--f-body); font-size: 15px; line-height: 1.3; color: var(--muted); }
.t-net-muc .nm-fam__kicker { margin: 30px 0 8px; font-family: var(--f-body); font-size: 18px; color: var(--muted); }
.t-net-muc .nm-fam__full { font-family: var(--f-head); font-weight: 700; font-size: 28px; line-height: 1.2; text-transform: uppercase; }
.t-net-muc .nm-fam__full span { display: block; font-family: var(--f-body); font-weight: 400; font-size: 16px; letter-spacing: 3px; color: var(--muted); }
.t-net-muc .nm-heart { display: block; width: 90px; height: 40px; margin: 6px auto; }

/* ---------- 5. ảnh ngang ---------- */
.t-net-muc .nm-wide { padding-top: 10px; padding-bottom: 10px; }
.t-net-muc .nm-sketch { overflow: hidden; background: #ddd; padding: 5px; }
.t-net-muc .nm-sketch img { border-radius: 250px 12px 220px 12px / 12px 220px 12px 250px; }
.t-net-muc .nm-sketch--wide { aspect-ratio: 3 / 2; }
.t-net-muc .nm-wide .nm-sketch { transform: rotate(-1.2deg); }

/* ---------- 6. lễ + tiệc ---------- */
.t-net-muc .nm-events { display: grid; gap: 20px; }
.t-net-muc .nm-card { padding: 22px 18px; background: rgba(255, 255, 255, .35); }
.t-net-muc .nm-card--alt { transform: rotate(.8deg); }
.t-net-muc .nm-card:first-child { transform: rotate(-.8deg); }
.t-net-muc .nm-card__title { margin-bottom: 8px; font-family: var(--f-head); font-weight: 700; font-size: 25px; line-height: 1.15; text-transform: uppercase; }
.t-net-muc .nm-card__time { font-family: var(--f-head); font-size: 20px; }
.t-net-muc .nm-card__date { margin: 2px 0; font-family: var(--f-head); font-weight: 700; font-size: 30px; letter-spacing: 3px; }
.t-net-muc .nm-card__lunar { font-family: var(--f-body); font-size: 16px; color: var(--muted); }
.t-net-muc .nm-card__place { margin-top: 8px; font-family: var(--f-body); font-size: 19px; }

/* ---------- 7. chương trình ---------- */
.t-net-muc .nm-toast { display: block; width: 150px; height: 112px; margin: 0 auto 10px; }
.t-net-muc .nm-prog { list-style: none; margin: 0; padding: 0; }
.t-net-muc .nm-prog { max-width: 320px; margin: 0 auto; text-align: left; }
.t-net-muc .nm-prog li { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; column-gap: 14px; padding: 12px 0; }
.t-net-muc .nm-prog li + li { border-top: 1.6px dashed #9a968f; }
.t-net-muc .nm-prog b { font-family: var(--f-head); font-weight: 700; font-size: 24px; text-align: right; }
.t-net-muc .nm-prog span { font-family: var(--f-body); font-size: 20px; line-height: 1.3; }
.t-net-muc .nm-prog i { grid-column: 2; font-family: var(--f-body); font-style: normal; font-size: 16px; color: var(--muted); }
.t-net-muc .nm-cake { display: block; width: 110px; height: 120px; margin: 14px auto 0; }

/* ---------- 8. lịch ---------- */
.t-net-muc .nm-cal { max-width: 340px; margin: 0 auto; font-family: var(--f-head); }
.t-net-muc .nm-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-net-muc .nm-cal__row span {
  position: relative; display: grid; place-items: center;
  height: 44px; font-size: 19px;
}
.t-net-muc .nm-cal__row--head span { height: 36px; font-weight: 700; font-size: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.t-net-muc .nm-cal__row span.is-sun { color: var(--muted); }
.t-net-muc .nm-cal__row span.is-day { font-weight: 700; font-size: 21px; color: var(--ink); }
.t-net-muc .nm-cal__loop { position: absolute; left: 50%; top: 50%; width: 54px; height: 50px; transform: translate(-50%, -50%) rotate(-8deg); }
.t-net-muc .nm-cal__heart { position: absolute; right: -9px; top: -9px; width: 14px; height: 13px; animation: vela-heart 1.6s ease-in-out infinite; }
.t-net-muc .nm-count { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.t-net-muc .nm-count p {
  width: 72px; padding: 10px 0 6px;
  border: 2px solid var(--ink); border-radius: 50% 46% 52% 48% / 44% 52% 48% 56%;
}
.t-net-muc .nm-count b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.1; }
.t-net-muc .nm-count span { font-family: var(--f-body); font-size: 15px; }

/* ---------- 9. địa điểm ---------- */
.t-net-muc .nm-house { display: block; width: 200px; height: 130px; margin: 0 auto 12px; }
.t-net-muc .nm-venue__name { margin-bottom: 6px; font-family: var(--f-head); font-weight: 700; font-size: 23px; line-height: 1.25; }
.t-net-muc .nm-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.t-net-muc .nm-btn {
  display: inline-block; padding: 10px 16px;
  background: transparent; color: var(--ink);
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.t-net-muc .nm-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.t-net-muc .nm-btn--solid { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 #8a867f; }

/* ---------- 10. album ---------- */
.t-net-muc .nm-album { padding-left: 20px; padding-right: 20px; }
.t-net-muc .nm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.t-net-muc .nm-grid .nm-sketch--tall { aspect-ratio: 3 / 4; }
.t-net-muc .nm-grid .nm-sketch--wide { grid-column: span 2; }
.t-net-muc .nm-grid .nm-sketch:nth-child(odd) { transform: rotate(-1.2deg); }
.t-net-muc .nm-grid .nm-sketch:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- 11. xác nhận ---------- */
.t-net-muc .nm-form { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.t-net-muc .nm-field {
  width: 100%; padding: 12px 16px;
  background: rgba(255, 255, 255, .45); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.t-net-muc .nm-field::placeholder { color: #8a867f; }
.t-net-muc .nm-choice { display: grid; gap: 8px; padding: 2px 4px; font-family: var(--f-body); font-size: 19px; }
.t-net-muc .nm-choice label { display: flex; align-items: center; gap: 10px; }
.t-net-muc .nm-choice input { width: 20px; height: 20px; accent-color: var(--ink); }
.t-net-muc .nm-form .nm-btn { justify-self: center; margin-top: 6px; padding: 13px 34px; border-color: var(--ink); }
.t-net-muc .nm-btn:disabled { opacity: .6; }
.t-net-muc .nm-form__msg { min-height: 22px; font-family: var(--f-body); font-size: 17px; text-align: center; }

/* ---------- 12. mừng cưới ---------- */
.t-net-muc .nm-gift {
  display: inline-grid; justify-items: center; gap: 8px;
  padding: 18px 30px 14px; background: rgba(255, 255, 255, .35);
  box-shadow: 3px 3px 0 var(--ink);
}
.t-net-muc .nm-gift svg { width: 110px; height: 80px; }
.t-net-muc .nm-gift span { font-family: var(--f-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- 13. cảm ơn ---------- */
.t-net-muc .nm-thanks { padding-bottom: 40px; }
.t-net-muc .nm-oval--big { width: 250px; height: 320px; margin-bottom: 28px; padding: 8px; }
.t-net-muc .nm-thanks .nm-btn { margin-top: 10px; }

.t-net-muc .nm-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 0 4px; border-top: 1.5px dashed #b9b5ae; margin: 0 28px;
  font-family: var(--f-body); font-size: 17px; color: var(--muted);
}

/* ---------- màn mở thiệp ---------- */
.t-net-muc .vela-gate__card {
  border: 2.4px solid var(--ink);
  border-radius: 50% 48% 52% 50% / 40% 42% 38% 40%;
  padding: 70px 30px 60px;
  background: var(--paper);
}
.t-net-muc .vela-gate__label { font-family: var(--f-body); font-size: 16px; }
.t-net-muc .vela-gate__guest, .t-net-muc .vela-gate__names { font-weight: 700; text-transform: uppercase; }
.t-net-muc .vela-gate__guest { font-size: 32px; }
.t-net-muc .vela-gate__names { font-size: 23px; line-height: 1.3; }
.t-net-muc .vela-gate__card::before {
  content: ""; position: absolute; inset: 9px 7px 8px 10px;
  border: 1.3px solid var(--ink); border-radius: 48% 52% 50% 50% / 42% 40% 40% 38%;
  pointer-events: none;
}
.t-net-muc .vela-gate__date { font-family: var(--f-head); }
.t-net-muc .vela-gate__open {
  border: 2.2px solid var(--ink); border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  background: var(--ink); color: var(--paper); font-family: var(--f-head); text-transform: uppercase;
  box-shadow: 3px 3px 0 #8a867f;
}
.t-net-muc .vela-event { border-color: var(--ink); border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px; background: rgba(255, 255, 255, .4); font-family: var(--f-body); }
.t-net-muc .vela-event__title { font-family: var(--f-head); }
.t-net-muc .vela-event__map { background: var(--ink); }
