/* ==========================================================================
   시안 3: 모던 매거진 포스터 (Modern Editorial Poster)
   풀블리드 잡지 커버 + 강렬한 타이포그래피 + 건축적 1px 보더 & 버건디 포인트
   ========================================================================== */

:root {
  --bg-outer: #1C1B1A;
  --bg-page: #F3EFE7;
  --bg-surface: #FAF7F2;
  --ink: #141414;
  --ink-soft: #4B4843;
  --ink-muted: #7F7A72;
  --line: #141414;
  --line-soft: #D6CFC3;
  --accent: #7B2433;
  --sun: #9E303B;
  --sat: #3B5570;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Gowun Batang', Georgia, serif;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-outer);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: var(--font-sans); }
a { color: inherit; text-decoration: none; }

.invitation-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-page);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 1. FULL-BLEED POSTER COVER */
.poster-hero {
  position: relative;
  height: 92svh;
  min-height: 620px;
  max-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FAF7F2;
  overflow: hidden;
  background: #141414;
}

.poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: contrast(1.06) saturate(0.88);
}

.poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.56) 0%,
    rgba(14, 14, 14, 0.08) 38%,
    rgba(14, 14, 14, 0.2) 60%,
    rgba(14, 14, 14, 0.86) 100%
  );
}

.poster-masthead {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.28);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.masthead-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.poster-bottom {
  position: relative;
  z-index: 2;
  padding: 0 22px 28px;
}

.poster-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(250, 247, 242, 0.78);
}

.poster-headline {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.04em;
}
.poster-headline em {
  font-style: italic;
  font-weight: 400;
  color: #E2B8BE;
  margin: 0 6px;
}

.poster-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(250, 247, 242, 0.38);
  border-bottom: 1px solid rgba(250, 247, 242, 0.38);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.scroll-cue {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(250, 247, 242, 0.72);
}

