/* ======================================================================
   Wedding Invitation 2027 · Style
   Classic minimal · premium editorial
   ====================================================================== */

:root {
  color-scheme: light only;

  /* palette */
  --outer: #E9E3D9;
  --ivory: #F8F5EF;
  --paper: #FFFEFC;
  --beige: #F0EAE0;
  --beige-2: #E7DED1;
  --line: #E3DACC;
  --line-soft: #EDE6DB;
  --ink: #2D2A27;
  --text: #4A4540;
  --muted: #756E65;
  --gold: #9C8053;
  --gold-soft: #C9B48E;
  --sun: #B0685B;

  /* type */
  --serif-ko: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --serif-en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  /* layout */
  --page-w: 460px;
  --gutter: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--outer);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--outer);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 14px; font-size: 13px; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.noscript { padding: 40px 24px; text-align: center; color: var(--ink); }

/* ---------- page frame (PC에서는 가운데 모바일 폭으로) ---------- */
.page {
  position: relative;
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--ivory);
  min-height: 100vh;
}
@supports (overflow: clip) { .page { overflow-x: clip; } }
@media (min-width: 600px) {
  .page { box-shadow: 0 0 0 1px rgba(60, 45, 25, .04), 0 24px 80px rgba(60, 45, 25, .10); }
}

