:root { color: var(--ink); background: var(--blush); font-family: Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #fffaf7 0, var(--blush) 55%, var(--powder-pink) 100%);
}
button { font: inherit; }
button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
.invitation-shell { min-height: 100vh; overflow-x: hidden; }
.welcome-screen {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  padding: var(--screen-padding-top) var(--screen-padding-inline) var(--screen-padding-bottom);
  gap: var(--block-gap);
  text-align: center;
}
.welcome-copy { flex: 0 0 auto; }
.eyebrow { margin: 0; color: var(--gold); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.welcome-copy h1 { margin: .3rem 0 0; }
.envelope-stage { position: relative; width: min(92vw, 27rem); height: clamp(31rem, 130vw, 40rem); flex: 0 0 auto; }
.spark-layer { position: fixed; z-index: 50; inset: 0; overflow: hidden; pointer-events: none; }
.spark { position: absolute; width: var(--spark-size); height: var(--spark-size); border-radius: 50%; background: var(--spark-color); color: var(--spark-color); box-shadow: 0 0 .55rem var(--spark-color), 0 0 1rem color-mix(in srgb, var(--spark-color) 55%, transparent); animation: spark-burst var(--spark-duration) cubic-bezier(.22,.75,.22,1) both; }
.spark::before, .spark::after { content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; border-radius: 999px; transform: translate(-50%, -50%); opacity: .9; }
.spark::before { width: 1px; height: 140%; }
.spark::after { width: 140%; height: 1px; }
.envelope {
  position: absolute;
  right: 0;
  bottom: 1.1rem;
  left: 0;
  width: 100%;
  aspect-ratio: 1.55;
  perspective: 1000px;
  filter: drop-shadow(0 1.2rem 1.3rem rgba(89,65,60,.18));
  animation: none;
}
.envelope-back, .envelope-paper, .envelope-flap, .envelope-front, .photo-mask, .photo-frame { position: absolute; border-radius: .18rem; }
.envelope-back, .envelope-paper, .envelope-flap, .envelope-front { inset: 0; }
.envelope-back { z-index: 1; background: linear-gradient(145deg,#fffef9,#eee4d4); box-shadow: inset 0 0 0 1px rgba(182,148,88,.35); }
.envelope-paper { z-index: 2; inset: 7% 9%; background: var(--paper); border: 1px solid rgba(182,148,88,.2); transform: translateY(8%); }
.envelope-flap {
  z-index: 2;
  transform-origin: top;
  clip-path: polygon(0 0,100% 0,50% 57%);
  background: linear-gradient(155deg,var(--flap-gold-light) 10%,var(--flap-gold) 100%);
  border-top: 1px solid rgba(182,148,88,.32);
  box-shadow: inset 0 .12rem .3rem rgba(255,255,255,.48), 0 .35rem .75rem rgba(89,65,60,.12);
  backface-visibility: visible;
  transition: transform var(--flap-duration) cubic-bezier(.22,.75,.22,1);
}
.photo-mask {
  z-index: 4;
  inset: 0;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--photo-rise-duration) cubic-bezier(.22,.75,.22,1);
}
.photo-frame {
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(72vw, 18.5rem);
  aspect-ratio: 4/5;
  padding: .55rem;
  background: var(--paper);
  border: 1px solid rgba(182,148,88,.6);
  box-shadow: 0 .8rem 1.8rem rgba(89,65,60,.16);
  transform: translate(-50%, 100%);
  will-change: transform;
}
.photo-frame::before { content: ""; position: absolute; inset: .28rem; border: 1px solid var(--gold-light); pointer-events: none; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.lace-corner { position: absolute; z-index: 2; width: 3.3rem; height: 3.3rem; background: radial-gradient(circle at 100% 100%,transparent 0 34%,var(--gold) 35% 38%,transparent 39% 50%,var(--gold-light) 51% 54%,transparent 55%); opacity: .7; pointer-events: none; }
.lace-corner-top { top: -.45rem; left: -.45rem; transform: rotate(180deg); }
.lace-corner-bottom { right: -.45rem; bottom: -.45rem; }
.photo-fallback { display: grid; place-items: center; height: 100%; margin: 0; padding: 1rem; color: var(--gold); font-size: .95rem; }
.envelope-front {
  z-index: 5;
  clip-path: polygon(0 0,50% 55%,100% 0,100% 100%,0 100%);
  background: linear-gradient(145deg,#f9f1e6,#e8ddcc);
  opacity: .98;
}
.envelope-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(35deg,transparent 49.7%,rgba(182,148,88,.14) 50%,transparent 50.4%),linear-gradient(145deg,transparent 49.7%,rgba(182,148,88,.12) 50%,transparent 50.4%); }
.seal {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(10rem, 32vw);
  height: min(10rem, 32vw);
  place-items: center;
  align-content: center;
  gap: .18rem;
  padding: .65rem;
  appearance: none;
  cursor: pointer;
  border: 2px solid #e5ca91;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%,#ebd397,var(--gold) 68%,#8b6b35);
  box-shadow: 0 .25rem .35rem rgba(89,65,60,.22);
  color: #fff7dc;
  font-size: .9rem;
  letter-spacing: .06em;
  line-height: 1.1;
  transform: translate(-50%,-15%);
  transition: opacity .55s ease, transform .55s ease;
}
.seal::before { content: ""; position: absolute; inset: .35rem; border: 1px dashed rgba(255,248,218,.8); border-radius: 50%; }
.seal-initials { font-size: clamp(1rem, 4vw, 1.3rem); font-weight: 700; }
.seal-type { position: absolute; inset: .2rem; width: calc(100% - .4rem); height: calc(100% - .4rem); overflow: visible; pointer-events: none; }
.seal-type text { fill: #fff7dc; font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .35px; }
.seal:hover { filter: brightness(1.06); }
.seal:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }
.envelope.is-opening .envelope-flap { transform: rotateX(178deg); }
.envelope.is-opening .seal { opacity: 0; transform: translate(-50%,-15%) scale(.75); }
.envelope.photo-rising .photo-mask { clip-path: inset(-200% 0 0 0); }
.envelope.is-open { animation: float-envelope 5.5s ease-in-out infinite; }
.welcome-copy h1 { visibility: hidden; opacity: 0; }
.welcome-screen.is-photo-rising .welcome-copy h1 { visibility: visible; }
.invitation-copy { display: none; max-width: 27rem; margin-top: var(--copy-margin-top); opacity: 0; }
.welcome-screen.is-open .invitation-copy { display: block; }
.invitation-copy.is-revealing { animation: copy-appear var(--copy-reveal-duration) ease both; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--gold); }
.ornament span { width: .32rem; height: .32rem; transform: rotate(45deg); border: 1px solid var(--gold); }
.ornament svg { width: 4.75rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.1; }
h1 { margin: .4rem 0 .65rem; color: #5d4642; font-size: clamp(2rem,9vw,2.8rem); font-weight: 400; }
.invitation-text { max-width: 21rem; margin: 0 auto; font-size: 1.05rem; line-height: 1.65; }
.prototype-note { margin: 2.2rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .68rem; letter-spacing: .04em; }
.event-details { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; overflow: hidden; border: 1px solid rgba(182,148,88,.38); border-radius: 1rem; background: rgba(255,253,248,.78); box-shadow: 0 .7rem 1.5rem rgba(89,65,60,.08); }
.event-details::before { content: ""; position: absolute; inset: .45rem; pointer-events: none; border: 1px solid rgba(231,199,198,.8); border-radius: .7rem; background: repeating-radial-gradient(circle at 0 0, transparent 0 .32rem, rgba(182,148,88,.22) .34rem .39rem, transparent .41rem .68rem); opacity: .32; }
.event-details > * { position: relative; z-index: 1; }
.event-details h2, .countdown h3 { margin: 0; color: #6b514b; font-weight: 400; }
.event-details h2 { font-size: 1.35rem; letter-spacing: .12em; text-align: center; }
.event-date-composition { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .35rem .85rem; margin: 1.25rem 0 0; text-align: left; }
.event-day { color: var(--gold); font-family: Georgia, serif; font-size: clamp(4.2rem, 19vw, 5.8rem); font-weight: 400; line-height: .8; }
.event-month-year { display: grid; gap: .25rem; padding-left: .85rem; border-left: 1px solid var(--gold-light); color: #6b514b; font-family: Arial, sans-serif; font-size: .85rem; letter-spacing: .16em; line-height: 1.4; }
.event-month-year span:last-child { color: var(--gold); font-size: 1.05rem; }
.event-weekday { grid-column: 1 / -1; color: #947e72; font-family: Arial, sans-serif; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.ceremony-details { margin-top: 1rem; text-align: center; }
.ceremony-time { color: var(--gold); font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.ceremony-location-label { margin: .8rem 0 .25rem; color: var(--gold); font-family: Arial, sans-serif; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.ceremony-location { margin: 0; color: var(--ink); line-height: 1.45; }
.event-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1.35rem; }
.event-times > div { display: grid; gap: .3rem; min-width: 0; padding: .7rem .35rem; border-top: 1px solid rgba(182,148,88,.38); border-bottom: 1px solid rgba(182,148,88,.2); text-align: center; }
.event-time-label { color: #806d62; font-size: .7rem; line-height: 1.25; }
.event-times time { color: var(--gold); font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.event-facts { display: grid; gap: .85rem; margin: 1.25rem 0 0; }
.event-facts div { display: grid; gap: .15rem; }
.event-facts dt { color: var(--gold); font-family: Arial,sans-serif; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.event-facts dd { margin: 0; color: var(--ink); line-height: 1.45; }
.countdown { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(182,148,88,.28); }
.countdown h3 { font-size: 1.05rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .8rem; }
.countdown-grid div { display: grid; gap: .2rem; min-width: 0; padding: .55rem .2rem; border-radius: .55rem; background: rgba(231,199,198,.3); }
.countdown-grid span:first-child { color: var(--gold); font-size: clamp(1.25rem, 6vw, 1.7rem); line-height: 1; }
.countdown-grid span:last-child { color: #947e72; font-family: Arial,sans-serif; font-size: .58rem; letter-spacing: .03em; text-transform: uppercase; }
.countdown-complete { margin: .85rem 0 0; color: var(--gold); font-size: 1.05rem; }
.reception-details { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(182,148,88,.28); text-align: center; }
.reception-details h3 { margin: 0; color: #6b514b; font-size: 1.05rem; font-weight: 400; }
.reception-location { margin: .65rem 0 0; color: var(--ink); font-weight: 600; }
.reception-address { margin: .3rem 0 0; color: #806d62; line-height: 1.45; }
.location-link { display: inline-block; margin-top: 1rem; color: #fffdf8; text-decoration: none; }
.event-calendar { margin-top: 1.65rem; padding-top: 1.25rem; border-top: 1px solid rgba(182,148,88,.28); }
.event-calendar h3 { margin: 0; color: #6b514b; font-size: 1.05rem; font-weight: 400; text-align: center; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; margin-top: .85rem; }
.calendar-weekdays { color: #947e72; font-family: Arial, sans-serif; font-size: .58rem; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.calendar-grid { margin-top: .35rem; }
.calendar-day { position: relative; display: grid; min-height: 2rem; place-items: center; border: 1px solid transparent; border-radius: .45rem; color: var(--ink); font-family: Arial, sans-serif; font-size: .78rem; }
.calendar-day-empty { visibility: hidden; }
.calendar-day.is-selected { border-color: var(--gold); outline: 1px solid rgba(182,148,88,.3); outline-offset: 2px; font-weight: 700; }
.calendar-heart { position: absolute; top: .1rem; right: .18rem; color: var(--powder-pink); font-size: .55rem; line-height: 1; }
.event-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1.25rem; }
.event-actions .button { min-width: 0; padding-inline: .5rem; font-size: .78rem; }
.button-secondary { background: rgba(255,253,248,.72); color: #806d62; }
.button-secondary:hover { background: var(--blush); }
.rsvp-notice { margin: .85rem 0 0; padding: .65rem .75rem; border-left: 2px solid var(--gold); background: rgba(231,199,198,.22); color: #806d62; font-family: Arial, sans-serif; font-size: .78rem; line-height: 1.4; }
.program-section { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; border: 1px solid rgba(182,148,88,.32); border-radius: 1rem; background: rgba(255,253,248,.7); }
.program-section h2 { margin: 0; color: #6b514b; font-size: 1.35rem; font-weight: 400; }
.program-timeline { position: relative; display: grid; gap: 1.1rem; margin: 1.35rem 0 0; padding: 0; list-style: none; text-align: left; }
.program-timeline::before { content: ""; position: absolute; top: .65rem; bottom: .65rem; left: 1rem; width: 1px; background: var(--gold); opacity: .7; }
.program-timeline li { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: center; min-height: 2.2rem; }
.program-marker { position: relative; z-index: 1; display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--paper); color: var(--gold); }
.program-marker svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.15; overflow: visible; }
.program-marker svg .illustration-line { fill: none; stroke: currentColor; }
.program-marker svg .illustration-gold { fill: none; stroke: var(--gold); }
.program-marker svg .illustration-pink { fill: var(--powder-pink); stroke: #b88987; }
.program-marker svg .illustration-champagne { fill: #f1dfb9; stroke: #b69458; }
.program-marker svg .illustration-shadow { fill: rgba(89,65,60,.16); stroke: none; }
.program-marker svg .illustration-highlight { fill: none; stroke: rgba(255,253,248,.8); stroke-width: 1.1; }
.program-entry { display: grid; gap: .12rem; }
.program-entry time { color: var(--gold); font-family: Arial,sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.program-entry span { color: var(--ink); line-height: 1.35; }
.dress-code-section { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; border: 1px solid rgba(182,148,88,.32); border-radius: 1rem; background: rgba(255,253,248,.7); text-align: center; }
.dress-code-illustrations { display: flex; justify-content: center; gap: 1.25rem; }
.dress-code-figure { display: grid; justify-items: center; gap: .3rem; width: min(42%, 8rem); margin: 0; }
.dress-code-illustration { width: 100%; height: 7.2rem; fill: var(--paper); stroke: #8b6b35; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.15; }
.dress-code-illustration .suit-fill { fill: var(--dress-suit-color); }
.dress-code-illustration .shirt-fill { fill: var(--paper); }
.dress-code-illustration .shirt-champagne { fill: #f1dfb9; }
.dress-code-illustration .shirt-gold { fill: var(--gold-light); }
.dress-code-illustration .trouser-fill { fill: #2e2b2b; }
.dress-code-illustration .suit-shadow, .dress-code-illustration .dress-shadow { fill: rgba(89,65,60,.14); stroke: none; }
.dress-code-illustration .suit-highlight, .dress-code-illustration .dress-highlight, .dress-code-illustration .shirt-highlight { fill: none; stroke: rgba(255,253,248,.75); stroke-width: 1.2; }
.dress-code-illustration .satin-line { fill: none; stroke: rgba(255,253,248,.62); stroke-width: 1; }
.dress-code-illustration .dress-fill { fill: var(--powder-pink); }
.dress-code-illustration .suit-detail { fill: none; stroke: #8b6b35; }
.dress-code-illustration .shirt-detail, .dress-code-illustration .trouser-detail { fill: none; stroke: #8b6b35; }
.dress-code-illustration .gold-detail { fill: none; stroke: var(--gold); }
.dress-code-illustration .champagne-detail { fill: none; stroke: #b69458; }
.dress-code-illustration .gold-button { fill: var(--gold); stroke: none; }
.dress-code-figure figcaption { color: #806d62; font-family: Arial,sans-serif; font-size: .72rem; letter-spacing: .04em; }
.dress-code-section h2 { margin: .45rem 0 0; color: #6b514b; font-size: 1.35rem; font-weight: 400; }
.dress-code-description { margin: .7rem 0 0; color: var(--ink); font-size: 1.05rem; }
.dress-code-section h3 { margin: 1.25rem 0 .75rem; color: var(--gold); font-family: Arial,sans-serif; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.dress-code-colors { display: flex; justify-content: center; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.dress-code-colors li { display: grid; justify-items: center; gap: .35rem; min-width: 4.5rem; color: #806d62; font-family: Arial,sans-serif; font-size: .68rem; line-height: 1.25; }
.dress-code-swatch { width: 2.35rem; height: 2.35rem; border: 1px solid rgba(89,65,60,.2); border-radius: 50%; box-shadow: 0 .2rem .45rem rgba(89,65,60,.12); }
.dress-code-note { margin: 1rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .68rem; line-height: 1.45; }
.gallery-section { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; border: 1px solid rgba(182,148,88,.32); border-radius: 1rem; background: rgba(255,253,248,.7); text-align: center; overflow: hidden; }
.gallery-section h2 { margin: 0; color: #6b514b; font-size: 1.35rem; font-weight: 400; }
.gallery-carousel { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; gap: .3rem; margin-top: 1.25rem; }
.gallery-viewport { position: relative; height: clamp(21rem, 78vw, 27rem); min-width: 0; overflow: hidden; perspective: var(--gallery-perspective); perspective-origin: 50% 50%; touch-action: pan-y; user-select: none; }
.gallery-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform var(--gallery-transition) cubic-bezier(.22,.75,.22,1); }
.gallery-item { position: absolute; top: 50%; left: 50%; display: block; width: min(64%, 14.5rem); padding: .25rem; border: 1px solid rgba(182,148,88,.5); border-radius: .65rem; background: var(--paper); box-shadow: 0 .4rem .85rem rgba(89,65,60,.1); cursor: zoom-in; transform: translate(-50%, -50%) rotateY(var(--gallery-angle)) translateZ(var(--gallery-radius)); transform-style: preserve-3d; backface-visibility: hidden; }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-item-inner { display: block; transform: scale(var(--gallery-inner-scale)); transform-origin: center; transition: transform var(--gallery-transition) cubic-bezier(.22,.75,.22,1), opacity var(--gallery-transition) ease; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; border-radius: .42rem; pointer-events: none; }
.gallery-control { display: grid; min-width: 2.2rem; min-height: 2.2rem; place-items: center; border: 1px solid rgba(182,148,88,.6); border-radius: 50%; background: var(--paper); color: #806d62; cursor: pointer; }
.gallery-control::before { font-size: 1.5rem; line-height: 1; }
.gallery-control-previous::before { content: "‹"; }
.gallery-control-next::before { content: "›"; }
.gallery-control:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-counter { margin: .75rem 0 0; color: #806d62; font-family: Arial,sans-serif; font-size: .78rem; letter-spacing: .08em; }
.gallery-note { margin: 1rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .68rem; letter-spacing: .04em; }
.guestbook-section { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; border: 1px solid rgba(182,148,88,.32); border-radius: 1rem; background: rgba(255,253,248,.78); }
.personal-message-section, .contributions-section { position: relative; width: min(100%, 27rem); margin-top: 2.5rem; padding: 1.5rem 1rem 1.25rem; border: 1px solid rgba(182,148,88,.32); border-radius: 1rem; background: rgba(255,253,248,.78); text-align: center; }
.personal-message-section::before, .contributions-section::before { content: ""; position: absolute; inset: .45rem; pointer-events: none; border: 1px solid rgba(231,199,198,.72); border-radius: .7rem; opacity: .3; background: repeating-radial-gradient(circle at 0 0, transparent 0 .32rem, rgba(182,148,88,.22) .34rem .39rem, transparent .41rem .68rem); }
.personal-message-section > *, .contributions-section > * { position: relative; z-index: 1; }
.personal-message-section h2, .contributions-section h2 { margin: 0; color: #6b514b; font-size: 1.35rem; font-weight: 400; }
.personal-message-section p { max-width: 23rem; margin: 1rem auto 0; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.contributions-intro { margin: 1rem auto 0; color: var(--ink); line-height: 1.55; }
.contributions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1.25rem; }
.contribution-card { display: grid; min-height: 4.2rem; place-items: center; padding: .65rem .45rem; border: 1px solid rgba(182,148,88,.35); border-radius: .7rem; background: rgba(244,229,224,.46); box-shadow: 0 .25rem .7rem rgba(89,65,60,.06); }
.contribution-card h3, .contribution-card a { margin: 0; color: #6b514b; font-family: Arial,sans-serif; font-size: .9rem; font-weight: 600; text-decoration: none; }
.contribution-card p { margin: .35rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .7rem; }
.contributions-notice { margin: 1.15rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .7rem; line-height: 1.45; }
.guestbook-section::before { content: ""; position: absolute; inset: .45rem; pointer-events: none; border: 1px solid rgba(231,199,198,.72); border-radius: .7rem; opacity: .3; background: repeating-radial-gradient(circle at 0 0, transparent 0 .32rem, rgba(182,148,88,.22) .34rem .39rem, transparent .41rem .68rem); }
.guestbook-section > * { position: relative; z-index: 1; }
.guestbook-section h2 { margin: 0; color: #6b514b; font-size: 1.35rem; font-weight: 400; text-align: center; }
.guestbook-mode-notice { margin: .7rem auto 0; color: #947e72; font-family: Arial,sans-serif; font-size: .7rem; line-height: 1.45; text-align: center; }
.guestbook-form { display: grid; gap: .85rem; margin-top: 1.25rem; }
.guestbook-field { display: grid; gap: .35rem; }
.guestbook-field label { color: var(--gold); font-family: Arial,sans-serif; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.guestbook-field input, .guestbook-field textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(182,148,88,.42); border-radius: .55rem; background: rgba(255,253,248,.9); color: var(--ink); font: inherit; line-height: 1.45; padding: .7rem .75rem; }
.guestbook-field textarea { min-height: 7rem; resize: vertical; }
.guestbook-field input:focus-visible, .guestbook-field textarea:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.guestbook-form .button { justify-self: center; }
.guestbook-status { margin: 0; padding: .65rem .75rem; border-left: 2px solid var(--gold); background: rgba(231,199,198,.22); color: #806d62; font-family: Arial,sans-serif; font-size: .78rem; line-height: 1.4; }
.guestbook-cards { display: grid; gap: .75rem; margin-top: 1.5rem; }
.guestbook-card { padding: .9rem; border: 1px solid rgba(182,148,88,.28); border-radius: .7rem; background: rgba(244,229,224,.46); box-shadow: 0 .25rem .7rem rgba(89,65,60,.06); }
.guestbook-card-label { margin: 0; color: var(--gold); font-family: Arial,sans-serif; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.guestbook-card-name { margin: .45rem 0 0; color: #6b514b; font-size: .95rem; font-weight: 600; }
.guestbook-card-message { margin: .35rem 0 0; color: var(--ink); font-size: .9rem; line-height: 1.5; }
.lightbox { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(71,60,58,.82); }
.lightbox-panel { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; align-items: center; gap: .6rem; width: min(100%, 54rem); max-height: 100%; padding: 2.7rem .7rem .8rem; border: 1px solid rgba(244,231,194,.8); border-radius: 1rem; background: rgba(255,253,248,.98); box-shadow: 0 1rem 2.5rem rgba(25,18,18,.3); }
.lightbox-figure { display: grid; justify-items: center; gap: .65rem; min-width: 0; margin: 0; }
.lightbox-figure img { display: block; width: 100%; max-width: 38rem; max-height: 76vh; object-fit: contain; }
.lightbox-figure figcaption { color: #6b514b; font-family: Arial,sans-serif; font-size: .78rem; letter-spacing: .06em; }
.lightbox-close, .lightbox-arrow { display: grid; min-width: 2.4rem; min-height: 2.4rem; place-items: center; border: 1px solid rgba(182,148,88,.6); border-radius: 50%; background: var(--paper); color: #806d62; cursor: pointer; }
.lightbox-close { position: absolute; top: .65rem; right: .65rem; }
.lightbox-close::before { content: "×"; font-size: 1.5rem; line-height: 1; }
.lightbox-previous::before { content: "‹"; font-size: 1.5rem; }
.lightbox-next::before { content: "›"; font-size: 1.5rem; }
.lightbox-close:focus-visible, .lightbox-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 430px) { .lightbox-panel { grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem; gap: .3rem; padding-inline: .35rem; } }
.silent-open { min-height: 2.5rem; margin: -.35rem 0 0; padding: .55rem 1rem; border: 1px solid rgba(182,148,88,.45); border-radius: 999px; background: rgba(255,253,248,.55); color: #806d62; cursor: pointer; font-size: .82rem; letter-spacing: .03em; }
.silent-open:hover { background: rgba(255,253,248,.85); }
.music-controls { margin: 1.4rem auto 0; }
.music-toggle { display: inline-flex; min-height: 2.65rem; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid rgba(182,148,88,.55); border-radius: 999px; background: rgba(255,253,248,.72); color: #806d62; cursor: pointer; }
.music-icon { display: inline-grid; width: 1.15rem; height: 1.15rem; place-items: center; color: var(--gold); font-family: Arial,sans-serif; font-size: .72rem; }
.music-status { margin: .5rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .68rem; }
.music-credit { margin: 2rem 0 0; color: #947e72; font-family: Arial,sans-serif; font-size: .66rem; line-height: 1.5; }
.music-credit a { color: inherit; text-underline-offset: .15em; }
.button { min-height: 3rem; padding: .75rem 1.3rem; border: 1px solid var(--gold); border-radius: 999px; cursor: pointer; letter-spacing: .03em; }
.button-primary { background: var(--gold); color: #fffdf8; box-shadow: 0 .45rem 1rem rgba(120,88,43,.16); transition: background .2s ease,transform .2s ease,opacity .4s ease; }
.button-primary:hover { background: #9e7b43; transform: translateY(-1px); }
.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; }
@keyframes float-envelope { 0%,100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--float-amplitude) * -1)); } }
@keyframes copy-appear { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes title-appear { from { opacity: 0; transform: translateY(.35rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes spark-burst { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.5) rotate(0deg); } 10% { opacity: .98; } 72% { opacity: .78; } 100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(.08) rotate(var(--spark-rotation)); } }
@media (min-width: 640px) { .welcome-screen { padding: var(--desktop-padding-top) 3rem var(--desktop-padding-bottom); gap: var(--desktop-block-gap); } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .envelope.is-open { animation: none !important; }
  .welcome-screen.is-open .welcome-copy h1 { visibility: visible; opacity: 1; }
  .spark { display: none; }
  .envelope.photo-rising .photo-mask { clip-path: inset(-200% 0 0 0); transition: none; }
  .envelope.photo-rising .photo-frame { transform: translate(-50%,var(--photo-final-shift)); transition: none !important; }
  .gallery-track, .gallery-item-inner { transition: none !important; }
}
