/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --gold:        #C4A35A;
  --gold-light:  #E2CFA0;
  --gold-pale:   #F7F0E1;
  --gold-dark:   #8B6A2E;
  --cream:       #FDFAF4;
  --white:       #FFFFFF;
  --ink:         #2C2016;
  --ink-mid:     #5C4A38;
  --ink-soft:    #9D8070;
  --card-max:    480px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }

/* ============================================================
   BODY
============================================================ */
body {
  background: #DDD8CE;
  color: var(--ink);
  /* font-family: 'Nunito Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; */
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.1px;
}

/* ============================================================
   SITE CARD — 480px 중앙 정렬
============================================================ */
.card {
  max-width: var(--card-max);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 4px 80px rgba(0,0,0,0.14);
  position: relative;
}

/* ============================================================
   TOP NAV
============================================================ */
.top-nav {
  position: sticky; top: 0; z-index: 200;
  padding: 13px 22px;
  background: rgba(253,250,244,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,163,90,0.18);
  display: flex; align-items: center; justify-content: space-between;
}


.nav-logo {
  font-family: jjhayanmaeum, Pretendard, serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-dark); letter-spacing: 0.05em;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.nav-logo .sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.nav-links {
  list-style: none; display: flex; gap: 18px;
}
.nav-links a {
  font-family: Pretendard, serif;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mid);
  text-decoration: none; transition: color .2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }

@media (max-width: 479px) {
  .nav-links { display: none; }
  body { padding-bottom: 58px; }

  /* HERO 풀스크린 — top-nav을 hero 위로 띄워서 100dvh 차지 */
  .top-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    justify-content: center;
  }
  #hero {
    min-height: 100dvh;
    max-height: none;
    padding-bottom: 130px;
  }
  /* btm-nav(고정 하단바) 위로 scroll 인디케이터 띄움 */
  .hero-scroll { bottom: 78px; }
}

/* ============================================================
   MOBILE BOTTOM TAB
============================================================ */
.btm-nav {
  display: none;
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--card-max);
  z-index: 300;
  background: rgba(253,250,244,0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(196,163,90,0.2);
  padding: 14px 0 max(9px, env(safe-area-inset-bottom));
}
@media (max-width: 479px) { .btm-nav { display: flex; } }
.btm-nav a {
  font-family: Pretendard, serif;
  font-weight: 500;
  
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  font-size: 14px; letter-spacing: -0.2px;
  text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; transition: color .2s;
}
.btm-nav a.active { color: var(--gold); }
.btm-nav svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* ============================================================
   SECTION HELPERS
============================================================ */
.sec        { padding: 68px 28px; }
.sec-alt    { padding: 68px 28px; background: var(--white); }
.sec-tinted { padding: 68px 28px; background: var(--gold-pale); }

.sec-hd { text-align: center; margin-bottom: 44px; }
.sec-lbl {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.sec-ttl {
  font-family: jjhayanmaeum, Pretendard, serif;
  font-size: 28px; font-weight: 500;
  color: var(--ink); line-height: 1.1;
}
.ornament {
  display: flex; align-items: center; gap: 10px;
  width: 80px; margin: 16px auto 0;
}
.ornament-line { flex: 1; height: 1px; background: var(--gold-light); }
.ornament-gem  {
  width: 6px; height: 6px; flex-shrink: 0;
  background: var(--gold); transform: rotate(45deg);
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: min(100dvh, 900px);
  max-height: 900px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 96px 32px 110px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.hero-bg-stack {
  position: absolute;
  top: -15%; left: 0; right: 0;
  height: 130%;
  z-index: -2;
  will-change: transform;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideshow 28s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-bg:nth-child(1) { animation-delay:  0s; }
.hero-bg:nth-child(2) { animation-delay:  7s; }
.hero-bg:nth-child(3) { animation-delay: 14s; }
.hero-bg:nth-child(4) { animation-delay: 21s; }

@keyframes heroSlideshow {
  0%   { opacity: 0; transform: scale(1.00); }
  4%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.12); }
  29%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.00); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; opacity: 1; }
  .hero-bg:not(:last-child) { display: none; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(253,250,244,0.15) 0%,
      rgba(253,250,244,0.55) 65%,
      rgba(253,250,244,0.85) 100%),
    linear-gradient(180deg,
      rgba(44,32,22,0.18) 0%,
      rgba(253,250,244,0.10) 35%,
      rgba(253,250,244,0.55) 70%,
      rgba(253,250,244,0.95) 100%);
  z-index: -1;
}
.hero-date {
  font-family:  jjhayanmaeum, Pretendard, serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.hero-venue {
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mid);
  margin-top: 9px; line-height: 1.9;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

/* Hero 텍스트 등장 딜레이 — 페이지 로드 후 순차 페이드인 */
#hero .rv {
  transition-duration: 1.1s;
}
#hero .hero-date.rv  { transition-delay: 0.6s; }
#hero .hero-venue.rv { transition-delay: 0.95s; }


