/* Mẫu Mộc Mạc: đám cưới đồng quê — giấy kraft, dây gai, kẹp gỗ, thẻ gỗ ghi ngày, chữ cọ viết tay */
body.theme-moc-mac { font-size: 1.06rem; }
.theme-moc-mac .wi-page { background-color: var(--c-paper);
  background-image: radial-gradient(color-mix(in srgb, var(--c-accent) 14%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; }
.mm-sprig { display: block; width: 120px; height: 40px; margin: 0 auto 6px; color: var(--mm-leaf); }

/* ---- bìa ---- */
.mm-cover { position: relative; color: #fff; }
.mm-cover .wi-cover-img { aspect-ratio: 3 / 4.6; filter: sepia(.12) saturate(1.05); }
.mm-cover .wi-cover-media { -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 22px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V10L114 16 106 9 98 18 90 11 82 19 74 10 66 17 58 9 50 18 42 11 34 19 26 10 18 17 10 9 4 15 0 11Z'/%3E%3C/svg%3E") bottom / 100% 24px no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 22px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V10L114 16 106 9 98 18 90 11 82 19 74 10 66 17 58 9 50 18 42 11 34 19 26 10 18 17 10 9 4 15 0 11Z'/%3E%3C/svg%3E") bottom / 100% 24px no-repeat; }
.mm-cover .wi-cover-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 20%, transparent 50%, rgba(40,25,10,.55)); }
.mm-kicker { position: absolute; top: 20px; left: 22px; z-index: 2; margin: 0; font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .4em; font-size: .72rem; font-weight: 600; }
.theme-moc-mac .mm-names { position: absolute; left: 0; right: 0; bottom: 70px; z-index: 2; color: #fff; padding: 0 30% 0 5%; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.theme-moc-mac .mm-names .ed-n1, .theme-moc-mac .mm-names .ed-n2 { font-size: clamp(2.43rem, 12.16vw, 3.5rem); }
.theme-moc-mac .mm-names .ed-n2 { justify-self: start; padding-left: 18%; }
.theme-moc-mac .mm-names .ed-amp { color: #fff; justify-self: start; padding-left: 12%; }
.mm-tag { position: absolute; right: 18px; bottom: 34px; z-index: 3; width: 92px; padding: 26px 8px 12px; text-align: center; color: var(--c-primary);
  background: linear-gradient(160deg, color-mix(in srgb, var(--mm-kraft) 85%, #fff), var(--mm-kraft));
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); transform: rotate(6deg); transform-origin: 50% 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.25); animation: mm-swing 4s ease-in-out infinite; display: grid; gap: 2px; }
@keyframes mm-swing { 50% { transform: rotate(-2deg); } }
.mm-tag::before { content: ""; position: absolute; left: 50%; top: -60px; width: 1px; height: 70px; background: #a88a62; }
.mm-tag-hole { position: absolute; left: 50%; top: 10px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.mm-tag small { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; }
.mm-tag b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) { .mm-tag { animation: none; } }

.mm-invite { max-width: 420px; margin: 0 auto; font-style: italic; color: var(--c-muted); }

/* ---- dây phơi ảnh với kẹp gỗ ---- */
.mm-line-wrap { position: relative; padding: 26px 10px 40px; }
.mm-twine { position: absolute; left: -4%; right: -4%; top: 30px; height: 40px; border-top: 2px solid #a88a62; border-radius: 50%; }
.mm-line { display: flex; justify-content: center; gap: 4%; }
.mm-hang { position: relative; width: 30%; background: #fff; padding: 6px 6px 20px; box-shadow: 0 10px 18px rgba(0,0,0,.15); transform-origin: 50% 0; }
.mm-hang:nth-child(1) { transform: rotate(-5deg); margin-top: 10px; }
.mm-hang:nth-child(2) { transform: rotate(2deg); margin-top: 22px; }
.mm-hang:nth-child(3) { transform: rotate(6deg); margin-top: 10px; }
.mm-hang img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mm-peg { position: absolute; left: 50%; top: -16px; width: 12px; height: 30px; margin-left: -6px; border-radius: 3px; z-index: 1;
  background: linear-gradient(90deg, #c49a64, #e5c08c 50%, #b8894f); box-shadow: 0 2px 3px rgba(0,0,0,.25); }

/* ---- nền giấy kraft ---- */
.mm-kraft { background-color: var(--mm-kraft);
  background-image: radial-gradient(rgba(90,60,30,.10) 1px, transparent 1.3px), radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px; }
.mm-kraft .ed-title-caps, .mm-kraft .ed-date-time, .mm-kraft .ed-date-lunar { color: color-mix(in srgb, var(--c-primary) 75%, transparent); }
.mm-kraft .wi-cal-day:not(.is-wedding) { color: var(--c-text); }

/* ---- vé sự kiện khâu chỉ ---- */
.mm-tickets { display: grid; gap: 20px; }
.mm-ticket { position: relative; background: var(--c-paper); padding: 26px 18px 24px; border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08); outline: 1.5px dashed color-mix(in srgb, var(--c-accent) 75%, transparent); outline-offset: -9px; }
.mm-ticket::before, .mm-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--c-paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent) 40%, transparent); }
.mm-ticket::before { left: -11px; } .mm-ticket::after { right: -11px; }
.mm-letter { max-width: 440px; margin: 0 auto; background: var(--c-paper); padding: 26px 22px; text-align: left; transform: rotate(-1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,.1); background-image: repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, var(--c-accent) 35%, transparent) 31px 32px); line-height: 32px; }
.mm-letter p { margin: 0; font-style: italic; }
.mm-card { background: var(--c-paper); padding: 6px 16px 18px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mm-end { padding: 6px 0 22px; }
.theme-moc-mac .ed-title-script { font-size: clamp(2.28rem, 10.64vw, 3.04rem); }
.theme-moc-mac .wi-btn { border-radius: 6px; }
.theme-moc-mac .wi-countdown div { background: var(--c-paper); border-radius: 6px; border: 1px dashed var(--c-accent); }
.theme-moc-mac .wi-gift { background: var(--mm-kraft); border-radius: 6px; }
.theme-moc-mac .ed-thanks-band { background: rgba(60, 40, 20, .55); }
