:root {
  --bg: #111111;
  --bg-alt: #141414; /* 번갈아 나오는 회색 배경 */
  --acc-line: #222222;
  /* 단 여백: 모든 제목 위 간격(--sec-top)과 단 아래 간격(--sec-bottom)을 한 곳에서 통일 */
  --sec-top: 90px;
  --sec-bottom: 90px;
  --head-gap: 44px; /* 제목(·부제) 아래에서 내용까지 */
  --btn-w: 164px;   /* 한 줄짜리 버튼(캘린더 추가, 방명록 작성, 공유)의 폭 */
  --text: #bdb7ae;
  --title: #e6e1d9;
  --label: #6b6b6b;
  --muted: #8a857d;
  --line: #2a2a2a;
  --pill: #1c1c1c;
  --pill-line: #3a3a3a;
  --red: #e0614a; /* 일요일·강조 (오렌지 컨셉에 맞춘 붉은색) */
  --hero: #f55f10; /* 오렌지 */
  --brown: #111111;
  --brown-2: #5c2407;
  --frame: 430px; /* PC에서도 휴대폰과 같은 폭으로 보이게 하는 화면 폭 */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --serif-num: "Instrument Serif", "Times New Roman", serif; /* 달력·카운트 숫자 (길쭉한 세리프) */
  --sans-en: "Montserrat", sans-serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; } /* 두 손가락 확대·두 번 탭 확대 막기 */
