:root {
  color-scheme: light;
  --paper: #f9f7ef;
  --paper-light: #fffdf7;
  --pine: #283e32;
  --green: #335441;
  --petal: #8e5362;
  --secondary: #566257;
  --brass: #a88955;
  --rule: #d9d7c6;
  --display: "Cormorant Garamond", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; min-width: 280px; color: var(--pine); background: var(--paper); font: 1rem/1.6 var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid #b87a3f; outline-offset: 4px;
}
[hidden] { display: none !important; }
img { display: block; width: 100%; }
figure, p, h1, h2 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }
.skip {
  position: fixed; left: 12px; top: -70px; z-index: 20;
  background: var(--pine); color: white; padding: 9px 17px; border-radius: 4px;
}
.skip:focus { top: 8px; }
.topbar {
  position: sticky; inset-block-start: 0; z-index: 5;
  background: #faf9f2f5; border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1280px; min-height: 67px; margin: auto; padding: 10px clamp(20px, 5.8vw, 78px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand, .main-nav, .music-toggle, .main-button, .light-button, .calendar-link { display: inline-flex; align-items: center; }
.brand { gap: 13px; }
.brand-seal {
  position: relative; display: inline-block; flex: 0 0 37px; height: 39px; border: 1px solid #a7a387;
  border-radius: 48% 48% 47% 47%; transform: rotate(-8deg); background: #eeeddc;
}
.brand-seal::before { content: ""; position: absolute; inset: 2px; border: 1px solid #c5c1a4; border-radius: inherit; }
.brand-seal i, .brand-seal b { position: absolute; font: italic 500 23px/1 var(--display); transform: rotate(8deg); }
.brand-seal i { left: 5px; top: 4px; } .brand-seal b { top: 12px; right: 6px; font-size: 22px; }
.brand-text { font: italic 500 1.36rem/1.2 var(--display); }
.main-nav { gap: clamp(20px, 3vw, 42px); color: var(--secondary); font-size: .91rem; }
.main-nav a, .footer-actions a { padding: 7px 0; }
.main-nav a:hover, .footer-actions a:hover { color: var(--petal); text-decoration: underline; text-underline-offset: 5px; }
.music-toggle {
  gap: 8px; min-height: 38px; padding: 6px 15px; font-size: .89rem; font-weight: 500;
  border: 1px solid #bcbfac; border-radius: 40px; background: transparent;
}
.music-toggle:hover, .music-toggle[aria-expanded="true"] { background: #e9eedf; }
.music-note { font: 1.24rem/1 Georgia, serif; color: var(--green); }
.cover {
  position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 6% 88%, #e8e9d6 0, transparent 39%),
    radial-gradient(ellipse at 91% 9%, #eae8d9 0, transparent 37%),
    linear-gradient(110deg, #fbf7ee, #faf7ef 46%, #f2f0e3);
}
.cover::before, .letter::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .25;
  background-image: url("assets/paper.png"); background-size: 160px 160px;
}
.cover-grid {
  width: min(100%, 1240px); margin: auto; padding: clamp(35px, 5vw, 73px) clamp(25px, 6vw, 85px) clamp(35px, 4.8vw, 68px);
  display: grid; grid-template-columns: .97fr 1.03fr; gap: clamp(22px, 5.4vw, 80px); align-items: center;
}
.cover-type { text-align: center; position: relative; padding-block: 4px 12px; }
.eyebrow, .small-label { font: 600 .79rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #57674f; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: clamp(15px, 2vw, 30px); }
.hero-eyebrow span { width: 27px; height: 1px; background: #ada887; }
.cover h1 { font-size: clamp(4.8rem, 8.1vw, 7.4rem); line-height: 1.02; letter-spacing: -.051em; }
.cover h1 span { display: block; white-space: nowrap; }
.cover h1 i {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: .46em; font-weight: 500; color: var(--petal); line-height: 1.02;
  margin: .005em 0 .08em; letter-spacing: -.055em;
}
.cover h1 i::before, .cover h1 i::after { content: ""; width: 24px; height: 1px; background: #cdb9a0; }
.date-stamp { margin: clamp(17px, 2.6vw, 35px) auto 2px; display: flex; align-items: center; justify-content: center; gap: .5em; font: 500 clamp(1.42rem, 2.2vw, 2rem)/1.3 var(--display); letter-spacing: .05em; font-variant-numeric: lining-nums; }
.date-stamp b { color: #997c56; font-size: .7em; }
.cover-place { color: var(--secondary); font-size: .93rem; }
.cover-place span { color: #a18c6b; vertical-align: .14em; font-size: .44em; margin: 0 .9em; }
.main-button, .light-button { justify-content: center; gap: 12px; min-height: 47px; padding: 11px 28px; border-radius: 2px; font-weight: 500; }
.main-button {
  margin-top: clamp(17px, 2.2vw, 30px); background: var(--green); color: #fffdf1;
  border: 1px solid var(--green); transition: background .2s, transform .2s; box-shadow: 0 3px 10px #203a2920;
}
.main-button:hover { background: #253f30; transform: translateY(-1px); }
.envelope-icon { position: relative; width: 18px; height: 13px; border: 1.3px solid currentColor; border-radius: 2px; overflow: hidden; }
.envelope-icon::before { content: ""; position: absolute; top: -7px; left: 3px; width: 10px; height: 10px; border-right: 1.3px solid; border-bottom: 1.3px solid; transform: rotate(45deg); }
.garden-figure { width: min(100%, 470px); justify-self: center; padding: 8px 6px 0; }
.garden-outline {
  position: relative; padding: 7px; border: 1px solid #b4a77e; border-radius: 53% 53% 2px 2px / 45% 45% 2px 2px;
  background: #fcf9ed; box-shadow: 0 19px 39px -27px #404534b0;
}
.garden-outline::before {
  content: ""; position: absolute; inset: -7px; border: 1px solid #c9c3a4;
  border-radius: 53% 53% 1px 1px / 45% 45% 1px 1px; pointer-events: none;
}
.garden-window {
  display: block; position: relative; aspect-ratio: .90; overflow: hidden; isolation: isolate;
  border-radius: 52% 52% 1px 1px / 44.5% 44.5% 1px 1px; background: #c4c4a3;
  perspective: 1050px;
}
.garden-photo, .garden-glow, .garden-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.garden-photo { object-fit: cover; object-position: 50% 50%; transform: scale(1.035); transition: transform 1.6s ease, filter 1.6s ease; }
.garden-glow { background: linear-gradient(95deg, #313b211c, transparent 43%, #ffedce10); }
.garden-vignette { pointer-events: none; box-shadow: inset 0 0 18px #252b2028; }
.garden-gate {
  position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: none;
  will-change: transform; transition: transform 1.35s cubic-bezier(.42,.05,.18,1), opacity 1.36s;
  background: linear-gradient(to right, #fff7dc18, #f4edce06 65%, #fffbda18);
}
.gate-left { left: 0; transform-origin: left center; border-right: 1px solid #f4e7c7d9; }
.gate-right { right: 0; transform-origin: right center; border-left: 1px solid #92734670; }
.garden-gate i {
  position: absolute; inset: 0 7px; border: 1px solid #f3e5bf96; border-top: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #f7ebc291 25%, transparent calc(25% + 1px));
}
.garden-gate b { position: absolute; left: 0; right: 0; height: 24%; bottom: 0; border-top: 2px solid #f6e8c19c; border-bottom: 1px solid #b9a271; }
.gate-medallion {
  position: absolute; left: 50%; top: 61%; display: grid; place-items: center; transform: translate(-50%, -50%);
  width: 39px; height: 39px; border-radius: 50%; color: #f7f0cf; background: #95624d;
  background: linear-gradient(145deg,#b98569,#935f4a 70%); border: 2px solid #ba8d71;
  outline: 1px solid #84665185; box-shadow: 1px 3px 8px #57422966, inset 0 0 0 1px #d1a68b;
  font: italic 1.4rem/1 var(--display); transition: transform .45s ease, opacity .45s;
}
.garden-open .gate-left { transform: rotateY(-91deg); opacity: 0; }
.garden-open .gate-right { transform: rotateY(91deg); opacity: 0; }
.garden-open .garden-photo { transform: scale(1.095); }
.garden-open .gate-medallion { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
.garden-figure figcaption { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 19px; }
.garden-figure figcaption em { font: italic 500 clamp(1.1rem, 1.55vw, 1.45rem)/1.25 var(--display); color: #54664c; }
.caption-line { position: relative; width: 30px; height: 1px; background: #b6ab86; }
.caption-line:first-child::after, .caption-line:last-child::before { content:""; position: absolute; width: 4px; height: 4px; top: -1.5px; background: #b6ab86; transform: rotate(45deg); }
.caption-line:first-child::after { right: 0; }
.section { scroll-margin-top: 12px; }
.letter { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: #fdfaf3; padding: clamp(52px, 6.8vw, 96px) 23px; }
.letter-inner { max-width: 740px; margin: auto; }
.botanical-flourish { display: flex; align-items: center; justify-content: center; gap: 12px; color: #997953; }
.botanical-flourish i { width: 40px; height: 1px; background: #c8bb98; }
.botanical-flourish span { font: 1.65rem/1.1 Georgia, serif; }
.letter .eyebrow { margin-top: 20px; }
h2 { font-size: clamp(2.8rem, 5.4vw, 4.65rem); line-height: 1.06; letter-spacing: -.042em; }
.letter h2 { margin-top: 9px; }
.letter-message { max-width: 578px; margin: 22px auto 0; color: #4d574d; font-size: 1.04rem; line-height: 1.78; }
.letter-message p + p { margin-top: 10px; }
.signatures { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 3.5vw, 45px); margin: 29px auto 0; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 550px; }
.signatures .small-label { display: block; color: #697365; font-size: .76rem; }
.signatures strong { display: block; font: italic 500 clamp(1.4rem, 2.8vw, 2.05rem)/1.35 var(--display); }
.signatures > i { color: var(--petal); font: italic 1.8rem var(--display); }
.occasion { background: var(--pine); color: #fff9eb; }
.occasion-inner {
  width: min(100%, 1110px); margin: auto; padding: clamp(48px, 6.5vw, 88px) clamp(24px, 5vw, 65px);
  display: grid; grid-template-columns: minmax(165px, .7fr) 1.6fr; align-items: center; gap: clamp(30px, 6vw, 90px);
}
.occasion-date { text-align: center; padding: 2px clamp(15px, 3vw, 42px) 2px 0; border-right: 1px solid #8a997d80; }
.occasion-date .small-label, .occasion .eyebrow { color: #dfd5b5; }
.occasion-date time { display: block; }
.occasion-date time span { display: block; font: 500 clamp(5rem, 8vw, 8rem)/.97 var(--display); padding: .04em 0 .01em; font-variant-numeric: lining-nums; }
.occasion-date time b { font: 500 clamp(1.2rem, 2.1vw, 1.65rem)/1.35 var(--display); }
.occasion-date p { margin-top: 13px; font-size: .91rem; line-height: 1.52; color: #dbe0d2; }
.occasion .eyebrow { margin-bottom: 11px; }
.occasion h2 { color: #faf4e7; }
.venue-lead { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; font-weight: 600; }
.address { color: #e2e4d8; margin-top: 3px; }
.time-note { color: #ded6bb; font-size: .9rem; margin-top: 7px; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; align-items: center; }
.light-button { color: #2c4031; background: #eee9d6; padding-inline: 20px; }
.light-button:hover { background: #fffdf0; }
.calendar-link { gap: 9px; min-height: 44px; border-bottom: 1px solid #aaa98b; }
.calendar-link:hover { color: #fff; border-color: #fff; }
.pin-icon { position: relative; width: 14px; height: 14px; border: 1.6px solid; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 1px 3px; }
.pin-icon::after { content: ""; position: absolute; width: 4px; height: 4px; top: 3.4px; left: 3.4px; border-radius: 50%; background: currentColor; }
.calendar-icon { position: relative; width: 16px; height: 15px; border: 1.3px solid; border-radius: 2px; background: linear-gradient(to bottom, transparent 3px, currentColor 3px, currentColor 4px, transparent 4px); }
.calendar-icon::before, .calendar-icon::after { content: ""; position: absolute; width: 1.5px; height: 4px; top: -3px; background: currentColor; }
.calendar-icon::before { left: 3px; } .calendar-icon::after { right: 3px; }
.album { max-width: 1190px; margin: auto; padding: clamp(50px, 6vw, 90px) clamp(22px, 5.7vw, 75px); }
.album-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.album h2 { margin-top: 5px; }
.album-note { max-width: 230px; color: var(--secondary); line-height: 1.5; font-size: .93rem; padding-bottom: 4px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.3vw, 32px); }
.gallery-link { display: block; aspect-ratio: 1.03; overflow: hidden; background: #e5e4d4; position: relative; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-link:hover img { transform: scale(1.035); }
.photo-strip figcaption { padding-top: 10px; color: var(--secondary); font: italic 500 1.25rem/1.3 var(--display); }
.closing { padding: 38px 22px 26px; text-align: center; border-top: 1px solid var(--rule); background: #eeefe3; }
.closing .botanical-flourish { margin-bottom: 14px; }
.closing-note { color: var(--secondary); }
.closing-names { margin: 7px 0 9px; font: italic 500 clamp(2.1rem, 4.6vw, 3.2rem)/1.2 var(--display); }
.closing-names i { color: var(--petal); font-size: .75em; }
.footer-actions { display: flex; justify-content: center; align-items: center; gap: 22px; font-size: .87rem; }
.footer-actions button { cursor: pointer; background: none; border: 0; border-bottom: 1px solid #a4ad99; padding: 3px 0; }
.share-status { font-size: .87rem; }
.share-status:not(:empty) { margin-top: 8px; }
.share-fallback { margin: 10px auto; max-width: 470px; }
.share-fallback label { display: block; font-size: .87rem; }
.share-fallback input { width: 100%; padding: 5px; }
.music-dock {
  position: fixed; z-index: 7; bottom: max(15px, env(safe-area-inset-bottom)); right: max(15px, env(safe-area-inset-right));
  width: min(367px, calc(100vw - 30px)); max-height: calc(100dvh - 86px); overflow: auto;
  border: 1px solid #bebda9; border-radius: 8px; padding: 13px; background: var(--paper-light); box-shadow: 0 10px 45px #25332940;
}
.dock-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.dock-top strong { font: 600 1.55rem/1.1 var(--display); } .dock-top p { color: var(--secondary); font-size: .83rem; }
.round-control { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #c3c6b5; border-radius: 50%; background: transparent; font: 1.5rem/1 var(--sans); }
.round-control:hover { background: #e8ebdd; }
#music-player iframe { border: 0; display: block; width: 100%; min-height: 200px; aspect-ratio: 16/9; background: #293128; }
.youtube-link { display: inline-block; margin-top: 9px; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.lightbox { max-width: min(850px, 94vw); max-height: 93dvh; border: 0; padding: 0; border-radius: 3px; background: var(--paper-light); color: var(--pine); }
.lightbox::backdrop { background: #15241eef; }
.lightbox-content { position: relative; padding: 8px; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 73dvh; margin: auto; object-fit: contain; }
.photo-close { position: absolute; top: 16px; right: 16px; background: var(--paper-light); }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 6px 2px; }
.lightbox-caption p { text-align: center; font: italic 500 1.27rem/1.3 var(--display); }
@media (min-width: 1500px) { .cover-grid { padding-block: 70px 65px; } }
@media (max-width: 760px) {
  .topbar-inner { min-height: 57px; padding: 7px 20px; gap: 10px; }
  .brand { gap: 9px; } .brand-text { font-size: 1.17rem; } .brand-seal { transform: scale(.9) rotate(-8deg); }
  .main-nav { display: none; }
  .music-toggle { min-height: 36px; padding: 4px 13px; }
  .cover-grid { padding: 32px 20px 29px; gap: 27px; grid-template-columns: 1fr; }
  .cover-type { padding: 0; }
  .cover h1 { font-size: clamp(3.6rem, 11.8vw, 5.2rem); }
  .hero-eyebrow { font-size: .75rem; margin-bottom: 12px; }
  .cover h1 i { font-size: .47em; line-height: .85; margin: .1em 0 .13em; }
  .date-stamp { font-size: 1.45rem; margin: 12px auto 2px; }
  .cover-place { font-size: .87rem; }
  .main-button { min-height: 43px; padding: 9px 24px; margin-top: 13px; }
  .garden-figure { width: min(85%, 370px); }
  .garden-window { aspect-ratio: 1.36; }
  .garden-figure figcaption { margin-top: 15px; }
  .letter .eyebrow { margin-top: 14px; }
  .occasion-inner { gap: 24px; }
  .occasion-date { padding-right: 20px; }
  .venue-actions { gap: 17px; }
}
@media (max-width: 550px) {
  html { scroll-padding-top: 63px; }
  .eyebrow, .small-label { letter-spacing: .135em; }
  .occasion-inner { grid-template-columns: 1fr; padding: 42px 24px 45px; gap: 24px; text-align: center; }
  .occasion-date { margin: auto; padding: 0 13px 20px; border: 0; border-bottom: 1px solid #8a997d80; }
  .occasion-date time span { font-size: 5.2rem; }
  .occasion-date p br { display: none; } .occasion-date p br::after { content: " "; }
  .occasion-date p { max-width: 265px; }
  .venue-lead, .venue-actions { justify-content: center; }
  .album-head { display: block; } .album-note { margin-top: 10px; max-width: none; }
  .photo-strip { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 19px; }
  .photo-strip figure:first-child { grid-column: 1/-1; }
  .photo-strip figure:first-child .gallery-link { aspect-ratio: 1.75; }
  .photo-strip figcaption { font-size: 1.14rem; }
  .signatures { gap: 10px; } .signatures > div { flex: 1; }
  .signatures strong { font-size: clamp(1.18rem, 5.7vw, 1.65rem); }
}
@media (max-width: 350px) {
  .cover h1 { font-size: 3.35rem; } .letter { padding-inline: 16px; }
  .signatures { gap: 5px; } .signatures > i { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
