/* 청첩장 표지 — 너비 390을 기준으로 한 비율 그대로 커지고 작아진다(cqi = 표지 너비의 백분의 일) */
.cover { position: relative; container-type: inline-size; aspect-ratio: 390 / 700; width: 100%; overflow: hidden; background: var(--paper); color: var(--cover-ink); font-family: var(--font); text-align: center; word-break: keep-all; }
.cover .art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover p { margin: 0; }
.cv-text, .cv-info { position: absolute; left: 0; right: 0; padding: 0 8cqi; }
.cv-line { font-size: 3.9cqi; letter-spacing: .02em; line-height: 1.6; margin: 0 0 4.2cqi !important; }
.cv-names { display: flex; flex-direction: column; align-items: center; gap: 1.6cqi; font-size: 10.4cqi; line-height: 1.22; font-weight: 400; letter-spacing: .06em; }
.cv-names span { overflow-wrap: anywhere; }
.cv-info { font-size: 4cqi; line-height: 1.75; }
.cover .drop { width: 7.6cqi; height: auto; display: block; margin: .8cqi 0; }

/* 겹꽃 — 화환 · 두 줄기 · 꽃밭 */
.cv-gyeop .cv-text { top: 43.4%; transform: translateY(-50%); padding: 0 24cqi; }
.cv-gyeop .cv-line { font-size: 3.5cqi; }
.cv-gyeop .cv-info { top: 81.5%; }
.cv-gyeop.cv-c1 .cv-text { top: 42%; padding: 0 12cqi; }
.cv-gyeop.cv-c1 .cv-info { top: 57%; padding-left: 16cqi; }
.cv-gyeop.cv-c2 .cv-text { top: 9%; transform: none; padding: 0 10cqi; }
.cv-gyeop.cv-c2 .cv-names { font-size: 11.6cqi; }
.cv-gyeop.cv-c2 .cv-info { top: 41%; }

.cv-meadow .cv-text { top: 12%; }
.cv-meadow .cv-info { top: 43%; }
.cv-night .cv-text { top: 42%; }
.cv-night .cv-info { top: 70%; }
.cv-night .cv-text, .cv-night .cv-info { text-shadow: 0 0 3cqi rgba(0, 0, 20, .35); }
.cv-jogakbo .cv-text { top: 50%; left: 17%; right: 17%; transform: translateY(-50%); padding: 10cqi 4cqi 9cqi; background: var(--paper); outline: .5cqi dashed var(--pt); outline-offset: -2.6cqi; box-shadow: 0 0 0 1.2cqi var(--paper), 0 1.6cqi 5cqi rgba(30, 20, 40, .22); }
.cv-jogakbo .cv-names { font-size: 9.6cqi; }
.cv-jogakbo .cv-info { position: static; padding: 0 2cqi; margin-top: 5.2cqi; font-size: 3.7cqi; text-wrap: balance; }

.cv-arch .cv-photo { position: absolute; left: 14%; right: 14%; top: 10.5%; height: 56%; border-radius: 50cqi 50cqi 1cqi 1cqi; overflow: hidden; background: var(--soft); }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-arch .cv-text { top: 73.5%; }
.cv-arch .cv-names { flex-direction: row; justify-content: center; gap: 3cqi; font-size: 7.6cqi; }
.cv-arch .cv-line { margin-bottom: 2.4cqi !important; }
.cv-arch .cv-info { top: 86%; font-size: 3.7cqi; }

.cv-full .cv-photo { position: absolute; inset: 0; background: var(--soft); }
.cv-full.cv-t0 .cv-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 24, .26) 0, rgba(20, 20, 24, 0) 30%, rgba(20, 20, 24, 0) 48%, rgba(20, 20, 24, .7) 100%); }
.cv-full.cv-t0 .cv-text { top: 68.5%; text-shadow: 0 .4cqi 2cqi rgba(0, 0, 0, .35); }
.cv-full.cv-t0 .cv-info { top: 87%; text-shadow: 0 .3cqi 1.6cqi rgba(0, 0, 0, .4); }
.cv-full .cv-names { flex-direction: row; justify-content: center; gap: 3cqi; }
.cv-full.cv-t1 .cv-photo { inset: 0 0 31% 0; }
.cv-full.cv-t1 .cv-text { top: 72.5%; }
.cv-full.cv-t1 .cv-names { font-size: 8.6cqi; }
.cv-full.cv-t1 .cv-line { margin-bottom: 2.2cqi !important; }
.cv-full.cv-t1 .cv-info { top: 87%; font-size: 3.7cqi; }

.cv-frame .cv-head { position: absolute; top: 9.2%; left: 9.5%; right: 9.5%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; font-size: 7cqi; letter-spacing: .04em; }
.cv-frame .cv-head span:first-child { text-align: left; }
.cv-frame .cv-head span:last-child { text-align: right; }
.cv-frame .cv-dot { font-size: 3.6cqi; color: var(--sub); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cv-frame .cv-photo { position: absolute; left: 9.5%; right: 9.5%; top: 15.8%; height: 62.4%; background: var(--soft); overflow: hidden; }
.cv-frame .cv-text { top: 82%; }
.cv-frame .cv-info { position: static; padding: 0; font-size: 3.8cqi; }
.cv-frame .cv-line { font-size: 4.2cqi; margin-bottom: 2cqi !important; }

.cv-plain .cv-big { position: absolute; left: 8%; top: 6%; display: flex; flex-direction: column; align-items: flex-start; font-size: 47cqi; line-height: .86; letter-spacing: -.04em; font-weight: 400; text-align: left; font-variant-numeric: lining-nums; }
.cv-plain .cv-big span:nth-child(2) { color: var(--pt2); }
.cv-plain .cv-text { top: auto; bottom: 8.5%; text-align: left; padding: 0 9cqi; }
.cv-plain .cv-names { flex-direction: row; gap: 3cqi; font-size: 8.4cqi; flex-wrap: wrap; }
.cv-plain .cv-info { position: static; padding: 0; margin-top: 4cqi; text-align: left; }
.cv-plain .cv-year { position: absolute; right: 9%; top: 8.4%; font-size: 4cqi; color: var(--sub); }

/* 날리는 것 */
.fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fall i { position: absolute; top: -4%; width: var(--w); height: var(--w); animation: fall var(--d) linear infinite; will-change: transform; }
.fall .snow { border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(90, 110, 150, .35); opacity: .9; }
.fall .petal { background: currentColor; opacity: .72; border-radius: 90% 10% 90% 14%; }
@keyframes fall { to { transform: translate(var(--s), 760px) rotate(300deg); } }

/* 여는 순간 — 어긋나 찍힌 두 판이 제자리를 찾는다 */
.opening .pl-a { animation: pl-a 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.opening .pl-b { animation: pl-b 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.opening .cv-text, .opening .cv-info, .opening .cv-head { animation: rise 1s .55s ease-out both; }
@keyframes pl-a { from { transform: translate(9px, -6px); } }
@keyframes pl-b { from { transform: translate(-8px, 7px); } }
@keyframes rise { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .opening *, .fall i { animation: none !important; } .fall { display: none; } }
