/* 청첩장 본문 스타일 — 르블랑(하얀색) 기본 테마 */
.card {
  --ink: #3b3936;
  --sub: #8d877f;
  --line: #f2e6e8;
  --paper: #ffffff;
  --mist: #fdf6f7;
  --serif-en: 'Cormorant Garamond', serif;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
}
.card.unify { --serif-en: var(--font); }
.card *, .card *::before, .card *::after { box-sizing: border-box; }
.card img { display: block; max-width: 100%; }
.card a { color: inherit; }
.card button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- 커버 ---------- */
.cover { --cover-ink: var(--ink); text-align: center; position: relative; color: var(--cover-ink); overflow: hidden; }
.c-phrase { font-family: var(--serif-en); font-style: italic; color: var(--theme); margin: 0 0 18px; letter-spacing: .02em; position: relative; z-index: 2; }
.c-names { font-weight: 400; font-size: 1.55em; margin: 22px 0 8px; letter-spacing: .04em; position: relative; z-index: 2; }
.c-names .amp { font-family: var(--serif-en); font-style: italic; color: var(--theme); margin: 0 .45em; font-size: .95em; }
.c-date, .c-venue { margin: 0; opacity: .75; font-size: .9em; position: relative; z-index: 2; }
.cover .c-photo { overflow: hidden; background: var(--mist); position: relative; z-index: 1; }
.cover .c-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-arch, .cover-frame, .cover-circle, .cover-polaroid { padding: 56px 28px 48px; }
.c-photo.arch { aspect-ratio: 3/4; border-radius: 999px 999px 6px 6px; }
.c-photo.frame { aspect-ratio: 4/5; outline: 1px solid var(--line); outline-offset: 8px; margin: 8px; }
.c-photo.circle { aspect-ratio: 1; border-radius: 50%; width: 82%; margin: 0 auto; }
.c-photo.polaroid { background: #fff; padding: 12px 12px 46px; box-shadow: 0 8px 26px rgba(0,0,0,.12); transform: rotate(-2deg); width: 88%; margin: 0 auto; }
.c-photo.polaroid img { aspect-ratio: 1; }
.c-photo.polaroid span { position: absolute; bottom: 12px; left: 0; right: 0; font-family: var(--serif-en); font-style: italic; color: var(--sub); }
.cover-full, .cover-magazine { min-height: 680px; color: #fff; --cover-ink: #fff; }
.cover-full > img, .cover-magazine > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-full .c-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 24px 44px; background: linear-gradient(transparent, rgba(0,0,0,.45)); z-index: 2; }
.cover-full .c-phrase, .cover-full .amp, .cover-magazine .amp { color: inherit; }
.cover-magazine .c-mag { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 24px; z-index: 2; background: linear-gradient(rgba(0,0,0,.25), transparent 30%, transparent 60%, rgba(0,0,0,.4)); }
.c-mag-t { font-family: var(--serif-en); font-size: 3.4em; line-height: .95; margin: 0; letter-spacing: .02em; }
.cover-split .c-photo.split { aspect-ratio: 4/5; }
.c-split-t { padding: 30px 28px 44px; }
.cover-text { padding: 110px 28px 90px; }
.c-big { font-family: var(--serif-en); font-size: 3.6em; line-height: 1; margin: 10px 0 0; font-weight: 300; position: relative; z-index: 2; }
.c-big i { display: inline-block; width: 1px; height: .7em; background: currentColor; margin: 0 .3em; transform: rotate(25deg); }
.cover.fade .c-names, .cover.fade .c-date, .cover.fade .c-venue, .cover.fade .c-phrase { animation: lbFade 1.4s ease both; }
.cover.fade .c-date, .cover.fade .c-venue { animation-delay: .4s; }
@keyframes lbFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cover.fade .c-date, .cover.fade .c-venue { animation-name: lbFadeSoft; }
@keyframes lbFadeSoft { from { opacity: 0; } to { opacity: .75; } }

/* 흩날림 */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.fx i { position: absolute; top: -20px; left: var(--x); width: 12px; height: 12px; animation: lbFall var(--d) linear var(--delay) infinite; transform: scale(var(--s)); opacity: .85; }
.fx-petal i { background: #f3c9cf; border-radius: 12px 0 12px 0; }
.fx-snow i { background: #fff; border-radius: 50%; box-shadow: 0 0 4px rgba(0,0,0,.15); width: 7px; height: 7px; }
.fx-heart i::before { content: '♥'; color: #e9a3ad; font-size: 13px; line-height: 1; }
.fx-leaf i { background: #b9c8a5; border-radius: 0 12px 0 12px; }
@keyframes lbFall { 0% { transform: translate(0, -20px) rotate(0) scale(var(--s)); } 50% { transform: translate(30px, 360px) rotate(180deg) scale(var(--s)); } 100% { transform: translate(-10px, 760px) rotate(360deg) scale(var(--s)); opacity: 0; } }

/* 인트로 */
.intro { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; animation: lbIntro 3s ease forwards; pointer-events: none; }
.intro p { font-family: 'Great Vibes', var(--serif-en); font-size: 2.6em; margin: 0; padding: 0 20px; text-align: center; animation: lbWrite 1.8s ease both; }
@keyframes lbWrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lbIntro { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------- 공통 섹션 ---------- */
.sec { padding: 64px 28px; text-align: center; border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--serif-en); letter-spacing: .32em; color: var(--theme); font-size: .82em; margin: 0 0 10px; }
.title { font-weight: 400; font-size: 1.2em; margin: 0 0 14px; }
.desc { color: var(--sub); font-size: .9em; margin: 0 0 22px; }
.body { margin: 0 0 20px; }
.center { text-align: center; }
.small { font-size: .88em; color: var(--sub); }
.wide { width: calc(100% + 56px); margin: 28px -28px; }
.empty { color: var(--sub); font-size: .85em; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; margin: 0; }
.card.guest .sec:has(> .empty), .card.full .sec:has(> .empty) { display: none; } /* 편집용 안내는 하객에게 숨김 */
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; color: var(--theme); }
.ornament span { width: 40px; height: 1px; background: currentColor; opacity: .5; }
.ornament i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }
.parents { margin-top: 30px; display: grid; gap: 6px; }
.pline { display: flex; justify-content: center; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pline .rel, .ps + .rel { color: var(--sub); font-size: .85em; }
.pline strong { font-weight: 600; margin-left: 4px; }
.dead { color: var(--sub); font-size: .85em; }
.btn { display: block; width: 100%; padding: 13px; border: 1px solid var(--theme); color: var(--theme) !important; background: #fff; border-radius: 8px; text-decoration: none; margin-top: 18px; }
.btn.solid { background: var(--theme); color: #fff !important; }

/* 하이라이트 */
.hl { transition: background .8s, color .8s; padding: 80px 20px; }
.hl.lit { background: var(--theme); color: #fff; }
.hl-t { font-family: var(--serif-en); display: grid; gap: 4px; }
.hl-t span:first-child { font-size: 2.7em; line-height: 1.05; letter-spacing: .04em; }
.hl-t span:last-child { font-size: 1.4em; letter-spacing: .3em; opacity: .8; }
.hl-number .hl-t span:first-child { font-size: 2em; letter-spacing: .3em; }
.hl-number .hl-t span:last-child { font-size: 3.6em; letter-spacing: .08em; opacity: 1; }
.hl-time .hl-t span:first-child { font-size: 1.5em; }
.hl-time .hl-t span:last-child { font-size: 3em; letter-spacing: .05em; }

/* 캘린더 */
.cal { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 10px 0 24px; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-h span { font-size: .75em; color: var(--sub); padding-bottom: 6px; }
.cal-g span { font-size: .88em; line-height: 2.5; }
.cal .sun { color: #c97b72; }
.cal .sat { color: #6f8fb5; }
.cal-g .on { background: var(--theme); color: #fff !important; border-radius: 50%; width: 2.5em; height: 2.5em; margin: 0 auto; }
.countdown { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.countdown div { display: grid; min-width: 52px; }
.countdown b { font-family: var(--serif-en); font-size: 1.7em; font-weight: 400; line-height: 1.2; }
.countdown i { font-style: normal; font-size: .65em; letter-spacing: .15em; color: var(--sub); }
.dday { font-size: .9em; margin: 0; }
.dday strong { color: var(--theme); }

/* 양가 가족 */
.fam-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fam-row > div { border: 1px solid var(--line); border-radius: 10px; padding: 18px 10px; }
.fam-row .lb { color: var(--theme); font-size: .8em; margin: 0; }
.fam-row .nm { font-size: 1.15em; margin: 2px 0 8px; }
.fam-row .ps { color: var(--sub); font-size: .85em; margin: 0; }
.fam-col, .fam-align { display: grid; gap: 10px; }
.fam-col > div, .fam-align > div { display: flex; justify-content: center; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fam-align > div { display: grid; grid-template-columns: 1fr auto 4.5em; text-align: right; }
.fam-align b { text-align: left; }
.fam-simple { font-size: 1.05em; }
.fam-simple i { font-style: normal; margin: 0 10px; color: var(--sub); }
.contacts { list-style: none; padding: 0; margin: 0 0 10px; text-align: left; }
.contacts li { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.contacts .lb { color: var(--sub); font-size: .85em; width: 76px; }
.contacts .nm { flex: 1; }
.contacts .ic { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--theme); }
.sheet-sub { margin: 10px 0 0; font-size: .85em; color: var(--theme); }

/* 프로필 */
.pf-wrap { display: grid; gap: 22px; }
.pf-row { grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-img { width: 112px; aspect-ratio: 1; border-radius: 50%; background: var(--mist); overflow: hidden; margin: 0 auto 12px; }
.pf-wrap[style*="left"] .pf-img { margin-left: 0; }
.pf-wrap[style*="right"] .pf-img { margin-right: 0; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-role { color: var(--theme); font-size: .8em; margin: 0; }
.pf-name { font-size: 1.1em; margin: 0 0 6px; }
.pf-intro { font-size: .86em; color: var(--sub); margin: 0; }

/* 타임라인 */
.tl { list-style: none; margin: 0; padding: 0 0 0 22px; text-align: left; border-left: 1px solid var(--line); }
.tl li { position: relative; padding: 0 0 30px 12px; }
.tl li::before { content: ''; position: absolute; left: -27px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--theme); }
.tl img { border-radius: 8px; margin-bottom: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tl-d { font-family: var(--serif-en); color: var(--theme); margin: 0; font-size: .9em; }
.tl-t { margin: 0; font-size: 1.05em; }
.tl-x { margin: 4px 0 0; font-size: .88em; color: var(--sub); }

/* 갤러리 */
.gal .g-item { padding: 0; border: 0; background: var(--mist); overflow: hidden; cursor: default; }
.gal.tap .g-item { cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal.nozoom img { -webkit-touch-callout: none; user-select: none; pointer-events: none; }
.gal.nozoom { touch-action: pan-x pan-y; }
.gal-grid .g-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gal-grid .g-item { aspect-ratio: 1; }
.gal-single .g-track, .gal-slide .g-track, .gal-full .g-track, .nt-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar, .nt-track::-webkit-scrollbar { display: none; }
.gal-single .g-item { flex: 0 0 100%; aspect-ratio: 3/4; scroll-snap-align: center; }
.gal-slide { margin: 0 -28px; }
.gal-slide .g-track { gap: 8px; padding: 0 28px; scroll-padding: 0 28px; }
.gal-slide .g-item { flex: 0 0 82%; aspect-ratio: 3/4; scroll-snap-align: center; border-radius: 4px; }
.gal-full { margin: 0 -28px; }
.gal-full .g-item { flex: 0 0 100%; aspect-ratio: 2/3; scroll-snap-align: center; }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.g-dots i.on { background: var(--theme); }
.g-arrows { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; font-size: .85em; color: var(--sub); }
.g-arrows button { border: 1px solid var(--line); background: #fff; width: 32px; height: 32px; border-radius: 50%; }
.g-arrows b { color: var(--ink); font-weight: 400; }

/* 중간 이미지 */
.mid { position: relative; }
.mid.margin { padding: 28px; border-top: 1px solid var(--line); }
.mid img { width: 100%; }
.mid p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); font-size: 1.1em; }

/* 오시는 길 */
.venue { font-size: 1.1em; margin: 0 0 4px; }
.venue span { color: var(--sub); font-size: .85em; }
.map { height: 220px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--sub); font-size: .82em; overflow: hidden; }
.map.ready span { display: none; }
.map-btns { display: grid; gap: 6px; margin: 10px 0 0; }
.map-btns a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 0; font-size: .8em; text-decoration: none; }
.trans { text-align: left; margin: 26px 0 0; }
.trans dt { color: var(--theme); font-size: .88em; margin-top: 16px; }
.trans dd { margin: 4px 0 0; font-size: .9em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sketch { margin-top: 20px; border-radius: 8px; border: 1px solid var(--line); }

/* 계좌 */
.acc-g { border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; text-align: left; }
.acc-g summary, .acc-t { padding: 14px 16px; margin: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc-g summary::-webkit-details-marker { display: none; }
.acc-g summary::after { content: '+'; color: var(--sub); }
.acc-g[open] summary::after { content: '−'; }
.acc-in { padding: 0 16px 10px; }
.acc-list { list-style: none; margin: 0; padding: 0 16px 6px; }
.acc-in .acc-list { padding: 0; }
.acc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; }
.acc-list li > div:first-child { display: grid; font-size: .88em; line-height: 1.6; }
.acc-list .lb, .acc-list .holder { color: var(--sub); font-size: .9em; }
.acc-btns { display: flex; gap: 4px; }
.copy, .pay { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: .78em; white-space: nowrap; text-decoration: none; }
.pay { background: #ffeb00; border-color: #ffeb00; color: #191919 !important; }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.acc-tabs button { border: 0; background: #fff; padding: 10px; color: var(--sub); }
.acc-tabs button.on { background: var(--theme); color: #fff; }
section > .acc-list { padding: 0; }

/* 비디오 */
.yt { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 공지 */
.nt { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; text-align: left; }
.nt summary { padding: 13px 16px; cursor: pointer; list-style: none; }
.nt summary::-webkit-details-marker { display: none; }
.nt p { margin: 0; padding: 0 16px 14px; font-size: .88em; color: var(--sub); }
.nt-card { flex: 0 0 100%; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; text-align: left; }
.nt-card p { margin: 0; font-size: .88em; color: var(--sub); }
.nt-card .nt-t { color: var(--ink); font-size: 1em; margin-bottom: 6px; }
.nt-track { gap: 8px; }

/* 피로연 */
.rc { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; max-width: 300px; margin: 0 auto 18px; }
.rc dt { color: var(--theme); font-size: .85em; }
.rc dd { margin: 0; font-size: .9em; }

/* 방명록 */
.gb-form { display: grid; gap: 6px; margin-bottom: 18px; }
.gb-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gb-form .btn { margin-top: 0; }
.card input, .card textarea { font: inherit; font-size: .9em; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); }
.gb-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.gb-list li { padding: 14px 28px 14px 4px; border-bottom: 1px solid var(--line); position: relative; }
.gb-list li p { margin: 0 0 4px; font-size: .9em; }
.gb-list li span { font-size: .75em; color: var(--sub); }
.gb-del { position: absolute; right: 0; top: 12px; border: 0; background: none; color: var(--sub); font-size: 18px; }

/* 링크, 앨범 */
.link .btn { display: inline-block; width: auto; padding: 11px 30px; }
.album-img { border-radius: 10px; margin: 0 auto 4px; max-height: 260px; }

/* 엔딩 */
.ending { background: #2f2d2a; color: #fff; padding: 0 0 70px; border: 0; }
.ending img { width: 100%; margin-bottom: 50px; opacity: .9; }
.ending p { margin: 0; padding: 0 28px; }
.ending:not(:has(img)) { padding-top: 70px; }
.foot { text-align: center; padding: 28px; font-family: var(--serif-en); letter-spacing: .3em; font-size: .75em; color: var(--sub); }

/* 워터마크 (결제 전) */
.wm { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; background: rgba(255,255,255,.88); border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; color: var(--sub); pointer-events: none; }

/* 음악, 모달, 라이트박스, 토스트 */
.music { position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); }
.music.on { color: var(--theme); border-color: var(--theme); animation: lbSpin 4s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.modal, .lightbox { position: fixed; inset: 0; z-index: 50; }
.modal { background: rgba(30,28,25,.4); display: flex; align-items: flex-end; justify-content: center; }
.modal.center { align-items: center; padding: 20px; }
.modal.center .sheet { border-radius: 16px; text-align: center; }
.modal[hidden], .lightbox[hidden], .toast[hidden] { display: none; }
.sheet { position: relative; background: #fff; width: 100%; max-width: 430px; max-height: 88%; overflow: auto; border-radius: 16px 16px 0 0; padding: 26px 22px; display: grid; gap: 14px; text-align: left; }
.sheet h3 { margin: 0; font-weight: 400; text-align: center; }
.sheet .f { display: grid; gap: 6px; font-size: .85em; color: var(--sub); }
.sheet .btn { margin-top: 4px; }
.seg { display: flex; gap: 6px; }
.seg label { flex: 1; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.seg input:checked + span { border-color: var(--theme); color: var(--theme); }
.x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; }
.lightbox { background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 86%; }
.lightbox .x { color: #fff; z-index: 2; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #fff; font-size: 40px; padding: 10px; }
.lightbox .prev { left: 0; } .lightbox .next { right: 0; }
.lb-count { position: absolute; bottom: 20px; color: #fff; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 50px; transform: translateX(-50%); background: rgba(40,38,35,.9); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 80; white-space: nowrap; }

/* 비공개 청첩장 잠금 */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 16px; font-family: 'Gowun Batang', serif; text-align: center; color: #3b3936; }
.lock form { display: grid; gap: 10px; width: min(320px, 100%); }
.lock input { font: inherit; border: 1px solid #ebe7e1; border-radius: 8px; padding: 12px; text-align: center; }
.lock button { font: inherit; border: 0; border-radius: 8px; padding: 12px; background: #a89279; color: #fff; }
.lock .err { color: #c0574b; font-size: 13px; min-height: 1em; margin: 0; }
