/* F안 · Bound Album — 사진 표지와 날짜 머리글이 이어지는 제본 앨범. */
:root {
  --paper: #ffffff;
  --soft: #f9f8f6;
  --ink: #49463f;
  --muted: #767064;
  --gold: #7b6848;
  --line: #d7d2c7;
  --leaf: var(--gold);
  --font: 'Noto Serif KR', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 30px 8px; background: #eeeeee; color: var(--ink); font: 15px/1.9 var(--font); -webkit-font-smoothing: antialiased; }
main { max-width: 375px; margin: auto; background: var(--paper); border-radius: 24px 24px 12px 12px; box-shadow: 2px 4px 0 #d7d5d0, 6px 8px 16px #37342d12; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; transform: translateY(-180%); z-index: 10; padding: 12px; background: white; }
.skip:focus { transform: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 2px; background: white; color: var(--ink); font-size: 14px; line-height: 1.7; transition: background-color 160ms ease-out; }
.button:hover { background: #eeece6; }
.button.primary { color: white; background: var(--gold); border-color: var(--gold); }
.button.primary:hover { background: #685638; }
.cover { background: white; }
.cover-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #dedbd4; }
.cover-photo::after { content: ''; position: absolute; inset: 8px 8px 0; border: 1px solid #ffffffdf; border-bottom: 0; pointer-events: none; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-summary { padding: 16px 16px 24px; text-align: center; }
.cover-script { color: var(--gold); font: 28px/1.1 'Allura', cursive; margin: 0 0 10px; }
.cover-names { display: grid; gap: 0; font-size: 19px; font-weight: 400; line-height: 1.5; margin: 0; }
.cover-names::after { content: ''; display: block; width: 32px; height: 1px; margin: 8px auto 12px; background: var(--gold); }
.cover-meta { font-size: 13px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.cover-meta p { margin: 0; }
.section { text-align: center; padding: 24px 34px 64px; }
.section:nth-of-type(odd) { background: var(--soft); }
.page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #ada89e; font: italic 16px/1.4 var(--serif); color: var(--muted); }
.page-heading span:last-child { font-variant-numeric: tabular-nums; }
.section h2 { margin: 52px 0 40px; font-size: 19px; font-weight: 400; line-height: 1.7; white-space: pre-line; word-break: keep-all; }
.letter { max-width: 480px; margin: 0 auto 24px; font-size: 15px; line-height: 2.1; white-space: pre-line; word-break: keep-all; }
.section-description { max-width: 480px; margin: 0 auto 28px; white-space: pre-line; font-size: 15px; line-height: 2; word-break: keep-all; }
.family:empty { display: none; }
.family { display: grid; gap: 12px; margin: 32px auto 0; max-width: 440px; }
.family p { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.family span { font-size: 13px; }
.family strong { font-size: 15px; font-weight: 500; }
.invitation-sign { margin: 32px 0 0; font-size: 14px; color: var(--gold); }
.album-contacts { display: grid; gap: 12px; max-width: 480px; margin: 0 auto 24px; }
.album-contact { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; min-height: 48px; }
.album-contact p { margin: 0; font-size: 14px; }
.album-contact small { margin-right: 12px; font-size: 12px; color: var(--muted); }
.album-contact > div { display: flex; gap: 4px; }
.album-contact .button { min-height: 44px; padding: 8px; font-size: 13px; border-color: transparent; }
.contacts-section > .button { border: 0; background: transparent; font-size: 13px; }
.gallery-carousel { max-width: 440px; margin: auto; }
.gallery-main { display: block; position: relative; width: 62%; margin: 0 auto; border: 0; padding: 0; background: #e4e0d7; overflow: hidden; touch-action: pan-y; }
.gallery-main img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.photo-expand { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: #ffffffe6; font: 18px/1 system-ui; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.gallery-controls button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--gold); font: 30px var(--serif); }
.gallery-controls p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
.gallery-thumbnails { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 52px; height: 64px; border: 1px solid transparent; padding: 3px; background: transparent; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hint { margin: 24px 0 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.account-groups { max-width: 480px; margin: auto; text-align: left; }
.account-groups details { margin-bottom: 12px; border: 1px solid var(--line); background: white; }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; padding: 16px; font-size: 15px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font: 22px var(--serif); }
details[open] > summary::after { content: '−'; }
.account-row { padding: 20px 16px; border-top: 1px solid var(--line); }
.account-row p { margin: 0 0 12px; }
.account-row > p:first-child { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.account-row strong { font-weight: 500; }
.account-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-copy { width: 100%; }
.account-empty { padding: 8px 16px 24px; font-size: 13px; line-height: 2; margin: 0; }
.rsvp-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: auto; }
.rsvp-card p { margin: 0 0 24px; font-size: 14px; line-height: 2; }
.rsvp-card .button { width: 100%; font-size: 13px; padding: 12px 8px; }
.wedding-date { font: 44px/1.2 var(--serif); margin: 0 0 16px; color: var(--gold); }
.time-line { font-size: 15px; margin: 0; }
.calendar { max-width: 400px; margin: 32px auto 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.month { margin: 0 0 24px; font-size: 16px; }
.week, .days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px 0; font-variant-numeric: tabular-nums; }
.week { font-size: 12px; margin-bottom: 12px; color: var(--muted); }
.days { font: 19px/1 var(--serif); }
.days span { height: 36px; display: grid; place-items: center; }
.week span:first-child, .days span:nth-child(7n+1) { color: #915c52; }
.days .selected { width: 36px; justify-self: center; color: white !important; background: var(--gold); border-radius: 50%; }
.countdown { font-size: 13px; line-height: 2; margin: 24px 0; }
.countdown strong { font-weight: 500; color: var(--gold); }
.schedule > .button { width: 100%; max-width: 400px; }
.venue-name { font-size: 21px; font-weight: 400; line-height: 1.7; margin: 0 0 8px; }
.hall { margin: 0 0 12px; font-size: 14px; }
.address-copy { display: block; width: 100%; min-height: 48px; border: 0; background: transparent; font-size: 14px; color: var(--ink); line-height: 2; padding: 8px 0; margin-bottom: 24px; word-break: keep-all; }
.address-copy span { display: block; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--gold); }
.venue-map, .map-image { display: block; width: 100%; border: 0; height: 280px; background: #eeeae2; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.map-actions .button { font-size: 13px; padding: 12px 8px; }
.directions { text-align: left; margin-top: 32px; }
.directions details { border-bottom: 1px solid var(--line); }
.directions summary { padding-left: 0; padding-right: 0; }
.directions p { margin: 0 0 24px; font-size: 14px; line-height: 2; white-space: pre-line; }
.information-card { max-width: 480px; margin: auto; }
.information-card h3 { font-size: 18px; font-weight: 400; margin: 0 0 16px; }
.information-card p { font-size: 15px; line-height: 2.2; white-space: pre-line; margin: 0; }
.public-messages { margin: 0 auto 32px; max-width: 480px; }
.empty-message { padding: 24px 16px; font-size: 14px; color: var(--muted); line-height: 2; }
.guest-message { padding: 32px 8px; border-top: 1px solid var(--line); }
.guest-message::before { content: '“'; display: block; font: 40px/1 var(--serif); color: var(--gold); }
.guest-message-name { font-size: 14px; margin: 0 0 12px; }
.guest-message-text { margin: 0 0 16px; font-size: 15px; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.guest-message time { font-size: 12px; color: var(--muted); }
.message-section > .button { width: 100%; max-width: 480px; }
.footer { background: var(--soft); padding: 40px 24px 0; color: var(--ink); text-align: center; }
.footer-title { margin: 0 0 24px; font-size: 19px; }
.closing-copy { font-size: 15px; line-height: 2.2; white-space: pre-line; margin: 0 0 32px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 480px; margin: auto; }
.share-actions .button { color: white; border-color: #463b38; background: #463b38; border-radius: 24px; padding: 12px 8px; font-size: 13px; }
.share-actions .button:hover { background: #474b43; }
.footer-script { margin: 24px 0 0; font: 28px/1.4 'Allura', cursive; color: var(--gold); }
.footer-names { font: 16px/1.6 var(--serif); margin: 24px -24px 0; padding: 24px; color: white; background: #2e3036; }
.music-toggle { position: fixed; z-index: 5; right: 16px; bottom: 16px; width: 48px; height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Existing accessible dialogs, lightbox and submission controls. */
.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:#5f584a;color:white;font:14px/1.7 var(--font);border-radius:4px}.toast:empty{display:none}.lightbox{padding:0;border:0;background:#252720;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:#252720aa;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:#38372f88}.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 #d7d2c7;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; }

.calendar-fold { border-top: 1px solid var(--line); margin-top: 24px; text-align: left; }
.calendar-fold summary { padding: 12px 0; font-size: 13px; }
.calendar-body { text-align: center; padding-top: 16px; }
.calendar-body > .button { width: 100%; }
.information-section { padding-top: 40px; padding-bottom: 40px; }
.information-card h3 { font-size: 17px; }
