@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f1edf3;
  --paper-deep: #e4dce9;
  --ink: #28271f;
  --olive: #687458;
  --olive-dark: #444e39;
  --lavender: #d9d0dd;
  --lavender-deep: #8f7e92;
  --wine: #8b3545;
  --muted: #827e72;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid var(--olive-dark); outline-offset: 4px; }
::selection { background: #cfc2d3; color: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #ded7cb; font-size: 9px; letter-spacing: .24em; line-height: 1.6; text-transform: uppercase; }
.olive-eyebrow { color: var(--olive); }
.section-pad { padding: 108px clamp(22px, 7vw, 104px); }

/* The first, full-screen page of the invitation */
.opening { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; background: #29281f; color: #fffdf8; transition: opacity .9s var(--ease), visibility .9s; }
.opening.is-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-photo, .opening-grain, .opening-frame { position: absolute; inset: 0; }
.opening-photo { background: linear-gradient(180deg, rgba(25,26,21,.34), rgba(24,24,21,.48) 49%, rgba(23,24,21,.87)), url("assets/liya-bonal-close.jpg") center 43% / cover; transform: scale(1.04); animation: cover-arrive 1.4s var(--ease) both; }
.opening-grain { opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; pointer-events: none; }
.opening-frame { inset: 18px; border: 1px solid rgba(245,241,233,.42); pointer-events: none; }
.opening-content { position: relative; z-index: 1; display: flex; width: min(500px, calc(100% - 48px)); min-height: 82vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: rise-in 1s .12s var(--ease) both; }
.opening-eyebrow { justify-content: center; color: rgba(255,253,248,.78); font-size: 8px; }
.opening-rule { display: flex; width: 116px; align-items: center; gap: 10px; margin: 27px 0 23px; color: #d3bfa5; font-size: 13px; }
.opening-rule::before, .opening-rule::after { flex: 1; height: 1px; content: ""; background: rgba(230,218,197,.45); }
.opening-content h1 { margin: 0; font: 400 clamp(58px, 14vw, 94px)/.86 var(--serif); letter-spacing: -.06em; }
.opening-content h1 i { display: inline-block; padding: 0 .06em; color: #ddd0df; font: italic 400 .66em var(--serif); }
.opening-content p { max-width: 270px; margin: 24px 0 34px; color: rgba(255,253,248,.8); font: 400 15px/1.65 var(--serif); }
.open-button { display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px 13px 12px; border: 1px solid rgba(255,253,248,.7); border-radius: 99px; background: rgba(255,255,255,.04); color: #fffdf8; font-size: 10px; letter-spacing: .13em; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.open-button:hover { transform: translateY(-2px); background: #f5f1e9; color: #343329; }
.open-button-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #d9d0dd; color: var(--ink); font-size: 15px; }
.opening-footnote { margin-top: 51px; color: rgba(255,253,248,.63); font-size: 8px; letter-spacing: .19em; text-transform: uppercase; }

/* Quiet, fixed controls */
.site-header { position: absolute; z-index: 4; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: max(19px, env(safe-area-inset-top)) clamp(22px, 5vw, 72px) 12px; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { font: 500 21px/.9 var(--serif); letter-spacing: -.09em; }
.brand-mark span { padding: 0 2px; color: var(--lavender-deep); font: italic 15px var(--serif); }
.brand-caption { padding-left: 12px; border-left: 1px solid rgba(40,39,31,.22); color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.header-actions { display: flex; gap: 9px; }
.icon-button { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 9px; border: 1px solid rgba(40,39,31,.22); border-radius: 40px; background: rgba(241,237,243,.65); cursor: pointer; transition: background .2s, border-color .2s; }
.icon-button:hover, .icon-button[aria-pressed="true"] { border-color: var(--olive); background: #e5e0e8; }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.music-label { font-size: 9px; letter-spacing: .06em; }

/* Hero */
.hero { position: relative; display: flex; min-height: min(920px, 100svh); flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 100px 24px 90px; background: linear-gradient(rgba(241,237,243,.12),rgba(241,237,243,.12)), url("assets/opening-floral-bg.jpg") center 46% / cover; text-align: center; }
.hero-orbit { position: absolute; left: 50%; top: 45%; width: min(72vw, 520px); aspect-ratio: 1; border: 1px solid rgba(143,126,146,.19); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.orbit-two { width: min(90vw, 670px); border-color: rgba(104,116,88,.13); }
.hero-copy { position: relative; z-index: 2; margin-top: 8px; }
.hero-copy .eyebrow { color: var(--olive); }
.tiny-star { color: #a98c6d; font-size: 12px; }
.hero h2 { display: flex; align-items: center; justify-content: center; gap: clamp(9px, 2.2vw, 22px); margin: 22px 0 14px; font: 400 clamp(48px, 11.5vw, 92px)/.94 var(--serif); letter-spacing: -.065em; }
.hero h2 em { color: var(--lavender-deep); font-size: .72em; font-weight: 400; }
.hero-invite { margin: 0; color: #6f6a5e; font: 400 15px/1.55 var(--serif); }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; color: var(--olive-dark); font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }
.hero-date span { width: 20px; height: 1px; background: #9a9a83; }
.hero-portrait { position: relative; z-index: 1; width: min(62vw, 292px); margin: 34px 0 0; padding: 7px; border: 1px solid rgba(104,116,88,.39); background: rgba(255,255,255,.2); transform: rotate(-2.4deg); }
.hero-portrait::before { position: absolute; z-index: -1; inset: 7px -8px -9px 8px; border: 1px solid rgba(143,126,146,.5); content: ""; }
.hero-portrait img { height: clamp(175px, 43vh, 330px); object-fit: cover; object-position: 50% 40%; }
.hero-portrait figcaption { position: absolute; right: -43px; bottom: 20px; display: flex; flex-direction: column; color: #f8f4eb; font: italic 400 15px/1.16 var(--serif); text-align: left; text-shadow: 0 1px 8px rgba(0,0,0,.5); transform: rotate(2deg); }
.hero-portrait figcaption span { font-size: 11px; }
.portrait-index { position: absolute; top: 12px; left: -26px; color: var(--olive); font-size: 8px; letter-spacing: .12em; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; display: flex; align-items: center; gap: 11px; color: #777365; font-size: 8px; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
.scroll-line { position: relative; display: block; width: 36px; height: 1px; overflow: hidden; background: rgba(104,116,88,.28); }
.scroll-line i { position: absolute; inset: 0 auto 0 -100%; width: 100%; background: var(--olive); animation: line-travel 2.1s ease-in-out infinite; }
.hero-side-note { position: absolute; right: 20px; top: 50%; color: #908d7f; font-size: 7px; letter-spacing: .2em; writing-mode: vertical-rl; }

/* Note from the couple */
.welcome-section { position: relative; display: grid; min-height: 520px; grid-template-columns: minmax(120px, .65fr) minmax(0, 1.4fr); align-items: center; gap: clamp(25px, 7vw, 110px); overflow: hidden; background: linear-gradient(125deg,rgba(233,227,236,.62),rgba(238,232,241,.58) 58%,rgba(229,224,233,.62)), url("assets/opening-floral-bg.jpg") center 46% / cover; }
.welcome-mark { position: relative; z-index: 1; justify-self: end; color: var(--olive-dark); font: 400 clamp(31px, 5vw, 59px) var(--serif); letter-spacing: -.08em; }
.welcome-mark span { display: block; padding: 12px 0; color: #9d778e; font-size: .8em; text-align: center; }
.welcome-copy { position: relative; z-index: 1; max-width: 490px; padding: 15px 0; }
.welcome-copy h2, .section-heading h2, .countdown-copy h2, .gallery-heading h2, .closing-content h2 { margin: 22px 0 18px; font: 400 clamp(38px, 6vw, 65px)/1.03 var(--serif); letter-spacing: -.045em; }
.welcome-copy h2 em, .section-heading h2 em, .countdown-copy h2 em, .gallery-heading h2 em, .closing-content h2 em { color: var(--lavender-deep); font-weight: 400; }
.welcome-copy > p:not(.welcome-signoff) { max-width: 420px; color: #6f6c68; font: 400 15px/1.8 var(--serif); }
.welcome-signoff { margin: 26px 0 0; color: #777267; font-size: 10px; line-height: 1.8; }
.welcome-signoff span { color: var(--olive-dark); font: italic 21px var(--serif); }
.welcome-flower { position: absolute; right: 4%; bottom: -58px; width: clamp(100px, 17vw, 208px); color: #858c78; opacity: .37; transform: rotate(-10deg); }

/* Scroll-triggered hearts */
.heart-bridge { position: relative; display: flex; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 48px 24px; background: #f7f4f8; text-align: center; }
.bridge-label { color: var(--olive); }
.heart-meet { position: relative; width: 112px; height: 101px; margin: 20px 0 11px; }
.heart { position: absolute; top: 0; width: 62px; height: 59px; overflow: visible; fill: #a83b50; filter: drop-shadow(0 7px 15px rgba(133,51,71,.14)); transition: transform 1s cubic-bezier(.2,.9,.25,1), filter 1s; }
.heart-left { left: 0; transform: translateX(-21px) rotate(-19deg) scale(.92); transform-origin: 100% 75%; }
.heart-right { right: 0; transform: translateX(21px) rotate(19deg) scale(.92); transform-origin: 0 75%; }
.heart-spark { position: absolute; top: 8px; left: 50%; z-index: 1; color: #d4b68e; font-size: 13px; opacity: 0; transform: translate(-50%,8px) scale(.4); transition: opacity .45s .85s, transform .5s .85s var(--ease); }
.heart-bridge.is-visible .heart-left { transform: translateX(25px) rotate(0) scale(1); }
.heart-bridge.is-visible .heart-right { transform: translateX(-25px) rotate(0) scale(1); }
.heart-bridge.is-visible .heart-spark { opacity: 1; transform: translate(-50%,0) scale(1); }
.heart-bridge.is-visible .heart { filter: drop-shadow(0 9px 20px rgba(133,51,71,.25)); }
.bridge-line { margin: 10px 0 9px; font: 400 clamp(24px, 4.5vw, 35px) var(--serif); }
.bridge-line em { color: var(--lavender-deep); }
.bridge-date { color: var(--muted); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }

/* Invitation envelope and the letter it reveals */
.invitation-section { position: relative; padding-top: 108px; padding-bottom: 126px; overflow: hidden; background: linear-gradient(145deg,rgba(233,228,237,.64),rgba(240,235,242,.6) 55%,rgba(230,225,234,.64)), url("assets/opening-floral-bg.jpg") center 46% / cover; }
.section-heading { text-align: center; }
.section-heading h2 { margin-top: 18px; }
.section-heading > p { margin: 0; color: var(--muted); font: italic 14px var(--serif); }
.letter-stage { position: relative; display: flex; min-height: 370px; align-items: center; justify-content: center; margin: 24px auto 0; perspective: 1200px; }
.letter-envelope { position: absolute; z-index: 2; top: 50%; left: 50%; display: block; width: min(430px, 83vw); height: 260px; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%,-39%); transition: opacity .5s .4s, visibility .5s .4s; }
.envelope-shadow { position: absolute; inset: 25px 0 0; border-radius: 4px; background: rgba(80,66,59,.12); filter: blur(20px); }
.envelope-body { position: absolute; inset: 24px 0 0; overflow: hidden; border: 1px solid #d2c6b8; border-radius: 3px; background: linear-gradient(140deg,#eee4d8,#e8d9ca 52%,#e5d7c9); box-shadow: 0 14px 35px rgba(68,58,48,.12); }
.envelope-body::before, .envelope-body::after { position: absolute; bottom: -58%; width: 75%; height: 120%; background: rgba(255,255,255,.14); content: ""; transform: rotate(39deg); }
.envelope-body::before { left: -25%; }
.envelope-body::after { right: -25%; transform: rotate(-39deg); }
.envelope-lining { position: absolute; inset: 0; background: linear-gradient(140deg, transparent 49.7%, rgba(195,177,158,.72) 50%, transparent 50.3%), linear-gradient(40deg, transparent 49.7%, rgba(195,177,158,.72) 50%, transparent 50.3%); }
.envelope-seal { position: absolute; z-index: 2; top: 43%; left: 50%; display: grid; width: 49px; height: 49px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: var(--lavender-deep); box-shadow: 0 3px 12px rgba(54,42,52,.24); color: #fbf8ef; font: 400 16px var(--serif); letter-spacing: -.08em; transform: translate(-50%,-50%); }
.envelope-seal span { padding: 0 1px; color: #e7d9e6; font-style: italic; font-size: 12px; }
.envelope-label { position: absolute; z-index: 1; right: 0; bottom: 14px; left: 0; color: #777164; font: italic 12px var(--serif); text-align: center; }
.envelope-flap { position: absolute; z-index: 3; top: 24px; left: 0; width: 100%; height: 50%; background: linear-gradient(160deg,#f1e7dc,#e4d5c5); clip-path: polygon(0 0,100% 0,50% 100%); transform-origin: top center; transition: transform .9s .12s var(--ease), opacity .4s 1s; backface-visibility: hidden; filter: drop-shadow(0 1px 1px rgba(89,75,63,.23)); }
.envelope-hint { position: absolute; right: 0; bottom: -26px; left: 0; color: var(--olive); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.envelope-hint i { display: inline-block; margin-left: 6px; font: normal 12px var(--serif); animation: nudge-down 1.3s ease-in-out infinite; }
.letter-envelope:hover .envelope-seal { background: #9a829b; }
.letter-stage.is-open .letter-envelope { visibility: hidden; opacity: 0; pointer-events: none; }
.letter-stage.is-open .envelope-flap { opacity: 0; transform: rotateX(180deg); }
.event-details { position: relative; z-index: 1; width: min(470px, 91vw); min-height: 250px; padding: 38px clamp(25px, 7vw, 65px) 34px; border: 1px solid #d9cec0; background: #faf7ef; box-shadow: 0 20px 56px rgba(61,55,47,.13); opacity: 0; transform: translateY(29px) scale(.97); transition: opacity .7s .27s, transform .85s .23s var(--ease), visibility .7s; visibility: hidden; }
.letter-stage.is-open .event-details { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.letter-topline { display: flex; justify-content: space-between; color: var(--olive); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.letter-topline span:last-child { color: #a78a69; font-size: 13px; }
.letter-intro { margin: 22px 0 7px; color: #837d70; font: italic 13px var(--serif); text-align: center; }
.event-details h3 { margin: 0; font: 400 clamp(30px, 8vw, 42px)/1.1 var(--serif); letter-spacing: -.04em; text-align: center; }
.event-details h3 i { color: var(--lavender-deep); font-size: .72em; }
.details-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 22px; color: #a87882; font-size: 14px; }
.details-divider::before, .details-divider::after { height: 1px; flex: 1; content: ""; background: #ded5c7; }
.event-detail-block { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 0 0 18px; }
.event-number { padding-top: 3px; color: #96917f; font: italic 12px var(--serif); }
.event-name { color: var(--olive-dark); font: 400 20px/1.15 var(--serif); }
.event-when { margin: 8px 0 6px; color: #827b6d; font-size: 9px; letter-spacing: .04em; }
.event-when span { padding: 0 4px; color: #ae9297; }
.event-where { margin: 0; color: #4d4b43; font: 400 13px/1.55 var(--serif); }
.text-link { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin-top: 10px; padding: 0 14px; border: 1px solid rgba(104,116,88,.35); border-radius: 30px; background: rgba(104,116,88,.06); color: var(--olive-dark); font-size: 8px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.text-link span { font-size: 12px; }
.text-link:hover { border-color: var(--olive-dark); background: var(--olive-dark); color: #fffdf8; }
.letter-hairline { height: 1px; margin: 0 0 18px 41px; background: #e2dbce; }
.auditorium-block { padding-bottom: 6px; }
.letter-closing { margin: 26px 0 0; color: #8e7983; font: italic 16px var(--serif); text-align: center; }
.rose-petals { position: absolute; z-index: 4; top: 50%; left: 50%; width: 1px; height: 1px; pointer-events: none; }
.petal { position: absolute; top: 0; left: 0; width: 12px; height: 18px; border-radius: 70% 5% 70% 35%; background: linear-gradient(135deg,#b64350,#781f35); opacity: 0; transform: translate(-50%,-50%) rotate(var(--rot)) scale(.2); animation: petal-pop 1.75s var(--delay) cubic-bezier(.12,.7,.25,1) forwards; }

/* Countdown */
.countdown-section { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(280px, 1fr); align-items: center; gap: clamp(50px, 10vw, 140px); padding-top: 112px; padding-bottom: 112px; background: var(--olive-dark); color: #f7f3eb; }
.countdown-image { position: relative; width: min(100%, 350px); justify-self: center; padding: 8px; border: 1px solid rgba(232,224,208,.55); transform: rotate(-2deg); }
.countdown-image img { height: clamp(300px, 45vw, 430px); object-fit: cover; object-position: 51% 48%; filter: saturate(.83); }
.countdown-image::after { position: absolute; inset: 15px -9px -9px 14px; z-index: -1; border: 1px solid rgba(219,211,193,.37); content: ""; }
.countdown-image-note { position: absolute; right: -40px; bottom: 29px; color: #f8f2e6; font: italic 17px/1.25 var(--serif); text-shadow: 0 1px 8px rgba(0,0,0,.48); transform: rotate(2deg); }
.countdown-copy { max-width: 495px; }
.countdown-copy .eyebrow { color: #c9cdb9; }
.countdown-copy h2 { margin: 21px 0 14px; font-size: clamp(42px, 6.4vw, 67px); }
.countdown-copy h2 em { color: #d9cddc; }
.countdown-subtitle { margin: 0; color: #d7d6cb; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.countdown { display: flex; align-items: flex-start; gap: clamp(10px, 3vw, 23px); margin: 37px 0 0; }
.countdown > div { display: flex; min-width: 42px; flex-direction: column; align-items: center; }
.count-number { font: 400 clamp(28px, 5vw, 45px)/1 var(--serif); letter-spacing: -.05em; }
.count-label { margin-top: 8px; color: #c8c9bb; font-size: 7px; letter-spacing: .17em; text-transform: uppercase; }
.countdown > i { padding-top: 3px; color: #bab49f; font: 400 23px var(--serif); }
.countdown-status { min-height: 18px; margin-top: 17px; color: #d8d3c6; font: italic 14px var(--serif); }

/* Photo story */
.gallery-section { padding-top: 112px; padding-bottom: 100px; }
.gallery-heading { text-align: center; }
.gallery-heading h2 { margin-bottom: 48px; font-size: clamp(34px, 5.8vw, 59px); }
.photo-grid { display: grid; max-width: 1020px; grid-template-columns: 1fr .82fr 1fr; align-items: start; gap: clamp(14px, 3.5vw, 42px); margin: 0 auto; }
.photo-card { margin: 0; }
.photo-card img { height: clamp(195px, 32vw, 400px); object-fit: cover; }
.photo-one { margin-top: 35px; }
.photo-one img { object-position: 49% center; }
.photo-two img { height: clamp(230px, 38vw, 470px); object-position: 54% center; }
.photo-three { margin-top: 75px; }
.photo-three img { object-position: 50% center; }
.photo-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #69675d; font: italic 15px var(--serif); }
.photo-card figcaption span { color: var(--olive); font: 8px var(--sans); letter-spacing: .1em; }
.gallery-note { margin: 54px 0 0; color: #777365; font: italic 16px var(--serif); text-align: center; }
.gallery-note span { padding-left: 4px; color: #a54255; }

/* Final portrait and send-off */
.closing-section { position: relative; display: grid; min-height: 520px; grid-template-columns: 1fr 1fr; overflow: hidden; background: #ddd5e2; }
.closing-photo { min-height: 520px; overflow: hidden; }
.closing-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 46%; }
.closing-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 60px clamp(26px, 7vw, 90px); }
.closing-content .eyebrow { color: var(--olive-dark); }
.closing-content h2 { margin: 20px 0 16px; font-size: clamp(39px, 6vw, 67px); }
.closing-content h2 em { color: #88748e; }
.closing-content > p { color: #615c62; font: italic 17px var(--serif); }
.closing-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 26px; padding-bottom: 7px; border-bottom: 1px solid rgba(65,71,55,.48); color: var(--olive-dark); font-size: 8px; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; }
.closing-link span { font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 23px 15px max(23px, env(safe-area-inset-bottom)); background: #34382f; color: #dedbd0; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.footer-heart { color: #d0949c; font-size: 13px; }
.toast { position: fixed; z-index: 30; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); left: 18px; width: fit-content; max-width: calc(100% - 36px); margin: auto; padding: 12px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: #34382f; color: white; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(21px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.photo-card:nth-child(2) { transition-delay: .13s; }
.photo-card:nth-child(3) { transition-delay: .24s; }

@keyframes cover-arrive { from { transform: scale(1.1); } to { transform: scale(1.04); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes line-travel { 0% { left: -100%; } 55%, 100% { left: 100%; } }
@keyframes nudge-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes petal-pop { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--rot)) scale(.2); } 13% { opacity: .95; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--rot) + 300deg)) scale(1); } }

@media (min-width: 1000px) {
  .hero { min-height: 780px; }
  .hero-portrait { width: 260px; margin-top: 29px; }
  .hero-portrait img { height: 255px; }
  .hero-copy { margin-top: 0; }
  .scroll-cue { bottom: 29px; }
}

@media (max-width: 680px) {
  .section-pad { padding: 80px 24px; }
  .site-header { position: absolute; padding-right: 18px; padding-left: 18px; }
  .brand-caption { font-size: 7px; }
  .icon-button { height: 33px; }
  .music-toggle { min-width: 33px; padding: 0 8px; }
  .music-label { font-size: 8px; }
  .hero { min-height: 780px; min-height: max(720px, 100svh); padding: 105px 18px 76px; }
  .hero h2 { gap: 10px; font-size: clamp(43px, 11.3vw, 69px); }
  .hero-date { gap: 6px; font-size: 7px; letter-spacing: .12em; }
  .hero-date span { width: 11px; }
  .hero-portrait { width: min(63vw, 245px); margin-top: 32px; }
  .hero-portrait img { height: min(34vh, 255px); }
  .hero-portrait figcaption { right: -38px; font-size: 13px; }
  .hero-side-note { right: 9px; font-size: 6px; }
  .scroll-cue { bottom: 20px; font-size: 7px; }
  .welcome-section { min-height: initial; grid-template-columns: 1fr; gap: 24px; padding-top: 72px; padding-bottom: 89px; }
  .welcome-mark { justify-self: start; font-size: 32px; }
  .welcome-mark span { display: inline; padding: 0 3px; }
  .welcome-copy h2, .section-heading h2 { font-size: 46px; }
  .welcome-flower { right: -12px; bottom: -63px; width: 136px; }
  .heart-bridge { min-height: 335px; }
  .letter-stage { min-height: 340px; margin-top: 12px; }
  .letter-envelope { height: 230px; transform: translate(-50%,-37%); }
  .envelope-body { inset: 18px 0 0; }
  .envelope-flap { top: 18px; }
  .envelope-hint { bottom: -28px; }
  .event-details { padding: 30px 23px; }
  .letter-intro { margin-top: 17px; }
  .details-divider { margin: 16px 0 17px; }
  .event-name { font-size: 18px; }
  .event-when { line-height: 1.6; }
  .letter-hairline { margin-bottom: 15px; }
  .letter-closing { margin-top: 19px; }
  .countdown-section { grid-template-columns: 1fr; gap: 46px; padding-top: 82px; padding-bottom: 76px; }
  .countdown-image { width: min(75%, 310px); }
  .countdown-image img { height: 330px; }
  .countdown-copy { width: 100%; max-width: 420px; margin: auto; }
  .countdown-copy h2 { font-size: 49px; }
  .countdown { gap: clamp(10px, 5vw, 25px); }
  .count-number { font-size: 38px; }
  .gallery-section { padding-top: 84px; padding-bottom: 76px; }
  .gallery-heading h2 { margin-bottom: 34px; font-size: 38px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 18px 13px; }
  .photo-one { margin-top: 0; }
  .photo-one img { height: 260px; }
  .photo-two { margin-top: 37px; }
  .photo-two img { height: 285px; }
  .photo-three { grid-column: 1 / -1; width: 72%; margin: 10px auto 0; }
  .photo-three img { height: 310px; object-position: 50% 40%; }
  .photo-card figcaption { gap: 7px; font-size: 12px; }
  .gallery-note { margin-top: 37px; font-size: 15px; }
  .closing-section { grid-template-columns: 1fr; }
  .closing-photo, .closing-photo img { min-height: 360px; height: 53vh; max-height: 510px; }
  .closing-content { min-height: 360px; padding: 58px 29px 64px; }
  .closing-content h2 { font-size: 49px; }
}

@media (max-width: 380px) {
  .hero h2 { font-size: 41px; }
  .hero-date { letter-spacing: .08em; }
  .hero-date span { width: 7px; }
  .brand { gap: 8px; }
  .brand-caption { padding-left: 8px; font-size: 6px; }
  .music-label { display: none; }
  .icon-button { width: 33px; padding: 0; }
  .photo-one img { height: 225px; }
  .photo-two img { height: 246px; }
  .photo-three img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