/* ============================================================
   HERO 꽃잎 애니메이션 — 결혼 축하 분위기
============================================================ */
.petals {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -30px;
  width: 12px; height: 9px;
  background: radial-gradient(ellipse at 30% 30%,
    #FFF1E6 0%,
    #F8CFC2 55%,
    #E5A6AC 100%);
  border-radius: 60% 30% 60% 30% / 60% 50% 60% 50%;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 3px rgba(180,120,100,0.12));
  animation-name: petalFallA;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.petal:nth-child(1)  { left:  3%; animation-name: petalFallA; animation-duration: 11s; animation-delay:  0s; }
.petal:nth-child(2)  { left: 11%; animation-name: petalFallB; animation-duration:  9s; animation-delay:  3s; width: 9px;  height: 7px; }
.petal:nth-child(3)  { left: 19%; animation-name: petalFallA; animation-duration: 13s; animation-delay:  1s; }
.petal:nth-child(4)  { left: 26%; animation-name: petalFallB; animation-duration: 10s; animation-delay:  5s; }
.petal:nth-child(5)  { left: 33%; animation-name: petalFallA; animation-duration: 14s; animation-delay:  2s; width: 14px; height: 10px; }
.petal:nth-child(6)  { left: 41%; animation-name: petalFallB; animation-duration:  8s; animation-delay:  6s; width: 9px;  height: 7px; }
.petal:nth-child(7)  { left: 48%; animation-name: petalFallA; animation-duration: 12s; animation-delay:  4s; }
.petal:nth-child(8)  { left: 55%; animation-name: petalFallB; animation-duration: 10s; animation-delay:  0s; }
.petal:nth-child(9)  { left: 63%; animation-name: petalFallA; animation-duration: 13s; animation-delay:  7s; width: 14px; height: 10px; }
.petal:nth-child(10) { left: 70%; animation-name: petalFallB; animation-duration:  9s; animation-delay:  2s; width: 9px;  height: 7px; }
.petal:nth-child(11) { left: 77%; animation-name: petalFallA; animation-duration: 12s; animation-delay:  5s; }
.petal:nth-child(12) { left: 84%; animation-name: petalFallB; animation-duration: 11s; animation-delay:  1s; }
.petal:nth-child(13) { left: 91%; animation-name: petalFallA; animation-duration: 10s; animation-delay:  4s; width: 9px;  height: 7px; }
.petal:nth-child(14) { left: 97%; animation-name: petalFallB; animation-duration: 13s; animation-delay:  6s; }

@keyframes petalFallA {
  0%   { opacity: 0;    transform: translate3d(0, 0, 0)         rotate(0deg); }
  10%  { opacity: 0.85; }
  50%  { opacity: 0.85; transform: translate3d(28px, 470px, 0)  rotate(360deg); }
  90%  { opacity: 0.5;  }
  100% { opacity: 0;    transform: translate3d(-12px, 950px, 0) rotate(720deg); }
}
@keyframes petalFallB {
  0%   { opacity: 0;    transform: translate3d(0, 0, 0)         rotate(0deg); }
  10%  { opacity: 0.8;  }
  50%  { opacity: 0.8;  transform: translate3d(-32px, 470px, 0) rotate(-300deg); }
  90%  { opacity: 0.45; }
  100% { opacity: 0;    transform: translate3d(18px, 950px, 0)  rotate(-540deg); }
}

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

/* Hero 텍스트는 꽃잎 위에 — 가독성 보호 */
#hero .hero-date,
#hero .hero-venue { position: relative; z-index: 2; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--ink-soft); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  animation: bobble 2.2s ease-in-out infinite;
}
.hero-scroll-bar {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   D-DAY COUNTER
============================================================ */
#counter { background: var(--gold-pale); }
.counter-inner {
  padding: 64px 28px;
  text-align: center;
  border-top: 1px solid rgba(196,163,90,0.22);
  border-bottom: 1px solid rgba(196,163,90,0.22);
}
.counter-lbl {
  font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid rgba(196,163,90,0.28);
  margin-bottom: 24px;
}
.counter-row {
  display: flex; justify-content: center;
  align-items: center; gap: 8px;
}
.cu { text-align: center; }
.cu-num {
  /* font-family: 'Cormorant Garamond', 'Pretendard Variable', Pretendard, serif; */
  font-family: jjhayanmaeum, Pretendard, serif;
  font-size: 56px; font-weight: 300;
  color: var(--ink); line-height: 1;
}
@media (max-width: 360px) { .cu-num { font-size: 48px; } }
.cu-tag {
  font-size: 12px; letter-spacing: 0.2em;
  font-family: jjhayanmaeum, Pretendard, serif;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 4px;
}
.cu-sep {
  font-family: 'Cormorant Garamond', 'Pretendard Variable', Pretendard, serif;
  font-size: 42px; color: var(--gold-light); margin-bottom: 18px;
}

/* ============================================================
   WEDDING DAY CALENDAR
============================================================ */
.cal-wrap {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.cal-lbl {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.cal-month-yr {
  font-family: jjhayanmaeum, Pretendard, serif;
  font-size: 24px; font-weight: 600;
  color: var(--ink); line-height: 1; margin-bottom: 32px;
}
.cal-month-yr em {
  font-size: 16px; font-style: normal;
  color: var(--ink-soft); letter-spacing: 0.14em;
  vertical-align: middle; margin-left: 6px;
}
.cal {
  width: 100%; border-collapse: separate; border-spacing: 0;
  table-layout: fixed;
}
.cal thead th {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 400;
  color: var(--ink-soft);
  padding-bottom: 16px; text-align: center;
}
.cal thead th.th-sun { color: #B85C5C; }
.cal thead th.th-sat { color: var(--gold-dark); }
.cal tbody td {
  text-align: center;
  height: 56px;
  padding: 0;
  vertical-align: middle;
  font-size: 15px; font-weight: 500;
  color: var(--ink-mid); line-height: 1;
}
.cal tbody td.empty    { color: transparent; pointer-events: none; }
.cal tbody td.td-sun   { color: #B85C5C; }
.cal tbody td.td-sat   { color: var(--gold-dark); }
.cal tbody td.td-other { color: #CBBFB5; }
.cal tbody td.td-wedding {
  position: relative;
  padding: 0;
}
.cal-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.cal-circle span {
  font-size: 15px; font-weight: 600;
  color: var(--white); line-height: 1;
}
.cal-heart {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 10px; color: var(--gold);
  letter-spacing: 0;
  line-height: 1;
}
.cal-time {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 24px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink-mid);
}
.cal-time strong { color: var(--gold-dark); font-weight: 600; }

/* ============================================================
   GALLERY
============================================================ */
#gallery { padding: 0; background: var(--white); }
.gallery-header { padding: 68px 28px 40px; text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 0 0 4px;
}
.gi {
  overflow: hidden; cursor: pointer;
  position: relative; background: var(--gold-pale);
  aspect-ratio: 4/5;
  
}
.gi:last-child {
  grid-column: span 3;
  aspect-ratio: 16/9;
}

.gi img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.gi:hover img { transform: scale(1.06); }
.gi::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(196,163,90,0);
  transition: background .3s; pointer-events: none;
}
.gi:hover::after { background: rgba(196,163,90,0.1); }

/* Lightbox */
.lb {
  display: none; position: fixed; inset: 0;
  background: rgba(20,14,8,0.96); z-index: 500;
  align-items: center; justify-content: center; padding: 20px;
}
.lb.open { display: flex; }
.lb-stage {
  width: 100%; max-width: 960px;
  height: 88dvh;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  position: relative;
}
.lb-track {
  display: flex;
  height: 100%;
  transition: transform .38s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.lb-track.dragging { transition: none; }
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
}
.lb-slide img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
  display: block;
}

/* Instagram 스타일 dots — 현재 페이지 표시 */
.lb-dots {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 40px);
  overflow: hidden;
}
.lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}
.lb-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(196,163,90,0.4);
  color: var(--gold-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.lb-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 17px; }
.lb-nav   { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 18px; z-index: 10;}
.lb-prev  { left: 10px; }
.lb-next  { right: 10px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   LOCATION
============================================================ */
.loc-card {
  border: 1px solid var(--gold-light);
  background: var(--white);
  padding: 38px 26px;
  text-align: center;
  position: relative;
}
.loc-card::before,
.loc-card::after,
.loc-card .c-bl,
.loc-card .c-tr {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border-color: var(--gold); border-style: solid;
}
.loc-card::before { top: -1px;    left: -1px;  border-width: 2px 0 0 2px; }
.loc-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.loc-card .c-bl   { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.loc-card .c-tr   { top: -1px;    right: -1px; border-width: 2px 2px 0 0; }
.loc-name {
  font-family: 'Cormorant Garamond', 'Pretendard Variable', Pretendard, serif;
  font-size: 21px; font-weight: 400;
  color: var(--ink); line-height: 1.35; margin-bottom: 7px;
}
.loc-hall {
  font-size: 14px; letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.loc-addr {
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.9; margin-bottom: 22px;
  font-weight: 500;
}
.loc-chips {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px;
}
.chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-pale);
  padding: 9px 14px;
  font-size: 11px; color: var(--ink-mid);
  border-radius: 8px;
}
.chip-icon {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.chip-icon svg { width: 16px; height: 16px; display: block; }
.chip-lines {
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.5;
  text-align: left;
  font-size: 11px;
}
.chip-lines > div, .chip-text {
  font-size: 13px;
}
.chip:has(.chip-lines) { align-items: flex-start; }
.chip:has(.chip-lines) .chip-icon { margin-top: 2px; }
.chip strong { color: var(--gold-dark); font-weight: 600; }
.chip strong.line-1 { color: #15326B; }
.chip strong.line-2 { color: #1F5E2A; }
.map-btns { display: flex; gap: 8px; }
.btn {
  flex: 1; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px; letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all .22s; border: none;
}
.btn-solid          { background: var(--gold);  color: var(--white); }
.btn-solid:hover    { background: var(--gold-dark); }
.btn-line           { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.btn-line:hover     { background: var(--gold-pale); }

/* ============================================================
   ACCOUNT — 마음 전하실 곳
============================================================ */
.ac-intro {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 28px;
}
.ac-groups {
  display: flex; flex-direction: column; gap: 10px;
}
.ac-grp {
  border: 1px solid var(--gold-light);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.ac-sum {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.ac-sum::-webkit-details-marker { display: none; }
.ac-side {
  font-size: 13px; font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
}
.ac-chev {
  color: var(--gold);
  transition: transform .25s ease;
}
.ac-grp[open] .ac-chev { transform: rotate(180deg); }

.ac-list {
  list-style: none;
  border-top: 1px solid rgba(196,163,90,0.18);
}
.ac-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(196,163,90,0.12);
}
.ac-item:last-child { border-bottom: none; }
.ac-info { min-width: 0; flex: 1; }
.ac-role {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.ac-name {
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.ac-bank {
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}
.ac-copy {
  flex-shrink: 0;
  background: transparent;
  color: var(--gold-dark);
  border-radius: 6px;
  border: 1px solid var(--gold);
  padding: 8px 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all .2s;
}
.ac-copy:hover { background: var(--gold-pale); }
.ac-copy.copied {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.ac-toast {
  position: fixed;
  left: 50%; bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: var(--cream);
  padding: 11px 22px;
  font-size: 12px; letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 400;
}
.ac-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   GUESTBOOK
============================================================ */
.gb-form { margin-bottom: 44px; }
.fr2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 8px;
}
.fg { margin-bottom: 8px; }
.fl {
  display: block;
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 7px;
}
.fi, .ft {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.35);
  border-radius: 6px;
  padding: 13px 14px;
  font-size: 13px; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.fi::placeholder, .ft::placeholder { color: var(--ink-soft); opacity: .55; }
.fi:focus, .ft:focus { border-color: var(--gold); }
.ft { height: 110px; resize: vertical; }
.fs-btn {
  width: 100%; padding: 16px;
  background: var(--gold); color: var(--white);
  border: none; cursor: pointer;
  border-radius: 8px;
  font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; transition: background .2s; margin-top: 6px;
}
.fs-btn:hover { background: var(--gold-dark); }
.toast { display: none; text-align: center; padding: 28px 16px; }
.toast.show { display: block; }
.toast-ico { font-size: 30px; margin-bottom: 8px; }
.toast-txt {
  font-family: 'Cormorant Garamond', 'Pretendard Variable', Pretendard, serif;
  font-size: 19px; font-style: italic; color: var(--gold-dark);
}
.msg-lbl {
  text-align: center;
  font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg {
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.22);
  border-radius: 8px;
  padding: 18px 20px 15px;
  position: relative;
}
.msg-q {
  position: absolute; top: 8px; left: 15px;
  font-family: 'Cormorant Garamond', 'Pretendard Variable', Pretendard, serif;
  font-size: 38px; color: var(--gold-light);
  line-height: 1; pointer-events: none;
}
.msg-body {
  font-size: 13px; color: var(--ink-mid);
  line-height: 1.75; margin-top: 12px;
}
.msg-from {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--gold); margin-top: 10px; text-align: right;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--white);
  border-top: 1px solid var(--gold-light);
  text-align: center;
  padding: 44px 28px max(44px, env(safe-area-inset-bottom));
}
.ft-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 22px;
}
.ft-names {
  font-family: jjhayanmaeum, Pretendard, serif;
  font-size: 22px; 
  font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}

.ft-names span {
  font-size:16px;
}
.ft-date {
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-soft);
}

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.rv.in { opacity: 1; transform: translateY(0); }