body {
  background: #050505;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: var(--frame);
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  container-type: inline-size;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--hero);
  color: var(--brown);
  padding: 20px 0 56px;
  text-align: center;
  isolation: isolate;
}
.hero::before {           /* 종이 질감 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); opacity: .16; mix-blend-mode: multiply;
}
.hero__bar { display: flex; justify-content: flex-end; align-items: center; padding: 0 22px; }
.menu-btn { width: 30px; height: 24px; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0; }
.menu-btn span { display: block; height: 1.5px; background: var(--brown-2); opacity: .8; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 13.2cqw, 68px); line-height: 1; letter-spacing: -.01em;
  margin: 34px 0 20px; white-space: nowrap;
}
.hero__names { font-family: var(--serif); font-size: clamp(34px, 10.5cqw, 50px); line-height: 1.1; }
.hero__info { margin-top: 22px; font-size: 15px; line-height: 1.8; color: var(--brown-2); font-weight: 400; }
.hero__photo { width: 63%; margin: 38px auto 0; aspect-ratio: 3 / 4; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.17; will-change: translate; } /* 시차 이동분만큼 살짝 크게 */

/* ---------- COMMON ---------- */
.section { padding: var(--sec-top) 28px var(--sec-bottom); text-align: center; }
/* 단이 바뀔 때마다 배경을 검정(--bg) ↔ 회색(--bg-alt)으로 번갈아 표시. index.html 에서 회색으로 할 단에 alt 를 붙임 */
.alt {
  background: var(--bg-alt);
  --line: #2d2d2d; --acc-line: #272727; --pill: #1f1f1f; --pill-line: #3d3d3d;
}
.alt .pill:active { background: #292929; }
.alt + .alt { box-shadow: 0 -1px 0 var(--bg-alt); } /* 이어지는 회색 단 사이에 가는 줄이 비치지 않게 */
.label {
  font-family: var(--sans-en); font-weight: 300;
  font-size: 13px; letter-spacing: .32em; text-indent: .32em;
  color: var(--label); margin-bottom: var(--head-gap);
}
.serif-title {
  font-family: var(--serif); font-weight: 400; color: var(--title);
  font-size: clamp(38px, 11.5cqw, 52px); line-height: 1.12;
}
.serif-title.small { font-size: 36px; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- JOIN ---------- */
.join { padding-bottom: 20px; }
/* 3열 그리드(부모 이름 · 관계 · 이름). 관계(아들·딸)는 칸 가운데, 이름은 시작점을 맞춤(글자 사이를 벌리지 않음),
   故는 왼쪽 여백으로 내어쓰고 그만큼 전체를 오른쪽으로 살짝 옮겨 가운데가 맞아 보이게 함 */
.parents {
  margin-top: 110px; display: grid; grid-template-columns: repeat(3, auto);
  justify-content: center; column-gap: 16px; row-gap: 18px; align-items: baseline;
  text-align: left; white-space: nowrap; padding-left: 9px;
}
.parents p { display: contents; }
.p-name { position: relative; }
.late { position: absolute; right: 100%; margin-right: 1px; font-style: normal; font-weight: 500; }
.p-name, .c-name { color: var(--title); font-weight: 600; font-size: 16px; }
.c-name { font-size: 17px; }
.rel { font-size: 12px; color: var(--muted); text-align: center; } /* 아들·딸은 칸 가운데 */

/* ---------- INVITATION ---------- */
.invitation { padding-top: 60px; }
.letter { width: 88%; margin: 0 auto; }

/* ---------- CALENDAR ---------- */
.cal__date { font-family: var(--serif-num); color: var(--title); font-size: 38px; line-height: 1; letter-spacing: .01em; font-variant-numeric: lining-nums; }
.cal__time { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 34px 0 30px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; font-family: var(--serif-num); font-size: 15px; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.cal .dow { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cal .sun, .cal .holi { color: var(--red); }
.cal span { display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; }
.cal .day-on { position: relative; color: #111; }
.cal .day-on::before {
  content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: #aaa49b; z-index: 0;
}
/* 예식일 강조: 동그라미가 천천히 숨 쉬듯 커졌다 작아지고, 바깥으로 고리가 퍼져 나감 */
.cal .day-on::before { animation: dayBeat 2.8s ease-in-out infinite; }
.cal .day-on::after {
  content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(200,194,185,.75); animation: dayRing 2.8s ease-out infinite; pointer-events: none;
}
@keyframes dayBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes dayRing { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cal .day-on::before, .cal .day-on::after { animation: none; } .cal .day-on::after { display: none; } }
.cal .day-on b { position: relative; font-weight: 400; color: #f4f1ec; }
.dday { margin-top: 60px; }
.dday__boxes { display: flex; justify-content: center; gap: 10px; }
.dday__boxes div {
  width: 64px; padding: 12px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #151515;
  display: flex; flex-direction: column; align-items: center;
}
.dday__boxes b { font-family: var(--serif-num); font-weight: 400; font-size: 24px; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; color: var(--title); }
.dday__boxes span { font-family: var(--sans-en); font-size: 9px; letter-spacing: .2em; color: var(--label); margin-top: 4px; }
.dday__msg { margin-top: 26px; font-size: 15px; }
.dday__msg em { font-style: normal; color: var(--red); font-weight: 500; }
.cal-add { display: grid; max-width: var(--btn-w); margin: 34px auto 0; }

/* ---------- GALLERY ---------- */
/* 제목이 있는 단이라, 제목까지 포함한 위쪽 공백(52 + 제목 + 30 ≈ 104)이 아래쪽 공백(104)과 같아 보이게 맞춤 */
.gallery { padding: 52px 12px 104px; }
.gallery .label { margin-bottom: 30px; }
.gallery.expanded { padding-bottom: 0; } /* MORE 로 펼치면 회색 배경이 마지막 사진 아래에서 끝남 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid button { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #222; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.grid button:active img { transform: scale(1.04); }
.grid button[hidden] { display: none; }
.grid button.added { animation: gridIn .5s ease both; }
/* 갤러리가 화면에 들어오면 사진이 한 장씩 차례로 나타남 */
.grid.reveal button:not(.added) { opacity: 0; }
.grid.reveal.in button:not(.added) { animation: tileIn .9s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gridIn { from { opacity: 0; transform: translateY(10px); } }
.grid .more::after {
  content: ""; position: absolute; inset: 0; background: rgba(40,40,40,.62);
}
.grid .more span {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; font-family: var(--sans-en); font-weight: 300;
}
.grid .more span b { font-weight: 300; font-size: 30px; line-height: 1.1; }
.grid .more span small { font-size: 15px; letter-spacing: .18em; text-indent: .18em; }
/* 펼친 갤러리 맨 끝의 접기 칸 */
.grid .fold {
  background: #242424; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  color: #a39e96; font-family: var(--sans-en); font-weight: 300; font-size: 15px; letter-spacing: .18em; text-indent: .18em;
}
.grid .fold::before {
  content: ""; width: 12px; height: 12px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}
.grid .fold:active { background: #2e2e2e; }

/* ---------- LOCATION ---------- */
.sub-title { font-size: 18px; color: var(--muted); margin: 0 0 var(--head-gap); }
.location { padding-bottom: 87px; } /* 글자 기준으로 위(제목 위)·아래(주차 안내 아래) 공백이 같게 */
.venue { color: var(--title); font-size: 24px; font-weight: 600; }
.venue-hall { margin-top: 6px; font-size: 17px; color: var(--text); font-weight: 500; }
.venue-sub { margin-top: 6px; font-size: 16px; color: var(--muted); line-height: 1.75; display: flex; justify-content: center; align-items: center; gap: 6px; padding-left: 32px; } /* 왼쪽 여백 = 복사 버튼 폭만큼 → 주소 글자가 가운데에 옴 */
.addr-copy { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.addr-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.addr-copy:active { background: #262626; }
.map { position: relative; margin: 48px -6px 0; aspect-ratio: 1 / .78; overflow: hidden; border-radius: 4px; background: #161616; }
/* 카카오맵: 지도 타일만 어둡게 (핀은 그대로 색 유지) */
.map__canvas { width: 100%; height: 100%; touch-action: none; }
.map__canvas img { filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); }
/* 확대·축소: 작은 회색 버튼 */
.map__zoom {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(28,28,28,.88); border: 1px solid #3a3a3a; border-radius: 8px; overflow: hidden;
}
.map__zoom button { width: 28px; height: 26px; font-size: 16px; line-height: 1; color: #cfc9c0; }
.map__zoom button:active { background: #333; }
.map__gauge { position: relative; width: 3px; height: 44px; margin: 2px 0; border-radius: 2px; background: #444; overflow: hidden; }
.map__gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: #9a958d; transition: height .2s; }
.map__pin { position: relative; width: 30px; height: 40px; pointer-events: none; }
/* 구글 지도 대체 시: 핀 끝이 지도 정중앙(목적지 좌표)에 오도록 배치 */
.is-google .map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.map__pin svg { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.map__pin path { fill: #5b2a8c; stroke: #fff; stroke-width: 1.5; }
.map__pin circle { fill: #fff; }
.map__tag {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px; background: #5b2a8c; color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.map__pulse {
  position: absolute; left: 50%; bottom: -7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: rgba(124,72,180,.6); animation: pinPulse 1.8s ease-out infinite;
}
@keyframes pinPulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map__pulse { animation: none; opacity: .5; } }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); }
.map-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 236px; margin: 36px auto 0; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border-radius: 999px; border: 1px solid var(--pill-line); background: var(--pill);
  color: #c9c4bc; font-weight: 500; font-size: 12.5px; white-space: nowrap;
  transition: background .2s;
}
.pill:active { background: #262626; }
.pill i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.how { margin-top: 60px; display: grid; gap: 40px; text-align: left; padding: 0 6px; }
.how h4 { display: flex; align-items: center; gap: 10px; color: #d5d0c8; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.how h4 svg { width: 19px; height: 19px; flex: none; fill: #8a857d; }
.how ul { list-style: none; display: grid; gap: 8px; }
.how li { display: grid; grid-template-columns: 3.2em 1fr; gap: 6px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.how li b { font-weight: 600; color: var(--text); }
.how p { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ---------- ACCOUNT ---------- */
.account { padding-bottom: 0; } /* 마음 전하실 곳과 SHARE 는 같은 색의 한 영역 */
.share { padding-top: 64px; }
.acc { border-bottom: 1px solid var(--acc-line); text-align: left; }
.acc__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 19px 6px; font-size: 15px; font-weight: 500; color: #d5d0c8;
}
.chev { width: 9px; height: 9px; border-right: 1.5px solid #8f8a82; border-bottom: 1.5px solid #8f8a82; transform: rotate(45deg) translate(-3px,-3px); transition: transform .3s; }
.acc.open .chev { transform: rotate(-135deg) translate(-2px,-2px); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc.open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 12px; padding: 16px 18px; background: #151515; border-radius: 10px;
}
.acc__row:last-child { margin-bottom: 20px; }
.acc__who { font-size: 13px; color: var(--muted); }
.acc__who b { color: var(--title); font-weight: 500; font-size: 15px; margin-left: 6px; }
.acc__num { font-size: 15px; color: var(--text); margin-top: 2px; }
/* 사람별 칸: 윗줄 = 이름·전화번호 + 전화/문자, 아랫줄 = 계좌 + 복사 */
.acc__row.person { display: block; }
.person__line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.person__acc { margin-top: 12px; padding-top: 12px; border-top: 1px solid #262626; }
.person__acc .acc__num { margin-top: 0; }
.tel-btns { display: flex; gap: 8px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--pill-line); display: grid; place-items: center; }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: #c9c4bc; stroke-width: 1.6; stroke-linejoin: round; }
.icon-btn:active { background: #262626; }
/* 계좌 복사: 전화·문자 버튼과 같은 크기의 동그란 아이콘 버튼 (아이콘은 주소 복사와 같은 모양) */
.copy-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--pill-line); display: grid; place-items: center; color: #c9c4bc; }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:active { background: #262626; }

/* ---------- GUESTBOOK ---------- */
.gb__intro { font-size: 15px; color: var(--muted); line-height: 1.8; margin-top: -18px; }
.gb__demo { margin-top: 18px; font-size: 12px; color: var(--label); }
.gb__list { list-style: none; display: grid; gap: 12px; margin-top: 44px; text-align: left; }
.gb__item { padding: 20px 20px 18px; background: #151515; border: 1px solid #1d1d1d; border-radius: 12px; }
.gb__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gb__meta b { color: var(--title); font-weight: 600; font-size: 15px; }
.gb__meta time { font-family: var(--sans-en); font-size: 11px; letter-spacing: .08em; color: var(--label); }
.gb__item p { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.gb__empty { margin-top: 44px; padding: 34px 0; font-size: 14px; color: var(--label); line-height: 1.8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gb__actions { display: grid; justify-items: center; gap: 20px; margin-top: 26px; }
.gb__actions .pill { width: 100%; max-width: var(--btn-w); }
.gb__more {
  font-family: var(--sans-en); font-size: 12px; letter-spacing: .25em; text-indent: .25em; color: var(--muted);
  padding: 8px 12px; border-bottom: 1px solid var(--pill-line);
}
.gb__form { text-align: left; display: grid; gap: 18px; }
.gb__form .sheet__title { text-align: center; margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field span { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.field em { font-style: normal; font-family: var(--sans-en); font-size: 11px; color: var(--label); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--title);
  background: #111; border: 1px solid var(--pill-line); border-radius: 10px; padding: 12px 14px; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field textarea:focus { outline: none; border-color: #8a857d; }
.gb__err { min-height: 1em; font-size: 13px; color: var(--red); margin: -6px 0 -8px; }
.gb__submit { width: 100%; background: #d9d3c9; color: #111; border-color: #d9d3c9; }
.gb__submit:active { background: #c4bdb2; }
.gb__submit:disabled { opacity: .6; }

/* ---------- SHARE ---------- */
.foot { padding: 0 28px 60px; text-align: center; }
/* SHARE: 작은 영문 제목 + 안내 문구 + 동그란 아이콘 버튼 3개 (KAKAO / LINK / MORE) */
.share .label { margin-bottom: 20px; }
.share-icons { display: flex; justify-content: center; gap: 30px; }
.share-ic { display: grid; justify-items: center; gap: 12px; }
.share-ic span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); border: 1px solid var(--pill-line); transition: background .2s; }
.share-ic:active span { background: #262626; }
.share-ic svg { width: 20px; height: 20px; fill: none; stroke: #c9c4bc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share-ic svg .fill { fill: #c9c4bc; stroke: none; }
.share-ic em { font-style: normal; font-family: var(--sans-en); font-size: 10.5px; letter-spacing: .2em; text-indent: .2em; color: var(--muted); }
.foot .copy { margin-top: 0; font-family: var(--sans-en); font-size: 11px; letter-spacing: .15em; color: #444; }

/* ---------- MENU ---------- */
.menu {
  position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--frame)); transform: translateX(-50%);
  z-index: 50; background: rgba(245,95,16,.97);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-family: var(--serif); font-size: 36px; color: var(--brown); line-height: 1.1; }
.menu__close { position: absolute; top: 18px; right: 22px; font-size: 22px; color: var(--brown-2); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--frame)); transform: translateX(-50%);
  z-index: 60; background: rgba(0,0,0,.96);
  opacity: 0; pointer-events: none; transition: opacity .3s; overflow: hidden;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb__track { display: flex; height: 100%; transition: transform .35s ease; touch-action: pan-y; }
/* 사진 한 장이 화면 폭의 93%를 차지하고 앞·뒤 사진은 양옆에 살짝만 보임 (폭은 main.js 의 LB_W 와 같아야 함) */
.lb__track figure { flex: 0 0 93%; min-width: 0; height: 100%; display: grid; place-items: center; padding: 60px 1px; opacity: .4; transition: opacity .35s ease; }
.lb__track figure.on { opacity: 1; }
.lb__track.jump figure { transition: none; }
.lb__track img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__close { position: absolute; top: 14px; right: 18px; z-index: 2; font-size: 22px; color: #ddd; padding: 6px; }
.lb__count { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-family: var(--sans-en); font-size: 13px; letter-spacing: .15em; color: #999; z-index: 1; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 40px; color: rgba(255,255,255,.6); padding: 10px 14px; }
.lb__nav.prev { left: 4px; } .lb__nav.next { right: 4px; }

/* ---------- BGM ---------- */
.bgm {
  position: fixed; top: 12px; left: max(16px, calc(50vw - var(--frame) / 2 + 16px)); z-index: 40; /* 왼쪽 위 (오른쪽 위는 메뉴 버튼, 그 아래는 제목과 겹침) */
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(17,17,17,.55); color: #e6e1d9; backdrop-filter: blur(6px);
}
.bgm[hidden] { display: none; }
.bgm .mute { display: none; }
.bgm.off .wave { display: none; }
.bgm.off .mute { display: inline; }

/* ---------- CALENDAR SHEET ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet__box {
  position: relative; width: 100%; max-width: var(--frame); background: #1a1a1a; border-radius: 18px 18px 0 0;
  padding: 34px 24px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center;
  transform: translateY(30px); transition: transform .3s;
}
.sheet.open .sheet__box { transform: none; }
.sheet__close { position: absolute; top: 12px; right: 16px; font-size: 18px; color: var(--muted); padding: 6px; }
.sheet__title { color: var(--title); font-size: 17px; font-weight: 600; line-height: 1.5; }
.sheet__desc { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.sheet__btns { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- INTRO (시네마틱 인트로) ---------- */
.intro {
  position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--frame)); transform: translateX(-50%);
  z-index: 80; background: #000; overflow: hidden; display: grid; place-items: center; text-align: center;
  cursor: pointer; transition: opacity 1s ease, visibility 0s linear 1s;
}
.intro.out { opacity: 0; visibility: hidden; pointer-events: none; }
/* 흑백 사진이 천천히 다가오고(켄 번즈), 위아래에 영화 같은 검은 띠 */
.intro__bg {
  position: absolute; inset: 0; background: url("../images/hero.jpg") center 42% / cover no-repeat;
  opacity: 0; transform: scale(1.18);
}
.intro.play .intro__bg { animation: introBg 5.2s ease-out forwards; }
@keyframes introBg { 0% { opacity: 0; transform: scale(1.18); } 25% { opacity: .34; } 100% { opacity: .34; transform: scale(1.04); } }
.intro::before, .intro::after {
  content: ""; position: absolute; left: 0; right: 0; height: 13%; background: #000; z-index: 2;
  transition: transform 1s cubic-bezier(.7,0,.3,1);
}
.intro::before { top: 0; } .intro::after { bottom: 0; }
.intro.out::before { transform: translateY(-100%); } .intro.out::after { transform: translateY(100%); }
.intro__text { position: relative; z-index: 3; color: #f6f2ec; padding: 0 24px; text-shadow: 0 1px 14px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.5); }
.intro__text > * { opacity: 0; }
.intro.play .intro__text > * { animation: introUp 1.2s cubic-bezier(.22,.61,.36,1) forwards; }
.intro__date { font-family: var(--sans-en); font-weight: 300; font-size: 12px; letter-spacing: .42em; text-indent: .42em; color: #cfc8bd; animation-delay: .5s !important; }
.intro__names { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 11.5vw, 50px); line-height: 1.1; white-space: nowrap; animation-delay: 1.1s !important; } /* 첫 화면의 이름과 같은 글꼴 */
.intro__rule { display: block; width: 44px; height: 1px; margin: 24px auto 0; background: #cfc8bd; transform-origin: center; animation-name: introRule !important; animation-delay: 1.9s !important; }
.intro__sub { margin-top: 22px; font-family: var(--sans-en); font-weight: 300; font-size: 11px; letter-spacing: .5em; text-indent: .5em; color: #cfc8bd; animation-delay: 2.3s !important; }
@keyframes introUp { from { opacity: 0; transform: translateY(16px); letter-spacing: .6em; } to { opacity: 1; transform: none; } }
.intro__names { letter-spacing: 0; }
.intro.play .intro__names { animation-name: introName; }
@keyframes introName { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes introRule { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
.intro__skip {
  position: absolute; z-index: 3; right: 20px; bottom: calc(13% + 14px); font-family: var(--sans-en); font-size: 10px; letter-spacing: .3em;
  color: rgba(255,255,255,.55); opacity: 0;
}
.intro.play .intro__skip { animation: introUp 1s ease 1.4s forwards; }
.noanim .intro { display: none; }
.noanim .grid.reveal button { opacity: 1 !important; animation: none !important; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 70;
  background: rgba(230,225,217,.95); color: #111; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 999px; opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grid.reveal button { opacity: 1 !important; animation: none !important; }
  .intro { display: none; }
}

/* ===== 오렌지 컨셉: 오렌지 첫 화면 + 고정 띠, 오렌지빛 영문 제목, 가운데 정렬 안내 ===== */
html { scroll-padding-top: 52px; }
/* 위쪽에 고정된 오렌지 띠: 왼쪽 "The Wedding of", 오른쪽 음악 버튼 + 메뉴 */
.topbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--frame)); height: 52px; z-index: 39;
  display: flex; justify-content: space-between; align-items: center; padding: 0 20px; background: var(--hero);
}
.topbar__title { font-family: var(--serif); font-size: 19px; color: #111; }
.menu-btn { width: 26px; height: 20px; padding: 2px 0; }
.menu-btn span { background: #111; opacity: 1; }
.bgm { top: 8px; left: auto; right: max(58px, calc(50vw - var(--frame) / 2 + 58px)); width: 36px; height: 36px; background: none; backdrop-filter: none; color: #111; }
.bgm svg { width: 17px; height: 17px; }
/* 첫 화면: You're Invited → 이름(세로로 쌓음) → 날짜·예식장 → 화면 폭을 꽉 채운 흑백 사진 */
.hero { padding: 52px 0 0; }
.hero__kicker { margin-top: 56px; font-family: var(--sans-en); font-weight: 300; font-size: 13px; letter-spacing: .16em; text-indent: .16em; color: #a83c05; }
.hero__names { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 21cqw, 92px); line-height: .98; color: #111; letter-spacing: -.01em; }
.hero__names span { display: block; margin: 20px 0 16px; font-family: var(--sans-en); font-weight: 300; font-size: .36em; color: #7a2c05; }
.hero__info { margin-top: 34px; font-size: 15px; line-height: 2.1; color: var(--brown-2); font-weight: 400; }
.hero__photo { width: 100%; margin: 58px 0 0; aspect-ratio: 4 / 5; }
.hero__photo img { object-position: center 38%; }
.menu a { color: #111; }
.menu__close { color: #111; }
/* 영문 작은 제목은 차분한 오렌지빛 */
.label { color: #c98058; font-weight: 400; letter-spacing: .26em; text-indent: .26em; margin-bottom: 30px; }
.label:has(+ .sub-title) { margin-bottom: 22px; }
.share .label { margin-bottom: 20px; }
/* 초대 글: Join us → 부모님·이름 → INVITATION → 손글씨 */
.join { padding-top: 110px; padding-bottom: 0; }
.invitation { padding-top: 96px; padding-bottom: 110px; }
.parents { margin-top: 0; }
.invitation .label { margin-top: 124px; }
/* 달력 */
.cal__date { font-size: 44px; letter-spacing: 0; }
.cal { font-size: 18px; }
.cal .dow { font-size: 15px; }
.dday__boxes b { font-size: 27px; }

/* ===== 오렌지 컨셉 2차 조정: 글꼴, 위쪽 띠, 첫 화면 비율 ===== */
/* 영문 제목·숫자: 폭이 좁고 획 대비가 큰 세리프 (Noto Serif Display 의 좁은 폭) */
:root {
  --serif: "Noto Serif Display", "Instrument Serif", "Times New Roman", serif;
  --serif-num: "Noto Serif Display", "Instrument Serif", "Times New Roman", serif;
}
.hero__names, .serif-title, .topbar__title, .menu a, .cal__date, .cal, .dday__boxes b, .intro__names {
  font-stretch: 62.5%; font-variation-settings: "wdth" 62.5;
}
.serif-title { font-weight: 300; font-size: clamp(40px, 12cqw, 54px); line-height: 1.2; }
.cal__date { font-weight: 300; font-size: 46px; }
.cal { font-size: 19px; font-weight: 400; }
.cal .dow { font-size: 16px; }
.dday__boxes b { font-size: 28px; }
.menu a { font-size: 40px; }
.intro__names { font-size: clamp(42px, 13vw, 56px); }
/* 위쪽 띠: 첫 화면과 같은 오렌지, 살짝 비쳐 보임 */
.hero::before { display: none; }   /* 종이 질감을 빼서 띠와 첫 화면의 색을 똑같이 */
.topbar { background: rgba(245,95,16,.86); }
.topbar__title { color: #fff; font-size: 21px; font-weight: 400; letter-spacing: .01em; }
.menu-btn span { background: #fff; }
.bgm { color: #fff; }
/* 첫 화면: 글 영역을 줄여 사진이 함께 보이게, 사진 아래에도 오렌지가 남게 */
.hero { padding: 52px 0 112px; }
.hero__kicker { margin-top: 30px; color: #401703; font-weight: 400; letter-spacing: .2em; text-indent: .2em; font-size: 12.5px; }
.hero__names { margin-top: 14px; font-size: clamp(58px, 17.5cqw, 76px); line-height: .96; font-weight: 400; letter-spacing: 0; }
.hero__names span { margin: 12px 0 8px; font-size: .34em; }
.hero__info { margin-top: 20px; line-height: 1.95; }
.hero__photo { margin-top: 36px; aspect-ratio: 5 / 6; }

/* ===== 오렌지 컨셉 3차 조정: 레퍼런스 화면의 크기·간격·색에 맞춤 ===== */
html { scroll-padding-top: 48px; }
/* 위쪽 띠 */
.topbar { height: 48px; padding: 0 20px; }
.topbar__title { font-size: 14px; color: rgba(255,255,255,.82); transition: color .35s; }
.menu-btn { width: 18px; height: 14px; padding: 0; }
.menu-btn span { height: 1.5px; background: rgba(255,255,255,.85); transition: background .35s; }
.bgm { top: 6px; right: max(48px, calc(50vw - var(--frame) / 2 + 48px)); color: rgba(255,255,255,.85); transition: color .35s; }
.bgm svg { width: 15px; height: 15px; }
.past-hero .topbar__title { color: #111; }
.past-hero .menu-btn span { background: #111; }
.past-hero .bgm { color: #111; }
/* 첫 화면 */
.hero { padding: 48px 0 112px; }
.hero__kicker { margin-top: 22px; font-size: 9.5px; font-weight: 400; letter-spacing: .22em; text-indent: .22em; line-height: 1; color: #a03c08; }
.hero__names { margin-top: 17px; font-size: clamp(50px, 13.9cqw, 60px); line-height: 1; font-weight: 400; font-stretch: 75%; font-variation-settings: "wdth" 75; }
.hero__names span { margin: 16px 0 20px; font-size: 17px; line-height: 20px; font-weight: 300; color: #8a3306; }
.hero__info { margin-top: 26px; font-size: 12px; line-height: 22px; color: #5c2407; }
.hero__photo { margin-top: 31px; }
/* 달력: 아주 좁고 가는 숫자, 작은 크기 */
.cal__date { font-size: 30px; font-weight: 300; color: #e6e1d9; }
.cal__time { margin-top: 12px; font-size: 14px; font-weight: 600; }
.rule { margin: 30px 0 20px; }
.cal { font-size: 14px; font-weight: 300; row-gap: 0; color: #b9b4ac; }
.cal span { aspect-ratio: auto; height: 38px; }
.cal .dow { font-size: 12.5px; margin-bottom: 0; color: #a39e96; }
.cal .sun, .cal .holi { color: #cf6257; }
.cal .day-on::before, .cal .day-on::after { width: 28px; height: 28px; }
.cal .day-on::before { background: #a8a39b; }
.cal .day-on b { font-weight: 300; color: #efebe5; }
.dday { margin-top: 44px; }
/* 영문 작은 제목 */
.label { font-size: 10.5px; font-weight: 300; letter-spacing: .24em; text-indent: .24em; color: #c4826a; }

/* ===== 오렌지 컨셉 4차 조정: 레퍼런스처럼 더 길쭉한 글자 =====
   가장 좁은 폭의 글꼴로도 레퍼런스보다 넓어서, 가로만 살짝 눌러(scale) 비율을 맞춤. 숫자는 글자보다 더 좁게 */
.hero__names { font-stretch: 62.5%; font-variation-settings: "wdth" 62.5; font-size: clamp(54px, 15.2cqw, 64px); scale: .86 1; }
.hero__names span { scale: 1.16 1; }
.serif-title, .menu a, .intro__names { scale: .87 1; }
.serif-title { font-weight: 400; }
.topbar__title { font-size: 14.5px; scale: .9 1; transform-origin: left center; }
.cal__date { font-size: 33px; font-weight: 400; scale: .66 1; }
.cal { font-size: 14.5px; font-weight: 400; }
.cal span:not(.day-on) { scale: .7 1; }
.cal .day-on b { display: inline-block; scale: .7 1; font-weight: 400; }
.dday__boxes b { scale: .72 1; font-weight: 400; }

/* ===== 오렌지 컨셉 5차 조정 ===== */
/* 첫 화면: You're Invited 를 조금 크게, 이름과 & 사이 위아래 간격이 같아 보이게 */
.hero__kicker { font-size: 11.5px; margin-top: 20px; }
.hero__names { margin-top: 16px; }
.hero__names span { margin: 20px 0 9px; }
/* 달력·카운트 숫자: 가로로 누르지 않은 보통 비율 */
.cal__date, .cal, .dday__boxes b { font-stretch: 100%; font-variation-settings: "wdth" 100; }
.cal__date { scale: none; font-size: 31px; font-weight: 300; letter-spacing: .01em; }
.cal { font-size: 14px; font-weight: 300; }
.cal span:not(.day-on), .cal .day-on b, .dday__boxes b { scale: none; }
.cal .day-on b { font-weight: 400; }
.dday__boxes b { font-size: 24px; font-weight: 300; }
/* SHARE 위의 짧은 구분선 */
.share { padding-top: 76px; }
.share::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 42px; background: #3d3d3d; }

/* 부모님·이름 줄: 전체를 조금 작게, 故 는 이름보다 작고 옅게 */
.p-name { font-size: 14px; }
.c-name { font-size: 15px; }
.rel { font-size: 11px; }
.parents { column-gap: 14px; row-gap: 14px; padding-left: 7px; }
.late { font-size: 10.5px; font-weight: 400; color: var(--muted); margin-right: 3px; top: .22em; }

/* ===== 오렌지 컨셉 6차 조정 ===== */
/* 크게 보기: 양옆 미리보기 없이 한 장씩 (main.js 의 LB_W = 100 과 짝) */
.lb__track figure { flex: 0 0 100%; padding: 60px 0; opacity: 1; }
/* You're Invited: 세로로 조금 길게 */
.hero__kicker { scale: 1 1.28; }

/* ===== 최종 점검에서 다듬은 것 ===== */
.topbar { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } /* 띠 아래로 지나가는 글자가 띠의 글씨와 겹쳐 읽히지 않게 흐리게 */
.invitation { padding-bottom: 90px; }                                        /* 다른 단과 같은 아래 여백 */
.late { top: 50%; transform: translateY(-50%); }                             /* 故 를 이름 줄의 가운데 높이에 */
.menu { gap: 18px; }
.person__acc .acc__num { font-size: 14px; white-space: nowrap; }                 /* 폭이 좁은 휴대폰에서도 계좌번호가 한 줄에 */

/* 교통 안내: 노선 번호 구분 기호를 좁게, 긴 줄(지선 버스)은 화면 폭에 맞춰 한 줄로 */
.how li span i { font-style: normal; margin: 0 2px; }
.how li.long { margin-right: -14px; }
.how li.long span { white-space: nowrap; }
/* 지하철·버스·주차 글씨를 모두 같은 크기로: 가장 긴 줄(지선 버스)이 한 줄에 들어가는 크기에 전체를 맞춤 */
.how { --how-fs: min(15px, calc((100cqw - 134px) / 17.4)); gap: 34px; }
.how li, .how p { font-size: var(--how-fs); }
.how li { grid-template-columns: 3.3em 1fr; }
.how h4 { font-size: calc(var(--how-fs) + 2px); margin-bottom: 12px; }
.how h4 svg { width: 17px; height: 17px; }
/* 첫 화면 사진 아래의 오렌지 띠: 위쪽 띠(48px)와 비슷한 높이로 */
.hero { padding-bottom: 54px; }
