/* D안 — 사진과 손편지, 연한 하늘색 지면 */
:root {
  --paper: #ffffff;
  --soft: #f1f7fa;
  --blue: #496a80;
  --sky: #dcecf5;
  --ink: #3e454b;
  --muted: #66727c;
  --line: #dce5eb;
  --font: 'Gowun Dodum', sans-serif;
  --hand: 'Gaegu', cursive;
  --leaf: var(--blue);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #edf1f4; color: var(--ink); font: 16px/1.9 var(--font); -webkit-font-smoothing: antialiased; }
main { width: 100%; max-width: 800px; margin: auto; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 20; transform: translateY(-150%); padding: 12px; background: white; }
.skip:focus { transform: none; }
.section { padding: 56px 24px; text-align: center; }
.section h2 { font: 400 30px/1.45 var(--hand); color: var(--ink); margin: 0 0 24px; white-space: pre-line; word-break: keep-all; }
.section-description, .letter { max-width: 480px; margin: 0 auto 24px; font-size: 16px; line-height: 2; white-space: pre-line; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: 15px/1.6 var(--font); transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.button:hover { background: #eaf3f8; border-color: #bdd1de; }
.button.primary { background: #cee4f1; border-color: #cee4f1; color: #344f62; }
.button.primary:hover { background: #bad9ec; border-color: #bad9ec; }
.button.secondary { background: var(--soft); color: #405c70; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.cover-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.cover-photo img { height: 100%; object-fit: cover; }
.cover-summary { position: relative; padding: 40px 24px 32px; text-align: center; overflow: hidden; }
.cover-label { margin: 0 0 8px; font: 19px/1.5 var(--hand); color: var(--muted); }
.cover-names { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 20px; font: 400 clamp(32px, 9vw, 44px)/1.3 var(--hand); }
.cover-names i { font-size: 28px; font-style: normal; color: var(--blue); }
.hero-meta { position: relative; font-size: 15px; line-height: 1.9; font-variant-numeric: tabular-nums; }
.hero-meta p { margin: 0; }
.hero-meta p + p { margin-top: 4px; color: var(--muted); }
.cover-note { position: relative; white-space: pre-line; font: 26px/1.4 var(--hand); color: var(--blue); margin: 24px 0 0; }
.hero-share { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f0f3f5; color: var(--ink); font-size: 12px; }
.paper-marks { position: absolute; inset: 0; pointer-events: none; }
.paper-marks span { display: block; position: absolute; background: #e4f2fa; }
.dot { width: 18px; height: 18px; border-radius: 50%; }
.dot-one { left: 8%; top: 30%; }
.dot-two { right: 9%; bottom: 17%; width: 24px; height: 24px; }
.paper-marks .star { width: 16px; height: 16px; left: 18%; bottom: 8%; background: #cce5f4; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); }
.paper-divider { display: flex; align-items: center; justify-content: center; gap: 9px; height: 16px; margin: 8px 0; }
.paper-divider span { width: 5px; height: 5px; background: #e2f0f7; border-radius: 50%; }
.paper-divider i { width: 8px; height: 8px; background: #cde5f2; border-radius: 50%; }
.memory-strip { display: flex; justify-content: center; align-items: center; gap: 6px; max-width: 480px; margin: 0 auto 48px; padding: 8px 0; }
.memory-strip figure { width: 33.33%; min-width: 0; margin: 0; padding: 6px 6px 20px; background: white; box-shadow: 0 2px 10px #35404a14; transform: rotate(-6deg); }
.memory-strip figure:nth-child(2) { transform: translateY(8px) rotate(2deg); z-index: 1; }
.memory-strip figure:nth-child(3) { transform: rotate(6deg); }
.memory-strip button { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); }
.memory-strip img { aspect-ratio: 3/4; object-fit: cover; }
.invitation h2 { font-size: 32px; }
.letter:last-child { margin-bottom: 0; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; margin: 0 auto 24px; }
.contact-card { padding: 24px 12px; background: var(--soft); border: 1px solid #e6eff4; border-radius: 12px; }
.contact-role { color: var(--blue); font-size: 13px; margin: 0 0 8px; }
.contact-card h3 { font: 400 30px/1.5 var(--hand); margin: 0; }
.parents { font-size: 13px; line-height: 1.9; white-space: pre-line; margin: 16px 0 0; color: var(--muted); }
.contacts-section > .button { width: 100%; max-width: 480px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item { position: relative; display: block; padding: 0; border: 0; background: var(--soft); overflow: hidden; }
.gallery-item img { aspect-ratio: 4/5; width: 100%; height: 100%; object-fit: cover; }
.gallery-item span { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; background: #ffffffdd; color: var(--blue); }
.gallery > .button { width: 100%; margin-top: 16px; }
.time-line { font-size: 16px; line-height: 1.9; margin: 0 0 24px; }
.calendar { max-width: 400px; padding: 24px 20px; border: 1px solid #e7f0f5; border-radius: 14px; background: var(--soft); margin: 0 auto 24px; }
.month { font-size: 18px; color: var(--blue); margin: 0 0 24px; }
.week, .days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px 0; }
.week { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.days { font-size: 16px; font-variant-numeric: tabular-nums; }
.days span { height: 36px; display: grid; place-items: center; }
.days span.selected { width: 36px; justify-self: center; color: #344f62; background: #c5e2f3; border-radius: 50%; }
.countdown { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 24px 0; }
.countdown strong { color: var(--blue); font-weight: 400; }
.schedule > .button { width: 100%; max-width: 400px; }
.location { text-align: left; }
.location > h2 { text-align: center; }
.venue-name { font-size: 21px; font-weight: 400; margin: 0 0 4px; }
.hall { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.address-copy { display: block; padding: 8px 0; margin: 0 0 16px; border: 0; min-height: 48px; font: 14px/1.9 var(--font); color: var(--ink); background: transparent; text-align: left; }
.address-copy span { color: var(--blue); margin-left: 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.venue-map { display: block; width: 100%; height: 280px; border: 0; background: var(--soft); border-radius: 10px; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 24px; }
.map-actions .button { padding: 12px 8px; font-size: 14px; }
.directions details, .information-cards article { padding: 20px; margin-bottom: 12px; background: var(--soft); border-radius: 12px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-size: 15px; min-height: 48px; color: var(--blue); }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; font-size: 20px; }
details[open] summary:after { content: '−'; }
.directions p { font-size: 14px; line-height: 2; white-space: pre-line; word-break: keep-all; margin: 12px 0 0; color: var(--muted); }
.information-cards { text-align: left; }
.information-cards h3 { font-size: 16px; font-weight: 400; color: var(--blue); margin: 0 0 12px; }
.information-cards p { margin: 0; font-size: 15px; line-height: 2; white-space: pre-line; word-break: keep-all; }
.account-groups { max-width: 480px; margin: auto; text-align: left; }
.account-groups details { background: var(--soft); border-radius: 10px; margin-bottom: 12px; padding: 8px 20px; }
.account-row { background: #fff; padding: 20px; margin: 8px 0 12px; border-radius: 6px; }
.account-row > p:first-child { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 0 0 12px; }
.account-row strong { font-weight: 400; }
.account-number { font-size: 15px; margin: 0 0 16px; overflow-wrap: anywhere; }
.account-copy { width: 100%; }
.account-empty { padding: 12px 0 20px; margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.rsvp-card { max-width: 480px; margin: auto; }
.rsvp-card .button { width: 100%; }
.message-board { position: relative; padding: 24px 16px; margin: 32px 0 20px; min-height: 260px; border: 8px solid #c5a27a; background: #d8bc98; box-shadow: inset 0 0 0 1px #b7966f; }
.public-messages { max-height: 680px; overflow: auto; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 8px; text-align: left; }
.guest-message, .empty-message { position: relative; padding: 28px 20px 20px; margin: 0; background: #fffaf0; border: 1px solid #e5ddcd; box-shadow: 0 2px 5px #4e3d2820; }
.guest-message:before, .empty-message:before { content: ''; position: absolute; top: 9px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #667e90; box-shadow: 0 1px 1px #32465240; }
.guest-message:nth-child(4n+2) { background: #f5e8e9; }
.guest-message:nth-child(4n+3) { background: #e7edf6; }
.guest-message:nth-child(4n) { background: #edf0df; }
.guest-message-name { margin: 0 0 12px; color: #566773; font-size: 13px; overflow-wrap: anywhere; }
.guest-message-text { margin: 0 0 16px; font: 22px/1.5 var(--hand); white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-message time { font-size: 12px; color: #6f716d; }
.empty-message { font: 22px/1.7 var(--hand); text-align: center; color: #65655d; }
.message-section > .button { width: 100%; max-width: 480px; }
.closing { padding: 40px 24px 0; text-align: center; }
.closing-copy { font: 28px/1.5 var(--hand); white-space: pre-line; margin: 0; color: var(--blue); }
.footer { padding: 32px 24px 40px; text-align: center; }
.footer-names { font: 30px/1.4 var(--hand); margin: 0 0 8px; }
.footer-date { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.footer > .button { display: flex; width: 100%; max-width: 480px; margin: 0 auto 12px; }
.music-toggle { position: fixed; z-index: 5; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fffffff0; color: var(--blue); }
@media (min-width:700px) {
  .section { padding: 72px 64px; }
  .section h2 { font-size: 34px; }
  .cover { display: grid; grid-template-columns: 1.12fr 1fr; }
  .cover-photo { aspect-ratio: 4/5; }
  .cover-summary { display: flex; flex-direction: column; justify-content: center; padding: 56px 28px; }
  .cover-names { font-size: 40px; gap: 8px; }
  .cover-note { font-size: 28px; }
  .memory-strip { max-width: 560px; margin-bottom: 56px; gap: 12px; }
  .memory-strip figure { padding: 8px 8px 24px; }
  .contact-pair { max-width: 560px; gap: 20px; }
  .contact-card { padding: 28px 20px; }
  .contact-card h3 { font-size: 34px; }
  .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .calendar { max-width: 440px; }
  .days span { height: 40px; }
  .days span.selected { width: 40px; }
  .message-board { padding: 28px; }
  .public-messages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .empty-message { grid-column: 1/-1; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Existing shared form, lightbox and feedback treatments. */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;padding:12px 20px;max-width:calc(100% - 32px);width:max-content;background:#405b6a;color:white;font:14px/1.7 var(--font);border-radius:4px}.toast:empty{display:none}.lightbox{padding:0;border:0;background:#22271e;color:#fff;width:min(94vw,700px);max-width:94vw;max-height:94dvh;overflow:auto}.lightbox::backdrop{background:#1c251aea}.lightbox>img{width:100%;max-height:75dvh;object-fit:contain}.lightbox-close{position:absolute;right:8px;top:8px;width:44px;height:44px;border:1px solid #ffffff80;background:#22271eaa;color:white;font:28px system-ui}.lightbox-controls{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;font-size:13px}.lightbox-controls button{width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:24px}.copy-dialog,.entry-dialog{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:32px 24px;width:420px;max-width:calc(100% - 24px);max-height:92dvh;overflow:auto}.copy-dialog::backdrop,.entry-dialog::backdrop{background:#344a5988}.copy-dialog h2,.entry-dialog h2{font-size:22px;font-weight:400;line-height:1.6;margin:0 28px 24px 0;color:var(--leaf)}.copy-dialog label{font-size:14px}.copy-dialog input{width:100%;font:16px/1.6 var(--font);padding:12px;margin:16px 0;border:1px solid var(--line)}.copy-dialog .button{width:100%}.entry-dialog{position:relative}.entry-dialog .eyebrow{margin-bottom:8px}.entry-close{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:transparent;font:28px system-ui;color:var(--leaf)}.entry-dialog form>label:not(.consent),.form-counts label{display:block;font-size:14px;margin:16px 0 8px}.entry-dialog input:not([type=checkbox]),.entry-dialog textarea,.entry-dialog select{width:100%;min-height:48px;padding:12px;font:16px/1.6 var(--font);border:1px solid #ccdce5;border-radius:6px;background:#fff;color:var(--ink)}.entry-dialog textarea{resize:vertical}.consent{display:flex;align-items:flex-start;gap:8px;min-height:44px;padding:12px 0;margin-top:16px;font-size:12px;line-height:1.9}.consent input{width:18px;height:18px;flex-shrink:0;margin-top:3px;accent-color:var(--leaf)}.form-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-counts>div{min-width:0}.form-status{font-size:13px;line-height:1.9;color:#a34035;white-space:pre-line;margin:12px 0}.form-status:empty{margin:0}.form-status.success{color:#48633b}.entry-dialog form>.button{width:100%;margin-top:16px}.captcha{min-height:68px;margin-top:12px}.honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.contact-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}.contact-row p{flex:1 0 100px;margin:0;font-size:16px}.contact-row .button{padding:8px 12px;min-height:44px}.contact-note{font-size:14px;line-height:1.9;margin:24px 0 16px}#contact-message{width:100%}.error{padding:48px 24px;font-size:16px;line-height:2}.photo-missing{background:var(--soft);color:var(--leaf);padding:24px;font-size:14px}

.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

.welcome-dialog { text-align: center; padding: 48px 24px 24px; }
.welcome-dialog .welcome-couple { font: 24px/1.6 var(--hand); color: var(--blue); margin: 0 0 16px; }
.welcome-dialog h2 { margin: 0 0 16px; font-family: var(--hand); font-size: 28px; }
.welcome-dialog #welcome-description { font-size: 15px; margin: 0 0 24px; }
.welcome-dialog > .button { width: 100%; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .welcome-dialog[open] { animation: welcome-appear 240ms ease-out; }
  @keyframes welcome-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
