:root {
  --rose: #cf8f96;
  --rose-light: #f5c9ce;
  --groom: #5f8b9b;
  --bride: #bb7273;
  --ivory: #f5f3ed;
  --paper: #fffdfb;
  --snap: #f8f4f1;
  --text: #383737;
  --muted: #7f7878;
  --line: #e4dedd;
  --shadow: 0 18px 55px rgba(62, 43, 43, .10);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #eeeae7; }
body {
  margin: 0;
  color: var(--text);
  background: #eeeae7;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-shell {
  width: min(100%, 440px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero { background: #fff; }
.hero-photo-wrap {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #ddd7d4;
}
.hero-photo {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), transparent 35%, rgba(0,0,0,.28));
}
.hero-copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 34px;
  color: white;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .26em;
  font-weight: 500;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.15;
  letter-spacing: .035em;
  font-weight: 400;
}
.hero h1 span { font-style: italic; font-size: .7em; opacity: .9; }
.hero-date {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .15em;
}
.hero-place {
  padding: 26px 20px 40px;
  text-align: center;
  font-size: 13px;
  line-height: 1.75;
}
.hero-place p { margin: 0; }
.scroll-cue {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .28em;
  color: var(--muted);
}

.section { padding: 84px 24px; background: var(--paper); }
.section:nth-of-type(even) { background: #fff; }
.section-inner { width: 100%; margin: 0 auto; text-align: center; }
.section-inner.narrow { max-width: 350px; }
.section-inner.wide { max-width: 392px; }
.section h2 {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .04em;
}
.section p { font-size: 14px; line-height: 2; }
.section-kicker { color: var(--rose); }

.poem {
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
  padding-top: 92px;
  padding-bottom: 96px;
}
.poem .hanja {
  margin: 0 0 14px;
  font-size: 27px;
  letter-spacing: .32em;
  text-indent: .32em;
  line-height: 1.4;
}
.hanja-reading { margin: 0; color: var(--muted); font-size: 12px !important; }
.flourish { margin: 34px 0; color: var(--rose); font-size: 22px; opacity: .8; }
.poem p:not(.hanja):not(.hanja-reading) { margin: 22px 0 0; }

.greeting { padding-top: 94px; padding-bottom: 100px; }
.greeting p { margin: 24px 0 0; }

.couple { background: var(--ivory) !important; }
.family-row { padding: 21px 0; }
.family-parents {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #665f5f;
  font-size: 13px;
}
.family-parents .dot { opacity: .55; }
.family-main {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
}
.family-main small { font-size: 11px; color: var(--muted); }
.family-main strong { font-size: 22px; font-weight: 500; letter-spacing: .08em; }
.groom-row .family-main strong { color: var(--groom); }
.bride-row .family-main strong { color: var(--bride); }
.couple-divider { margin: 7px 0; color: var(--rose); font-size: 16px; }

.wedding-day { background: #fff !important; }
.venue { margin: 0 0 40px; color: var(--muted); }
.calendar {
  margin: 44px auto 0;
  padding: 28px 20px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-title {
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .18em;
}
.calendar-title span { color: var(--rose); }
.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 8px 0;
}
.weekdays { margin-bottom: 8px; font-family: var(--sans); font-size: 10px; color: var(--muted); }
.weekdays span:first-child { color: var(--bride); }
.days span {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
}
.days span:nth-child(7n+1):not(.empty) { color: var(--bride); }
.wedding-date {
  margin: 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  color: white !important;
}
.wedding-date small {
  position: absolute;
  top: 39px;
  font-size: 7px;
  color: var(--rose);
  white-space: nowrap;
}
.countdown { margin-top: 52px; }
.countdown-label { margin-bottom: 18px !important; color: var(--muted); font-size: 12px !important; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-grid div { padding: 17px 4px; background: var(--snap); border-radius: 3px; }
.countdown-grid strong { display: block; font-family: var(--sans); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown-grid span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 7px; letter-spacing: .1em; color: var(--muted); }

.gallery-section { padding-left: 0; padding-right: 0; }
.gallery-section .section-inner > .reveal { padding: 0 24px; }
.gallery { position: relative; margin-top: 34px; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  background: #eee;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  cursor: pointer;
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-counter {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.access { background: #f9f7f5 !important; }
.venue-name { margin-bottom: 9px !important; font-size: 16px !important; }
.address { color: var(--muted); font-size: 12px !important; }
.address span[lang="ko"] { font-family: var(--sans); font-size: 11px; opacity: .75; }
.map-card {
  margin: 34px auto 0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 350px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.map-pin { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--snap); color: var(--rose); font-family: var(--sans); font-size: 19px; }
.map-card strong, .map-card span { display: block; font-family: var(--sans); }
.map-card strong { font-size: 13px; }
.map-card div span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.map-arrow { margin-left: auto; font-size: 15px !important; }
.transport { margin-top: 38px; text-align: left; border-top: 1px solid var(--line); }
.transport-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.transport-label { padding-top: 4px; color: var(--rose); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.transport-item p { margin: 0; font-size: 12px; line-height: 1.8; }

.guest-snap { background: #fff !important; }
.muted { color: var(--muted); font-size: 11px !important; }
.rsvp { background: var(--snap) !important; }
.primary-button {
  min-width: 220px;
  margin-top: 20px;
  padding: 15px 28px;
  border: 0;
  border-radius: 2px;
  background: var(--text);
  color: white;
  cursor: pointer;
}
.small-note { margin-top: 15px !important; color: var(--muted); font-size: 9px !important; line-height: 1.7 !important; }

.ending {
  padding: 92px 24px calc(92px + env(safe-area-inset-bottom));
  background: #2d2b2b;
  color: #fff;
  text-align: center;
}
.ending-inner p { line-height: 2; font-size: 13px; }
.ending-mark { margin: 0 0 32px; font-size: 24px !important; letter-spacing: .12em; }
.ending-mark span { color: var(--rose-light); font-size: .7em; }
.ending-date { margin: 32px 0 0; font-family: var(--sans); font-size: 9px !important; letter-spacing: .22em; opacity: .65; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12,12,12,.96);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #111; }
.lightbox img { max-width: 100vw; max-height: 88dvh; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: fixed;
  z-index: 5;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.lightbox-close { top: 16px; right: 18px; font-size: 34px; font-family: var(--sans); font-weight: 200; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 46px; padding: 18px; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-count { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  width: min(calc(100% - 40px), 360px);
  padding: 13px 16px;
  border-radius: 4px;
  background: rgba(35,35,35,.92);
  color: white;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.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; }

@media (min-width: 700px) {
  body { padding: 36px 0; }
  .site-shell { border-radius: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-track { scroll-behavior: auto; }
}
