/* 템플릿 B "앨범" — 검은 대지, 흰 테두리 인화 사진, 포토코너, 흰 펜 메모, 날짜 각인. */
:root {
  color-scheme: dark;
  --ground: #1c1a17;
  --ground-2: #24201c;
  --print: #f6f1e7;
  --pen: #ede6d8;
  --pen-muted: #bfb6a6;
  --ink: #2a241e;
  --orange: #ff8a2a;
  --corner: #0f0d0b;
  --kraft: #d9b98b;
  --kraft-deep: #c9a676;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .88 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
html { background: #12100e; }
body.t-album { background: #12100e; color: var(--pen); font-family: Hahmlet, "Apple SD Gothic Neo", serif; font-size: 17px; line-height: 1.85; }
.t-album .sheet { background: var(--ground) var(--paper-grain); }
.t-album ::selection { background: var(--orange); color: var(--ground); }
.t-album :focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.pen { font-family: Gaegu, Hahmlet, cursive; font-weight: 700; color: var(--pen); line-height: 1.3; }

/* ---------- 인화 사진과 포토코너 ---------- */
.print { position: relative; background: var(--print); padding: 10px 10px 38px; box-shadow: 0 14px 28px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .45); }
.print-img { position: relative; overflow: hidden; }
.print-img img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.pc { position: absolute; width: 30px; height: 30px; background: var(--corner); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pc-tl { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pc-tr { top: -6px; right: -6px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pc-bl { bottom: -6px; left: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pc-br { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.stamp { position: absolute; bottom: 12px; right: 14px; width: 38%; fill: var(--orange); mix-blend-mode: screen; filter: blur(.45px) drop-shadow(0 0 .6px rgba(255, 138, 42, .55)); }
[data-stamp="left"] .stamp { right: auto; left: 14px; }

/* ---------- 표지 ---------- */
.cover { padding: 64px 28px 60px; text-align: center; }
.print-cover { width: 86%; margin: 0 auto; transform: rotate(-1.5deg); animation: album-place 460ms var(--ease) both; }
@keyframes album-place {
  from { opacity: 0; transform: translateY(-18px) rotate(-4deg) scale(1.02); }
  to { opacity: 1; transform: rotate(-1.5deg); }
}
.cover-names { margin-top: 48px; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.cover-and { font-size: 18px; font-weight: 400; color: var(--pen-muted); margin: 0 .45em; }
.pen-cover { margin-top: 10px; font-size: 26px; transform: rotate(-2deg); }
.cover-when { margin-top: 22px; color: var(--pen-muted); }

/* ---------- 섹션 ---------- */
.sec { padding: 76px 28px 56px; }
.sec-title { font-size: 25px; font-weight: 700; line-height: 1.35; text-align: center; margin-bottom: 26px; }
.sec-title::after { content: ""; display: block; width: 44px; height: 2px; margin: 14px auto 0; background: var(--pen-muted); opacity: .6; transform: rotate(-3deg); }
.sec-note { text-align: center; color: var(--pen-muted); margin: -8px 0 26px; }
.prose { text-align: center; }
.prose p + p { margin-top: 1.1em; }
.parents { margin-top: 40px; display: grid; gap: 8px; justify-items: center; }
.parents-of, .late { color: var(--pen-muted); }
.parents-child { font-weight: 700; margin-left: .25em; }

/* ---------- 일시: 인화지 라벨 카드 ---------- */
.when-line { text-align: center; color: var(--pen-muted); margin-top: -12px; }
.label-card { margin: 30px auto 0; max-width: 340px; background: var(--print); color: var(--ink); padding: 22px 18px 18px; transform: rotate(.8deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }
.label-card .cal { font-size: 15px; }
.label-card .cal th { font-size: 13px; color: #6a5f52; padding-bottom: 6px; }
.label-card .cal td { height: 36px; }
.label-card .cal th:first-child, .label-card .cal td:first-child { color: #b4441b; }
.label-card .cal .is-day span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #b4441b; color: #b4441b; font-weight: 700; }
.when-dday { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #b9ad9b; text-align: center; font-size: 16px; }
.when-dday .dday { font-weight: 700; font-size: 20px; margin-left: .3em; }

/* ---------- 앨범 면 ---------- */
.album-page { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 8px; padding: 10px 0 34px; }
.album-page + .album-page { border-top: 1px solid rgba(237, 230, 216, .12); padding-top: 34px; }
.print-g { padding: 7px 7px 26px; transform: rotate(var(--tilt, 0deg)); }
.print-g .pc { width: 22px; height: 22px; }
.print-g .g-item { aspect-ratio: 4 / 4.4; background: #3a332c; }
.print-g .g-item img { transition: transform 300ms var(--ease); }
.print-g .g-item:hover img { transform: scale(1.03); }
.pen-g { position: absolute; left: 4px; right: 4px; top: calc(100% + 8px); font-size: 22px; text-align: center; }
.album-page-1 .print-g:nth-child(1) { grid-column: 1 / 6; z-index: 1; }
.album-page-1 .print-g:nth-child(2) { grid-column: 2 / 7; margin-top: 46px; z-index: 2; }
.album-page-1 .print-g:nth-child(3) { grid-column: 1 / 5; margin-top: 46px; z-index: 3; }
.album-page-2 .print-g:nth-child(1) { grid-column: 2 / 7; z-index: 1; }
.album-page-2 .print-g:nth-child(2) { grid-column: 1 / 5; margin-top: 46px; z-index: 2; }
.album-page-2 .print-g:nth-child(3) { grid-column: 3 / 7; margin-top: 46px; z-index: 3; }
.album-page .print-g:only-child { grid-column: 2 / 6; }
.print-g:has(.pen-g) { margin-bottom: 34px; }

/* ---------- 오시는 길 ---------- */
.venue-name { text-align: center; font-size: 22px; font-weight: 700; }
.venue-hall { display: block; font-size: 17px; font-weight: 400; color: var(--pen-muted); }
.address { margin-top: 16px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.address-copy { padding: 0 12px; color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.map-apps { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-app { min-height: 52px; background: var(--print); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); transition: transform 160ms var(--ease); }
.map-app:nth-child(1) { transform: rotate(-1deg); }
.map-app:nth-child(3) { transform: rotate(1deg); }
.map-app:active { transform: translateY(2px) rotate(0); }
.map-web-hint { margin-top: 12px; text-align: center; color: var(--pen-muted); font-size: 15px; }
.transport { margin-top: 34px; display: grid; gap: 18px; }
.transport dt { font-weight: 700; color: var(--print); }
.transport dd { color: var(--pen); }

/* ---------- 마음 전하실 곳: 현상소 봉투 ---------- */
.acc-group { position: relative; margin-top: 22px; background: var(--kraft); color: var(--ink); box-shadow: 0 12px 24px rgba(0, 0, 0, .5); }
.acc-group::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: var(--kraft-deep); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.acc-group[data-side="bride"] { transform: rotate(.6deg); }
.acc-group[data-side="groom"] { transform: rotate(-.6deg); }
.acc-toggle { width: 100%; min-height: 76px; padding: 26px 20px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.env-label { font-size: 20px; font-weight: 700; }
.env-hint { font-family: Gaegu, cursive; font-weight: 700; font-size: 22px; color: #6b4a2b; }
.acc-toggle[aria-expanded="true"] .env-hint { visibility: hidden; }
.acc-panel { padding: 0 16px 16px; }
.acc-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 12px; background: var(--print); margin-top: 8px; }
.acc-who { grid-column: 1; font-size: 15px; color: #5d5246; }
.acc-holder { color: var(--ink); font-weight: 700; }
.acc-line { grid-column: 1; font-size: 17px; }
.acc-bank { display: block; font-size: 15px; line-height: 1.5; color: #5d5246; }
.acc-number { white-space: nowrap; }
.acc-number { font-weight: 700; }
.acc-copy { grid-column: 2; grid-row: 1 / span 2; padding: 0 14px; background: var(--ink); color: var(--print); font-size: 15px; font-weight: 700; transition: background-color 160ms var(--ease); }
.acc-copy.is-copied { background: #b4441b; }
.pay-links { grid-column: 1 / -1; display: flex; gap: 14px; }
.pay { min-height: 40px; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 연락하기 ---------- */
.contact-side + .contact-side { margin-top: 30px; }
.contact-head { text-align: center; font-size: 18px; margin-bottom: 8px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(237, 230, 216, .16); }
.contact-role { color: var(--pen-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(--pen-muted); border-radius: 2px; font-size: 15px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.contact-btn:hover, .contact-btn:active { background: var(--print); color: var(--ink); }

/* ---------- 공유·바닥글 ---------- */
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-btn { min-height: 54px; font-weight: 700; border: 1.5px solid var(--print); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.share-btn[data-share], .share-btn:hover { background: var(--print); color: var(--ink); }
.share-btn.is-copied { background: var(--orange); border-color: var(--orange); color: var(--ground); }
.promise { padding: 40px 28px 72px; text-align: center; border-top: 1px solid rgba(237, 230, 216, .16); }
.demo-notice { color: var(--pen-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.promise-text { font-weight: 700; }
.promise-maker { margin-top: 6px; font-size: 15px; }
.promise-maker a { color: var(--pen-muted); text-underline-offset: 3px; }

/* ---------- 공용 부품의 앨범 옷 ---------- */
.toast { background: var(--print); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.lightbox { background: var(--ground); color: var(--pen); }
.lb-stage img { border: 10px solid var(--print); border-bottom-width: 34px; box-shadow: 0 16px 32px rgba(0, 0, 0, .6); }
.bgm { background: var(--print); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.bgm[aria-pressed="true"] { background: var(--orange); color: var(--ground); }
.bgm-error { background: var(--print); color: var(--ink); }
