:root {
  /* 사진에서 뽑은 색: 담쟁이 초록, 백합 흰색, 이끼 회녹색 */
  --paper: #f7f5ef;
  --sage: #e4e7cf;
  --ink: #262b27;
  --ink-soft: #3d443f;
  --muted: #7a847c;
  --ivy: #3c4630;
  --moss: #6b7a3a;
  --rose: #a86f6b;
  --line: rgba(60, 70, 48, 0.16);
  --line-strong: rgba(60, 70, 48, 0.38);
  --radius: 4px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;
  --sans-en: "Montserrat", "Pretendard", sans-serif;
  --ko: "Nanum Myeongjo", "AppleMyungjo", "Apple SD Gothic Neo", serif;
  --ko-display: var(--ko);
  --hand: "Nanum Pen Script", var(--ko);
  --ui: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.035' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.47 0 0 0 0 0.42 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ko);
  font-size: 15.5px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  background-color: var(--paper);
  background-image: var(--paper-grain), var(--paper-fiber);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line-strong); margin: 0; }

.page { max-width: 480px; margin: 0 auto; overflow-x: hidden; }

/* 영문 작은 라벨: 섹션 제목 위, 표지, D-day */
.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--moss);
}

/* 스크롤 등장 */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 표지 ---------- */
.cover {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ivy);
  color: var(--paper);
}
.cover-media {
  position: absolute; inset: 0;
  transform: translate3d(0, calc(var(--sy, 0) * 0.22px), 0);
  will-change: transform;
}
.cover-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 44% 30%;
  transform-origin: 46% 40%;
  animation: cover-zoom 18s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes cover-zoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.cover-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(60, 70, 48, 0.5) 0%, rgba(60, 70, 48, 0) 32%),
    linear-gradient(0deg, rgba(60, 70, 48, 0.88) 0%, rgba(60, 70, 48, 0.42) 20%, rgba(60, 70, 48, 0) 46%);
}
.cover-top { position: absolute; top: calc(env(safe-area-inset-top) + 26px); left: 0; right: 0; padding-right: 18px; text-align: right; }
.cover-eyebrow { margin: 0 -0.44em 0 0; text-indent: 0; color: var(--paper); opacity: 0; animation: fade-in 1.4s 0.3s forwards; }
.cover-names {
  margin: 6px 0 0;
  font: 400 clamp(46px, 15.5vw, 64px) / 0.98 var(--script);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}
.cover-names > span {
  display: block;
  padding: 0.2em 0.1em 0.35em;
  margin-top: -0.2em;
  margin-bottom: -0.35em;
  color: transparent;
  background: linear-gradient(90deg, var(--paper) 0 50%, transparent 50% 100%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: write-on 1.7s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.cover-names > span:nth-child(1) { animation-delay: 0.9s; margin-right: 1.3em; }
.cover-names > span:nth-child(2) { animation-delay: 2.1s; }
.cover-names .amp { font: italic 300 0.66em / 1 var(--serif); margin-right: 0.18em; vertical-align: 0.14em; }
@keyframes write-on { to { background-position: 0 0; } }
.cover-bottom {
  position: absolute; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 74px);
  text-align: center;
  opacity: 0;
  animation: rise-in 1.4s 3s var(--ease) forwards;
}
.cover-date { margin: 0; font: 500 16px / 1 var(--serif); letter-spacing: 0.34em; text-indent: 0.34em; }
.cover-date i { display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: 0.7; }
.cover-date i.r { margin: 0 0 0 14px; }
.cover-ko { margin: 16px 0 0; font-weight: 300; font-size: 13.5px; line-height: 1.95; letter-spacing: 0.1em; opacity: 0.96; }
.cover-ko b { font-weight: 600; }
.scroll-hint {
  position: absolute; left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  width: 1px; height: 36px; margin-left: -0.5px;
  background: rgba(247, 245, 239, 0.28);
  overflow: hidden;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--paper);
  animation: scroll-drop 2.2s 3.6s ease-in-out infinite;
}
@keyframes scroll-drop { to { top: 100%; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 상단 바 · 메뉴 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 50%;
  width: 100%; max-width: 480px;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 6px 0;
  transform: translate(-50%, -100%);
  display: flex; align-items: center; justify-content: space-between;
  background-color: rgba(247, 245, 239, 0.94);
  background-image: var(--paper-grain);
  box-shadow: 0 1px 0 var(--line);
  z-index: 30;
  transition: transform 0.4s ease;
}
.topbar.show { transform: translate(-50%, 0); }
.topbar-title { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: 15px; letter-spacing: 0.08em; white-space: nowrap; color: var(--ivy); }
.topbar-title .heart { color: var(--moss); margin: 0 6px; font-size: 11px; vertical-align: 2px; }
.topbar-btn {
  width: 44px; height: 44px;
  border: 0; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.burger { display: grid; gap: 5px; }
.burger i { display: block; width: 20px; height: 1.5px; background: var(--ivy); border-radius: 1px; }
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ivy); color: var(--paper); cursor: pointer;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro-text { margin: 0; opacity: 0; animation: rise-in 1.6s 0.2s var(--ease) forwards; }
.intro-text svg { display: block; width: clamp(163px, 56vw, 255px); height: auto; }
.intro-hint { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 48px); margin: 0; font: 400 12px / 1 var(--serif); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0; animation: fade-in 1.2s 1.6s forwards; }
body.intro-on { overflow: hidden; }
body.intro-on .cover, body.intro-on .cover * { animation-play-state: paused !important; }
.music-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ivy); stroke-width: 1.6; stroke-linecap: round; }
.music-btn[aria-pressed="true"] .mute-line { display: none; }
.cover-music { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 10px; z-index: 5; }
.cover-music svg { stroke: var(--paper); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }

