/* 템플릿 C "청실홍실" — 쪽물 들인 청 지면이 주인, 한지는 속지. 세로쓰기, 다홍 낙관, 두 가닥 실. */
:root {
  color-scheme: light;
  --cheong: #1f3e6e;
  --cheong-deep: #172f55;
  --hanji: #eee6d3;
  --hanji-2: #e4d9c1;
  --ink: #1e1b17;
  --ink-muted: #5a5146;
  --on-cheong: #f1eadb;
  --on-cheong-muted: #c9d3e3;
  --hong: #b8322a;
  --hong-on-cheong: #ea6a55;
  --ochre: #a67c3d;
  --envelope: #f7f2e6;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fiber-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .05' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 6 -3.9'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23f)' opacity='.35'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --fiber-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .05' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .86 0 0 0 0 1 0 0 0 6 -3.9'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23f)' opacity='.16'/%3E%3C/svg%3E");
}
html { background: var(--cheong-deep); }
body.t-cheong { background: var(--cheong-deep); color: var(--ink); font-family: "Gowun Batang", "Apple SD Gothic Neo", serif; font-size: 17px; line-height: 1.9; }
.t-cheong ::selection { background: var(--hong); color: var(--on-cheong); }
.t-cheong :focus-visible { outline: 2px solid var(--hong); outline-offset: 4px; }
.t-cheong .ground-cheong :focus-visible { outline-color: var(--on-cheong); }
.ground-cheong { background: var(--fiber-light), var(--cheong); color: var(--on-cheong); }
.ground-hanji { background: var(--fiber-dark), var(--hanji); color: var(--ink); }
.sec-title, .v-names, .when-hangul, .venue-name, .acc-toggle, .contact-head { font-family: "Song Myung", "Gowun Batang", serif; font-weight: 400; }

