@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    color-scheme: light;
    --cocoa: #392316;
    --mahogany: #523420;
    --copper: #925b3a;
    --gold: #e9bd83;
    --foil: #ffe2ad;
    --ink: #35251e;
    --muted: #665245;
    --paper: #f7eddd;
    --paper-edge: #d6b48d;
    --cream: #fff5e4;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --nav-height: 4.25rem;
    --bookcloth: url('../img/bg/album-bookcloth.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cocoa); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
h2 { font-size: clamp(3.35rem, 8vw, 7.85rem); letter-spacing: -.032em; text-wrap: balance; }
h3 { font-size: clamp(2.1rem, 4.8vw, 4.7rem); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #a66731; outline-offset: 4px; }
.shell { width: min(100% - 4rem, 73rem); margin-inline: auto; }
.eyebrow { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; line-height: 1.4; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: fit-content;
    min-height: 3.2rem;
    padding: .7rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .15rem;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.button:hover { transform: translateY(-2px); }
.button-ink {
    background: var(--cocoa);
    color: var(--cream);
    border-color: #ba8658;
    box-shadow: inset 0 0 0 2px #fff1ce14, 0 5px 12px #3521172c;
}
.button-ink:hover { background-color: #65432b; }
.button-outline { background: transparent; color: var(--cream); border-color: #d5ab77aa; }
.button-outline:hover { background: #fff1ce1a; }
.envelope-icon { position: relative; width: 1.08rem; height: .76rem; overflow: hidden; border: 1px solid currentColor; border-radius: 2px; }
.envelope-icon::after { content: ""; position: absolute; left: 50%; top: -.39rem; width: .67rem; aspect-ratio: 1; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }

/* The front cover */
.cover {
    --portrait-width: clamp(23rem, min(49vw, 89svh), 53rem);
    --edge-crop: -.35;
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--cocoa) var(--bookcloth) center / cover no-repeat;
    color: var(--cream);
}
.cover::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 53% 54%, #a8744230, transparent 62%), linear-gradient(180deg, #2b170e65, #512b1520 56%, #26150ac9);
}
.cover-rule {
    position: absolute;
    inset: clamp(.55rem, 1.5vw, 1.35rem);
    z-index: 2;
    pointer-events: none;
    border: 1px solid #efc18a55;
    outline: 1px solid #eabe842e;
    outline-offset: 4px;
    box-shadow: inset 0 0 2.5rem #21100641;
}
.cover-shell { position: relative; z-index: 3; width: min(100% - 4.5rem, 82rem); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; margin-inline: auto; padding: clamp(1.35rem, 3vw, 2.75rem) 0 clamp(2.8rem, 7svh, 5rem); }
.masthead { display: flex; align-items: center; justify-content: space-between; color: #f2d8b4; }
.masthead > p { font-size: .875rem; }
.monogram { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 3.1rem; aspect-ratio: 1; border: 1px solid currentColor; font: 1.3rem/1 var(--serif); text-decoration: none; }
.monogram span { color: var(--gold); font-style: italic; font-size: .65em; margin-inline: .025em; }
.cover-composition { flex: 1; display: grid; grid-template-rows: auto minmax(4rem, 1fr) auto; justify-items: center; text-align: center; padding-top: clamp(.75rem, 3svh, 2.25rem); }
.cover-title { display: grid; justify-items: center; }
.cover-title .eyebrow { display: flex; align-items: center; gap: .75rem; color: #f7ce94; text-shadow: 0 2px 10px #2e190e; }
.cover-title .eyebrow::before, .cover-title .eyebrow::after { content: ""; width: clamp(1rem, 4vw, 3.5rem); height: 1px; background: #efc18a9e; }
.cover-title h1 {
    margin: .09em 0 .11em;
    color: #efdbbe;
    font-size: clamp(5.1rem, 11.6vw, 11.5rem);
    letter-spacing: -.044em;
    line-height: .91;
    text-shadow: 0 .045em .14em #271509a6, 0 .015em 0 #fbd0ac69;
}
.cover-title h1 i, .closing h2 i { color: var(--gold); font-weight: 400; }
.cover-title h1 i { font-size: .67em; vertical-align: .055em; }
.cover-date { display: flex; align-items: center; gap: .85rem; justify-content: center; color: #fae7cb; }
.cover-date::before, .cover-date::after { content: ""; width: 4px; aspect-ratio: 1; background: var(--gold); transform: rotate(45deg); }
.portrait-stage { position: absolute; inset: 0; pointer-events: none; }
.portrait-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #2d170ce6, transparent 41%), radial-gradient(ellipse at 50% 50%, #37201361, transparent 56%);
}
.portrait {
    position: absolute;
    bottom: 2%;
    width: var(--portrait-width);
    max-width: none;
    mask-image: linear-gradient(#000 55%, #000b 70%, transparent 95%);
    opacity: .67;
    filter: grayscale(1) contrast(1.08) sepia(.8) brightness(.68)
        drop-shadow(-1px -1px 0 #200f09b3) drop-shadow(1px 1px 0 #c9997066);
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
    transition: transform .55s var(--ease);
    animation: portrait-enter 1.4s var(--ease) backwards;
}
.portrait-fatwa { --portrait-enter-x: -9%; left: calc(var(--portrait-width) * var(--edge-crop)); }
.portrait-wanda { --portrait-enter-x: 9%; right: calc(var(--portrait-width) * var(--edge-crop)); animation-delay: .12s; }
.guest-card {
    position: relative;
    isolation: isolate;
    grid-row: 3;
    width: min(100%, 22rem);
    padding: 2.05rem 1.3rem 1.45rem;
    margin-top: 1.45rem;
    border: 1px solid #ddbc95;
    background: radial-gradient(ellipse at 48% 5%, #e9d2b3, #ceb08b);
    color: var(--ink);
    box-shadow: 0 4px 0 #a17a55, 0 7px 0 #b69974, 0 10px 0 #765034, 0 22px 48px #241207aa;
}
.guest-card::before { content: ""; position: absolute; z-index: -1; inset: .38rem; pointer-events: none; border: 1px solid #98714972; }
.guest-card .eyebrow { color: #633a27; font-size: .78rem; letter-spacing: .13em; }
.wax-stamp {
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% -55%;
    display: grid;
    place-content: center;
    grid-auto-flow: column;
    align-items: center;
    width: 3.2rem;
    aspect-ratio: 1;
    border: 1px solid #edb179;
    border-radius: 49% 51% 52% 48% / 45% 52% 48% 55%;
    background: radial-gradient(circle at 35% 25%, #a65f3c, #6f3d2b 57%, #472118);
    box-shadow: inset 0 0 0 4px #ad6d49, inset 0 0 0 5px #f2b47a66, 0 4px 10px #57301783;
    color: var(--foil);
    font: 1.25rem/1 var(--serif);
}
.wax-stamp i { font-size: .67em; }
.guest { overflow-wrap: anywhere; margin: .29rem 0 .85rem; font: clamp(1.65rem, 4vw, 2rem)/1.12 var(--serif); }
.cover-title, .guest-card { animation: fade-up .9s var(--ease) .1s backwards; }
.guest-card { animation-delay: .3s; }

/* A two-panel cover transition */
.page-turn { position: fixed; z-index: 20; inset: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; pointer-events: auto; }
.turn-panel { position: relative; background: var(--cocoa) var(--bookcloth); background-repeat: no-repeat; background-size: 200% 100%; }
.turn-panel::after { content: ""; position: absolute; inset: .8rem; border: 1px solid #e9bd83a3; pointer-events: none; }
.turn-panel-left { background-position: left center; transform: translateX(-101%); box-shadow: 3px 0 12px #200d08aa; }
.turn-panel-right { background-position: right center; transform: translateX(101%); box-shadow: -3px 0 12px #200d08aa; }
.turn-panel-left::after { border-right: 0; right: 0; }
.turn-panel-right::after { border-left: 0; left: 0; }

/* The album spine and chapters */
.album-nav { position: sticky; z-index: 10; top: 0; color: var(--cream); background: #40281b; box-shadow: 0 2px 12px #28180f3d; }
.album-nav .shell { height: var(--nav-height); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.album-nav .monogram { width: 2.55rem; border-color: #e9bd8382; font-size: 1.14rem; }
.album-links { display: flex; justify-content: center; align-items: center; gap: clamp(.75rem, 4vw, 2.75rem); }
.album-links a { position: relative; display: grid; place-items: center; min-height: 2.75rem; text-decoration: none; color: #f2dac0; font-size: .875rem; white-space: nowrap; }
.album-links a::after { content: ""; position: absolute; height: 1px; background: var(--gold); inset: auto 0 .4rem; transform: scaleX(0); transition: transform .24s var(--ease); }
.album-links a:hover::after, .album-links a[aria-current]::after { transform: scaleX(1); }
.album-links a[aria-current] { color: #fff6e9; }
.album-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(var(--album-progress, 0)); transform-origin: left; background: linear-gradient(90deg, #bc814e, var(--foil)); }
.sound-control { display: grid; place-content: center; width: 2.75rem; min-height: 2.75rem; flex: none; border-radius: 50%; border: 1px solid #e9bd8377; background: #2e1d13; color: var(--gold); }
.sound-control:hover { border-color: var(--gold); }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 1.3rem; }
.sound-bars i { width: 2px; height: .39rem; background: currentColor; }
.sound-control[aria-pressed="true"] .sound-bars i { height: .65rem; animation: equalizer .75s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.3s !important; }
.sound-bars i:nth-child(3) { animation-delay: -.6s !important; }
.chapter { position: relative; isolation: isolate; padding-block: clamp(4.6rem, 10vw, 9rem); scroll-margin-top: var(--nav-height); background: var(--paper); }
.chapter:focus-visible { outline-offset: -5px; }
.chapter .eyebrow { color: #865239; }
.chapter-intro > .eyebrow { margin-bottom: .65rem; }
.chapter-intro > p:not(.eyebrow), .section-heading > p { max-width: 42ch; color: var(--muted); margin-top: 1.15rem; }
.section-heading { margin-bottom: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.section-heading > p { margin-inline: auto; }
.ceremony-grid, .rsvp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.75rem, 7vw, 7rem); }

/* Frontispiece */
.verse { overflow: hidden; background: radial-gradient(ellipse at 70% 0%, #fffaf0, #eedbc1); }
.verse-inner { display: grid; grid-template-columns: clamp(4rem, 13vw, 12rem) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 5vw, 4rem); max-width: 69rem; border-block: 1px solid #a777598c; padding-block: clamp(2.5rem, 7vw, 6rem); }
.verse-mark { font: clamp(8rem, 21vw, 19rem)/.64 var(--serif); color: #a66d4d; }
.verse blockquote { font: italic clamp(1.7rem, 3.8vw, 3.95rem)/1.17 var(--serif); }
.verse .eyebrow { margin-top: 1.7rem; }

/* Portraits on separate folios */
.couple { background: #5a3825 var(--bookcloth) center / cover fixed; color: var(--cream); }
.couple .section-heading h2::after { content: ""; display: block; width: min(44%, 12rem); height: 1px; margin: 1.1rem auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.couple-profiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.25rem); max-width: 65rem; margin-inline: auto; }
.couple-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    grid-template-areas: "portrait details";
    min-width: 0;
    border: 1px solid #e6c092;
    background: radial-gradient(ellipse at 65% 35%, #fff6e6, #ead6b8);
    color: var(--ink);
    box-shadow: 1px 4px 0 #d4b28b, 2px 7px 0 #ab835a, 4px 22px 46px #25120899;
}
.couple-card-fatwa { grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); grid-template-areas: "details portrait"; }
.couple-portrait {
    position: relative;
    grid-area: portrait;
    isolation: isolate;
    display: grid;
    align-items: end;
    justify-items: center;
    min-height: clamp(19rem, 39vw, 30rem);
    margin: clamp(.75rem, 2vw, 1.65rem);
    overflow: hidden;
    background: radial-gradient(ellipse at 47% 28%, #fff7e9, #c4956a);
    border: 1px solid #aa805d;
}
.couple-portrait::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8% 10% -8%;
    border: 1px solid #a4774d8a;
    outline: 1px solid #a4774d4a;
    outline-offset: 5px;
    border-radius: 50% 50% 0 0 / 44% 44% 0 0;
}
.couple-portrait img { width: min(96%, 28rem); mix-blend-mode: multiply; transition: transform 1.1s var(--ease); }
.couple-card.waiting img { transform: translateY(1rem) scale(1.045); }
.couple-details { grid-area: details; position: relative; display: grid; align-content: center; justify-items: start; padding: clamp(1.9rem, 4.8vw, 5.5rem); }
.couple-details::before { content: ""; width: 3.25rem; height: 1px; margin-bottom: 1.05rem; background: #a07150; }
.couple-details h3 { max-width: 13ch; text-wrap: balance; }
.couple-details h3 span { font-size: .66em; color: #815332; white-space: nowrap; }
.couple-details p { margin-top: 1rem; color: var(--muted); }
.couple-divider { display: flex; align-items: center; justify-content: center; gap: 1.1rem; font: italic clamp(2.75rem, 6vw, 5rem)/.85 var(--serif); color: var(--foil); }
.couple-divider::before, .couple-divider::after { content: ""; width: min(25%, 10rem); height: 1px; background: linear-gradient(90deg, transparent, #e9bd839c); }
.couple-divider::after { transform: scaleX(-1); }

/* Ceremony ticket */
.ceremony { background: radial-gradient(ellipse at 35% 15%, #fff6e7, #eddbbe); }
.ceremony .greeting { color: var(--ink); font-weight: 700; }
.event-card { position: relative; background: #fffaef; border: 1px solid #b5916a; box-shadow: 0 18px 60px #59372224; text-align: center; }
.event-card > .eyebrow { margin-top: 2.1rem; }
.event-date { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: .9rem 1rem 0; }
.event-day { font-size: clamp(5.5rem, 12vw, 10rem); letter-spacing: -.065em; line-height: .8; color: #824c32; }
.event-month { border-left: 1px solid #b5916a; padding-left: .4em; text-align: left; }
.event-month small { display: block; margin-top: .5rem; font: 700 .875rem/1 var(--sans); color: var(--muted); }
.event-time { margin: .85rem 1rem 0; }
.event-place { position: relative; margin: 1.5rem 0 0; border-top: 1px dashed #bc9773; padding: 1.15rem 1.4rem 0; }
.event-place::before, .event-place::after { content: ""; position: absolute; top: 0; width: 1rem; aspect-ratio: 1; border: 1px solid #b5916a; border-radius: 50%; background: #f4e5cb; transform: translateY(-50%); }
.event-place::before { left: -.5rem; }
.event-place::after { right: -.5rem; }
.event-place > p { font-weight: 700; }
.event-place address { color: var(--muted); font-style: normal; }
.event-card .button { margin: 1.1rem 0 2rem; }

/* RSVP and guestbook */
.rsvp { border-top: 1px solid #e1c7a8; background: #f7eddd; }
.rsvp-grid { align-items: start; }
.rsvp .chapter-intro { padding-top: clamp(0rem, 2vw, 1.85rem); }
.rsvp-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid #ac8462; background: #fffaf1; box-shadow: 0 4px 0 #e6cfb0, 0 8px 0 #d2af86, 0 20px 50px #58372226; }
.rsvp-form label, .attendance legend { font-size: .9rem; font-weight: 700; }
.rsvp-form > div > label { display: block; margin-bottom: .35rem; }
.rsvp-form :is(input[type="text"], input[type="tel"], textarea) { width: 100%; min-height: 3rem; padding: .55rem .75rem; border: 1px solid #ba9f87; border-radius: .1rem; background: #fffdf6; color: var(--ink); }
.rsvp-form textarea { display: block; resize: vertical; }
.attendance { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.attendance legend { padding: 0; margin-bottom: .35rem; }
.attendance-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.attendance-choices label { display: flex; align-items: center; gap: .4rem; min-height: 3rem; padding: .35rem .55rem; border: 1px solid #ba9f87; cursor: pointer; }
.attendance-choices label:has(:checked) { background: #f5e1c8; border-color: #946044; }
.attendance-choices input { flex: none; margin: 0; accent-color: #855232; }
.rsvp-form [aria-invalid="true"] { border-color: #a04635; }
.field-error, .form-status { font-size: .9rem; }
.field-error { color: #993b2a; }
.form-status { padding: .75rem; background: #f1e3ce; }
.guestbook { max-width: 54rem; margin-top: clamp(3.5rem, 8vw, 7rem); }
.guestbook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.wish { padding: 1.2rem; overflow-wrap: anywhere; border: 1px solid #d3b391; background: #fffaf1; }
.wish small { display: block; color: var(--muted); }
.wish p { white-space: pre-line; margin-top: .5rem; }

/* Gift envelope and final cover */
.gifts { background: radial-gradient(ellipse at 50% 20%, #674127, #3b2518); color: var(--cream); }
.gifts .section-heading p { color: #f2d8ba; }
.gift-envelope { max-width: 49rem; margin-inline: auto; border: 1px solid #b78758; background: #4e301f; box-shadow: 0 20px 48px #25120885, inset 0 0 0 4px #d5ac772e; }
.gift-envelope summary { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 4.6rem; position: relative; padding: .85rem .75rem; list-style: none; cursor: pointer; background: linear-gradient(115deg, #9e673c, transparent 35%), linear-gradient(245deg, #714526, #4c2e1d 72%); color: var(--cream); font-weight: 700; }
.gift-envelope summary::-webkit-details-marker { display: none; }
.gift-envelope summary:hover { color: var(--foil); }
.gift-envelope[open] summary { border-bottom: 1px solid #b78758; }
.gift-toggle { position: relative; width: 1.15rem; height: 1.15rem; margin-left: .15rem; border: 1px solid #e9bd837e; border-radius: 50%; }
.gift-toggle::before, .gift-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: .45rem; height: 1px; background: var(--foil); translate: -50% -50%; }
.gift-toggle::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.gift-envelope[open] .gift-toggle::after { transform: rotate(0); }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1rem 1rem 0; }
.gift-envelope[open] .gift-grid { animation: fade-up .45s var(--ease) both; }
.gift-card { min-width: 0; padding: clamp(1.1rem, 3vw, 2.1rem); border: 1px solid #c3966a; background: linear-gradient(145deg, #785235, #4f3120 65%); color: var(--cream); }
.gift-card h3 { color: var(--foil); margin-bottom: .6rem; font-size: 2.5rem; }
.account-number { margin-bottom: .85rem; letter-spacing: .07em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-status { min-height: 1.5rem; margin: .55rem 1rem; text-align: center; color: #f4d9b4; }
.closing { display: grid; align-items: center; min-height: min(43rem, 78svh); background: var(--cocoa) var(--bookcloth) center / cover; color: var(--cream); text-align: center; }
.closing::after { content: ""; position: absolute; inset: 1rem; border: 1px solid #e9bd8371; pointer-events: none; }
.closing-mark { color: var(--gold); font-size: 1.7rem; }
.closing p { margin-block: 1rem; color: #f0d8b7; }
.closing h2 { margin: .5rem 0 1.3rem; }
.back-link { color: var(--foil); text-underline-offset: .25em; }
footer { display: grid; place-items: center; min-height: 4rem; color: #e8cba9; font-size: .875rem; }

[data-reveal].waiting { opacity: 0; transform: translateY(1.8rem); }
[data-reveal] { transition: opacity .85s var(--ease), transform .85s var(--ease); }
[data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(1rem); } }
@keyframes portrait-enter { from { opacity: 0; transform: translate(var(--portrait-enter-x), 3%); } }
@keyframes equalizer { to { transform: scaleY(1.65); } }

@media (max-width: 800px) {
    .shell { width: min(100% - 2.5rem, 37.5rem); }
    .cover-shell { width: min(100% - 2.65rem, 38rem); }
    .cover { --portrait-width: clamp(15.4rem, min(77vw, 60svh), 32rem); --edge-crop: -.36; }
    .portrait { bottom: clamp(5rem, 16svh, 13rem); }
    .couple { background-attachment: scroll; }
    .couple-profiles { width: min(100%, 29rem); }
    .couple-card, .couple-card-fatwa { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "details"; }
    .couple-portrait { min-height: clamp(17rem, 72vw, 27rem); }
    .couple-details { padding-top: .65rem; }
    .ceremony-grid, .rsvp-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 530px) {
    :root { --nav-height: 3.75rem; }
    .cover { --portrait-width: clamp(13.25rem, min(82vw, 49svh), 26rem); --edge-crop: -.38; }
    .cover-shell { padding-bottom: 2.15rem; }
    .masthead .monogram { width: 2.55rem; }
    .cover-composition { grid-template-rows: auto minmax(8rem, 1fr) auto; padding-top: 1.35rem; }
    .cover-title .eyebrow { font-size: .75rem; }
    .cover-title h1 { font-size: clamp(4.25rem, 19vw, 7rem); line-height: .78; margin-block: .17em .23em; }
    .cover-title h1 span { display: block; }
    .cover-title h1 span + span { margin-top: .08em; }
    .portrait { bottom: clamp(8rem, 24svh, 14rem); }
    .guest-card { width: min(calc(100% - 1.6rem), 17.5rem); margin-top: .15rem; padding-bottom: 1.13rem; }
    .album-nav .shell { width: calc(100% - 1.15rem); }
    .album-nav .monogram { width: 2.2rem; }
    .album-links { gap: clamp(.36rem, 2.4vw, .9rem); }
    .album-links a { font-size: .8125rem; }
    .sound-control { width: 2.3rem; min-height: 2.3rem; }
    .verse-inner { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .verse-mark { height: .43em; font-size: 7rem; }
    .gift-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
    .album-nav .monogram { display: none; }
    .cover-composition { grid-template-rows: auto minmax(6.25rem, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal].waiting, .couple-card.waiting img { opacity: 1; transform: none; }
}