.side-menu { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 24, 0.45); }
.side-menu[hidden] { display: none; }
.side-menu-panel {
  position: absolute; top: 0; bottom: 0; left: max(0px, calc(50vw - 240px));
  width: 72%; max-width: 320px;
  padding: calc(72px + env(safe-area-inset-top)) 30px 28px;
  background-color: var(--paper);
  background-image: var(--paper-grain);
  animation: slide-in 0.3s ease;
}
@keyframes slide-in { from { transform: translateX(-100%); } }
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li a { display: block; padding: 13px 0; text-decoration: none; border-bottom: 1px solid var(--line); letter-spacing: 0.04em; color: var(--ivy); }
.side-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; border: 0; background: none; font-size: 18px; width: 40px; height: 40px; color: var(--ivy); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 88px 24px 80px; text-align: center; }
.section-title {
  margin: 0 0 40px;
  color: var(--ivy);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.section-title::before {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--moss);
}
.info { margin: 0 0 10px; font-size: 15.5px; }
.info-lg { margin: 0 0 12px; font-size: 17px; color: var(--ivy); }
.section-title, .parents .child, .info-lg, #calendar-venue, .venue-name, .topbar-title, .modal-panel h3, .gb-name { font-family: var(--ko-display); }
.muted-lines { line-height: 2; margin-bottom: 36px; color: var(--ink-soft); }
/* 가운데 정렬된 짧은 문구는 줄 길이를 고르게 나눠 한 단어만 다음 줄로 떨어지지 않게 */
.section-title, .info, .info-lg, .verse, .snap-sub, .snap-open, .weather-note, .transport dd, .gb-empty { text-wrap: balance; }

