:root { color-scheme: light; font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #635356; background: #ede5e3; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100%, 520px); margin: 0 auto; background: #f4eeeb; }
.invitation { position: relative; margin: 0; }
.invitation img { display: block; width: 100%; height: auto; }
.note { padding: 38px 20px 42px; text-align: center; background: linear-gradient(#e7dedf, #f4eeeb 90%); }
.ornament { display: block; margin-bottom: 20px; color: #887074; font-size: 21px; }
h2 { margin: 0 0 16px; font-family: "AppleMyungjo", "Batang", serif; font-size: 18px; font-weight: 400; letter-spacing: .03em; }
.note p { margin: 0; font-size: 13px; line-height: 2; word-break: keep-all; }
.note .signature { margin-top: 26px; font-size: 12px; letter-spacing: .14em; color: #79666a; }
.signature span { margin: 0 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 600px) { main { margin: 40px auto; box-shadow: 0 12px 60px #63535616; } }
@media print { main { width: 100%; margin: 0; box-shadow: none; } .note { display: none; } }

.details { margin-top: 30px; }
#countdown { position: absolute; top: 42%; left: 0; width: 100%; margin: 0; padding: 0 16px; color: #fff; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 5.4vw, 28px); font-weight: 400; line-height: 1.5; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px #63535630; }
@media print { #countdown { display: none; } }
.note .venue { margin-top: 24px; }
.map-links { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13px; line-height: 2; }
.map-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-color: #b7a5a5; text-underline-offset: 5px; }
.map-links a:focus-visible { outline: 2px solid #887074; outline-offset: 4px; }

#countdown { display: flex; align-items: baseline; justify-content: center; gap: clamp(16px, 4.5vw, 26px); }
.countdown-part { display: inline-flex; align-items: baseline; gap: 2px; }
.countdown-number { min-width: 1.15em; font-style: italic; }
.countdown-unit { font-size: .78em; font-style: italic; opacity: 1; }
