/* Gokul & Sivani - an editorial, mobile-first invitation.
   Change the palette and typography here. All photography stays uncropped. */
:root {
  --paper: #f7f3eb;
  --paper-deep: #eee9df;
  --ink: #352a2c;
  --muted: #766c65;
  --gold: #a0814c;
  --gold-light: #dbc699;
  --wine: #302329;
  --wine-deep: #241c20;
  --line: #dcd3c4;
  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.7; }
body.cover-locked, body.dialog-open { overflow: hidden; }
::selection { background: #d6c298; color: var(--wine); }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
button { border: 0; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
:focus:not(:focus-visible) { outline: none; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
em { font-weight: 400; }
.icon { width: 19px; height: 19px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-family: var(--sans); font-size: 9px; line-height: 1.7; font-weight: 500; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
h2 { font-family: var(--serif); font-size: clamp(37px, 6vw, 60px); line-height: 1.12; font-weight: 400; letter-spacing: -.025em; }
h2 em { color: var(--gold); }
.section-space { padding: 88px 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 13px 25px; font-size: 11px; font-weight: 500; letter-spacing: .065em; border: 1px solid transparent; border-radius: 2px; transition: background .3s, color .3s, transform .3s; position: relative; isolation: isolate; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--gold { background: linear-gradient(110deg,#c5a76e,#ebd6a8 48%,#c5a66e); color: #332520; border-color: #c8af7d; }
.button--dark { color: var(--paper); background: var(--wine); }
.button--dark:hover { background: #49363e; }
.button--outline { border-color: #c5b7a1; background: transparent; }
.button--outline:hover { background: #e9e0d0; }
.button--outline-light { border-color: #766250; background: transparent; color: #e9d8b9; }
.button--outline-light:hover { background: #ffffff0c; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 10px; background: transparent; border: 1px solid transparent; border-radius: 50%; }
.icon-button:hover { background: #b7996914; }
.text-button { min-height: 44px; padding: 8px 12px; border: 0; background: none; color: inherit; font-size: 11px; font-weight: 400; letter-spacing: .035em; text-underline-offset: 5px; }
.text-button:hover { text-decoration: underline; }
.sheen { overflow: hidden; }
.sheen::after { content: ''; position: absolute; inset: -50% -100%; z-index: -1; background: linear-gradient(105deg,transparent 42%,#fff8 49%,#fff0 57%); transform: translateX(-70%); animation: golden-shine 8s ease-in-out infinite; pointer-events: none; }
@keyframes golden-shine { 0%,65% { transform: translateX(-70%); } 90%,100% { transform: translateX(70%); } }

/* The cover opens like two beautifully weighted invitation leaves. */
.cover { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; perspective: 1800px; min-height: 100svh; overflow-y: auto; overflow-x: hidden; color: #eddfc4; background: var(--wine-deep); transition: background 1.5s; }
.cover-door { position: absolute; top: 0; bottom: 0; width: 50.1%; background: radial-gradient(ellipse at 95% 48%,#513b43 0%,#302329 64%,#241c20 100%); transition: transform 1.55s var(--ease), opacity 1.4s ease; backface-visibility: hidden; }
.cover-door--left { left: 0; transform-origin: left center; border-right: 1px solid #c2a2741a; }
.cover-door--right { right: 0; transform-origin: right center; background: radial-gradient(ellipse at 5% 48%,#513b43 0%,#302329 64%,#241c20 100%); }
.cover-frame { position: absolute; inset: 16px; border: 1px solid #c2a27454; pointer-events: none; }
.cover-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid #c2a27418; }
.cover-content { position: relative; width: min(100%,560px); min-height: min(760px,100svh); padding: 42px 30px 34px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; transition: transform .8s var(--ease), opacity .5s ease; }
.cover-eyebrow { color: #bda47b; font-size: 9px; position: absolute; top: 44px; }
.cover-arch { position: absolute; width: min(92%,380px); top: 80px; bottom: 168px; z-index: 0; opacity: .45; pointer-events: none; }
.cover-arch svg { height: 100%; width: 100%; fill: none; stroke: #b89b69; stroke-width: .7; }
.cover-sprig { width: 65px; height: 68px; color: #cab080; position: relative; margin: 20px 0 12px; }
.cover-prelude { font-family: var(--serif); font-style: italic; font-size: 22px; color: #d2be9e; position: relative; }
.cover-names { position: relative; display: flex; flex-direction: column; font-family: var(--serif); font-size: clamp(57px,12vw,77px); line-height: .96; font-weight: 400; letter-spacing: -.025em; margin: 25px 0 24px; color: #f1e5cf; }
.cover-names em { font-size: 35px; color: #c3a370; line-height: 1.2; margin: 6px 0 4px; }
.cover-date { position: relative; letter-spacing: .32em; font-size: 11px; color: #d4bb90; }
.cover-action { position: relative; display: flex; align-items: center; flex-direction: column; margin-top: 42px; }
.cover-action .button { min-width: 228px; }
.music-consent { font-size: 10px; color: #c8b9aa; min-height: 46px; cursor: pointer; display: inline-flex; gap: 9px; align-items: center; margin-top: 10px; position: relative; }
.music-consent .icon { width: 12px; height: 12px; }
.music-consent input { position: absolute; left: 0; width: 16px; height: 16px; opacity: 0; }
.check-mark { width: 14px; height: 14px; border: 1px solid #9d876c; border-radius: 2px; position: relative; }
.music-consent input:checked + .check-mark::after { content: ''; position: absolute; width: 7px; height: 4px; border-left: 1px solid #ddc599; border-bottom: 1px solid #ddc599; transform: rotate(-45deg); left: 3px; top: 3px; }
.music-consent input:focus-visible + .check-mark { outline: 2px solid #ead8b6; outline-offset: 4px; }
.cover-footnote { position: absolute; bottom: 28px; font-family: var(--serif); font-size: 15px; font-style: italic; color: #b29a83; }
.cover.opening { background: transparent; }
.cover.opening .cover-door--left { transform: rotateY(-102deg); opacity: 0; }
.cover.opening .cover-door--right { transform: rotateY(102deg); opacity: 0; }
.cover.opening .cover-content, .cover.opening .cover-frame { opacity: 0; transform: scale(.97); pointer-events: none; }

/* The letter: ivory paper, quiet type and complete, uncropped portraits. */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 35; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.site-header { max-width: 1400px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 26px 25px; gap: 15px; }
.wordmark { font-family: var(--serif); color: var(--gold); font-size: 23px; letter-spacing: -.03em; }
.header-date { display: none; font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.header-location { font-size: 9px; letter-spacing: .1em; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; gap: 12px; }
.header-location .icon { width: 15px; height: 15px; }
.hero { padding: 32px 24px 0; position: relative; text-align: center; overflow: hidden; }
.hero-copy .eyebrow { font-size: 9px; }
.couple-names { font-family: var(--serif); display: flex; justify-content: center; align-items: center; flex-direction: column; font-weight: 400; font-size: clamp(73px,18vw,106px); line-height: .85; letter-spacing: -.06em; margin: 28px 0 26px; }
.couple-names em { font-size: .47em; color: var(--gold); font-weight: 400; line-height: 1.1; margin: 6px 0 2px; }
.hero-tagline { font-family: var(--serif); font-size: 22px; font-style: italic; color: #6f625a; }
.flourish { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 21px 0 13px; color: var(--gold); }
.flourish span { width: 29px; height: 1px; background: #c9b695; }
.flourish svg { width: 14px; height: 14px; }
.hero-date { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #736553; }
.portrait-duet { position: relative; display: flex; align-items: flex-start; gap: 22px; max-width: 820px; margin: 43px auto 0; padding: 8px 0 18px; }
.portrait { width: calc(50% - 11px); position: relative; padding: 5px; border: 1px solid #d6ccbb; background: #fbf8f1; }
.portrait--bride { margin-bottom: 29px; }
.portrait--groom { margin-top: 34px; }
.portrait--bride .photo-trigger { transform-origin: bottom right; }
.portrait-line { position: absolute; pointer-events: none; z-index: -1; inset: 13px -7px -7px 13px; border: 1px solid #ded4c5; }
.portrait--groom .portrait-line { inset: -8px 12px 12px -8px; }
.photo-trigger { border: 0; padding: 0; display: block; width: 100%; line-height: 0; background: transparent; position: relative; text-align: left; }
.photo-trigger img { width: 100%; height: auto; }
.photo-expand { position: absolute; right: 9px; bottom: 9px; display: flex; justify-content: center; align-items: center; height: 28px; width: 28px; border-radius: 50%; background: #302329aa; color: #fff8e9; opacity: 0; transition: opacity .3s; }
.photo-expand .icon { width: 14px; height: 14px; }
.photo-trigger:hover .photo-expand, .photo-trigger:focus-visible .photo-expand { opacity: 1; }
.duet-ampersand { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); font-size: 42px; font-family: var(--serif); font-style: italic; color: #b09366; line-height: 1; z-index: 2; }
.hero-subline { margin-top: 24px; font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.scroll-cue { display: inline-flex; align-items: center; flex-direction: column; gap: 17px; margin-top: 32px; padding: 12px 10px 0; font-size: 7px; letter-spacing: .19em; color: #88775f; }
.scroll-track { display: block; position: relative; overflow: hidden; width: 1px; height: 48px; background: #d9cebc; }
.scroll-track::after { content: ''; position: absolute; width: 1px; height: 18px; background: var(--gold); animation: scroll-drop 2.6s ease-in-out infinite; }
@keyframes scroll-drop { 0% { transform: translateY(-20px); } 70%,100% { transform: translateY(50px); } }
.love-note { position: relative; max-width: 820px; margin: auto; text-align: center; padding-top: 71px; padding-bottom: 91px; }
.note-sprig { width: 63px; height: 83px; color: var(--gold); margin-bottom: 22px; }
.love-note h2 { margin: 18px 0 29px; }
.letter-body { font-size: 13px; line-height: 2; max-width: 490px; margin: auto; color: #746960; }
.letter-body p + p { margin-top: 21px; }
.letter-closing { font-size: 13px; color: #746960; line-height: 2; max-width: 420px; margin: 22px auto 0; }
.signature { font-family: var(--serif); font-size: 19px; color: var(--gold); font-style: italic; line-height: 1.5; margin-top: 28px; }
.signature span { font-size: 26px; }

/* Scratch foil is drawn once, not animated every frame. */
.date-section { background: var(--wine); color: var(--paper); position: relative; overflow: hidden; text-align: center; padding-top: 75px; padding-bottom: 73px; }
.date-section .eyebrow { color: #c3a878; }
.date-section h2 { margin-top: 17px; font-size: clamp(39px,6vw,58px); }
.date-section h2 em { color: #d6bd8e; }
.date-content { position: relative; z-index: 1; }
.date-intro { font-size: 12px; color: #b9aab0; margin-top: 17px; }
.date-orbit { position: absolute; border: 1px solid #b2987412; border-radius: 50%; height: 720px; width: 720px; pointer-events: none; }
.date-orbit--one { top: 80px; left: calc(50% - 570px); }
.date-orbit--two { top: 110px; right: calc(50% - 570px); width: 900px; height: 900px; }
.scratch-wrap { max-width: 382px; margin: 36px auto 0; }
.scratch-card { height: 216px; position: relative; border-radius: 3px; background: #faf3e4; box-shadow: 0 16px 40px #160c152b; color: var(--wine); overflow: hidden; }
.scratch-card::after { content: ''; position: absolute; inset: 8px; border: 1px solid #ab8b5859; border-radius: 1px; pointer-events: none; z-index: 4; }
.date-revealed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 15px; }
.date-weekday { font-size: 9px; text-transform: uppercase; letter-spacing: .23em; color: #886d43; }
.date-lockup { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 8px; }
.date-number { font-family: var(--serif); font-weight: 500; font-size: 84px; line-height: 1; letter-spacing: -.07em; }
.date-month-year { display: flex; flex-direction: column; border-left: 1px solid #b7a17a; padding: 8px 0 8px 18px; text-align: left; gap: 2px; }
.date-month-year span:first-child { text-transform: uppercase; font-size: 10px; letter-spacing: .13em; }
.date-month-year span:last-child { font-family: var(--serif); font-size: 31px; line-height: 1.15; letter-spacing: .05em; }
.date-time { font-size: 10px; color: #7b6956; letter-spacing: .06em; }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: none; cursor: crosshair; display: none; transition: opacity .9s ease, transform 1.2s var(--ease); }
.scratch-instructions { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; flex-direction: column; align-items: center; justify-content: center; color: #493824; transition: opacity .45s; }
.scratch-flower { width: 42px; height: 42px; margin-bottom: 11px; }
.scratch-title { font-family: var(--serif); font-size: 25px; line-height: 1.3; font-style: italic; }
.scratch-hint { font-size: 8px; letter-spacing: .15em; margin-top: 12px; }
.enhanced #scratch-canvas { display: block; }
.enhanced .scratch-instructions { display: flex; }
.scratch-card.scratching .scratch-instructions { opacity: 0; }
.scratch-card.is-revealed #scratch-canvas { opacity: 0; transform: scale(1.035); pointer-events: none; }
.scratch-card.is-revealed .scratch-instructions { opacity: 0; }
.reveal-action { min-height: 53px; display: grid; place-items: center; color: #c4b69e; margin-top: 8px; }
.reveal-action p { font-family: var(--serif); font-size: 19px; font-style: italic; }
.countdown-wrap { margin-top: 29px; }
.countdown-wrap .eyebrow { font-size: 8px; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 19px auto 0; max-width: 440px; }
.countdown > div { flex: 1 1 0; min-width: 0; display: flex; align-items: center; flex-direction: column; }
.countdown > div > span:first-child { font-size: 43px; font-family: var(--serif); line-height: 1.2; font-weight: 400; font-variant-numeric: tabular-nums; color: #eee0ca; }
.countdown > i { font-family: var(--serif); font-size: 24px; font-style: normal; color: #856c55; line-height: 1.9; }
.countdown-unit { font-size: 7px; letter-spacing: .17em; color: #b6a38d; margin-top: 4px; }
.time-zone { margin-top: 17px; font-size: 9px; color: #b5a49c; letter-spacing: .03em; }
.countdown-wrap .button { margin-top: 29px; }
.petal { position: fixed; z-index: 75; width: 10px; height: 17px; border-radius: 85% 0 85% 30%; pointer-events: none; box-shadow: inset -2px -2px 3px #65492022; }

/* No gallery heading, no story section, just photographs and a little poetry. */
.photo-interlude { max-width: 1160px; margin: auto; padding-top: 86px; padding-bottom: 84px; }
.gallery-quote { font-family: var(--serif); font-size: 26px; color: #8e7757; font-style: italic; line-height: 1.35; text-align: center; margin: 27px 12px 0; }

/* Grand Arena: its actual photograph and easy-to-tap travel directions. */
.venue-section { background: var(--paper-deep); }
.venue-intro { text-align: center; margin-bottom: 37px; }
.venue-intro h2 { margin-top: 17px; }
.venue-composition { max-width: 1090px; margin: auto; }
.venue-photo { padding: 6px 6px 0; background: #fbf8f1; border: 1px solid #d6cbb8; border-bottom: 0; }
.venue-photo img { width: 100%; height: auto; }
.venue-details { border: 1px solid #d6cbb8; border-top: 0; padding: 30px 23px; background: #fbf8f1; }
.venue-address .eyebrow { font-size: 8px; }
.venue-address h3 { font-family: var(--serif); font-size: 39px; line-height: 1.1; font-weight: 400; margin: 11px 0 15px; }
.venue-address address { font-style: normal; font-size: 12px; line-height: 1.9; color: #74685d; }
.venue-practical { margin-top: 25px; padding-top: 24px; border-top: 1px solid #e1d8c9; }
.venue-date, .venue-time { display: flex; align-items: center; gap: 13px; font-size: 11px; margin-bottom: 12px; color: #695c51; }
.venue-practical .icon { color: #95794e; width: 17px; height: 17px; }
.venue-time small { font-size: 8px; margin-left: 4px; }
.venue-practical .button { width: 100%; margin-top: 12px; }
.venue-practical .button .icon { color: #d9c5a1; }
.venue-practical .button .icon:last-child { margin-left: auto; }
.venue-practical .button .icon:first-child { margin-right: auto; }
.travel-block { max-width: 860px; margin: 66px auto 0; }
.travel-heading { text-align: center; }
.travel-heading .eyebrow { font-size: 8px; }
.travel-heading h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; margin: 14px 0 29px; }
.travel-options { border-top: 1px solid #d2c5b2; }
.travel-option { border-bottom: 1px solid #d2c5b2; }
.travel-option summary { display: flex; align-items: center; min-height: 82px; padding: 15px 2px; cursor: pointer; gap: 17px; list-style: none; }
.travel-option summary::-webkit-details-marker { display: none; }
.travel-option summary::marker { content: ''; }
.travel-icon { display: flex; justify-content: center; align-items: center; width: 41px; height: 41px; border: 1px solid #cfc0a8; border-radius: 50%; color: #967749; flex: 0 0 auto; }
.travel-option summary > span:nth-child(2) { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.travel-plus { position: relative; display: block; margin-left: auto; height: 15px; width: 15px; flex-shrink: 0; }
.travel-plus::before, .travel-plus::after { content: ''; position: absolute; width: 11px; height: 1px; background: #947a54; top: 7px; left: 2px; transition: transform .3s; }
.travel-plus::after { transform: rotate(90deg); }
.travel-option[open] .travel-plus::after { transform: rotate(0); }
.travel-answer { margin: -1px 6px 24px 60px; color: #776b60; font-size: 12px; line-height: 1.9; }
.travel-answer a { display: inline-flex; align-items: center; min-height: 44px; color: #7e633c; font-size: 10px; gap: 9px; text-decoration: underline; text-underline-offset: 4px; }
.travel-answer a .icon { width: 13px; height: 13px; }
.travel-note { margin: 23px auto 0; text-align: center; max-width: 580px; color: #837466; font-size: 10px; line-height: 1.9; }
.travel-sources { margin-top: 9px; text-align: center; color: #7c6d5f; font-size: 10px; }
.travel-sources summary { cursor: pointer; padding: 11px; min-height: 44px; }
.travel-sources p { max-width: 600px; margin: 5px auto 10px; }
.travel-sources div { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; }
.travel-sources a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }

/* A quiet closing. The soundtrack plays through the bottom music control. */
.closing { text-align: center; padding-top: 82px; padding-bottom: 58px; }
.closing-flower { width: 49px; height: 49px; color: var(--gold); margin-bottom: 28px; }
.closing .eyebrow { font-size: 8px; }
.closing h2 { margin: 18px 0 24px; font-size: clamp(35px,5vw,57px); }
.closing-message { font-size: 12px; color: #807268; line-height: 1.9; }
.closing-names { font-family: var(--serif); font-size: 46px; line-height: 1.2; font-style: italic; color: #806541; margin: 30px 0 14px; }
.closing-date { font-size: 9px; color: #87735b; letter-spacing: .04em; }
.closing-date > span { display: inline-block; margin: 0 6px; }
.closing .button { margin-top: 30px; }
.site-footer { margin: 35px 24px 0; border-top: 1px solid #ded5c6; padding: 24px 0 calc(108px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; color: #93816a; gap: 12px; }
.site-footer .wordmark { font-size: 20px; }
.site-footer p { font-size: 7px; letter-spacing: .1em; }
.site-footer > span { font-size: 9px; }

/* Thumb-reachable controls, with safe-area spacing for iPhones. */
.bottom-nav { position: fixed; z-index: 50; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4,1fr); width: min(356px,calc(100% - 32px)); padding: 5px 7px; background: #302329f5; border: 1px solid #9f82594a; color: #d9c8af; border-radius: 5px; box-shadow: 0 5px 24px #1d141924; opacity: 0; transition: opacity .4s; pointer-events: none; }
.invitation-open .bottom-nav { opacity: 1; pointer-events: auto; }
.bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 7px 2px; min-height: 49px; background: transparent; border-radius: 2px; color: inherit; font-size: 8px; letter-spacing: .035em; }
.bottom-nav a:hover, .bottom-nav button:hover { background: #d8ba8010; }
.bottom-nav a[aria-current="location"] { color: #f0d49e; background: #d8ba8010; }
.bottom-nav a[aria-current="location"]::after { content: ''; width: 3px; height: 3px; background: #d3b078; border-radius: 50%; position: absolute; top: 3px; }
.bottom-nav .icon { height: 18px; width: 18px; }
.music-note { display: flex; height: 18px; }
.equalizer { display: none; height: 18px; gap: 3px; align-items: center; }
.equalizer i { height: 12px; width: 2px; background: #ddc086; transform-origin: center; animation: equalize 1s ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: -.4s; height: 18px; }
.equalizer i:nth-child(3) { animation-delay: -.7s; }
.music-playing .music-note { display: none; }
.music-playing .equalizer { display: flex; }
@keyframes equalize { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.toast { position: fixed; bottom: calc(95px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%,12px); width: max-content; max-width: calc(100vw - 38px); text-align: center; border: 1px solid #c7b797; background: #f8f3e9; color: #675139; box-shadow: 0 4px 28px #2f242324; border-radius: 4px; font-size: 11px; line-height: 1.6; padding: 12px 18px; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

/* Dialog photographs are always contained, never cover-cropped. */
dialog { color: inherit; }
.photo-viewer { position: fixed; padding: 0; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; border: 0; background: #221c20f7; color: #eddfc9; overflow: hidden; }
.photo-viewer::backdrop { background: #221c20; }
.viewer-close { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); right: 14px; background: #221c20b0; border: 1px solid #a78e6638; }
.viewer-image-wrap { display: flex; justify-content: center; align-items: center; height: calc(100dvh - 140px); padding: calc(62px + env(safe-area-inset-top)) 15px 0; }
.viewer-image-wrap img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; touch-action: pan-y pinch-zoom; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 25px; height: 64px; }
.viewer-controls p { font-size: 10px; color: #bba784; letter-spacing: .16em; min-width: 42px; text-align: center; }
.viewer-hint { font-size: 9px; text-align: center; color: #a99b8b; margin-bottom: 16px; }
.share-dialog { width: min(440px,calc(100% - 32px)); padding: 48px 26px 28px; border: 1px solid #c8b28d; background: var(--paper); }
.share-dialog::backdrop { background: #231c25b3; }
#close-share { position: absolute; right: 8px; top: 8px; }
.share-dialog h2 { font-size: 35px; margin-bottom: 25px; text-align: center; }
.share-dialog input { width: 100%; padding: 12px; min-height: 48px; border: 1px solid #cabcaa; border-radius: 0; font-size: 11px; background: #fff8; color: var(--ink); }
.share-dialog .button { width: 100%; margin-top: 12px; }
.requires-js { display: none; }
.enhanced .requires-js { display: inline-flex; }
.enhanced .bottom-nav { display: grid; }
.no-script-note { text-align: center; font-size: 11px; padding: 15px 24px; background: var(--paper-deep); }

/* Enhancement never conceals content when JavaScript is unavailable. */
.motion-ready .reveal { opacity: 0; transform: translateY(23px); transition: opacity 1.15s var(--ease), transform 1.15s var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.portrait--groom.reveal { transition-delay: .12s; }
@media (min-width: 600px) {
  .section-space { padding: 112px 40px; }
  .site-header { padding: 28px 48px; }
  .header-date { display: block; }
  .hero { padding: 52px 40px 0; }
  .hero-copy .eyebrow { font-size: 10px; }
  .couple-names { flex-direction: row; font-size: clamp(86px,12vw,155px); line-height: 1; gap: .2em; margin: 15px 0 4px; }
  .couple-names em { font-size: .56em; margin: 0; }
  .hero-tagline { font-size: 26px; }
  .flourish { margin-top: 22px; }
  .hero-date { font-size: 10px; }
  .portrait-duet { gap: 65px; margin-top: 47px; padding: 12px 24px 16px; max-width: 880px; }
  .portrait { width: calc(50% - 32.5px); padding: 8px; }
  .portrait--groom { margin-top: 69px; }
  .duet-ampersand { font-size: 66px; }
  .hero-subline { margin-top: 29px; font-size: 8px; letter-spacing: .2em; }
  .scroll-cue { margin-top: 34px; font-size: 8px; }
  .scroll-track { height: 55px; }
  .love-note { padding-top: 84px; padding-bottom: 110px; }
  .love-note h2 { margin-top: 20px; }
  .letter-body, .letter-closing { font-size: 14px; }
  .date-section { padding-top: 90px; padding-bottom: 84px; }
  .date-section h2 { margin-top: 18px; }
  .scratch-wrap { margin-top: 38px; }
  .scratch-card { height: 226px; }
  .countdown-wrap { margin-top: 29px; }
  .countdown { gap: 17px; }
  .countdown > div > span:first-child { font-size: 55px; }
  .countdown-unit { font-size: 8px; }
  .countdown > i { font-size: 31px; }
  .gallery-quote { font-size: 29px; margin-top: 32px; }
  .venue-intro { margin-bottom: 49px; }
  .venue-photo { padding: 9px 9px 0; }
  .venue-details { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; padding: 38px 39px; }
  .venue-address h3 { font-size: 45px; }
  .venue-practical { padding: 5px 0 0 33px; margin: 0; border-top: 0; border-left: 1px solid #e1d8c9; }
  .venue-address address { font-size: 13px; }
  .venue-date, .venue-time { font-size: 12px; }
  .travel-block { margin-top: 85px; }
  .travel-heading h3 { font-size: 45px; margin-bottom: 40px; }
  .travel-option summary { min-height: 87px; }
  .travel-option summary > span:nth-child(2) { font-size: 26px; }
  .travel-answer { font-size: 13px; }
  .closing { padding-bottom: 59px; }
  .closing-message { font-size: 13px; }
  .closing-names { font-size: 54px; }
  .closing-date { font-size: 10px; }
  .site-footer { max-width: 1304px; margin: 40px 48px 0; }
  .site-footer p { font-size: 8px; }
  .cover-content { min-height: min(850px,100svh); padding-top: 70px; }
  .cover-arch { top: 104px; bottom: 192px; width: 385px; }
  .cover-eyebrow { top: 55px; font-size: 10px; }
  .cover-names { font-size: 86px; margin: 24px 0 26px; }
  .cover-sprig { margin-top: 0; }
  .cover-prelude { font-size: 25px; }
  .cover-action { margin-top: 43px; }
  .cover-footnote { bottom: 37px; font-size: 17px; }
  .cover-frame { inset: 25px; }
  .viewer-image-wrap { padding-top: 28px; height: calc(100dvh - 120px); }
}
@media (min-width: 1000px) {
  .hero { padding-top: 40px; }
  .couple-names { font-size: 147px; margin: 17px 0 0; }
  .portrait-duet { max-width: 930px; gap: 106px; margin-top: 48px; }
  .portrait { width: calc(50% - 53px); }
  .portrait--groom { margin-top: 72px; }
  .portrait--bride { rotate: -2deg; }
  .portrait--groom { rotate: 2deg; }
  .duet-ampersand { font-size: 87px; top: 47%; }
  .gallery-quote { font-size: 32px; }
  .venue-details { grid-template-columns: 1.15fr 1fr; padding: 40px 55px; }
  .venue-practical { padding-left: 50px; }
  .travel-options { display: grid; grid-template-columns: 1fr 1fr; column-gap: 45px; border-top: 0; }
  .travel-option { border-top: 1px solid #d2c5b2; }
  .travel-option:nth-child(n+3) { border-top: 0; }
  .travel-answer { margin-left: 58px; }
  .travel-note { margin-top: 28px; }
  .site-footer { margin-left: auto; margin-right: auto; }
}
@media (max-width: 360px) {
  .section-space { padding-left: 19px; padding-right: 19px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .16em; }
  .couple-names { font-size: 70px; }
  .hero-tagline { font-size: 20px; }
  .cover-names { font-size: 59px; }
  .cover-prelude { font-size: 20px; }
  .date-section h2 { font-size: 35px; }
  .date-section .eyebrow { font-size: 8px; }
  .countdown { gap: 7px; }
  .countdown > div > span:first-child { font-size: 38px; }
  .countdown-unit { font-size: 6px; }
  .venue-details { padding: 28px 20px; }
  .venue-date { font-size: 10px; }
  .closing h2 { font-size: 31px; }
  .closing-date { font-size: 8px; }
  .closing-names { font-size: 40px; }
  .cover-footnote { font-size: 13px; }
}
@media (max-height: 680px) {
  .cover-content { min-height: 100svh; padding: 61px 26px 50px; }
  .cover-eyebrow { top: 28px; font-size: 8px; }
  .cover-sprig { height: 44px; margin: 0 0 6px; }
  .cover-prelude { font-size: 19px; }
  .cover-names { font-size: 57px; margin: 18px 0; }
  .cover-names em { font-size: 26px; }
  .cover-date { font-size: 9px; }
  .cover-action { margin-top: 26px; }
  .cover-action .button { min-height: 46px; }
  .cover-footnote { bottom: 24px; font-size: 13px; }
  .cover-arch { top: 58px; bottom: 146px; }
  .music-consent { margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .portrait { rotate: 0deg; }
  .cover.opening .cover-door { transform: none; }
  .scroll-track::after { animation: none; height: 20px; }
}
/* The decorative checkbox never steals the input's tap target. */
.music-consent input { z-index: 1; cursor: pointer; }
.check-mark { pointer-events: none; }
/* Guest-facing copy stays comfortable to read at phone size. */
.eyebrow { color: #846738; }
.cover-eyebrow { color: #bda47b; }
.button { font-size: 12px; }
.letter-body, .letter-closing { font-size: 15px; }
.travel-answer { font-size: 14px; line-height: 1.85; }
.venue-address address { font-size: 13px; }
.venue-date, .venue-time { font-size: 12px; }
.date-intro { font-size: 13px; }
.closing-message { font-size: 14px; }
.countdown-unit { font-size: 8px; }
.countdown > div > span:first-child { font-variant-numeric: lining-nums tabular-nums; }
.time-zone { font-size: 10px; }
.bottom-nav a, .bottom-nav button { font-size: 9px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 360px) { .venue-date { font-size: 11px; } .countdown-unit { font-size: 7px; } }

/* Revision 3: the selected Option A, EB Garamond Italic.
   Only decorative accents change; dates, practical text and controls stay clear.
   Font stylesheets are remote; this project contains no font binaries. */
.cover-names, .couple-names, .signature, .closing-names, .gallery-quote,
.scratch-title, h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-synthesis: none;
  letter-spacing: -.02em;
}
.cover-names { font-size: clamp(66px,18vw,84px); line-height: 1; margin: 22px 0 23px; }
.cover-names em { font-size: 31px; line-height: 1.1; margin: 4px 0 3px; }
.cover-names > span, .couple-names > span { padding: 0 .065em; }
.couple-names { font-size: clamp(76px,22vw,102px); line-height: .95; margin: 24px 0 22px; }
.couple-names em { font-size: .39em; line-height: 1; margin: 2px 0 4px; }
h2 em { font-size: 1em; line-height: 1.2; }
.love-note h2, .venue-intro h2, .closing h2 { line-height: 1.19; }
.signature { font-size: 23px; line-height: 1.4; }
.signature span { font-size: 32px; }
.gallery-quote { font-size: 28px; line-height: 1.34; }
.scratch-title { font-size: 28px; line-height: 1.25; }
.closing-names { font-size: clamp(38px,11vw,58px); line-height: 1.25; }
.cover-prelude, .hero-tagline, .cover-footnote { font-family: var(--serif); }
.cover-music-status { font-family: var(--sans); font-size: 10px; letter-spacing: .01em; line-height: 1.6; color: #c3ad92; min-height: 16px; margin: 0; }
.cover-action { margin-top: 29px; }
@media (min-width: 600px) {
  .cover-names { font-size: 90px; }
  .couple-names { flex-direction: row; font-size: clamp(85px,12vw,147px); line-height: 1.08; gap: .05em; margin: 12px 0 5px; }
  .couple-names em { font-size: .43em; margin: 0 .06em; }
  .gallery-quote { font-size: 34px; }
  .signature span { font-size: 37px; }
  .scratch-title { font-size: 32px; }
  .cover-action { margin-top: 33px; }
}
@media (max-width: 360px) {
  .cover-names { font-size: 66px; }
  .couple-names { font-size: 76px; }
  .gallery-quote { font-size: 26px; }
  .closing-names { font-size: 36px; }
  .signature span { font-size: 30px; }
  .scratch-title { font-size: 25px; }
  .cover-music-status { font-size: 9px; }
}
@media (max-height: 680px) {
  .cover-names { font-size: 56px; line-height: .98; margin: 14px 0; }
  .cover-names em { font-size: 25px; margin: 2px 0; }
  .cover-action { margin-top: 20px; }
  .cover-music-status { font-size: 9px; }
}
/* A short landscape screen should never hide the opening control. */
@media (max-height: 460px) and (min-width: 560px) {
  .cover-content { padding: 46px 24px 31px; min-height: 100svh; }
  .cover-eyebrow { top: 16px; }
  .cover-sprig { display: none; }
  .cover-prelude { font-size: 18px; }
  .cover-names { flex-direction: row; align-items: center; gap: .12em; font-size: 52px; margin: 12px 0; }
  .cover-names em { font-size: 28px; }
  .cover-date { font-size: 8px; }
  .cover-action { margin-top: 13px; }
  .cover-action .button { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .music-consent { min-height: 36px; margin-top: 0; }
  .cover-footnote { display: none; }
  .cover-arch { top: 42px; bottom: 125px; }
}

/* Programmatic heading focus announces the invitation without drawing a box. */
.couple-names:focus { outline: none; }

/* Revision 4: two shared moments, framed like keepsakes.
   The original black-and-white images and their full proportions are retained.
   On a phone each photograph comes before its text; on a laptop the pair sits
   side by side. Existing reveal and full-photo-viewer behaviours are reused. */
.cover-eyebrow { text-transform: none; letter-spacing: .16em; font-size: 11px; }
.love-note--with-photo { max-width: 1200px; padding-top: 70px; padding-bottom: 94px; }
.love-note-layout, .closing-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 60px; }
.love-note-copy, .closing-copy { width: 100%; max-width: 560px; margin-inline: auto; min-width: 0; }
.couple-moment { position: relative; isolation: isolate; width: min(calc(100% - 16px),420px); margin: 0 auto; padding: 7px; background: #fdfaf5; border: 1px solid #cdbba1; box-shadow: 0 18px 45px -29px #61444a50; }
.couple-moment::before { content: ''; position: absolute; z-index: -2; inset: -28px; background: radial-gradient(ellipse at center,#e5cfc048,transparent 72%); pointer-events: none; }
.couple-moment::after { content: ''; position: absolute; z-index: -1; inset: 12px -8px -8px 12px; border: 1px solid #ded0bb; pointer-events: none; }
.couple-moment .photo-trigger img { width: 100%; height: auto; object-fit: contain; }
.couple-moment--kiss::after { inset: 12px 12px -8px -8px; }
.love-note-copy .note-sprig { width: 49px; height: 65px; margin-bottom: 20px; }
.closing--with-photo { padding-top: 80px; padding-bottom: 66px; background: linear-gradient(180deg,var(--paper),#f3ebe3 54%,var(--paper)); }
.closing-layout { max-width: 1120px; margin-inline: auto; }
.closing-copy .closing-flower { margin-bottom: 19px; }
@media (min-width: 600px) {
  .love-note--with-photo { padding-top: 96px; padding-bottom: 114px; }
  .love-note-layout, .closing-layout { gap: 72px; }
  .closing--with-photo { padding-top: 88px; padding-bottom: 90px; }
}
@media (min-width: 960px) {
  .love-note-layout { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 68px; }
  .love-note-copy h2 { font-size: clamp(43px,4.4vw,55px); }
  .love-note-copy .letter-body, .love-note-copy .letter-closing { font-size: 13px; }
  .closing-layout { grid-template-columns: minmax(0,1.15fr) minmax(0,.92fr); gap: 68px; }
  .closing-copy { grid-column: 1; grid-row: 1; }
  .couple-moment--kiss { grid-column: 2; grid-row: 1; }
  .closing-copy h2 { font-size: clamp(39px,4vw,53px); }
  .couple-moment { width: 100%; max-width: 420px; }
}
@media (max-width: 360px) {
  .love-note-layout, .closing-layout { gap: 46px; }
}

/* Revision 5: one shared portrait after the date and countdown.
   Full image, no heading or crop; modest width respects the 483px original. */
.photo-interlude--together { padding-top: 84px; padding-bottom: 76px; }
.together-gallery { display: flex; flex-direction: column; align-items: center; }
.couple-moment--together { width: min(calc(100% - 16px),440px); max-width: 440px; }
.together-gallery .gallery-quote { width: min(100%,620px); margin: 36px auto 0; padding-inline: 12px; }
@media (min-width: 600px) {
  .photo-interlude--together { padding-top: 96px; padding-bottom: 84px; }
  .together-gallery .gallery-quote { margin-top: 40px; }
}
