:root {
  --text-body: 13px;
  --text-detail: 12px;
  --text-label: 10px;
  --text-subheading: 15px;
  --text-heading: clamp(18px, 5vw, 21px);
  --line-body: 1.75;
  --line-heading: 1.4;
  font: 300 var(--text-body)/var(--line-body) "DM Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: #202124;
  background: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3, dl, dd, ul, blockquote { margin: 0; }
p, dd, li { overflow-wrap: anywhere; word-break: keep-all; text-wrap: pretty; }
h1, h2, h3 { line-height: var(--line-heading); text-wrap: balance; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #7c6b5e; outline-offset: 3px; }
.inset { padding-inline: 6.75%; }
.centered { text-align: center; }
.label { font-size: var(--text-label); font-weight: 400; letter-spacing: .24em; }
.cover { padding-top: clamp(32px, 10vw, 48px); padding-bottom: calc(72px + 1lh); }
.cover-photo, .closing-photo { height: auto; object-fit: cover; object-position: center bottom; }
.cover-photo { width: 94%; aspect-ratio: 5 / 6; margin-inline: auto; }
.cover h1 { margin: 26px 0 12px; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.cover-message { max-inline-size: 235px; font-size: 9px; font-weight: 400; line-height: 1.7; letter-spacing: .13em; }
.cover-message span { display: block; }
.cover-date { margin-top: 21px; border-top: 1px solid; padding-top: 13px; font-size: 11px; }
.cover-date time { font-size: 12px; letter-spacing: .1em; }
.cover-date time span { white-space: nowrap; }
.cover-date p { margin-top: 4px; }
.invitation > section { padding-block: 1lh calc(88px + 1lh); }
.intro-title { max-inline-size: 18ch; margin: 24px auto 0; font-size: var(--text-heading); line-height: var(--line-heading); letter-spacing: .08em; text-wrap: balance; }
.invitation-copy { margin: 24px 0 28px; font-size: 12px; }
.invitation-copy p + p { margin-top: 1.75em; }
.family { border-top: 1px solid #262626; padding-top: 16px; font-size: var(--text-detail); }
.family p + p { margin-top: 5px; }
.family small { font-size: .85em; color: #535353; }
.family strong { font-weight: 700; }
.invitation > .event { padding-top: calc(10px + 1lh); }
.countdown { display: flex; justify-content: space-evenly; margin: 28px 0 13px; font-variant-numeric: tabular-nums; }
.countdown div { width: 22%; }
.countdown b { display: block; font-size: 25px; font-weight: 400; }
.countdown small { font-size: var(--text-label); letter-spacing: .12em; }
#countdown-copy { font-size: var(--text-detail); }
.calendar-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 21px; }
.calendar-heading time { display: grid; gap: 5px; }
.calendar-date { font-size: 36px; line-height: 1.2; letter-spacing: .045em; }
.calendar-time { font-size: var(--text-detail); }
.calendar-month { font-size: var(--text-detail); font-weight: 400; white-space: nowrap; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); font-size: var(--text-detail); row-gap: 5px; }
.calendar-days > * { display: grid; place-items: center; min-height: 31px; }
.calendar-days > :nth-child(7n + 1) { color: #994b4b; }
.calendar-days strong { place-self: center; width: 31px; background: #262626; color: #fff !important; border-radius: 50%; font-weight: 400; }
.gallery { scroll-margin-top: 28px; }
.gallery-grid { margin-top: 27px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7.5px; }
.gallery-photo { padding: 0; border: 0; background: transparent; }
.photo { aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center; background: #f2f1ef; }
.gallery .gallery-toggle { margin-top: 16px; min-height: 36px; border-radius: 8px; font-size: var(--text-label); font-weight: 400; }
.location { text-align: center; }
.location > h3 { margin-top: 24px; font-size: var(--text-subheading); font-weight: 500; }
.location > p { font-size: var(--text-detail); margin-top: 6px; }
.map-actions, .share { display: flex; }
.share button { flex: 1; }
.location .map-open { margin-top: 17px; min-height: 36px; border-radius: 8px; min-width: 108px; }
.outline { display: inline-grid; place-items: center; border: 1px solid #252525; border-radius: 0; min-height: 40px; padding: 7px 11px; background: transparent; text-decoration: none; font-size: var(--text-detail); }
.full { width: 100%; }
.location .notice-title { margin-top: 32px; letter-spacing: .18em; font-size: var(--text-label); }
.notice { text-align: left; font-size: var(--text-detail); }
.notice dt { margin: 14px 0 3px; font-weight: 500; }
.notice ul { padding-inline-start: 1.2em; }
.notice dd p { margin-top: 4px; }
.contact .label, .guestbook .label, .accounts .label { margin-bottom: 24px; }
details { border-top: 1px solid #252525; }
details:last-child { border-bottom: 1px solid #252525; }
summary { list-style: none; padding: 14px 2px; font-size: var(--text-detail); line-height: var(--line-heading); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; }
details[open] summary::after { content: '×'; }
.detail-row { min-height: 46px; padding: 8px 0; border-top: 1px solid #e2e0dd; display: flex; align-items: center; justify-content: space-between; font-size: var(--text-detail); gap: 8px; }
.detail-row small { display: block; font-size: var(--text-detail); }
.contact-actions { display: flex; gap: 8px; }
.contact-actions a { min-width: 34px; text-align: center; padding: 3px 5px; border: 1px solid #252525; text-decoration: none; }
.copy, .guest-delete { background: transparent; border: 1px solid #252525; font-size: var(--text-label); padding: 4px 9px; }
.copy { min-width: 48px; letter-spacing: .24em; }
.accounts > p { margin-bottom: 24px; font-size: var(--text-detail); }
.guestbook .outline { border-radius: 8px; min-height: 36px; }
#guest-status { margin-bottom: 13px; font-size: var(--text-detail); }
#guest-entries { list-style: none; padding: 0; }
#guest-entries li { border-top: 1px solid #dedede; padding: 12px 0; }
#guest-entries p { margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.guest-entry-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
#guest-more { margin-bottom: 7px; }
.closing { background: #e6e4e0; padding-top: calc(25px + 1lh); padding-bottom: 74px; }
.closing-photo { aspect-ratio: 6 / 7; }
.closing .label { margin: 39px 0 18px; font-size: 15px; letter-spacing: .28em; }
.closing-quote { max-inline-size: 185px; margin-inline: auto; font-size: 11px; line-height: 1.9; }
.closing-quote p { text-wrap: balance; }
.closing-quote p + p { margin-top: 15px; }
.closing-quote cite { font-style: normal; }
.heart { display: inline-block; margin: 26px 0 21px; min-width: 76px; border-radius: 9px; font-size: 13px; }
.heart[aria-pressed="true"] { background: #292826; color: #fff; }
.share button + button { border-left: 0; }
dialog { color: inherit; }
dialog::backdrop { background: rgb(0 0 0 / .46); }
body:has(dialog[open]) { overflow: hidden; }
body:has(dialog[open]) .invitation { overflow: hidden; }
.close { position: absolute; z-index: 1; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; }
.photo-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #101010; color: #fff; touch-action: none; }
.photo-dialog img { height: 100%; object-fit: contain; user-select: none; -webkit-touch-callout: none; }
.photo-dialog .close { border-radius: 50%; background: rgb(0 0 0 / .65); }
.form-dialog { width: min(360px, calc(100% - 24px)); max-height: 90dvh; border: 0; border-radius: 16px; padding: 0; background: #fff; box-shadow: 0 20px 40px #0002; }
.guest-dialog-header { position: relative; min-height: 64px; padding: 24px 28px; border-bottom: 1px solid #ebebeb; }
.guest-dialog-header h2 { font-weight: 400; font-size: var(--text-label); letter-spacing: .24em; }
.guest-dialog-header .close { right: 18px; top: 10px; color: #858585; font-size: 23px; font-weight: 300; }
#guest-form { display: grid; gap: 12px; margin: 0; padding: 24px; }
.guest-languages { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 2px 0 7px; color: #999; font-size: var(--text-detail); }
.guest-languages button { background: none; border: 0; padding: 0 2px; font-size: var(--text-detail); }
.guest-languages [aria-pressed="true"] { color: #202124; text-decoration: underline; text-underline-offset: 3px; }
.guest-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.form-dialog input, .form-dialog textarea { width: 100%; border: 1px solid #262626; border-radius: 0; background: #fff; padding: 12px; font-size: var(--text-detail); }
.form-dialog input { min-height: 46px; }
.form-dialog textarea, .guest-fields.is-delete input { grid-column: 1 / -1; }
.form-dialog textarea { min-height: 104px; resize: vertical; }
.form-dialog ::placeholder { color: #878787; opacity: 1; }
.form-dialog .guest-submit { min-height: 49px; border: 0; background: #212121; color: #fff; font-size: var(--text-detail); }
.form-dialog .guest-submit:disabled { background: #a3a3a3; cursor: default; }
#guest-error { color: #8c2d2d; font-size: var(--text-detail); }
.map-dialog { position: fixed; inset: auto 0 0; width: min(480px, 100%); max-width: 100%; border: 0; border-radius: 20px 20px 0 0; margin: 0 auto; padding: 0; background: #fff; }
.map-dialog header { position: relative; padding: 26px 20px 13px; }
.map-dialog header::before { content: ''; position: absolute; width: 36px; height: 4px; background: #ddd; border-radius: 9px; top: 10px; left: calc(50% - 18px); }
.map-dialog h2 { font-size: var(--text-subheading); font-weight: 500; }
.map-dialog header p { font-size: var(--text-detail); color: #777; margin-top: 4px; }
.map-dialog .close { top: 32px; right: 20px; width: 30px; height: 30px; border-radius: 50%; background: #f2f2f2; font-size: 23px; color: #555; }
.map-preview { background: #f1f0ee; }
.map-preview iframe, #naver-map { display: block; width: 100%; height: min(260px, 44dvh); border: 0; }
.map-dialog .map-actions { gap: 10px; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
.map-actions a { flex: 1; display: grid; place-items: center; min-height: 44px; background: #1b1c1e; color: #fff; border-radius: 10px; font-size: var(--text-detail); text-decoration: none; }
.feedback { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: 90%; transform: translateX(-50%); padding: 8px 13px; background: #242424; color: #fff; border-radius: 4px; z-index: 2; }
@media (min-width: 680px) {
  body { background: #f2f2f2; }
  .frame { max-width: 352px; height: 100dvh; margin: auto; background: #222220; padding: 15px 12px; border: 1px solid #565651; border-radius: 43px; box-shadow: 0 10px 36px #0006; }
  .invitation { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 31px; background: #fff; }
}

@media (max-width: 679px) {
  .form-dialog input, .form-dialog textarea { font-size: 16px; }
}
