:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #3e4142;
  background: #f8f9f8;
  font-size: 17px;
  font-synthesis: none;
  --blue: #39799f;
  --rose: #a65d7d;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; -webkit-text-size-adjust: 100%; }
button, textarea { font: inherit; }
button { color: inherit; border: 0; padding: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 2px solid #39799f; outline-offset: 5px; }
button:disabled { cursor: default; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.invitation { max-width: 430px; margin: 0 auto; background: #fff; box-shadow: 0 6px 50px #37453806; }
.hero { position: relative; padding: 58px 23px 38px; text-align: center; isolation: isolate; }
.save-the-date { color: #92938d; font: italic 23px/1.5 Georgia, "Times New Roman", serif; letter-spacing: .035em; margin-bottom: 22px; }
.polaroid { width: min(306px, 87%); padding: 12px 12px 34px; margin: 0 auto; background: #f7f7f5; box-shadow: 0 2px 2px #3332; }
.main-photo, .polaroid .photo-placeholder { width: 100%; aspect-ratio: 5/3; object-fit: contain; background: #eeefec; }
.photo-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #848b85; font-size: 15px; letter-spacing: .04em; gap: 8px; }
.small-star { color: #b7c5b9; font-size: 30px; line-height: 1; }
.couple-names { display: grid; gap: 18px; margin: 38px 0 72px; font-size: 23px; line-height: 1.5; font-weight: 400; letter-spacing: .06em; }
.hero-date { font-size: 17px; font-weight: 500; letter-spacing: .035em; }
.english-invitation { margin-top: 12px; font-size: 11px; line-height: 1.9; letter-spacing: .12em; text-transform: uppercase; }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.star-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.section { text-align: center; padding-left: 26px; padding-right: 26px; }
.section h2 { font-family: "AppleMyungjo", "Batang", "바탕", Georgia, serif; font-size: 25px; line-height: 1.5; font-weight: 400; letter-spacing: .035em; color: #292d2c; }
.greeting { padding: 98px 18px 0; }
.greeting-names { margin-bottom: 46px; }
.greeting-names p + p { margin-top: 9px; }
.groom { color: var(--blue); }
.bride { color: var(--rose); }
.invitation-copy { font-size: clamp(16px, 4.36vw, 17px); line-height: 2.15; word-break: keep-all; overflow-wrap: break-word; letter-spacing: -.065em; }
.invitation-copy p + p { margin-top: 28px; }
.flower-notice { margin-top: 38px; font-size: 14px; letter-spacing: -.045em; word-break: keep-all; }
.schedule { padding-top: 108px; }
.event-date { margin-top: 18px; font-size: 17px; letter-spacing: -.035em; }
.calendar-month { margin: 36px 0 18px; font-size: 24px; color: #777a78; }
.calendar { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid #999e99; border-bottom: 1px solid #999e99; font-size: 16px; }
.calendar th { font-weight: 400; padding-top: 18px; }
.calendar td { height: 69px; padding-bottom: 14px; }
.calendar th:first-child, .calendar td:first-child { color: #b56467; }
.calendar th:last-child, .calendar td:last-child { color: #718ead; }
.calendar time { display: grid; width: 36px; height: 36px; margin: auto; place-items: center; line-height: 1; }
.wedding-day time { background: #edf2ed; border-radius: 50%; color: #4c6958; font-weight: 600; }
.gallery-section { padding-top: 106px; padding-left: 22px; padding-right: 22px; }
.gallery-view { position: relative; margin-top: 34px; }
.gallery-strip { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 1px; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip > * { flex: 0 0 100%; min-width: 0; aspect-ratio: 4/5; scroll-snap-align: center; scroll-snap-stop: always; background: #f6f7f4; }
.photo-cell { display: block; position: relative; }
.photo-cell img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { display: grid; place-items: center; width: 46px; height: 46px; position: absolute; top: calc(50% - 23px); border-radius: 50%; background: #fffffff0; box-shadow: 0 2px 12px #323c3014; color: #555c57; }
.gallery-arrow.previous { left: 6px; }
.gallery-arrow.next { right: 6px; }
.previous svg { transform: rotate(180deg); }
.gallery-counter { margin-top: 20px; font-size: 15px; letter-spacing: .08em; min-height: 0; }
.gallery-counter:empty { display: none; }
.gallery-hint { margin-top: 12px; font-size: 14px; color: #777d78; }
.gifts { padding-top: 106px; }
.gift-message { margin-top: 28px; font-size: 16px; line-height: 1.8; letter-spacing: -.04em; word-break: keep-all; }
.accounts { margin-top: 36px; text-align: left; }
.account-group { border: 1px solid #e5e7e3; border-radius: 6px; margin-top: 12px; padding: 0 16px; }
.account-group summary { min-height: 61px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.account-group summary::-webkit-details-marker { display: none; }
.account-group summary svg { color: #969d97; width: 23px; height: 23px; transform: rotate(180deg); }
.account-group[open] summary svg { transform: none; }
.account-group ul { list-style: none; padding: 0 0 16px; margin: 0; color: #414640; }
.account-person + .account-person { margin-top: 14px; }
.person-name { font-size: 17px; }
.person-name > span { margin-right: 6px; font-size: 16px; }
.account-line { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.account-line p { flex: 1; font-size: 15px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.account-number { white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: #909790; }
.copy-account svg { width: 19px; height: 19px; }
.sharing { padding: 72px 24px 76px; text-align: center; }
.share-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 86px; min-height: 78px; font-size: 15px; color: #737c80; }
.share-button svg { width: 25px; height: 25px; }
dialog { color: inherit; border: 0; }
dialog::backdrop { background: #252a27b8; }
.media-dialog { width: min(900px, 96vw); max-width: 96vw; max-height: 94svh; padding: 0; overflow: hidden; background: #f5f6f3; border-radius: 4px; }
.media-frame { overflow: hidden; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; }
.media-track { display: flex; width: 100%; transform: translate3d(-100%, 0, 0); }
.media-slide { flex: 0 0 100%; width: 100%; height: 78svh; object-fit: contain; background: #f5f6f3; }
.modal-close, .photo-prev, .photo-next { position: absolute; z-index: 2; border-radius: 50%; background: #ffffffed; color: #4b554e; box-shadow: 0 2px 9px #0000000a; }
.modal-close { top: 10px; right: 10px; }
.photo-prev, .photo-next { top: calc(50% - 22px); }
.photo-prev { left: 10px; }
.photo-prev svg { transform: rotate(180deg); }
.photo-next { right: 10px; }
.photo-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 3px 12px; background: #ffffffe6; border-radius: 20px; font-size: 14px; pointer-events: none; }
.manual-dialog { width: min(350px, 90vw); padding: 28px 22px 20px; border-radius: 10px; text-align: center; }
.manual-dialog h2 { font-size: 18px; font-weight: 500; }
.manual-dialog textarea { margin: 20px 0 12px; width: 100%; resize: none; padding: 12px; font-size: 16px; border: 1px solid #d5dbd5; border-radius: 4px; background: #fafbf9; color: #303b33; }
.text-button { min-height: 44px; min-width: 100px; border-radius: 4px; background: #edf2ed; }
.copy-helper { position: fixed; left: -9999px; top: 0; font-size: 16px; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; background: #37473eea; color: #fff; border-radius: 30px; font-size: 14px; padding: 10px 20px; text-align: center; z-index: 10; pointer-events: none; }
.toast:empty { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (max-width: 359px) {
  .section { padding-left: 18px; padding-right: 18px; }
  .greeting { padding-left: 12px; padding-right: 12px; }
  .account-group { padding-left: 12px; padding-right: 12px; }
  .account-line p { font-size: 14px; }
  .english-invitation { font-size: 10px; }
}