/* ---------- 인사말 ---------- */
.verse { margin: 0 0 44px; font-size: 15px; line-height: 2; color: var(--ivy); }
.verse-ref { display: block; margin-top: 10px; font: 400 12px / 1 var(--ui); letter-spacing: 0.08em; color: var(--muted); }
.greeting-text { margin: 0 0 64px; line-height: 2.05; color: var(--ink-soft); }
.greeting-text .line {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.greeting-text .line.gap { height: 1.1em; }
.greeting-text.is-visible .line { opacity: 1; transform: none; }
.parents { font-size: 16.5px; display: inline-grid; gap: 14px; margin-bottom: 44px; }
.parents p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.parents .rel { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }
.parents .child { font-size: 17px; letter-spacing: 0.1em; color: var(--ivy); }
.parents .icon-inline { display: inline-flex; margin-left: 2px; text-decoration: none; }
.video-section { padding-left: 0; padding-right: 0; }
.wedding-video { width: 100%; display: block; background: #222; }

/* ---------- 버튼 ---------- */
.btn-line {
  display: inline-block;
  min-width: 204px;
  padding: 11px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ivy);
  font: 500 13.5px / 1.4 var(--ui);
  letter-spacing: 0.06em;
}
.btn-line.sm { min-width: 0; padding: 10px 12px; font-size: 13px; }
.btn-pair { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.btn-pair > * { flex: 1; }
.btn-solid {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 2px;
  background: var(--ivy);
  color: var(--paper);
  font: 500 14.5px / 1.4 var(--ui);
  letter-spacing: 0.06em;
}
.btn-solid:disabled { background: #b7c0b9; cursor: default; }
.btn-box {
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ivy);
  font: 500 13.5px / 1.4 var(--ui);
  letter-spacing: 0.04em;
}
.chip {
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ivy);
  font: 500 12.5px / 1.6 var(--ui);
  text-decoration: none;
  text-align: center;
}
.chip-pay { background: #fee500; border-color: #fee500; color: #191919; }

/* ---------- 예식 안내 · 달력 ---------- */
.cal-month { margin: 40px 0 22px; font: 500 15px / 1 var(--serif); letter-spacing: 0.34em; text-indent: 0.34em; color: var(--moss); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  max-width: 320px; margin: 0 auto 36px;
  font-family: var(--serif);
  font-size: 17px;
  font-variant-numeric: lining-nums;
  row-gap: 6px;
  color: var(--ink-soft);
}
.cal-grid .dow { font-family: var(--ui); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 12px; }
.cal-grid .sun { color: var(--rose); }
.cal-grid .day { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; }
.cal-grid .wedding span { position: relative; z-index: 1; color: var(--ivy); font-weight: 600; }
.cal-grid .wedding .ring {
  position: absolute; left: 50%; top: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--ivy); stroke-width: 1.4; stroke-linecap: round;
}
.cal-grid .wedding .ring path { stroke-dasharray: 130; stroke-dashoffset: 130; }
.cal-grid.is-visible .wedding .ring path { animation: draw-ring 1.1s 0.5s var(--ease) forwards; }
@keyframes draw-ring { to { stroke-dashoffset: 0; } }

/* ---------- D-day ---------- */
.dday { position: relative; height: 420px; overflow: hidden; background: var(--ivy); }
.dday-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 61%;
  transform: scale(1.9); transform-origin: 50% 61%;
  filter: grayscale(1) contrast(1.05);
}
.dday::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60, 70, 48, 0.92), rgba(60, 70, 48, 0.12) 62%);
}
.dday-text { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 1; text-align: center; color: var(--paper); }
.dday-eyebrow { margin: 0; color: var(--paper); opacity: 0.8; }
.dday-count { margin: 12px 0 0; font: 300 64px / 1 var(--serif); letter-spacing: 0.02em; font-variant-numeric: lining-nums tabular-nums; }
.dday-date { margin: 12px 0 0; font-size: 14px; font-weight: 300; letter-spacing: 0.14em; }

/* ---------- 갤러리 ---------- */
#gallery { padding-left: 0; padding-right: 0; }
/* 사진 원래 비율 그대로 2열로 쌓는 비정형(메이슨리) 배치 */
.gallery-grid { touch-action: pan-y; columns: 2; column-gap: 4px; padding: 0 4px; }
.gallery-grid button {
  display: block; width: 100%; margin: 0 0 4px;
  break-inside: avoid;
  padding: 0; border: 0; background: var(--sage);
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.gallery-grid.is-visible button { clip-path: inset(0 0 0 0); }
.gallery-grid button.extra { display: none; }
.gallery-grid.expanded button.extra { display: block; }
.gallery-grid img { width: 100%; height: auto; transition: transform 0.4s ease; }
.gallery-grid button:active img { transform: scale(1.04); }
.more-btn { margin-top: 36px; border: 0; background: none; font: 500 13.5px / 1 var(--ui); letter-spacing: 0.08em; color: var(--ivy); display: inline-flex; align-items: center; gap: 8px; }
.more-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- 게스트스냅 ---------- */
.snap-sub { margin: -16px 0 32px; font-size: 15px; color: var(--ink-soft); }
.snap-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin: 0 auto 30px; }
.card, .snap-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
}
.snap-open { margin: 0 0 18px; line-height: 1.8; }
.snap-name { text-align: left; margin-bottom: 16px; }
.snap-progress { margin: 12px 0 0; font: 400 13.5px / 1.6 var(--ui); color: var(--muted); min-height: 1em; }

/* ---------- 마음 전하실 곳 ---------- */
.account-groups { display: grid; gap: 14px; text-align: left; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.45); overflow: hidden; }
.accordion summary {
  list-style: none;
  padding: 14px 18px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ivy);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--moss); border-bottom: 1.5px solid var(--moss); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s; }
