/* ============================================================
   Elegant / minimal 청첩장
   Palette: ivory background, warm charcoal text, soft gold accent
   ============================================================ */

:root {
  --bg:        #f7f3ec;   /* ivory */
  --card:      #fffdf9;   /* near-white card */
  --ink:       #3a3632;   /* warm charcoal */
  --ink-soft:  #6f6a63;   /* muted text */
  --line:      #e4ddd1;   /* hairlines */
  --gold:      #b79a63;   /* accent */
  --serif:     "Nanum Myeongjo", "Noto Serif KR", serif;
  --body:      "Noto Serif KR", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

/* Phone-width card, centered on any screen */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ---------- Shared section bits ---------- */
section { padding: 44px 28px; text-align: center; }

.section__label {
  font-family: var(--serif);
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.divider span { color: var(--gold); font-size: 0.9rem; opacity: 0.8; }
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 46px;
  background: var(--line);
  margin: 0 14px;
}

/* ---------- Cover ---------- */
.cover { padding-top: 52px; padding-bottom: 40px; }

.cover__eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 26px;
}

.cover__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 200px 200px 6px 6px; /* arched top, like a printed card */
  margin-bottom: 30px;
  background: #ece6da;
}
.cover__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cover__names {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.cover__names span { color: var(--gold); font-weight: 400; margin: 0 6px; }

.cover__date {
  font-family: var(--serif);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cover__place { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Greeting ---------- */
.greeting__body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 2.1;
}
.greeting__families {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.greeting__families p { margin: 6px 0; }
.greeting__families strong { color: var(--ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery__item {
  border: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ece6da;
  border-radius: 3px;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Venue ---------- */
.venue__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.venue__addr { font-size: 0.92rem; color: var(--ink-soft); }
.venue__tel  { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.venue__link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.venue__link:hover { border-color: var(--gold); }

.venue__map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.venue__apps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}
.map-btn {
  flex: 1;
  padding: 11px 0;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.map-btn:hover { background: var(--bg); border-color: var(--gold); }

.venue__info { text-align: left; border-top: 1px solid var(--line); padding-top: 20px; }
.venue__info-row {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.venue__info-label {
  flex: 0 0 48px;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer { padding: 40px 28px 52px; }
.footer__names {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer__thanks { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: none;
  color: #fff; font-size: 2.4rem;
  line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 3rem;
  cursor: pointer; padding: 0 18px;
  opacity: 0.75; transition: opacity 0.2s;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
