@font-face {
  font-family: "Gowun Batang";
  src: url("./assets/fonts/gowun-batang-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gowun Batang";
  src: url("./assets/fonts/gowun-batang-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #2c2a28;
  --muted: color(srgb .172549 .164706 .156863 / .66);
  --faint: color(srgb .172549 .164706 .156863 / .42);
  --line: #ededed;
  --accent: #d09a9a;
  /* 검사 환경의 일시적인 대체 서체가 아니라 원본이 지정한 웹폰트를 사용한다. */
  --reference-font: "Gowun Batang", Batang, AppleMyungjo, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Georgia, serif;
  font-family: var(--reference-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: normal;
  word-spacing: 0;
  font-kerning: auto;
  color: var(--text);
  background: #e6e6e6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2, dl, dd { margin: 0; }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; color: var(--muted); background: #f7f6f5; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #eadbd9; color: var(--text); }
.invitation { width: 100%; max-width: 430px; min-width: 280px; margin-inline: auto; background: #fff; box-shadow: 0 0 40px #00000014; overflow-wrap: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cover { position: relative; overflow: hidden; line-height: 0; background: #263127; }
.cover-photo { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover-frame { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.cover-info-layer { position: absolute; top: 0; left: 0; z-index: 2; display: block; width: 100%; height: auto; }
.section { padding: 80px 20px; text-align: center; background: #fff; }
.section-title { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1px auto; row-gap: 35px; margin-bottom: 36px; font-family: Georgia, var(--reference-font); font-size: 21px; font-weight: 400; line-height: 1.2; color: #333; letter-spacing: .12em; overflow-wrap: anywhere; }
.section-title::before, .greeting-decoration::before { content: ""; justify-self: center; width: 54px; height: 1px; background: var(--line); }
.section-title > span { display: block; min-width: 0; text-box-trim: trim-both; text-box-edge: text alphabetic; }
.greeting-decoration { display: grid; grid-template-rows: 1px 0; row-gap: 35px; margin-bottom: 36px; }
.message { margin-bottom: 30px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.message p + p { margin-top: 27px; }
.family { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; align-items: center; column-gap: 0; row-gap: 2px; font-size: 15px; line-height: 2.1; }
.family p { display: contents; }
.family .parents { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-weight: 400; }
.family .parents > span:not(.dot) { font-weight: 500; }
.family .relation, .family .order, .family strong { padding-inline-start: 4px; }
.family strong { font-weight: 500; text-align: left; }
.dot { color: var(--faint); font-weight: 400; }
.calendar-content { width: 100%; max-width: 340px; margin-inline: auto; }
.wedding-date { margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.month { margin-bottom: 14px; line-height: 1.15; }
.month > span { display: block; font-size: 40px; }
.month small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.calendar { width: 100%; max-width: 320px; margin: 0 auto; table-layout: fixed; border-collapse: collapse; }
.calendar th { padding: 8px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.calendar td { padding: 7px 0; font-size: 13px; }
.calendar th:first-child, .calendar td:first-child { color: var(--accent); }
.calendar-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-block: calc((1em - 28px) / 2); }
.calendar-mark > span { position: relative; color: #2c2a28; }
.calendar-mark svg { position: absolute; width: 42px; height: 39px; fill: none; color: var(--accent); stroke: currentColor; stroke-width: 1.6; }
.countdown { margin-top: 20px; font-size: 15px; color: #333; }
.countdown strong { color: var(--text); font-weight: 600; }
.venue { margin-bottom: 12px; font-size: 17px; font-weight: 700; }
.map-placeholder { margin-top: 28px; height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border: 1px solid #e9e5e0; background: #f7f5f2; color: #716b62; font-size: 14px; }
.map-placeholder svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.directions { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.directions dt { display: inline-flex; gap: 7px; margin-bottom: 8px; }
.directions dt > span { font-size: 15px; font-weight: 600; line-height: 1.6; }
.directions dd { font-size: 15px; line-height: 1.5; }
.gallery-section { padding-inline: 0; }
.gallery-section .section-title { padding-inline: 20px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-photo { flex: 0 0 100%; min-width: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.gallery-pager { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 20px 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.gallery-pager button { position: relative; border: 0; border-radius: 0; background: none; padding: 2px 8px; color: var(--faint); font-size: 17px; line-height: 1; }
.gallery-pager button:disabled { opacity: .35; }
.gallery-pager span { font-size: 13px; color: var(--faint); letter-spacing: .06em; }
.gallery-pager b { color: var(--text); font-weight: 600; }
body.is-gallery-open { overflow: hidden; }
.gallery-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; touch-action: pan-y pinch-zoom; }
.gallery-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gallery-lightbox::backdrop { background: #141210eb; }
.lightbox-stage { --lightbox-slide-gap: 24px; width: 90%; max-width: 480px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.lightbox-rail { display: flex; column-gap: var(--lightbox-slide-gap); width: 100%; transform: translate3d(calc(-100% - var(--lightbox-slide-gap)), 0, 0); }
.lightbox-rail.is-dragging { will-change: transform; cursor: grabbing; }
.lightbox-slide { flex: 0 0 100%; min-width: 0; display: flex; align-items: center; }
.lightbox-stage img { display: block; width: 100%; height: auto; max-height: 86vh; max-height: 86dvh; object-fit: contain; }
.lightbox-close, .lightbox-nav { font-family: "Gowun Batang", 바탕, Batang, AppleMyungjo, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Georgia, serif; font-weight: 400; padding: 1px 6px; border: 0; background: none; color: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; font-size: 30px; line-height: 1; }
.lightbox-close::after { content: ""; position: absolute; inset: -2px; }
.lightbox-close, .lightbox-nav, .lightbox-counter { z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 36px; line-height: 1; text-shadow: 0 1px 3px #0009; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-nav:focus-visible { outline-color: #fff; }
.lightbox-counter { position: absolute; inset: auto 0 max(26px, env(safe-area-inset-bottom)); text-align: center; color: #fffc; font-size: 13px; letter-spacing: .05em; }
.gallery-photo:focus-visible { outline-offset: -5px; }
.lightbox-close:focus-visible { outline-color: #fff; }
.account-description { margin-bottom: 22px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.accounts { display: grid; gap: 20px; }
.account { text-align: center; }
.account summary { display: flex; justify-content: space-between; align-items: center; padding: 0 18px; height: 48px; border: 1px solid var(--line); border-radius: 4px; background: #fff; list-style: none; cursor: pointer; }
.account summary > span { font-size: 15px; line-height: 18px; font-weight: 300; }
.account summary::-webkit-details-marker { display: none; }
.account summary svg { width: 20px; height: 14px; fill: none; stroke: #444; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.account[open] summary svg { transform: rotate(180deg); }
.account-body { padding: 16px 20px 0; }
.account-person-content { padding: 10px 0 20px; }
.account-person { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; font-size: 15px; line-height: 18px; }
.account-person span { color: var(--faint); }
.account-person strong { font-weight: 600; }
.account-number { margin-bottom: 12px; font-size: 15px; color: var(--muted); }
.copy-account { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 4px; font-size: 15px; line-height: 18px; }
.copy-account svg { width: 16px; height: 16px; }
button { border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text); transition: background .15s ease, border-color .15s ease; }
.share-section { padding-bottom: max(80px, env(safe-area-inset-bottom)); }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.share-buttons > button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 12px; border-radius: 7px; font-size: 15px; line-height: 18px; }
.action-status { line-height: 1.6; font-size: 13px; }
.action-status:not(:empty) { margin-top: 8px; }
#manual-copy, noscript { grid-column: 1 / -1; }
#manual-copy label { display: block; font-size: 13px; line-height: 1.8; }
#copy-value { margin-top: 10px; width: 100%; min-height: 44px; padding: 10px; border: 1px solid #d8cec5; border-radius: 4px; color: var(--text); background: #fff; font-size: 16px; }
.invitation[data-motion-ready] .section[data-motion-state="pending"] [data-motion-item] {
  opacity: 0;
  transform: translate3d(0, var(--motion-y, 22px), 0);
  pointer-events: none;
}
.invitation[data-motion-ready] .section[data-motion-state="seen"] [data-motion-item] {
  animation: section-entrance 1.05s cubic-bezier(.22,.62,.28,1) var(--motion-delay, 0ms) backwards;
  backface-visibility: hidden;
}
@keyframes section-entrance {
  from { opacity: 0; transform: translate3d(0, var(--motion-y, 22px), 0); }
  to { opacity: 1; transform: translateZ(0); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: reduce) {
  .invitation[data-motion-ready] .section [data-motion-item] { opacity: 1; transform: none; pointer-events: auto; }
}
