/* Romantic coquette — warm stationery, delicate engraving and generous type. */
:root {
  --paper: #fbf7f0;
  --paper-deep: #f3e9e0;
  --ink: #45353e;
  --rose: #8d4b64;
  --pink: #c78da4;
  --pale: #f0dfe5;
  --gold: #a18456;
  /* Both reach 4.5:1 even on the deepest rose sections. */
  --muted: #64555c;
  --label: #685544;
  --line: #dfcfc9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --script: 'Great Vibes', cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
:where(button, a, input, textarea):focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
p, h1, h2, h3, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(42px, 5vw, 66px); letter-spacing: -1.4px; text-wrap: balance; }
h2 em, h3 em { color: var(--rose); font-weight: 400; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: normal; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.4px; line-height: 1.9; color: var(--label); }
.section-pad { padding: 100px max(28px, calc((100vw - 1040px) / 2)); }
.small-note { font-size: 13px; }
.draft-note { font: 12px/1.7 var(--sans); color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--pink); background: transparent; font-size: 13px; letter-spacing: .6px; font-weight: 600; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 50px; padding: 14px 26px; border-radius: 2px; font-size: 14px; font-weight: 600; letter-spacing: .3px; transition: background .2s, box-shadow .2s, transform .2s; }
.button svg { width: 18px; height: 18px; }
.primary { color: #fffaf5; background: var(--rose); box-shadow: inset 0 0 0 1px #ffffff14, 0 4px 10px #7a395715; }
.primary:hover { background: #743c52; box-shadow: 0 7px 18px #743c5220; transform: translateY(-1px); }
.icon-button { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; transition: background .2s, border-color .2s; }
.icon-button:hover { background: var(--pale); border-color: var(--pink); }
.icon-button svg { width: 18px; height: 18px; }
.rotate { transform: rotate(180deg); }
[hidden] { display: none !important; }

/* The cover is an invitation within the page. */
.preview-ribbon { padding: 5px 18px; text-align: center; font-size: 9px; letter-spacing: 1px; background: #eee3e3; color: #765363; }
.preview-ribbon span { letter-spacing: .1px; }
.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; padding: 0 44px; margin: auto; gap: 24px; }
.brand { display: flex; align-items: center; gap: 17px; font: 36px/1 var(--serif); color: var(--rose); }
.brand span { padding-left: 17px; border-left: 1px solid var(--line); font: 11px/1.8 var(--sans); letter-spacing: 1px; color: var(--muted); }
.site-header nav { display: flex; gap: 36px; font-size: 13px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.site-header nav a:hover { color: var(--rose); }
.music-toggle { border-color: var(--line); color: var(--rose); }
.is-playing .music-toggle { background: var(--pale); }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 50px 28px 35px; text-align: center; background-color: #ecdce0; background-image: var(--grain), radial-gradient(ellipse at 50% 30%, #f8efeb 0, #ecdce0 65%, #e4cdd5 100%); }
.hero-paper { position: relative; max-width: 670px; margin: 0 auto; padding: 43px 36px 47px; background-color: var(--paper); background-image: var(--grain); border-radius: 320px 320px 3px 3px; border: 1px solid #fffaf2; box-shadow: 0 25px 60px #6b354b0d, 0 3px 9px #6b354b06; }
.hero-paper::before, .hero-paper::after { content: ''; position: absolute; inset: 12px; border: 1px solid #c6aa8580; border-radius: 310px 310px 0 0; pointer-events: none; }
.hero-paper::after { inset: 18px; border-color: #d5b8c152; border-radius: 300px 300px 0 0; }
.hero-bow { position: relative; width: 112px; height: 82px; margin: 3px auto 20px; color: var(--rose); stroke-width: 1; }
.hero .eyebrow { font-size: 11px; letter-spacing: 2.6px; max-width: 380px; margin: auto; }
.hero h1 { display: flex; flex-direction: column; align-items: center; margin: 24px 0 12px; }
.hero-mis { color: var(--rose); font-size: 41px; line-height: 1; transform: translateX(-55px); }
.hero-xv { font-size: clamp(150px, 15vw, 202px); line-height: .86; letter-spacing: -12px; color: var(--rose); margin-top: 3px; text-shadow: 1px 1px 0 #fffdfb; }
.hero-name { position: relative; color: #745664; font-size: clamp(58px, 6.8vw, 83px); line-height: 1.25; margin-top: -6px; }
.hero-tagline { font: italic 22px/1.4 var(--serif); color: var(--muted); margin: 16px 0 26px; }
.hero-date { display: flex; justify-content: center; align-items: center; gap: 22px; width: fit-content; margin: 0 auto; padding: 15px 6px; border-block: 1px solid #cfb8b57a; font-size: 12px; letter-spacing: 2px; }
.hero-date span + span { border-left: 1px solid #cdb2bb; padding-left: 22px; }
.hero-date span:first-child { font: 30px/1 var(--serif); letter-spacing: 0; }
.hero-place { font-size: 11px; letter-spacing: 1.7px; color: var(--muted); margin-top: 12px; }
.hero .text-link { margin-top: 17px; border-bottom-color: #b69268; }
.hero-footnote { position: relative; font: italic 19px/1.5 var(--serif); color: #725967; margin: 28px auto 0; }
.hero-botanical { position: absolute; z-index: -1; color: #9d7f68; stroke-width: .65; opacity: .6; width: 220px; height: 470px; pointer-events: none; }
.botanical-left { left: calc(50% - 520px); top: 155px; transform: rotate(-23deg); }
.botanical-right { right: calc(50% - 520px); top: 135px; transform: scaleX(-1) rotate(-23deg); }
.hero-sparkle { position: absolute; color: #a28058; stroke-width: .65; }
.sparkle-left { width: 24px; height: 24px; left: calc(50% - 435px); top: 100px; }
.sparkle-right { width: 19px; height: 19px; right: calc(50% - 430px); bottom: 105px; }

/* Opening words and family. */
.welcome { text-align: center; padding-top: 38px; padding-bottom: 60px; }
.music-card { display: flex; align-items: center; gap: 16px; max-width: 440px; margin: 0 auto 92px; padding: 18px 22px; text-align: left; border-block: 1px solid var(--line); }
.play-button { display: grid; place-items: center; flex-shrink: 0; width: 49px; height: 49px; border-radius: 50%; border: 1px solid #d5b9c5; background: #f0e2e6; color: var(--rose); }
.play-shape { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid currentColor; transform: translateX(2px); }
.is-playing .play-shape { width: 11px; height: 14px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; transform: none; }
.music-card > div:not(.audio-bars) { min-width: 0; }
.music-track { font: 24px/1.2 var(--serif); color: var(--ink); }
.music-artist { font-size: 12px; color: var(--muted); margin: 5px 0 1px; }
.music-card span { font-size: 12px; color: var(--muted); line-height: 1.6; display: inline-block; }
.audio-bars { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; padding-left: 8px; color: var(--rose); }
.audio-bars i { display: block; width: 2px; height: 8px; background: currentColor; }
.audio-bars i:nth-child(2n) { height: 17px; }
.audio-bars i:nth-child(3) { height: 26px; }
.is-playing .audio-bars i { animation: wave 1s ease-in-out infinite alternate; }
.is-playing .audio-bars i:nth-child(2n) { animation-delay: .3s; }
@keyframes wave { to { transform: scaleY(.3); } }
.welcome > .eyebrow { margin-bottom: 26px; }
.welcome h2 { font-size: clamp(40px, 4.9vw, 63px); }
.welcome-copy { margin-top: 28px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.tiny-heart { width: 21px; height: 21px; margin-top: 30px; color: var(--pink); stroke-width: 1; }
.family { text-align: center; padding-top: 40px; padding-bottom: 95px; }
.family::before { content: ''; display: block; width: 72px; height: 1px; margin: 0 auto 38px; background: #b99c6a80; }
.family h2 { font-size: 43px; margin-top: 17px; }
.family-names { display: flex; align-items: center; justify-content: center; gap: 60px; margin: 38px auto 27px; }
.family-names h3 { font-size: 37px; color: var(--rose); margin-bottom: 11px; }
.family-names p { font: 21px/1.35 var(--serif); color: var(--ink); }
.family-names > svg { width: 17px; height: 17px; color: var(--pink); }
.family-note { font: italic 20px/1.5 var(--serif); color: var(--muted); }

/* Every photograph has its own frame, with its original proportions. */
.story { position: relative; overflow: hidden; background: #f1e7e3; background-image: var(--grain); border-block: 1px solid #e5d8d0; padding-block: 85px 75px; }
.section-heading { text-align: center; margin-bottom: 49px; }
.section-heading h2 { margin-top: 18px; font-size: clamp(40px, 4.5vw, 58px); }
.story-album { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 76px; max-width: 1000px; margin: auto; }
.album-main { --photo-height: 495px; position: relative; min-width: 0; padding: 19px 19px 0; border: 1px solid #d8c6bd; background-color: #fffcf6; background-image: var(--grain); box-shadow: 0 18px 35px #63485110, 4px 5px 0 #f9f0e8, 5px 6px 0 #d6c5bd; }
.album-main::before, .album-main::after { content: ''; position: absolute; z-index: 1; width: 24px; height: 24px; pointer-events: none; border-color: #b08c5e; }
.album-main::before { left: 12px; top: 12px; border-left: 1px solid; border-top: 1px solid; color: #b08c5e; }
.album-main::after { right: 12px; top: 12px; border-right: 1px solid; border-top: 1px solid; color: #b08c5e; }
.album-focus { display: block; width: 100%; padding: 0; background: transparent; touch-action: pan-y; }
.album-stage { display: flex; align-items: center; justify-content: center; height: var(--photo-height); background: #f3ede5; }
.album-crop, .thumb-crop { position: relative; overflow: hidden; aspect-ratio: var(--ratio); flex-shrink: 0; }
.album-crop { width: min(100%, calc(var(--photo-height) * var(--ratio))); }
.album-crop img, .thumb-crop img { position: absolute; display: block; top: var(--top); left: 0; width: 100%; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }
.album-zoom { display: block; padding: 12px 4px 0; color: var(--muted); font-size: 12px; letter-spacing: .3px; }
.album-main figcaption { display: flex; align-items: center; gap: 17px; padding: 19px 7px 25px; font: italic 25px/1.2 var(--serif); }
.album-number { padding-right: 16px; border-right: 1px solid var(--line); color: #a4805a; font-size: 35px; font-style: normal; }
.album-side { min-width: 0; }
.album-intro > svg { width: 89px; height: 69px; color: var(--rose); stroke-width: 1; margin-bottom: 23px; }
.album-intro .eyebrow { font-size: 9px; }
.album-intro h3 { font-size: 54px; margin: 18px 0 22px; }
.album-intro > p:last-child { font-size: 15px; color: var(--muted); line-height: 1.9; }
.album-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 34px 0 19px; max-width: 320px; }
.album-controls .icon-button { width: 48px; height: 48px; background: #fbf6ee80; }
.album-controls > span { font-size: 13px; letter-spacing: .4px; color: var(--muted); }
.album-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 320px; }
.album-thumb { display: flex; justify-content: center; align-items: center; min-width: 0; height: 91px; padding: 6px; background: #fbf6ee; border: 1px solid #d9c9c0; opacity: .8; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.album-thumb:hover, .album-thumb[aria-current='true'] { opacity: 1; border-color: var(--rose); }
.album-thumb[aria-current='true'] { box-shadow: 0 0 0 2px #8d4b641f; }
.thumb-crop { width: min(100%, calc(77px * var(--ratio))); }
.gallery-caption { max-width: 600px; margin: 43px auto 0; text-align: center; font: italic 25px/1.4 var(--serif); color: var(--muted); }

/* A printed date and four counters, without visual movement. */
.countdown-section { text-align: center; padding-block: 90px; }
.section-bow { display: block; width: 86px; height: 64px; margin: 0 auto 22px; color: var(--rose); stroke-width: 1; }
.countdown-section h2 { color: var(--rose); font-size: 62px; margin: 20px 0 32px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; margin: 0 auto 28px; padding: 22px 8px 25px; border-block: 1px solid #c5a77b85; background: #f5ece580; }
.countdown div { display: flex; flex-direction: column; }
.countdown div + div { border-left: 1px solid var(--line); }
.countdown b { display: none; }
.countdown div:not(:first-child) { border-left: 1px solid var(--line); }
.countdown strong { font: 400 65px/1.1 var(--serif); font-variant-numeric: tabular-nums; color: var(--rose); }
.countdown span { font-size: 11px; letter-spacing: 1.7px; margin-top: 8px; }
.countdown-section > .draft-note { display: block; margin-top: 7px; }

/* Celebration and practical details. */
.celebration { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; background-color: #ead4dc; background-image: var(--grain); border-block: 1px solid #d9bdc8; }
.party-title h2 { margin: 21px 0 29px; font-size: clamp(52px, 5.5vw, 70px); }
.party-title > p:not(.eyebrow) { font-size: 16px; color: #705360; line-height: 1.9; }
.party-flourish { width: 116px; height: 85px; margin: 35px 0 0; color: var(--rose); stroke-width: 1; }
.event-card { position: relative; width: 100%; max-width: 405px; justify-self: center; padding: 40px 30px 34px; border: 1px solid #b89c7d; outline: 1px solid #c6a3ae; outline-offset: 8px; border-radius: 160px 160px 2px 2px; background-color: var(--paper); background-image: var(--grain); box-shadow: 0 18px 28px #73475c0b; text-align: center; }
.event-icon { margin: 12px 0 10px; color: var(--rose); }
.event-icon svg { width: 29px; height: 29px; stroke-width: 1; }
.event-card .eyebrow { font-size: 10px; }
.event-card h3 { font-size: 44px; line-height: 1.03; margin: 19px 0 22px; }
.venue-address { font: normal 15px/1.85 var(--sans); max-width: 300px; margin: auto; color: var(--muted); }
.event-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 35px; margin: 27px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.event-details div { display: flex; flex-direction: column; gap: 6px; }
.event-details span { font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }
.event-details strong { font-size: 15px; font-weight: 500; }
.event-card .button { width: 100%; max-width: 245px; }
.dress-code { text-align: center; padding-block: 95px 85px; }
.dress-line { width: 60px; height: 1px; background: #b89a6e; margin: 0 auto 28px; position: relative; }
.dress-line::after { content: ''; position: absolute; width: 5px; height: 5px; top: -2px; left: 28px; background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg); }
.dress-code h2 { font-size: 49px; margin: 19px 0; }
.dress-formal { font: italic 31px/1.3 var(--serif); color: var(--rose); }
.swim-note { max-width: 390px; margin: 23px auto 26px; padding: 20px; border-block: 1px solid var(--line); font-size: 16px; line-height: 1.85; color: var(--muted); }
.swim-note strong, .gifts strong { color: var(--rose); font-weight: 600; }
.dress-copy { font-size: 15px; color: var(--muted); line-height: 1.85; }
.reserved-colors { display: flex; justify-content: center; gap: 38px; margin-top: 26px; }
.reserved-colors span { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.reserved-colors i { display: block; width: 24px; height: 24px; border: 3px solid var(--paper); outline: 1px solid #c5b4a6; border-radius: 50%; }
.pink-swatch { background: #dca7bb; }
.gold-swatch { background: linear-gradient(110deg, #b28c47, #e5d09d 50%, #b18a49); }
.rsvp-section { padding-block: 20px 95px; }
.rsvp-paper { position: relative; max-width: 820px; margin: auto; text-align: center; padding: 72px 30px 42px; border: 1px solid #bfa57d; background-color: #fffcf6; background-image: var(--grain); }
.rsvp-paper::after { content: ''; position: absolute; inset: 8px; border: 1px solid #e2d0c9; pointer-events: none; }
.rsvp-bow { position: absolute; top: -31px; left: calc(50% - 46px); width: 92px; height: 70px; color: var(--rose); stroke-width: 1; background: var(--paper); }
.rsvp-paper h2 { font-size: 55px; margin: 19px 0; }
.rsvp-paper > p:not(.eyebrow) { font-size: 16px; color: var(--muted); }
.rsvp-paper .button { margin-top: 28px; position: relative; z-index: 1; }
.rsvp-paper > .draft-note { display: block; margin-top: 14px; }

/* Notes are keepsake letters, written with the device's own keyboard. */
.memories { background-color: #f0e5e4; background-image: var(--grain); border-block: 1px solid #e0cecc; padding-block: 85px; }
.memories-intro { text-align: center; }
.memories h2 { margin: 21px 0 24px; }
.memories-intro > p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.85; }
.note-invitation { position: relative; max-width: 660px; margin: 38px auto 65px; padding: 35px 30px 38px; text-align: center; border: 1px solid #d4bcb6; background-color: #fffbf5; background-image: var(--grain); box-shadow: 0 10px 20px #65424e06; }
.note-invitation::before, .note-invitation::after { content: ''; position: absolute; top: 16px; bottom: 16px; width: 14px; border-block: 1px solid #baa07a; pointer-events: none; }
.note-invitation::before { left: 13px; border-left: 1px solid #baa07a; }
.note-invitation::after { right: 13px; border-right: 1px solid #baa07a; }
.note-invitation > svg { color: var(--rose); width: 22px; height: 22px; stroke-width: 1; }
.note-invitation > p { max-width: 390px; margin: 14px auto 24px; font: italic 29px/1.35 var(--serif); color: var(--ink); text-wrap: balance; }
.note-invitation .button { min-width: 230px; }
.wall-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #d7bfc1; padding-top: 30px; }
.wall-heading h3 { font-size: 32px; }
.wall-heading > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.local-notice { max-width: 700px; font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.memory-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; align-items: start; }
.wall-card { position: relative; min-width: 0; padding: 29px 26px; overflow-wrap: anywhere; background-color: #fffcf6; background-image: var(--grain); border: 1px solid #decbc5; box-shadow: 0 7px 18px #59343f06; }
.wall-card::after { content: ''; position: absolute; top: 0; right: 0; width: 19px; height: 19px; background: linear-gradient(225deg, #f0e5e4 48%, #d9c7ba 49%, #eee2d5 52%, #fffaf3 100%); }
.wall-card:nth-child(3n+2) { background-color: #f8eeee; }
.wall-card .sample-tag { display: block; margin-bottom: 21px; padding-bottom: 12px; border-bottom: 1px solid #d7c3bd8c; font-size: 9px; text-transform: uppercase; letter-spacing: 1.4px; color: #82684e; }
.wall-card .note-text { font: 26px/1.4 var(--serif); white-space: pre-wrap; }
.wall-card .guest-signature { margin-top: 24px; font: 30px/1.3 var(--script); color: var(--rose); }
.gifts { text-align: center; padding-block: 85px; }
.gift-envelope { display: block; width: 49px; height: 42px; margin: 0 auto 27px; color: #a17c5a; stroke-width: .85; }
.gifts h2 { font-size: 47px; }
.gifts > p { max-width: 560px; margin: 25px auto 0; font-size: 16px; line-height: 1.85; color: var(--muted); }
footer { text-align: center; padding: 48px 24px 35px; border-top: 1px solid #d8c4be; background-color: #e8d5d9; background-image: var(--grain); }
.footer-bow { width: 80px; height: 60px; color: var(--rose); stroke-width: 1; }
footer .script { font-size: 45px; margin: 13px 0 8px; color: var(--rose); line-height: 1.4; }
footer > span { font-size: 11px; letter-spacing: 2px; color: var(--label); }
.footer-note { font: italic 19px/1.5 var(--serif); color: var(--muted); margin-top: 22px; }

/* Focused dialogs, with comfortable touch targets. */
dialog { width: min(550px, calc(100% - 28px)); max-height: 90dvh; padding: 26px 30px 30px; color: var(--ink); background-color: var(--paper); background-image: var(--grain); border: 1px solid #c7b090; border-radius: 4px; box-shadow: 0 25px 90px #34222d40; overscroll-behavior: contain; }
dialog::backdrop { background: #3e2b358c; backdrop-filter: blur(5px); }
.dialog-top { position: sticky; top: -26px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -26px -30px 22px; padding: 12px 21px 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dialog-top > .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
.dialog-top .icon-button { border: 0; flex-shrink: 0; }
dialog h2 { font-size: 44px; letter-spacing: -1px; }
.dialog-description, dialog > p { margin-top: 12px; margin-bottom: 25px; font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 19px 0; font-size: 13px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px; border: 1px solid #cfb9bf; border-radius: 2px; background: #fffdf8; color: var(--ink); font-size: 16px; font-weight: 400; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a747d; font-size: 13px; }
.form-error { margin-top: 10px; font-size: 12px; color: #a6264d; }
.form-error:empty { display: none; }
.form-disclosure { margin: 15px 0; font-size: 12px; color: var(--muted); }
.submit-memory { width: 100%; }
#photo-dialog { padding: 48px 20px 18px; width: fit-content; max-width: 94vw; overflow: auto; }
#photo-dialog .lightbox-close { position: absolute; right: 6px; top: 3px; border: 0; }
.lightbox-crop { position: relative; overflow: hidden; width: min(80vw, calc(68dvh * var(--ratio))); aspect-ratio: var(--ratio); }
.lightbox-crop img { position: absolute; top: var(--top); left: 0; width: 100%; height: auto; }
#lightbox-caption { margin-top: 13px; text-align: center; font: italic 23px/1.4 var(--serif); }
.entry-dialog { width: min(420px, calc(100% - 32px)); padding: 37px 29px 21px; text-align: center; border-radius: 160px 160px 3px 3px; outline: 1px solid #e1cfc04d; outline-offset: 6px; }
.entry-dialog .entry-bow { width: 96px; height: 74px; margin: 7px auto 15px; color: var(--rose); stroke-width: 1; }
.entry-dialog > .eyebrow { margin: 0 0 19px; font-size: 9px; letter-spacing: 1.5px; }
.entry-dialog h2 { font-size: 47px; }
.entry-dialog #entry-description { margin: 23px 0 26px; font-size: 14px; line-height: 1.8; }
.entry-dialog .button { width: 100%; min-height: 52px; }
.entry-silent { display: block; min-height: 44px; margin: 10px auto 0; padding: 12px 8px; color: var(--muted); background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; bottom: calc(25px + env(safe-area-inset-bottom)); left: 50%; z-index: 3; transform: translate(-50%, 15px); width: max-content; max-width: calc(100% - 30px); padding: 14px 20px; border-radius: 3px; background: #513746; color: #fff9f4; font-size: 14px; line-height: 1.5; box-shadow: 0 5px 25px #32202a22; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Sections drift in once as guests scroll; app.js opts in only when motion is welcome. */
.reveal-ready :is(main > section:not(.hero), footer) > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease-out, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready :is(main > section:not(.hero), footer) > .is-revealed { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .celebration { gap: 55px; }
  .story-album { gap: 42px; }
  .album-main { --photo-height: 440px; }
  .album-intro h3 { font-size: 46px; }
}
@media (max-width: 760px) {
  .section-pad { padding: 72px 24px; }
  .site-header { height: 70px; padding: 0 23px; gap: 17px; }
  .brand { font-size: 32px; }
  .brand span { display: none; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .music-toggle { width: 44px; height: 44px; }
  .hero { padding: 32px 20px 28px; }
  .hero-paper { max-width: 450px; padding: 32px 23px 35px; border-radius: 230px 230px 2px 2px; }
  .hero-paper::before { inset: 8px; border-radius: 220px 220px 0 0; }
  .hero-paper::after { inset: 13px; border-radius: 215px 215px 0 0; }
  .hero-bow { width: 95px; height: 70px; margin-bottom: 24px; }
  .hero .eyebrow { max-width: 260px; font-size: 10px; letter-spacing: 2px; }
  .hero h1 { margin-top: 24px; }
  .hero-xv { font-size: 155px; letter-spacing: -10px; }
  .hero-mis { font-size: 37px; transform: translateX(-44px); }
  .hero-name { font-size: clamp(56px, 15.7vw, 72px); margin-top: 0; }
  .hero-tagline { font-size: 19px; margin: 17px 0 23px; }
  .hero-date { gap: 16px; padding-block: 12px; font-size: 11px; letter-spacing: 1.4px; }
  .hero-date span + span { padding-left: 16px; }
  .hero-date span:first-child { font-size: 27px; }
  .hero-place { font-size: 10px; letter-spacing: 1.5px; }
  .hero-footnote { max-width: 260px; font-size: 17px; margin-top: 23px; }
  .hero-botanical { width: 150px; height: 310px; opacity: .45; }
  .botanical-left { left: -70px; top: 145px; transform: rotate(-28deg); }
  .botanical-right { right: -70px; top: 330px; transform: scaleX(-1) rotate(-28deg); }
  .hero-sparkle { display: none; }
  .welcome { padding-top: 28px; padding-bottom: 40px; }
  .music-card { padding: 16px 4px; gap: 12px; margin-bottom: 67px; }
  .music-track { font-size: 24px; }
  .music-artist, .music-card span { font-size: 12px; }
  .audio-bars { padding-left: 4px; }
  .welcome h2 { font-size: 42px; }
  .welcome-copy { font-size: 16px; line-height: 1.85; }
  .welcome-copy br { display: none; }
  .family { padding-top: 23px; padding-bottom: 70px; }
  .family::before { margin-bottom: 32px; }
  .family h2 { font-size: 39px; }
  /* Stacked so full names keep a comfortable line length. */
  .family-names { flex-direction: column; gap: 18px; margin: 30px auto 25px; }
  .family-names h3 { font-size: 32px; margin-bottom: 4px; }
  .family-names p { font-size: 20px; }
  .family-note { font-size: 19px; }
  .story { padding-top: 65px; padding-bottom: 60px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading .eyebrow { font-size: 10px; letter-spacing: 1.8px; }
  .section-heading h2 { font-size: 43px; line-height: 1.06; }
  .story-album { display: block; max-width: 450px; }
  .album-main { --photo-height: clamp(315px, 102vw, 445px); padding: 14px 14px 0; box-shadow: 0 12px 24px #6348510c, 3px 4px 0 #faf2e9, 4px 5px 0 #d6c5bd; }
  .album-main::before { left: 8px; top: 8px; width: 20px; height: 20px; }
  .album-main::after { right: 8px; top: 8px; width: 20px; height: 20px; }
  .album-main figcaption { font-size: 23px; gap: 13px; padding: 17px 2px 23px; }
  .album-number { font-size: 31px; padding-right: 13px; }
  .album-zoom { font-size: 12px; }
  .album-intro { display: none; }
  .album-controls { max-width: 100%; margin: 27px 0 17px; }
  .album-thumbnails { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; max-width: 100%; }
  .album-thumb { height: 69px; padding: 3px; }
  .thumb-crop { width: min(100%, calc(61px * var(--ratio))); }
  .gallery-caption { font-size: 23px; margin-top: 31px; max-width: 350px; }
  .countdown-section h2 { font-size: 54px; }
  .countdown { padding: 20px 0; }
  .countdown strong { font-size: 51px; }
  .countdown span { font-size: 10px; letter-spacing: 1px; }
  .celebration { grid-template-columns: 1fr; gap: 49px; text-align: center; padding-block: 72px 77px; }
  .party-title h2 { font-size: 55px; margin-top: 18px; }
  .party-flourish { display: none; }
  .event-card { max-width: 355px; padding: 36px 25px 31px; }
  .event-card h3 { font-size: 43px; }
  .dress-code h2 { font-size: 42px; }
  .rsvp-section { padding-top: 20px; padding-bottom: 75px; }
  .rsvp-paper { padding: 64px 23px 36px; }
  .rsvp-paper .eyebrow { max-width: 260px; margin: auto; font-size: 10px; letter-spacing: 1.7px; }
  .rsvp-paper h2 { font-size: 45px; }
  .memories { padding-block: 70px; }
  .memories h2 { font-size: 48px; }
  .note-invitation { padding: 30px 27px 32px; margin: 31px auto 45px; }
  .note-invitation > p { font-size: 27px; }
  .wall-heading { align-items: start; flex-direction: column; gap: 8px; }
  .wall-heading h3 { font-size: 29px; }
  .memory-wall { grid-template-columns: 1fr; gap: 20px; }
  .wall-card { padding: 28px; }
  .wall-card .note-text { font-size: 27px; }
  .wall-card .sample-tag { font-size: 10px; }
  .wall-card .guest-signature { font-size: 31px; }
  .gifts h2 { font-size: 43px; }
  footer .script { font-size: 40px; }
}
@media (max-width: 380px) {
  .preview-ribbon { font-size: 10px; padding-inline: 8px; }
  .site-header { padding: 0 16px; gap: 10px; }
  .site-header nav { gap: 10px; font-size: 11px; }
  .hero { padding: 26px 16px 25px; }
  .hero-paper { padding-inline: 19px; }
  .hero-bow { width: 89px; height: 65px; }
  .hero .eyebrow { max-width: 210px; letter-spacing: 1.7px; }
  .hero-xv { font-size: 140px; }
  .hero-name { font-size: 55px; }
  .hero-tagline { font-size: 17px; }
  .hero-date { gap: 12px; font-size: 10px; letter-spacing: 1.1px; }
  .hero-date span + span { padding-left: 12px; }
  .hero-place { letter-spacing: 1.2px; }
  .section-pad { padding-left: 20px; padding-right: 20px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  .audio-bars { display: none; }
  .music-card { gap: 11px; }
  .music-track { font-size: 23px; }
  .music-artist { font-size: 11px; }
  .welcome h2 { font-size: 37px; }
  .family h2 { font-size: 36px; }
  .family-names { gap: 14px; }
  .family-names h3 { font-size: 29px; }
  .family-names p { font-size: 19px; }
  .section-heading h2 { font-size: 38px; }
  .album-main { padding-inline: 12px; }
  .album-main figcaption { font-size: 21px; }
  .album-thumbnails { gap: 3px; }
  .album-thumb { height: 62px; padding: 2px; }
  .thumb-crop { width: min(100%, calc(56px * var(--ratio))); }
  .countdown strong { font-size: 44px; }
  .countdown span { font-size: 10px; letter-spacing: .3px; }
  .countdown-section h2 { font-size: 48px; }
  .event-card { padding-inline: 20px; }
  .event-details { column-gap: 27px; }
  .dress-code h2 { font-size: 38px; }
  .rsvp-paper h2 { font-size: 40px; }
  .memories h2 { font-size: 43px; }
  .note-invitation { padding-inline: 24px; }
  .note-invitation .button { min-width: 0; width: 100%; padding-inline: 14px; }
  .wall-card { padding: 25px; }
  .gifts h2 { font-size: 39px; }
  dialog { padding: 21px 20px 24px; }
  .dialog-top { top: -21px; margin: -21px -20px 21px; padding: 12px 15px 9px; }
  dialog h2 { font-size: 37px; }
  .entry-dialog { padding: 29px 22px 19px; }
  .entry-dialog h2 { font-size: 40px; }
  .entry-dialog .entry-bow { height: 61px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