/* ---------- 공통 섹션 ---------- */
.section {
  position: relative;
  padding: 104px var(--gutter);
}
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-en {
  display: block;
  font: 500 12.5px/1 var(--serif-en);
  letter-spacing: .38em;
  padding-left: .38em;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-title {
  margin-top: 14px;
  font: 400 19px/1.5 var(--serif-ko);
  letter-spacing: .04em;
  color: var(--ink);
  text-wrap: balance;
}
.serif { font-family: var(--serif-ko); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 500 14px/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn-dark:hover { background: #45403B; border-color: #45403B; } }
@media (hover: hover) { .btn-line:hover { background: var(--ink); color: #fff; } }
.btn-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 13px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.chip svg { width: 15px; height: 15px; }
@media (hover: hover) { .chip:hover { border-color: var(--gold-soft); } }

/* ---------- 사진 / 임시 이미지 영역 ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #F3EDE3 0%, #E9E0D2 55%, #DFD4C3 100%);
}
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease, transform .8s var(--ease);
}
.ph > img.is-loaded { opacity: 1; }
.ph-label {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 8px;
  color: #998E7F;
  font: 500 11px/1.2 var(--serif-en);
  letter-spacing: .3em;
  text-align: center;
  font-variant-numeric: lining-nums;
}
.ph-label svg { width: 22px; height: 22px; opacity: .75; }
.ph-label small {
  display: block; margin-top: 2px;
  font: 400 10px/1.4 var(--sans); letter-spacing: 0;
  word-break: break-all; opacity: .85;
}
.ph.is-missing > img { display: none; }
.ph.is-missing .ph-label { display: flex; }

/* ======================================================================
   1. HERO
   ====================================================================== */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 46px) var(--gutter) calc(env(safe-area-inset-bottom) + 22px);
  text-align: center;
  background: var(--ivory);
}
.hero-head { flex: none; }
.hero-kicker {
  font: 500 12.5px/1 var(--serif-en);
  letter-spacing: .44em; padding-left: .44em;
  color: var(--muted);
}
.hero-en {
  margin-top: 14px;
  font: italic 400 15px/1 var(--serif-en);
  letter-spacing: .16em;
  color: var(--gold);
}
.hero-names {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  font: 400 clamp(22px, 6.6vw, 27px)/1.3 var(--serif-ko);
  letter-spacing: .16em;
  color: var(--ink);
}
.hero-names .name { padding-left: .16em; }
.hero-names .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-soft);
  margin: 0 .55em;
}
.hero-photo {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  max-height: 640px;
  margin: 28px 0 26px;
}
.hero-photo::after {           /* 얇은 안쪽 액자선 */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  pointer-events: none;
}
.hero-photo.is-missing::after { border-color: rgba(255, 255, 255, .7); }
.hero-info { flex: none; }
.hero-date {
  font: 500 18px/1 var(--serif-en);
  letter-spacing: .2em; padding-left: .2em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.hero-time {
  margin-top: 9px;
  font: 500 13.5px/1 var(--serif-en);
  letter-spacing: .26em; padding-left: .26em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.hero-venue {
  margin-top: 14px;
  font: 400 13.5px/1.5 var(--serif-ko);
  letter-spacing: .08em;
  color: var(--text);
}
.scroll-cue {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: 22px;
  min-width: 44px; min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font: 500 9.5px/1 var(--serif-en);
  letter-spacing: .4em; padding-left: .4em;
}
.scroll-cue i {
  position: relative; display: block;
  width: 1px; height: 34px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -14px;
  width: 1px; height: 14px;
  background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -14px; } 70%, 100% { top: 34px; } }

/* 전체화면 사진형 (design.heroStyle = "fullscreen") */
.hero--full { padding: 0; justify-content: flex-end; color: #fff; }
.hero--full .hero-photo {
  position: absolute; inset: 0;
  margin: 0; max-height: none; min-height: 0;
}
.hero--full .hero-photo::after {
  inset: 0; border: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, .28) 0%, rgba(20, 18, 16, 0) 26%, rgba(20, 18, 16, 0) 52%, rgba(20, 18, 16, .55) 100%);
}
.hero--full .hero-head {
  position: absolute; left: 0; right: 0;
  top: calc(env(safe-area-inset-top) + 52px);
  z-index: 1;
}
.hero--full .hero-info,
.hero--full .scroll-cue { position: relative; z-index: 1; }
.hero--full .hero-info { padding: 0 var(--gutter); }
.hero--full .scroll-cue { margin: 22px 0 calc(env(safe-area-inset-bottom) + 22px); }
.hero--full .hero-kicker,
.hero--full .hero-names,
.hero--full .hero-date,
.hero--full .hero-venue { color: #fff; }
.hero--full .hero-time,
.hero--full .scroll-cue { color: rgba(255, 255, 255, .82); }
.hero--full .hero-en { color: #F1E3C6; }
.hero--full .hero-names .dot { background: rgba(255, 255, 255, .8); }
.hero--full .scroll-cue i { background: rgba(255, 255, 255, .35); }
.hero--full .scroll-cue i::after { background: #fff; }
.hero--full .hero-head, .hero--full .hero-info { text-shadow: 0 1px 18px rgba(0, 0, 0, .18); }
.hero--full .hero-photo.is-missing { background: linear-gradient(165deg, #A39684 0%, #7D7264 55%, #5F574D 100%); }
.hero--full .ph-label { color: rgba(255, 255, 255, .7); }

/* 첫 화면 등장 */
.js-anim .hero > * { animation: heroIn 1.3s var(--ease) both; }
.js-anim .hero .hero-head { animation-delay: .1s; }
.js-anim .hero .hero-photo { animation-name: heroPhoto; animation-duration: 1.6s; }
.js-anim .hero .hero-info { animation-delay: .45s; }
.js-anim .hero .scroll-cue { animation-delay: .8s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; } to { opacity: 1; } }

/* ======================================================================
   2. 초대의 글
   ====================================================================== */
.sec-invitation { background: var(--ivory); padding-top: 112px; }
.inv-msg {
  text-align: center;
  font: 400 15px/2.05 var(--serif-ko);
  letter-spacing: .01em;
  color: var(--text);
  white-space: pre-line;
}
.inv-divider {
  width: 1px; height: 44px;
  margin: 52px auto;
  background: linear-gradient(var(--gold-soft), rgba(201, 180, 142, 0));
}
.family {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 18px;
  font-family: var(--serif-ko);
}
.family .parents { text-align: right; font-size: 15px; color: var(--ink); letter-spacing: .03em; }
.family .parents .sep { color: var(--gold-soft); margin: 0 .3em; }
.family .rel { font-size: 13px; color: var(--muted); white-space: nowrap; }
.family .child { font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: .08em; white-space: nowrap; }
.deceased { font-size: .84em; color: var(--muted); margin-right: .25em; }
.deceased-flower { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .3em; vertical-align: -.2em; }
.deceased-flower svg { display: block; width: 100%; height: 100%; }

/* ======================================================================
   3. 갤러리
   ====================================================================== */
.sec-gallery { background: var(--paper); padding-left: 16px; padding-right: 16px; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.g-grid > li.is-extra { display: none; }
.g-grid.is-expanded > li.is-extra { display: block; animation: fadeUp .7s var(--ease) both; }
.g-item {
  display: block; width: 100%;
  aspect-ratio: var(--thumb-ratio, 3 / 4);
  padding: 0; border: 0; border-radius: 0;
  cursor: zoom-in;
}
@supports not (aspect-ratio: 1 / 1) { .g-item { height: 0; padding-bottom: 133.33%; } }
.g-item .ph-label { font-size: 10px; letter-spacing: .26em; gap: 7px; }
.g-item .ph-label svg { width: 18px; height: 18px; }
@media (hover: hover) { .g-item:hover > img.is-loaded { transform: scale(1.035); } }
.g-more { display: flex; justify-content: center; margin-top: 28px; }
.g-more .chip svg { transition: transform .3s var(--ease); }
.g-more .chip[aria-expanded="true"] svg { transform: rotate(180deg); }
.g-hint { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 라이트박스 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 20, 18, .97);
  color: #fff;
  opacity: 0;
  transition: opacity .32s ease;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.lightbox.is-open { opacity: 1; }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(env(safe-area-inset-top) + 58px);
  padding: env(safe-area-inset-top) 6px 0 22px;
}
.lb-counter {
  font: 500 13px/1 var(--serif-en);
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .78);
  font-variant-numeric: lining-nums tabular-nums;
}
.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.lb-viewport { position: absolute; inset: 0; overflow: hidden; }
.lb-track {
  display: flex; height: 100%;
  will-change: transform;
  transition: transform .42s var(--ease);
}
.lb-track.is-dragging,
.lb-track.is-dragging .lb-fig { transition: none; }
.lb-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 64px) 10px calc(env(safe-area-inset-bottom) + 64px);
}
.lb-fig {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%;
  transition: transform .32s var(--ease), opacity .32s;
}
.lb-fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100svh - 140px);
  width: auto; height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
}
.lb-fig .ph-label { display: none; }
.lb-fig.is-missing {
  width: min(76vw, 360px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #3A3530 0%, #2E2A26 100%);
}
.lb-fig.is-missing img { display: none; }
.lb-fig.is-missing .ph-label { display: flex; color: rgba(255, 255, 255, .5); }
.lightbox.is-opening .is-current .lb-fig { animation: lbZoom .42s var(--ease) both; }
@keyframes lbZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lb-nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .8);
}
.lb-nav:disabled { opacity: .2; cursor: default; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (hover: none) and (pointer: coarse) { .lb-nav { opacity: .55; } }

/* ======================================================================
   4. 예식 일정
   ====================================================================== */
.sec-calendar { background: var(--ivory); }
.cal-date {
  text-align: center;
  font: 500 30px/1 var(--serif-en);
  letter-spacing: .14em; padding-left: .14em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.cal-sub {
  margin-top: 14px;
  text-align: center;
  font: 400 14.5px/1.6 var(--serif-ko);
  letter-spacing: .03em;
  color: var(--text);
}
.cal-sub small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cal {
  margin-top: 40px;
  padding: 26px 2px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption {
  padding-bottom: 20px;
  font: 500 15px/1 var(--serif-en);
  letter-spacing: .3em; padding-left: .3em;
  color: var(--ink);
}
.cal caption span { display: block; margin-top: 8px; font: 400 12px/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
.cal th {
  padding-bottom: 12px;
  font: 500 11.5px/1 var(--sans);
  color: var(--muted);
}
.cal td {
  height: 44px;
  text-align: center;
  font: 500 16px/1 var(--serif-en);
  color: var(--text);
  font-variant-numeric: lining-nums;
}
.cal td .d {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
}
.cal .sun { color: var(--sun); }
.cal .target .d {
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold-soft);
}

.dday { margin-top: 44px; text-align: center; }
.dday-label {
  font: 600 15px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.countdown {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
}
.cd-unit { min-width: 58px; }
.cd-num {
  display: block;
  font: 500 30px/1 var(--serif-en);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-cap {
  display: block; margin-top: 9px;
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .2em; padding-left: .2em;
  color: var(--muted);
}
.cd-sep { font: 400 24px/1 var(--serif-en); color: var(--gold-soft); padding-top: 2px; }
.dday-msg {
  margin-top: 26px;
  font: 400 14.5px/1.85 var(--serif-ko);
  color: var(--text);
  white-space: pre-line;
}
.heart { color: var(--gold); }
.heart svg { display: inline-block; width: .82em; height: .82em; margin: 0 .08em; vertical-align: -.08em; }

/* ======================================================================
   5. 오시는 길
   ====================================================================== */
.sec-location { background: var(--paper); }
.venue { text-align: center; }
.venue-name { font: 500 18px/1.5 var(--serif-ko); color: var(--ink); letter-spacing: .04em; }
.venue-hall { margin-top: 4px; font: 400 14px/1.5 var(--serif-ko); color: var(--text); }
.venue-addr { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text); }
.venue-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.map-img { margin-top: 30px; border: 1px solid var(--line-soft); }
.map-img img { width: 100%; height: auto; }
.map-img.is-missing { display: none; }
.map-links {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 8px;
  margin-top: 30px;
}
.map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 6px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  font: 500 13.5px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .map-btn:hover { border-color: var(--gold-soft); background: var(--paper); } }
.map-btn i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.map-btn .dot-naver { background: #03C75A; }
.map-btn .dot-kakao { background: #F4CF00; }

.dir { margin-top: 44px; border-top: 1px solid var(--ink); }
.dir-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.dir-row dt { font: 600 13px/1.75 var(--sans); color: var(--ink); white-space: nowrap; }
.dir-row dd { font-size: 14px; line-height: 1.7; color: var(--text); }
.dir-row dd p + p { margin-top: 6px; }
.dir-notice { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; }

/* ======================================================================
   6. 참석 여부
   ====================================================================== */
.sec-rsvp { background: var(--ivory); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 38px 24px 34px;
  text-align: center;
}
.card + .card { margin-top: 14px; }
.card-msg { font: 400 14.5px/1.95 var(--serif-ko); color: var(--text); white-space: pre-line; }
.card-meta { margin-top: 16px; font: 500 13px/1.6 var(--sans); color: var(--gold); }
.card .btn { margin-top: 26px; width: 100%; max-width: 280px; }
.card-en {
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--gold);
}
.card-title { margin-top: 12px; font: 500 17px/1.5 var(--serif-ko); color: var(--ink); }
.card-title + .card-msg { margin-top: 14px; }

/* ======================================================================
   7. 연락하기
   ====================================================================== */
.sec-contact { background: var(--paper); }
.contact-groups { display: grid; gap: 34px; }
.contact-group h3 {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 8px;
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .32em;
  color: var(--gold);
}
.contact-group h3 span { font: 500 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--muted); }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-who { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.contact-who .role { flex: none; width: 70px; font-size: 12.5px; color: var(--muted); }
.contact-who .name { font: 500 15px/1.4 var(--serif-ko); color: var(--ink); }
.contact-who .empty { font-size: 12px; color: var(--gold); margin-left: 4px; }
.contact-acts { display: flex; gap: 8px; flex: none; }
.circle-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.circle-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .circle-btn:hover { border-color: var(--gold-soft); background: var(--paper); } }
.circle-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ======================================================================
   8. 마음 전하실 곳
   ====================================================================== */
.sec-account { background: var(--ivory); }
.acc-msg {
  margin: -16px 0 34px;
  text-align: center;
  font: 400 14px/1.95 var(--serif-ko);
  color: var(--text);
  white-space: pre-line;
}
.acc { background: var(--paper); border: 1px solid var(--line); }
.acc + .acc { margin-top: 10px; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px;
  padding: 0 22px;
  border: 0; background: none;
  text-align: left; cursor: pointer;
  font: 500 15px/1.4 var(--serif-ko);
  color: var(--ink);
}
.acc-btn svg { width: 18px; height: 18px; color: var(--muted); transition: transform .4s var(--ease); flex: none; }
.acc.is-open .acc-btn svg { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-list { margin: 0 22px; border-top: 1px solid var(--line); padding: 4px 0 8px; }
.acct { padding: 18px 0; }
.acct + .acct { border-top: 1px dashed var(--line); }
.acct-who { font-size: 12.5px; color: var(--muted); }
.acct-who b { font-weight: 500; color: var(--ink); margin-left: 6px; font-size: 14px; }
.acct-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.acct-num { min-width: 0; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.acct-num .bank { display: block; font-size: 12.5px; color: var(--muted); }
.acct-num .no { display: block; margin-top: 2px; font-weight: 500; color: var(--ink); letter-spacing: .02em; word-break: break-all; }
.acct-acts { display: flex; gap: 6px; flex: none; }
.acct-acts .chip { min-height: 44px; padding: 0 14px; font-size: 12.5px; }
.chip-pay { background: #FFEB00; border-color: #FFEB00; color: #191919; }

/* ======================================================================
   9. 공유하기
   ====================================================================== */
.sec-share { background: var(--paper); padding-top: 88px; padding-bottom: 88px; }
.share-btns { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; }
.share-btns .btn { width: 100%; }

/* ======================================================================
   10. 푸터
   ====================================================================== */
.footer {
  background: var(--beige);
  padding: 88px var(--gutter) calc(env(safe-area-inset-bottom) + 76px);
  text-align: center;
}
.f-title {
  font: 500 27px/1 var(--serif-en);
  letter-spacing: .42em; padding-left: .42em;
  color: var(--ink);
}
.f-date {
  margin-top: 16px;
  font: 500 14px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.f-line { width: 28px; height: 1px; margin: 28px auto 0; background: var(--gold-soft); }
.f-names { margin-top: 22px; font: 400 13px/1.6 var(--serif-ko); letter-spacing: .12em; color: var(--text); }
.f-msg { margin-top: 10px; font: 400 13px/1.8 var(--serif-ko); color: var(--muted); white-space: pre-line; }

/* ======================================================================
   참석 입력창 (bottom sheet)
   ====================================================================== */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 26, 22, .45);
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet.is-open { opacity: 1; }
.sheet-panel {
  position: relative;
  width: 100%; max-width: var(--page-w);
  max-height: 92vh; max-height: 92svh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory);
  border-radius: 18px 18px 0 0;
  padding: 30px 24px calc(env(safe-area-inset-bottom) + 26px);
  transform: translateY(28px);
  transition: transform .4s var(--ease);
}
.sheet.is-open .sheet-panel { transform: none; }
@media (min-width: 600px) and (min-height: 720px) {
  .sheet { align-items: center; }
  .sheet-panel { max-width: 420px; border-radius: 14px; }
}
.sheet-close { position: absolute; top: 10px; right: 8px; }
.sheet h2 { text-align: center; font: 500 18px/1.5 var(--serif-ko); color: var(--ink); }
.sheet .sheet-sub { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field-label, .field legend {
  display: block; padding: 0; margin-bottom: 10px;
  font: 600 13px/1.4 var(--sans); color: var(--ink);
}
.field-label small, .field legend small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.seg { display: flex; gap: 8px; }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 6px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; color: var(--text);
  cursor: pointer; transition: all .2s;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.text-input, .select-input {
  width: 100%; min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--paper);
  font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.select-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23756E65' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.text-input:focus, .select-input:focus { outline: none; border-color: var(--gold); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.stepper button { width: 48px; height: 46px; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { min-width: 60px; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); }
.sheet .btn-dark { width: 100%; margin-top: 30px; }
.sheet-privacy { margin-top: 14px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ======================================================================
   토스트
   ====================================================================== */
.toast {
  position: fixed; left: 50%; z-index: 200;
  bottom: calc(env(safe-area-inset-bottom) + 36px);
  width: max-content; max-width: calc(100vw - 40px);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(40, 36, 32, .94);
  color: #fff;
  font: 500 13.5px/1.45 var(--sans);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .3s var(--ease);
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================================
   스크롤 등장 효과
   ====================================================================== */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s var(--ease);
}
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   사진·내용 보호 (config.js 의 protect)
   ====================================================================== */
.protect-img img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.protect-img .hero-photo img,
.protect-img .g-item img,
.protect-img .lb-fig img,
.protect-img .map-img img { pointer-events: none; }
.protect-text body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect-text input,
.protect-text textarea,
.protect-text select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.protect-zoom .hero-photo,
.protect-zoom .g-grid { touch-action: pan-x pan-y; }
.protect-pagezoom,
.protect-pagezoom body { touch-action: pan-x pan-y; }

/* ======================================================================
   디자인 검토 모드 (?preview)
   ====================================================================== */
.pv-banner {
  position: sticky; top: 0; z-index: 80;
  padding: 10px 16px;
  background: #2F2B27; color: #EFE7DA;
  font: 500 12px/1.5 var(--sans);
  text-align: center;
}
.pv-banner a { color: #E3C995; margin-left: 6px; }
.pv-note {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px dashed var(--gold-soft); border-radius: 999px;
  background: rgba(201, 180, 142, .1);
  color: #84693D;
  font: 500 11.5px/1.4 var(--sans);
}
.pv-wrap { text-align: center; }
.is-preview-only { outline: 1px dashed rgba(156, 128, 83, .45); outline-offset: -12px; }

/* ---------- 작은 화면 미세 조정 (360px) ---------- */
@media (max-width: 374px) {
  :root { --gutter: 22px; }
  .section { padding-top: 92px; padding-bottom: 92px; }
  .inv-msg { font-size: 14.5px; }
  .family .parents { font-size: 14px; }
  .family .child { font-size: 15.5px; }
  .family { column-gap: 8px; }
  .cd-unit { min-width: 52px; }
  .cd-num { font-size: 27px; }
  .map-btn { font-size: 12.5px; gap: 6px; }
  .dir-row { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .dir-row dt { font-size: 12.5px; }
  .dir-row dd { font-size: 13.5px; }
  .contact-who .role { width: 62px; }
}