.accordion[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion-body { padding: 0 18px 6px; border-top: 1px solid var(--line); }
.account-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row .info-col { flex: 1; font: 400 15px / 1.6 var(--ui); }
.account-row .who { font-family: var(--ko); color: var(--muted); font-size: 13.5px; }
.account-actions { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 오시는 길 ---------- */
#location { padding-left: 0; padding-right: 0; }
#location > :not(.map):not(.nav-row) { padding-left: 24px; padding-right: 24px; }
.venue-name { font-size: 19px; margin: 0 0 10px; color: var(--ivy); display: flex; align-items: center; justify-content: center; gap: 8px; }
.tel-icon { display: inline-flex; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; align-items: center; justify-content: center; text-decoration: none; }
.tel-icon svg { width: 13px; height: 13px; fill: none; stroke: var(--ivy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map {
  height: 300px;
  margin: 30px 10px 22px;
  background: var(--sage);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.map-fallback { display: grid; gap: 10px; justify-items: center; }
.nav-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 40px; padding: 0 10px; }
.nav-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  font: 500 13.5px / 1.4 var(--ui);
  color: var(--ink);
}
.nav-mark {
  width: 20px; height: 20px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; font-family: var(--ui);
}
.nav-mark.tmap { background: linear-gradient(135deg, #e5004f, #3b6bff); }
.nav-mark.kakao { background: #fee500; color: #2a6be0; }
.nav-mark.naver { background: #03c75a; }
.weather { margin: 0 24px 40px; padding: 20px; }
.weather:empty { display: none; }
.weather p { margin: 0; }
.weather-title { color: var(--moss); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 6px !important; }
.weather-main { font-size: 16px; white-space: pre-line; }
.weather-note { font-size: 13px; color: var(--muted); margin-top: 4px !important; }
.venue-guide { display: grid; gap: 10px; margin-top: 32px; text-align: left; }
.guide-block { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.45); padding: 14px 16px 13px; }
.guide-title { margin: 0 0 8px; font-family: var(--ko-display); font-size: 14.5px; color: var(--ivy); }
.guide-note { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.floor-list { display: grid; grid-template-columns: 36px 1fr; gap: 6px 6px; margin: 0; }
.floor-list dt { font: 500 12.5px / 1.65 var(--serif); letter-spacing: 0.06em; color: var(--moss); }
.floor-list dd { margin: 0; font-size: 13px; line-height: 1.65; white-space: pre-line; color: var(--ink-soft); }
.floor-note { margin-left: 8px; font-size: 11.5px; letter-spacing: -0.01em; color: var(--muted); }
.shuttle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shuttle-list li { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.shuttle-list li:first-child { padding-top: 0; border-top: 0; }
.shuttle-list b { font-weight: 700; color: var(--ivy); white-space: nowrap; }
.transport { text-align: center; margin: 0; }
.transport dt { color: var(--ivy); font-weight: 600; letter-spacing: 0.04em; margin-top: 22px; }
.transport dt:first-child { margin-top: 0; }
.transport dd { margin: 4px 0 0; white-space: pre-line; font-size: 15px; color: var(--ink-soft); }

/* ---------- 참석 의사 ---------- */
.rsvp-form { text-align: left; display: grid; gap: 18px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { width: 100%; font: 400 13.5px / 1.4 var(--ui); color: var(--muted); margin-bottom: 8px; padding: 0; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center;
  padding: 11px 6px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: transparent;
  font: 500 14px / 1.4 var(--ui);
  color: var(--ivy);
  transition: background 0.2s, color 0.2s;
}
.seg input:checked + span { border-color: var(--ivy); background: var(--ivy); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
.field { display: grid; gap: 6px; text-align: left; }
.field > span { font: 400 13.5px / 1.4 var(--ui); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  font: 400 16px / 1.4 var(--ui);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ivy); }
.field textarea { resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7a3a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 38px;
}
.attend-only { display: grid; gap: 18px; }
.rsvp-form.absent .attend-only { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rsvp-done p { margin: 0 0 12px; font-size: 17px; }

/* ---------- 방명록 ---------- */
#guestbook { padding-left: 16px; padding-right: 16px; }
.gb-list { display: grid; gap: 16px; text-align: left; }
.gb-item { position: relative; background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; }
.gb-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.gb-name { color: var(--ivy); font-size: 17px; }
.gb-date { font: 400 12.5px / 1 var(--serif); letter-spacing: 0.04em; color: var(--muted); }
.gb-msg { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-soft); }
.gb-del { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 14px; color: var(--muted); }
.gb-empty { text-align: center; color: var(--muted); padding: 20px 0; }
.gb-actions { display: flex; justify-content: space-between; margin-top: 36px; }
#gb-write { margin-left: auto; }
#gb-all[hidden] + #gb-write { margin-right: auto; }

/* ---------- 마지막 손편지 ---------- */
.letter-wrap { padding: 24px 24px 8px; }
/* 일러스트의 흰 배경을 종이 질감에 섞고(multiply) 가장자리는 부드럽게 지워 페이지에 그려진 것처럼 보이게 합니다. */
.letter-art {
  display: block; width: min(66%, 250px); height: auto; margin: 0 auto 4px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}
.letter {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-image: linear-gradient(to bottom, transparent 31px, rgba(60, 70, 48, 0.1) 31px), linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55));
  background-size: 100% 32px, auto;
  background-origin: content-box, padding-box;
  background-clip: content-box, padding-box;
  box-shadow: 0 1px 6px rgba(60, 70, 48, 0.06);
  font: 400 19px / 32px var(--hand);
  color: var(--ink-soft);
  text-align: left;
  text-wrap: pretty;
}
.letter p { margin: 0; }
.letter-text { text-align: center; }
.letter-sign { text-align: right; color: var(--ivy); }

/* ---------- 푸터 · 플로팅 버튼 ---------- */
.footer { padding: 48px 24px calc(64px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.footer-lettering { width: 140px; margin: 0 auto 14px; opacity: 0.85; }
.footer .amp { font-family: var(--serif); font-style: italic; margin: 0 4px; }

.fab-stack {
  position: fixed;
  right: max(14px, calc(50vw - 240px + 14px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
  z-index: 25;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.fab-stack.show { opacity: 1; pointer-events: auto; }
.fab {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0;
  background: rgba(60, 70, 48, 0.82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.fab svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 45; background: rgba(20, 30, 24, 0.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-panel {
  width: 100%; max-width: 400px; max-height: 86vh; overflow: auto;
  background-color: var(--paper);
  background-image: var(--paper-grain);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  display: grid; gap: 14px;
  animation: pop 0.25s ease;
}
.modal-panel.tall { max-height: 88vh; }
#calendar-venue { white-space: nowrap; }
.modal-desc { margin: 0; text-align: center; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.modal-desc b { color: var(--ivy); font-weight: 700; }
.modal-panel h3 { margin: 0 0 4px; text-align: center; color: var(--ivy); font-weight: 400; font-size: 19px; letter-spacing: 0.04em; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.person-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person-row:last-child { border-bottom: 0; }
.person-row .role { font: 400 13.5px / 1.4 var(--ui); color: var(--muted); min-width: 76px; }
.person-row .name { flex: 1; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: transparent; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ivy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.share-item { padding: 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; font: 500 14.5px / 1.4 var(--ui); color: var(--ivy); }
.share-item.kakao { background: #fee500; border-color: #fee500; color: #191919; }

/* ---------- 사진 크게 보기 ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15, 20, 16, 0.96); z-index: 50; }
.lightbox[hidden] { display: none; }
.lightbox-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-counter { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.75); font: 400 13px / 1 var(--serif); letter-spacing: 0.1em; }

.toast {
  position: fixed; left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: rgba(60, 70, 48, 0.94); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font: 400 13.5px / 1.4 var(--ui);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 스크롤 효과 ---------- */
.cover-media::after { content: ""; position: absolute; inset: 0; background: var(--ivy); opacity: calc(var(--cp, 0) * 0.6); pointer-events: none; }
.cover-top { transform: translate3d(0, calc(var(--cp, 0) * -70px), 0); opacity: calc(1 - var(--cp, 0) * 1.6); }

.section-title::before { letter-spacing: 0.75em; transition: letter-spacing 1.6s var(--ease) 0.1s; }
.section-title.is-visible::before { letter-spacing: 0.44em; }
.section-title::after {
  content: ""; display: block;
  width: 36px; height: 1px; margin: 18px auto 0;
  background: var(--line-strong);
  transform: scaleX(0);
  transition: transform 1.2s var(--ease) 0.4s;
}
.section-title.is-visible::after { transform: scaleX(1); }

.greeting-text .line { opacity: 1; transform: none; overflow: hidden; }
.greeting-text .line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.greeting-text.is-visible .line > span { transform: none; }

.dday-photo {
  transform: scale(1.9) translate3d(0, calc(var(--dp, 0) * 1px), 0);
  filter: grayscale(var(--gray, 1)) contrast(1.05);
}

.footer-lettering { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 1s ease; }
.footer-lettering.is-visible { clip-path: inset(0 0 0 0); }

.accordion-body { overflow: hidden; }

/* ---------- 움직임 줄이기 설정 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .cover-eyebrow, .cover-bottom, .greeting-text .line { opacity: 1; transform: none; }
  .cover-names > span { color: var(--paper); background: none; }
  .cover-media { transform: none; }
  .cover-photo { transform: scale(1.06); }
  .gallery-grid button { clip-path: none; }
  .cal-grid .wedding .ring path { stroke-dashoffset: 0; }
  .greeting-text .line > span, .section-title::after { transform: none; }
  .footer-lettering { clip-path: none; }
  .cover-top { transform: none; opacity: 1; }
}