/* ---------- 두 가닥 실 ---------- */
.threads { width: 100%; height: 28px; overflow: visible; }
.strand { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.strand-cheong { stroke: var(--cheong); }
.strand-hong { stroke: var(--hong); }
.ground-cheong .strand-cheong { stroke: var(--on-cheong-muted); }
.ground-cheong .strand-hong { stroke: var(--hong-on-cheong); }
.threads-draw .strand { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cheong-draw 900ms var(--ease) 200ms forwards; }
.threads-draw .strand-hong { animation-delay: 320ms; }
@keyframes cheong-draw { to { stroke-dashoffset: 0; } }
.sec > .threads { margin: -20px 0 30px; }

/* ---------- 표지 ---------- */
.cover { min-height: min(100svh, 860px); padding: 60px 28px 34px; display: grid; grid-template-rows: 1fr auto auto; gap: 22px; }
.cover-v { writing-mode: vertical-rl; justify-self: center; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; padding-top: 8px; }
.v-names { display: flex; align-items: center; gap: 16px; font-size: 40px; line-height: 1.15; letter-spacing: .1em; }
.seal { writing-mode: horizontal-tb; display: grid; grid-template-rows: 1fr 1fr; place-items: center; width: 50px; height: 50px; padding: 2px; background: var(--hong-on-cheong); color: var(--on-cheong); border: 1.5px solid var(--on-cheong); font-family: "Song Myung", serif; font-size: 19px; line-height: 1; letter-spacing: 0; transform: rotate(-4deg); }
.seal span { writing-mode: horizontal-tb; }
.v-invite { font-size: 21px; letter-spacing: .38em; }
.v-date { font-size: 16px; line-height: 1.9; color: var(--on-cheong-muted); letter-spacing: .14em; }
.cover-num { text-align: center; color: var(--on-cheong-muted); font-size: 16px; }

.window-wrap { padding: 44px 34px 52px; }
.window { position: relative; padding: 12px; background:
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(166, 124, 61, .55) 22px 24px),
  repeating-linear-gradient(0deg, transparent 0 22px, rgba(166, 124, 61, .55) 22px 24px), var(--hanji-2);
  border: 2px solid #6b4a2b; box-shadow: 0 16px 30px rgba(30, 27, 23, .22); }
.window img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border: 2px solid #6b4a2b; }

/* ---------- 섹션 ---------- */
.sec { padding: 72px 28px 60px; text-align: center; }
.sec-title { font-size: 30px; line-height: 1.3; letter-spacing: .06em; margin-bottom: 26px; }
.sec-note { margin: -10px 0 26px; }
.ground-cheong .sec-note, .ground-cheong .parents-of, .ground-cheong .late { color: var(--on-cheong-muted); }
.prose p + p { margin-top: 1.15em; }
.parents { margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(241, 234, 219, .3); display: grid; gap: 8px; }
.parents-child { font-weight: 700; margin-left: .25em; }

/* ---------- 혼례일 ---------- */
.when-hangul { font-size: 22px; line-height: 1.6; }
.when-line { color: var(--ink-muted); margin-top: 6px; }
#when .cal { margin-top: 30px; font-size: 16px; }
#when .cal th { color: var(--ink-muted); font-size: 14px; padding-bottom: 8px; }
#when .cal td { height: 38px; }
#when .cal th:first-child, #when .cal td:first-child { color: var(--hong); }
#when .cal .is-day span { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--hong); color: var(--on-cheong); font-weight: 700; }
.when-dday { margin-top: 22px; }
.when-dday .dday { font-family: "Song Myung", serif; font-size: 34px; color: var(--hong); letter-spacing: .04em; }

/* ---------- 병풍 ---------- */
.screen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 40px; }
.g-panel { aspect-ratio: 2 / 3; border: 5px solid var(--hanji-2); outline: 1px solid var(--ochre); background: var(--hanji-2); }
.g-panel:nth-child(even) { transform: translateY(40px); }
.g-last { grid-column: 1 / -1; aspect-ratio: 3 / 2; transform: translateY(40px); }
.g-panel img { transition: transform 300ms var(--ease); }
.g-panel:hover img { transform: scale(1.03); }
@media (min-width: 768px) {
  .screen { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 오시는 길 ---------- */
.venue-name { font-size: 24px; }
.venue-hall { display: block; font-family: "Gowun Batang", serif; font-size: 17px; color: var(--ink-muted); }
.address { margin-top: 14px; display: grid; justify-items: center; gap: 4px; }
.address-copy { padding: 0 12px; color: var(--hong); text-decoration: underline; text-underline-offset: 4px; }
.map-apps { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.map-app { min-height: 54px; background: var(--cheong); color: var(--on-cheong); font-size: 15px; font-weight: 700; transition: background-color 160ms var(--ease); }
.map-app:hover, .map-app:active { background: var(--cheong-deep); }
.map-web-hint { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }
.sec-transport { padding-top: 46px; padding-bottom: 50px; text-align: left; }
.transport { display: grid; gap: 20px; }
.transport-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.transport dt { font-family: "Song Myung", serif; color: var(--on-cheong); font-size: 18px; }
.transport dd { color: var(--on-cheong); }

/* ---------- 마음 전하실 곳: 봉투 ---------- */
.acc-group { position: relative; margin-top: 16px; background: var(--envelope); color: var(--ink); text-align: left; box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.acc-toggle { width: 100%; min-height: 72px; padding: 18px 20px 18px 34px; display: flex; align-items: center; gap: 14px; font-size: 21px; position: relative; }
.band { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--cheong); }
[data-side="bride"] .band { background: var(--hong); }
.acc-toggle::after { content: "펼치기"; margin-left: auto; font-family: "Gowun Batang", serif; font-size: 15px; color: var(--ink-muted); }
.acc-toggle[aria-expanded="true"]::after { content: "접기"; }
.acc-panel { padding: 0 16px 16px 34px; }
.acc-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #ddd2bb; }
.acc-who { grid-column: 1; font-size: 15px; color: var(--ink-muted); }
.acc-holder { color: var(--ink); font-weight: 700; }
.acc-line { grid-column: 1; }
.acc-bank { display: block; font-size: 15px; color: var(--ink-muted); line-height: 1.5; }
.acc-number { white-space: nowrap; }
.acc-number { font-weight: 700; }
.acc-copy { grid-column: 2; grid-row: 1 / span 2; position: relative; padding: 0 14px; border: 1.5px solid var(--cheong); color: var(--cheong); font-size: 15px; font-weight: 700; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.acc-copy.is-copied { border-color: var(--hong); color: var(--hong); }
.acc-copy.is-copied::before { content: "印" / ""; position: absolute; top: -14px; left: -16px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--hong); color: var(--on-cheong); border: 1.5px solid var(--envelope); font-family: "Song Myung", serif; font-size: 15px; transform: rotate(-8deg); animation: cheong-seal 220ms var(--ease) both; }
@keyframes cheong-seal { from { opacity: 0; transform: rotate(-8deg) scale(1.4); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.pay-links { grid-column: 1 / -1; display: flex; gap: 14px; }
.pay { min-height: 40px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: var(--cheong); }

/* ---------- 연락하기 ---------- */
.contact-side + .contact-side { margin-top: 30px; }
.contact-head { font-size: 20px; margin-bottom: 8px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(241, 234, 219, .22); text-align: left; }
.contact-role { color: var(--on-cheong-muted); margin-right: .25em; }
.contact-name { font-weight: 700; }
.contact-actions { display: flex; gap: 6px; }
.contact-btn { padding: 0 14px; border: 1.5px solid var(--on-cheong-muted); font-size: 15px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.contact-btn:hover, .contact-btn:active { background: var(--on-cheong); color: var(--cheong); }

/* ---------- 공유·바닥글 ---------- */
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn { min-height: 54px; font-weight: 700; border: 1.5px solid var(--cheong); color: var(--cheong); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.share-btn[data-share], .share-btn:hover { background: var(--cheong); color: var(--on-cheong); }
.share-btn.is-copied { background: var(--hong); border-color: var(--hong); color: var(--on-cheong); }
.promise { padding: 44px 28px 72px; text-align: center; }
.demo-notice { color: var(--on-cheong-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.promise-text { font-family: "Song Myung", serif; font-size: 18px; }
.promise-maker { margin-top: 6px; font-size: 15px; }
.promise-maker a { color: var(--on-cheong-muted); text-underline-offset: 3px; }

/* ---------- 공용 부품의 청홍 옷 ---------- */
.toast { background: var(--ink); color: var(--on-cheong); }
.lightbox { background: var(--fiber-light), var(--cheong); color: var(--on-cheong); }
.lb-stage img { border: 6px solid var(--hanji); }
.bgm { background: var(--hanji); color: var(--cheong); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.bgm[aria-pressed="true"] { background: var(--hong); color: var(--on-cheong); }
.bgm-error { background: var(--hanji); color: var(--ink); }
.sheet > .ground-cheong:last-child { padding-bottom: 1px; }
