/* Final family-approved typography and content refinements. */
html { scroll-padding-top: 6rem; }
section, [id] { scroll-margin-top: 6rem; }
h1,h2,h3 { overflow-wrap: break-word; text-wrap: balance; }
.reveal-copy h1, html[lang=en] .reveal-copy h1 { font-size:clamp(1.75rem,6.5vw,2.5rem); font-weight:700; line-height:1.65; }
.reveal-copy .occasion, html[lang=en] .reveal-copy .occasion { font-size:clamp(1.8rem,6.8vw,2.3rem); font-weight:700; letter-spacing:0; text-transform:none; color:#f4f5f8; line-height:1.65; }
.service-line { font-size:clamp(1.1rem,3.8vw,1.3rem); font-weight:600; }
.personal-copy h2, .journey-intro h2, .journey-heading h3, .cordial-section h2, .official-artwork h2, .celebration-programme h2, .celebration-venue h2, .celebration-contacts h2, #special-day-heading, .thanksgiving-closing h2, html[lang=en] .thanksgiving-closing h2 { font-size:clamp(1.625rem,5.6vw,2.25rem); font-weight:700; line-height:1.65; }
.journey-heading h3,.journey-intro h2 { color:#f3f5f9; }
.text-button,.continue-link,.music-toggle,.celebration-action { font-size:1rem; min-height:48px; }
.poster-window { aspect-ratio: 1086 / 1240; }
.poster-window img { width:100%; height:auto; max-width:none; left:0; top:0; transform:none; }
.invitation-insert { inset:auto 5% 6%; height:clamp(210px,58vw,280px); color:#0b1730; gap:.25rem; padding:1rem; }
.insert-cross { font-size:1.3rem; }
.insert-number { font-size:clamp(2.6rem,10vw,4rem); font-weight:700; line-height:1; }
.insert-name { display:block; opacity:0; width:100%; padding:.25rem .3rem; font:700 clamp(1.1rem,4vw,1.5rem)/1.65 var(--font-body); text-align:center; background:linear-gradient(110deg,#0b1730 35%,#63718b 50%,#0b1730 65%); background-size:220% 100%; color:#0b1730; background-clip:text; -webkit-text-fill-color:transparent; }
html[lang=en] .insert-name { font-family:var(--font-display); }
body:not([data-opening=closed]) .prelude { opacity:0; }
.envelope-scene { padding-top:clamp(6rem,20vw,10rem); }
.personal-section { padding-block:3rem; }
.biography-name { font-size:clamp(1.4rem,4.8vw,1.8rem); font-weight:700; line-height:1.8; }
.biography-timeline { list-style:none; padding:0 0 0 1.3rem; margin:2rem auto 0; border-left:1px solid #8e97a8; text-align:left; max-width:37rem; }
.biography-timeline li { position:relative; padding:0 0 1.7rem 1rem; }
.biography-timeline li::before { content:''; position:absolute; left:-1.65rem; top:.55rem; width:.65rem; height:.65rem; border-radius:50%; background:#650d20; box-shadow:0 0 0 4px #ecece8; }
.biography-timeline h3 { margin:0 0 .4rem; font-size:clamp(1.375rem,4.5vw,1.5rem); color:#650d20; line-height:1.65; }
.personal-copy .biography-timeline p { margin:0; font-size:1.125rem; line-height:1.9; color:#0b1730; white-space:pre-line; }
.countdown [data-count] { font-size:clamp(2.625rem,9vw,3rem); font-weight:700; }
.countdown [data-i18n] { color:#f1f3f8; font-weight:700; font-size:clamp(.85rem,3.5vw,1rem); }
.date-venue,.date-dinner,.cordial-copy p { font-size:1.125rem; line-height:1.9; }
.celebration-phone { display:flex; flex-direction:column; align-items:center; gap:.5rem; padding:1.25rem; background:#0b1730; color:#f5f6fa; border:1px solid #b9c4d6; text-decoration:none; min-width:0; text-align:center; }
.celebration-phone .contact-name { font-size:clamp(1.375rem,4.7vw,1.5rem); font-weight:700; line-height:1.6; }
.contact-number { font-size:1.125rem; font-weight:700; }
#celebration-contact-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:1rem; }
.celebration-contacts { padding-bottom:2rem; }
.music-toggle { bottom:calc(1rem + env(safe-area-inset-bottom)); max-width:calc(100vw - 2rem); }
.thanksgiving-closing { padding-bottom:calc(7rem + env(safe-area-inset-bottom)); }
@media(max-width:360px) { .invitation-insert { padding:.7rem; }.insert-name { font-size:1.05rem; }.reveal-copy .occasion { font-size:1.75rem; } }
@media(prefers-reduced-motion:reduce) { .biography-timeline *, .insert-name { animation:none!important; transition:none!important; } }

.site-header { display:grid; grid-template-columns:auto 1fr; gap:.4rem .7rem; padding-block:.65rem; }
.language-switch { justify-self:end; }
.site-header .music-toggle { position:static; grid-column:1 / -1; justify-self:end; margin:0; min-height:40px; padding:.35rem .75rem; box-shadow:none; }
html { scroll-padding-top:9rem; }
section,[id] { scroll-margin-top:9rem; }
.celebration-phone { width:100%; }
