@font-face { font-family: "Parisienne"; src: url("fonts/parisienne-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Italiana"; src: url("fonts/italiana-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --sky: #b9dcf7;
  --sky-deep: #77acd8;
  --sky-dark: #46657e;
  --ice: #edf7ff;
  --paper: #fffdf9;
  --silver: #cbd2d9;
  --ink: #34495d;
  --muted: #526779;
  --gold: #7e6840;
  --bar: 38px;
  --serif: "Italiana", "Times New Roman", serif;
  --script: "Parisienne", cursive;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e4edf4; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-weight: 400; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; background: #fff; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.sample-bar { position: fixed; z-index: 500; inset: 0 0 auto; height: var(--bar); display: grid; place-items: center; color: white; background: rgba(42,72,98,.9); font-size: .64rem; letter-spacing: .25em; }

.opening { position: fixed; z-index: 450; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 3svh, 26px); overflow: hidden; padding: calc(var(--bar) + 24px) 16px max(30px, env(safe-area-inset-bottom)); background: #f6f5ee url("rosas-azules.webp") center / cover no-repeat; isolation: isolate; transition: opacity .55s ease, visibility .55s ease; }
.opening::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(255,253,248,.12); pointer-events: none; }
.opening.opened { opacity: 0; visibility: hidden; pointer-events: none; }
.opening[hidden] { display: none; }
.opening-title { text-align: center; color: #34495d; padding: 14px 28px; }
.opening-title p { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(1.1rem, 4.5vw, 1.45rem); }
.opening-title h2 { margin: 0; color: #3e5c77; font-family: var(--script); font-size: clamp(3rem, 12.5vw, 4.8rem); line-height: 1.08; font-weight: 400; }
.opening-details { text-align: center; color: #34495d; padding: 12px 22px; }
.opening-date { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.05rem, 4vw, 1.25rem); }
.open-hint { margin: 0; color: #34495d; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.envelope { position: relative; width: min(96vw, 610px); flex: 0 0 auto; aspect-ratio: 1.5; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 1400px; filter: drop-shadow(0 17px 20px rgba(34,58,78,.2)); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.envelope-back { position: absolute; z-index: 0; inset: 4.5% 3.2% 5.5%; background: #eeece8; }
.envelope-card { position: absolute; z-index: 2; left: 7%; right: 7%; top: 10%; height: 78%; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: #34495d; background: #fffdf9; box-shadow: 0 8px 20px rgba(34,58,78,.12); transition: transform .7s cubic-bezier(.16,1,.3,1) .55s; }
.envelope-card small { font-family: var(--serif); font-size: clamp(.7rem, 2.8vw, .95rem); }
.envelope-card strong { font-family: var(--script); font-size: clamp(1.75rem, 7vw, 3.3rem); font-weight: 400; line-height: 1.1; }
.envelope-card em { font-style: normal; font-size: .62rem; font-weight: 500; letter-spacing: .12em; }
.envelope-front,.envelope-flap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.envelope-front { z-index: 3; clip-path: polygon(3.2% 4.5%, 49.2% 64.5%, 50% 65.5%, 50.8% 64.5%, 96.8% 4.5%, 96.8% 94.5%, 3.2% 94.5%); }
.envelope-flap { z-index: 4; clip-path: polygon(3.2% 4.5%, 96.8% 4.5%, 95% 14%, 50.8% 64.5%, 50% 65.5%, 49.2% 64.5%, 5% 14%); transform-origin: 50% 4.5%; backface-visibility: visible; transition: transform .85s cubic-bezier(.16,1,.3,1) .2s, z-index 0s .55s; }
.seal { position: absolute; z-index: 5; top: 56.5%; left: 50%; width: 27%; height: auto; transform: translate(-50%,-50%); pointer-events: none; transition: transform .35s ease, opacity .25s ease .1s; }
.envelope:hover .seal { transform: translate(-50%,-50%) scale(1.045); }
.envelope:focus-visible { outline: 2px solid #34495d; outline-offset: 8px; }
.envelope:disabled { cursor: default; }
.envelope.is-opening .seal { opacity: 0; transform: translate(-50%,-65%) rotate(-9deg) scale(1.08); }
.envelope.is-opening .envelope-flap { transform: rotateX(175deg); z-index: 1; }
.envelope.is-opening .envelope-card { transform: translateY(-44%); }
.opening-title,.opening-details { transition: opacity .35s ease; }
.opening.is-opening .opening-title,.opening.is-opening .opening-details { opacity: 0; }
body.locked .skip-link { display: none; }
::selection { color: #fff; background: #46657e; }
:focus-visible { outline: 2px solid #46657e; outline-offset: 5px; }
html { scrollbar-color: #88aac7 #f7f8f6; }

.music-button { position: fixed; z-index: 320; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px; color: #34495d; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(44,75,99,.17); cursor: pointer; opacity: 0; visibility: hidden; transition: .3s ease; }
.music-button.visible { opacity: 1; visibility: visible; }
.music-label { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.music-bars { height: 16px; display: flex; align-items: end; gap: 2px; }
.music-bars i { width: 2px; height: 70%; background: currentColor; animation: equalize .8s ease-in-out infinite alternate; }
.music-bars i:nth-child(2) { height: 100%; animation-delay: -.3s; }
.music-bars i:nth-child(3) { height: 50%; animation-delay: -.55s; }
.music-button[aria-pressed="false"] .music-bars i { animation: none; height: 3px; }

main { overflow: hidden; }
.hero { position: relative; min-height: 0; display: block; padding: var(--bar) 0 0; background: var(--paper); isolation: isolate; }
.hero-photo { position: static; display: block; width: 100%; max-width: none; height: auto; max-height: none; object-fit: contain; margin: 0; }
.hero::after { content: ""; position: absolute; z-index: 0; inset: var(--bar) 0 0; background: linear-gradient(180deg, transparent 32%, rgba(15,34,50,.28) 55%, rgba(15,34,50,.78) 100%); pointer-events: none; }
.hero-card { position: absolute; z-index: 1; left: clamp(24px, 7vw, 100px); right: clamp(24px, 7vw, 100px); bottom: clamp(24px, 6vw, 72px); width: auto; margin: 0; padding: 0; color: #fff; background: transparent; box-shadow: none; text-align: left; text-shadow: 0 2px 10px rgba(15,34,50,.3); }
.eyebrow, .mini-title { margin: 0 0 13px; font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--script); font-size: clamp(3rem, 13vw, 5.8rem); font-weight: 400; line-height: 1.1; }
.hero h1:focus { outline: none; }
.hero h1 span { display: inline; margin-top: 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 20px; }
.ornament i { width: 70px; height: 1px; background: #a8bed0; }
.ornament b { font-weight: 400; }
.hero-date { margin: 0 0 9px; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; }
.hero-place { margin: 0; font-size: .67rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: 24px; bottom: 28px; width: 30px; height: 48px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; }
.scroll-cue svg { width: 20px; height: 20px; margin: 12px 4px; fill: none; stroke: white; stroke-width: 1.5; }

.section { position: relative; padding: 108px 24px; }
.section-inner { width: min(1080px, 100%); margin: 0 auto; text-align: center; }
.section-inner.narrow { width: min(720px, 100%); }
.mini-title { color: var(--sky-dark); }
h2 { margin: 0 0 32px; color: #46657e; font-family: var(--serif); font-size: clamp(2.35rem, 6vw, 4.35rem); font-weight: 400; line-height: 1.06; }
.body-copy { margin: 0 auto; max-width: 670px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.58rem); line-height: 1.65; }
.script-quote { margin: 0 auto 28px; max-width: 780px; color: #46657e; font-family: var(--script); font-size: clamp(2.8rem, 8vw, 5.3rem); line-height: 1.05; }
.floral-divider { margin-top: 38px; color: var(--sky-deep); font-size: 1.7rem; }
.message { background: #fffdf9; isolation: isolate; }
.message::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("rosas-azules.webp") center / cover; opacity: .22; }
.watercolor { display: none; position: absolute; width: 300px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 40%, rgba(141,197,237,.25), transparent 60%), radial-gradient(circle at 72% 55%, rgba(203,223,238,.45), transparent 60%); filter: blur(8px); }
.watercolor-left { left: -130px; bottom: -90px; }
.blue-section { background: #edf4f8; }
.family-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.name-card { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 22px; background: transparent; }
.name-card span { margin-bottom: 24px; color: var(--sky-dark); font-size: .63rem; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.name-card strong { color: #46657d; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.35; }
.name-card b { margin: 8px 0; color: var(--gold); font-family: var(--script); font-size: 1.6rem; font-weight: 400; }

.countdown { background: #fff; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: 12px; margin: 44px auto 34px; }
.countdown-grid div { padding: 25px 8px; border-bottom: 1px solid #c1d3e0; }
.countdown-grid strong { display: block; color: #46657e; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; }
.countdown-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.text-link { display: inline-block; color: #527fa1; font-size: .69rem; font-weight: 600; letter-spacing: .12em; text-underline-offset: 6px; text-transform: uppercase; }

.events { background: linear-gradient(180deg,#f5fbff,#fff); }
.section-heading { margin-bottom: 48px; }
.event-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.event-card { padding: 48px 34px; background: #fffdf9; box-shadow: 0 15px 40px rgba(72,110,138,.09); }
.line-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px; color: var(--sky-dark); border: 1px solid rgba(102,157,198,.35); border-radius: 50%; font-family: var(--serif); font-size: 1.2rem; }
.event-time { margin: 0 0 13px; color: #5688ae; font-family: var(--serif); font-size: 2rem; }
.event-time span { font-size: .85rem; }
.event-card h3 { margin: 0 0 18px; color: #456680; font-family: var(--script); font-size: 3rem; font-weight: 400; }
.event-card strong { display: block; min-height: 58px; color: #455c6f; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.4; }
.event-card p:not(.event-time) { min-height: 62px; margin: 18px auto 28px; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.button { display: inline-flex; justify-content: center; align-items: center; min-width: 190px; padding: 14px 22px; color: #34495d; border: 1px solid #8bb8d8; text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .25s ease; }
.button:hover { color: white; background: #46657e; }
.button.primary { color: white; background: #46657e; border: 0; box-shadow: 0 12px 30px rgba(64,112,148,.2); }
.button.primary:hover { background: #34495d; }

.portrait-break { position: relative; height: min(84vh, 920px); min-height: 620px; overflow: hidden; }
.portrait-break img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 33%; }
.portrait-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,54,77,.15), transparent 55%), linear-gradient(180deg, transparent 55%, rgba(25,55,78,.45)); }
.portrait-caption { position: absolute; z-index: 1; left: clamp(24px, 8vw, 120px); bottom: clamp(40px, 8vw, 100px); color: white; text-shadow: 0 2px 18px rgba(20,43,59,.25); }
.portrait-caption span { display: block; font-family: var(--script); font-size: clamp(3rem, 8vw, 6rem); line-height: .9; }
.portrait-caption strong { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 400; letter-spacing: .17em; text-transform: uppercase; }

.envelope-icon { position: relative; width: 86px; height: 58px; margin: 0 auto 28px; border: 1px solid #7eacd0; background: rgba(255,255,255,.45); }
.envelope-icon::before, .envelope-icon::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0,50% 58%,100% 0); border-top: 1px solid #7eacd0; }
.envelope-icon span { position: absolute; z-index: 1; inset: 15px 0 auto; color: #6798bc; font-size: 1.2rem; }

.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1fr .82fr 1fr; align-items: center; gap: 16px; }
.gallery-grid figure { margin: 0; height: 490px; overflow: hidden; box-shadow: 0 16px 50px rgba(41,76,102,.12); }
.gallery-grid figure.tall { height: 600px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .8s ease; }
.gallery-grid figure:hover img { transform: scale(1.025); }

.rsvp { color: #34495d; background: #fffdf9 url("rosas-azules.webp") center / cover; }
.rsvp .section-inner { padding: 42px 30px; background: rgba(255,253,249,.96); }
.rsvp .mini-title, .rsvp h2, .rsvp .body-copy { color: #34495d; }
.rsvp .body-copy { margin-bottom: 34px; }
footer { padding: 70px 22px 90px; text-align: center; color: #46657e; background: #f1f9ff; }
footer p { margin: 0 0 8px; font-size: .65rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
footer strong { display: block; font-family: var(--script); font-size: 3.8rem; font-weight: 400; line-height: 1; }
footer span { display: block; margin-top: 16px; font-family: var(--serif); letter-spacing: .14em; }

.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes breathe { 50% { opacity: .5; transform: translateY(2px); } }
@keyframes equalize { to { height: 25%; } }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,24px); } }

@media (max-width: 760px) {
  .scroll-cue { display: none; }
  .section { padding: 86px 20px; }
  .family-grid, .event-grid { grid-template-columns: 1fr; }
  .name-card { min-height: 230px; }
  .countdown-grid { grid-template-columns: repeat(4,1fr); gap: 5px; }
  .countdown-grid div { padding: 20px 2px; }
  .countdown-grid span { font-size: .49rem; letter-spacing: .08em; }
  .event-card { padding: 42px 20px; }
  .event-card strong, .event-card p:not(.event-time) { min-height: auto; }
  .portrait-break { min-height: 650px; height: 80svh; }
  .portrait-break img { object-position: 50% 30%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .gallery-grid figure, .gallery-grid figure.tall { height: 390px; }
  .gallery-grid figure:first-child { grid-column: 1 / -1; height: 520px; }
  .music-label { display: none; }
  .music-button { padding: 11px 13px; }
}

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

.line-icon svg,.ornament svg,.floral-divider svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.envelope-icon svg { position: absolute; width: 24px; height: 24px; left: 30px; top: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.ornament svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .opening { background-size: auto 135%; background-color: #f5f3ec; } }
@media (max-height: 620px) { .opening { gap: 8px; padding-top: calc(var(--bar) + 8px); } .opening-title { padding: 3px 18px; } .opening-title p { margin-bottom: 4px; font-size: 1rem; } .opening-title h2 { font-size: 2.6rem; } .envelope { width: min(76vw, 50svh, 430px); } .opening-details { padding: 0 18px; } .opening-date { margin-bottom: 8px; font-size: 1rem; } }
@media (max-width: 760px) { .rsvp .section-inner { padding: 36px 18px; } .body-copy { font-family: var(--sans); font-size: 14px; line-height: 1.8; } .event-card p:not(.event-time) { font-size: 12px; } }

.sample-bar,.music-label,.mini-title,.name-card span,.countdown-grid span,.text-link,.button,.hero-place { font-size: 11px; }
.button { min-height: 46px; }
.open-hint { font-size: 11px; text-transform: none; letter-spacing: .05em; }
.eyebrow { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; text-transform: none; font-weight: 400; }
.envelope-card em { font-size: 11px; }
@media (max-width: 760px) { .countdown-grid span { font-size: 11px; letter-spacing: .02em; } }

/* A heavier information face gives dates and time values readable numerals. */
.opening-date,.hero-date,.event-time,.countdown-grid strong,.envelope-card em,footer span {
  font-family: var(--sans); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; color: var(--ink);
}
.opening-date { font-size: clamp(16px, 4vw, 19px); line-height: 1.5; }
.hero-date { font-size: clamp(14px, 3.5vw, 18px); line-height: 1.6; }
.countdown-grid strong { font-size: clamp(30px, 7vw, 48px); line-height: 1.2; }
.event-time { font-size: 32px; }
.event-time span { font-size: 14px; font-weight: 500; }
.body-copy strong { font-weight: 600; }
.music-button { border: 0; min-width: 44px; min-height: 44px; }
.hero-card .eyebrow { margin-bottom: 6px; color: #fff; font-size: clamp(18px, 3vw, 24px); }
.hero-card .hero-date { margin-top: 12px; margin-bottom: 8px; color: #fff; font-size: clamp(14px, 3.2vw, 18px); }
.hero-card .hero-place { color: #fff; font-size: clamp(11px, 2.8vw, 14px); letter-spacing: .14em; line-height: 1.5; }
#invitation-audio { display: none; }