/* EDITORIAL SECTIONS */
.section {
  padding: 56px 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.section-dark {
  background: var(--ink);
  color: #FAF7F2;
}

.ed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}
.ed-header.dark {
  border-bottom-color: rgba(250, 247, 242, 0.24);
  color: rgba(250, 247, 242, 0.6);
}
.ed-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.ed-header.dark .ed-num { color: #E2B8BE; }

.section-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title.light { color: #FAF7F2; }

.section-hint {
  margin: -14px 0 22px;
  font-size: 12px;
  color: var(--ink-muted);
}
.section-desc {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.section-desc.light { color: rgba(250, 247, 242, 0.76); }

/* 2. GREETING */
.greeting-body {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.greeting-body p { margin: 0 0 16px; }
.greeting-body p:last-child { margin-bottom: 0; }

.family-grid {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.family-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 5px 0;
  font-size: 14px;
}
.family-row .relation { font-size: 12px; color: var(--ink-muted); }
.family-row .child-name { font-weight: 700; font-size: 15px; }

/* ARCHITECTURAL BUTTONS */
.btn-arch-outline,
.btn-arch-solid,
.btn-burgundy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.full { width: 100%; }

.btn-arch-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-arch-outline:hover { background: var(--ink); color: #FAF7F2; }

.btn-arch-solid {
  background: var(--ink);
  color: #FAF7F2;
  border: 1px solid var(--ink);
}
.btn-arch-solid:hover { opacity: 0.88; }

.btn-burgundy {
  background: var(--accent);
  color: #FAF7F2;
  border: 1px solid var(--accent);
}
.btn-burgundy:hover { filter: brightness(1.1); }

/* 3. CALENDAR & TICKER */
.date-feature-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.date-big-num {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.date-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.date-feature-meta strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.calendar-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 16px 10px;
  margin-bottom: 14px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 2px;
  text-align: center;
}
.cal-head { font-size: 11px; color: var(--ink-muted); padding-bottom: 8px; }
.cal-head.sun { color: var(--sun); }
.cal-head.sat { color: var(--sat); }
.cal-cell {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cal-cell.sun { color: var(--sun); }
.cal-cell.sat { color: var(--sat); }
.cal-cell.wedding-day span {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #FAF7F2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ticker-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #FAF7F2;
  margin-bottom: 14px;
}
.ticker-unit {
  padding: 14px 4px;
  text-align: center;
  border-right: 1px solid rgba(250, 247, 242, 0.14);
}
.ticker-unit:last-child { border-right: 0; }
.ticker-unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}
.ticker-unit small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(250, 247, 242, 0.56);
  margin-top: 4px;
}

.dday-summary {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.dday-summary strong { color: var(--accent); }

/* 4. MAGAZINE COLLAGE GALLERY */
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.collage-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: #141414;
  overflow: hidden;
  cursor: pointer;
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collage-item:hover img { transform: scale(1.04); }

.collage-slot-0 { grid-column: span 2; aspect-ratio: 4 / 3; }
.collage-slot-1 { aspect-ratio: 3 / 4; }
.collage-slot-2 { aspect-ratio: 3 / 4; }
.collage-slot-3 { grid-column: span 2; aspect-ratio: 16 / 10; }
.collage-slot-4 { aspect-ratio: 1 / 1; }
.collage-slot-5 { aspect-ratio: 1 / 1; }

.collage-index {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  background: rgba(20, 20, 20, 0.78);
  color: #FAF7F2;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* 5. LOCATION */
.venue-block { margin-bottom: 18px; }
.venue-name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
}
.venue-addr { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.venue-inline-actions { display: flex; gap: 8px; }
.inline-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  font-size: 11.5px;
  cursor: pointer;
}
.inline-tag:hover { background: var(--ink); color: #FAF7F2; }

.map-frame {
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.wedding-map { width: 100%; height: 230px; }
.wedding-map .leaflet-tile-pane { filter: grayscale(100%) contrast(1.08); }

.wedding-map-pin { text-align: center; }
.pin-dot {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  background: var(--accent);
  color: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.pin-label {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--ink);
  color: #FAF7F2;
  font-size: 11px;
  white-space: nowrap;
}
.map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  font-size: 13px;
}

.map-nav-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  font-size: 12px;
}
.nav-chip:hover { background: var(--ink); color: #FAF7F2; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; }
.nav-dot.naver { background: #03C75A; }
.nav-dot.kakao { background: #FEE500; border: 1px solid #CBB200; }
.nav-dot.tmap { background: #3164F4; }

.transport-item {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.transport-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.transport-lines {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 6. ACCOUNTS */
.accordion-stack { display: flex; flex-direction: column; gap: 10px; }
.accordion { border: 1px solid var(--line); background: var(--bg-surface); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion-chevron { transition: transform 0.25s ease; }
.accordion.open .accordion-chevron { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.accordion.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
}
.account-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.account-role { font-size: 11px; color: var(--accent); font-weight: 600; }
.account-holder { font-size: 13.5px; font-weight: 700; }
.account-number { font-size: 12.5px; color: var(--ink-soft); }
.btn-copy-acc {
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11.5px;
  cursor: pointer;
}
.btn-copy-acc:hover { background: var(--ink); color: #FAF7F2; }

/* 7. RSVP */
.rsvp-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(250, 247, 242, 0.4);
  color: #E2B8BE;
  font-size: 12px;
}

/* 8. GUESTBOOK */
.gb-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.gb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gb-form input,
.gb-form textarea,
.modal-body input[type="text"],
.modal-body input[type="tel"],
.modal-body input[type="password"],
.modal-body select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--ink);
  font-size: 13px;
  border-radius: 0;
  outline: none;
}
.gb-form input:focus,
.gb-form textarea:focus,
.modal-body input:focus,
.modal-body select:focus {
  border-color: var(--accent);
}
.gb-form textarea { resize: vertical; min-height: 76px; }

.gb-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.gb-card {
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--ink);
}
.gb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gb-author { font-size: 13px; font-weight: 700; }
.gb-meta-right { display: flex; align-items: center; gap: 8px; }
.gb-date { font-size: 11px; color: var(--ink-muted); }
.gb-del-btn {
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--ink-muted);
  cursor: pointer;
}
.gb-message { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.gb-empty { padding: 28px; text-align: center; font-size: 13px; color: var(--ink-muted); }

/* 9. FOOTER */
.footer {
  padding: 36px 22px 52px;
  background: var(--ink);
  color: #FAF7F2;
  border-top: 1px solid var(--line);
}
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.share-btn {
  padding: 13px 10px;
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.35);
  color: #FAF7F2;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.share-btn:hover { background: #FAF7F2; color: var(--ink); }
.footer-colophon {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(250, 247, 242, 0.5);
}

/* MODALS & LIGHTBOX & TOAST */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1000;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%;
  max-width: 390px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-page);
  border: 1px solid var(--line);
  color: var(--ink);
}
.modal-sheet.compact { max-width: 330px; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--ink);
  color: #FAF7F2;
}
.modal-head h3 { margin: 0; font-size: 13.5px; letter-spacing: 0.08em; font-weight: 500; }
.modal-close { background: none; border: 0; color: #FAF7F2; font-size: 24px; cursor: pointer; }
.modal-body { padding: 20px; }
.modal-hint { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-soft); }

.contact-group { margin-bottom: 18px; }
.contact-group-title { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-role { font-size: 11.5px; color: var(--ink-muted); margin-right: 8px; }
.contact-name { font-size: 14px; font-weight: 600; }
.contact-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.icon-btn:hover { background: var(--ink); color: #FAF7F2; }

.rsvp-form { display: flex; flex-direction: column; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.seg-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-group.three { grid-template-columns: repeat(3, 1fr); }
.seg-option { cursor: pointer; }
.seg-option input { display: none; }
.seg-option span {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.seg-option input:checked + span {
  background: var(--ink);
  color: #FAF7F2;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  color: #FAF7F2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1200;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-topbar { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 12px; letter-spacing: 0.14em; }
.lb-close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #FAF7F2; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.lb-stage img { max-height: 76vh; max-width: 92vw; object-fit: contain; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: rgba(10, 10, 10, 0.6);
  color: #FAF7F2;
  font-size: 24px;
  cursor: pointer;
}
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-caption { text-align: center; padding: 14px 20px 24px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; color: rgba(250, 247, 242, 0.72); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--accent);
  color: #FAF7F2;
  padding: 11px 22px;
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* MAP LOCK BUTTON & INFORMATION TABS & GALLERY MORE */
.map-lock-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 450;
  padding: 6px 12px;
  background: rgba(250, 247, 242, 0.94);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
}
.map-lock-btn.unlocked {
  background: var(--accent);
  color: #FAF7F2;
  border-color: var(--accent);
}

.info-tabs { text-align: left; }
.info-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.info-tab-btn {
  padding: 12px 6px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-bottom: 0;
  margin-right: -1px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
}
.info-tab-btn.active {
  background: var(--ink);
  color: #FAF7F2;
}
.info-tab-panel {
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.info-tab-panel p { margin: 0 0 10px; }
.info-tab-panel p:last-child { margin-bottom: 0; }

.gallery-more-wrap { margin-top: 14px; }
.btn-gallery-more {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.btn-gallery-more:hover { background: var(--ink); color: #FAF7F2; }
