:root{--wine:#590f22;--deep:#3b0b17;--paper:#fffcfa;--rose:#f8eeed;--line:#e4cdce;--ink:#41252c;--serif:"Baskerville","Palatino Linotype","Book Antiqua",Georgia,serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif}
a{color:inherit}
a:focus-visible,summary:focus-visible{outline:2px solid #a33d58;outline-offset:5px}
h1,h2,h3,p{margin:0}
h1,h2,h3,.monogram,.time,.clock b{font-family:var(--serif);font-weight:400}
h2{font-size:clamp(2.45rem,5.5vw,4.1rem);line-height:1.05;color:var(--wine);margin-bottom:1.25rem}
h3{font-size:1.55rem;line-height:1.2;color:var(--wine);margin-bottom:.5rem}
.nav{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.75rem clamp(1rem,6vw,6rem);background:var(--paper);border-bottom:1px solid var(--line)}
.nav a{text-decoration:none}
nav{display:flex;flex-wrap:wrap;gap:.85rem clamp(.85rem,3.5vw,2.75rem);font-size:.9rem}
nav a:hover{text-decoration:underline;text-underline-offset:5px}
.monogram{white-space:nowrap;font-size:1.85rem;color:var(--wine);letter-spacing:-.06em}
.monogram span{font-size:.7em;font-style:italic;margin:0 .12em}
.hero{isolation:isolate;overflow:hidden;position:relative;min-height:680px;min-height:min(780px,calc(100svh - 56px));display:grid;align-items:center;background:#fcf7f1;border-bottom:1px solid var(--line)}
.hero:before{content:"";position:absolute;inset:18px;border:1px solid #c9959b;z-index:-1}
.invitation{width:65%;padding:4.3rem clamp(1.6rem,5vw,5rem);text-align:center}
.label{font-size:.875rem;letter-spacing:.16em;text-transform:uppercase;font-weight:650}
h1{color:var(--wine);font-size:clamp(3rem,7.75vw,7.8rem);line-height:.99;letter-spacing:-.065em;margin:1.4rem 0 1.9rem}
h1 small{display:block;font:650 clamp(.8rem,1.4vw,1.05rem)/1.35 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;margin-top:.55rem}
h1 em{display:block;font-size:.56em;line-height:1.15;margin:.1em 0;letter-spacing:normal}
.date{font:1.4rem var(--serif);color:var(--wine)}
.place{margin:.35rem 0 1.45rem}
.button{display:inline-block;background:var(--wine);color:white;border:1px solid var(--wine);padding:.68rem 1.15rem;text-decoration:none;font-weight:625;font-size:.9rem}
.button:hover{background:var(--deep);color:white}
.button.outline{background:transparent;color:var(--wine);margin-top:1.25rem}
.button.outline:hover{background:var(--wine);color:white}
.florals{position:absolute;z-index:-1;inset:0;pointer-events:none}.florals img{position:absolute;object-fit:contain}
.flower{width:clamp(245px,39vw,590px);filter:drop-shadow(0 14px 20px #4b0b1834)}
.one{right:-11%;top:-25%;transform:rotate(-32deg)}
.two{right:-9%;top:23%;transform:rotate(15deg)}
.three{right:-13%;bottom:-31%;transform:rotate(-27deg)}
.leaves{width:clamp(200px,31vw,430px);right:12%;top:-12%;transform:rotate(-40deg)}
.countdown,footer{padding:3.8rem 1rem;text-align:center;background:var(--deep);color:#fff5f4}
.countdown h2,footer h2,footer .monogram{color:white}
.countdown .label,footer .label{color:#efcbd1;margin-bottom:.8rem}
.clock{display:flex;justify-content:center;gap:clamp(.45rem,4vw,3rem)}
.clock[hidden]{display:none}
.clock div{min-width:58px;font-size:.875rem}
.clock b{display:block;font-size:clamp(1.85rem,5vw,3.25rem);line-height:1.2}
.section{text-align:center;padding:clamp(3.25rem,8vw,6.5rem) 1.25rem;scroll-margin-top:1rem}
.section>.label{margin-bottom:.75rem;color:var(--wine)}
.tinted{background:var(--rose);border-block:1px solid var(--line)}
.venue-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:920px;margin:2.25rem auto 0}
.venue-grid article{padding:2rem 1rem;border:1px solid var(--line)}
.time{font-size:2.35rem;color:var(--wine);margin:.25rem 0 .45rem}
.program{max-width:600px;margin:2rem auto 0;padding-left:2rem;text-align:left}
.program li{padding:.75rem 0 .75rem .5rem;border-bottom:1px solid var(--line)}
.program li::marker{color:var(--wine);font-family:var(--serif)}
.swatches{display:flex;flex-wrap:wrap;justify-content:center;gap:1.4rem clamp(.8rem,4vw,2rem);list-style:none;padding:0;margin:2rem 0 0}
.swatches li{min-width:92px;font-size:.9rem}
.swatches li:before{content:"";display:block;width:4rem;aspect-ratio:1;border:1px solid #3b0b1724;border-radius:50%;background:var(--shade);margin:0 auto .65rem}
.family,.party,.sponsor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 1rem}
.family,details{max-width:800px;margin:1.5rem auto 0}
details{background:var(--paper);border:1px solid var(--line)}
summary{padding:1rem;cursor:pointer;color:var(--wine);font-weight:650}
details>div{border-top:1px solid var(--line);padding:1.4rem .65rem}
.role ul,.sponsor ul{list-style:none;margin:0;padding:0}
footer .monogram{margin-bottom:.45rem}
footer .label{margin:1.4rem 0 0}
@media(max-width:680px){
.nav{flex-direction:column;padding:.5rem 1rem .75rem}
.hero{min-height:620px}
.hero:before{inset:10px}
.invitation{width:100%;padding:7.5rem 1.5rem 6.5rem}
h1{font-size:clamp(3.35rem,11.5vw,4.7rem)}
.one{right:-105px;top:-140px}
.two{display:none}
.three{right:auto;left:-145px;bottom:-165px}
.leaves{right:-22px;top:-76px;width:220px}
.venue-grid{grid-template-columns:1fr}
.family,.party,.sponsor-grid{font-size:.9rem}
.role h3{font-size:1.3rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Editorial invitation layout */
:root {
  --wine: #641b31;
  --deep: #3f0c1d;
  --paper: #fffefd;
  --rose: #faf4f4;
  --line: #e8dadd;
  --ink: #3a242b;
}
.nav {
  max-width: 1500px;
  margin-inline: auto;
  padding-block: 1rem;
}
nav {font-weight: 550}
.hero {
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas: "text art";
  align-items: stretch;
  min-height: clamp(560px, 70vw, 720px);
  background: var(--paper);
  border: 0;
}
.hero::before {content: none}
.invitation {
  grid-area: text;
  align-self: center;
  width: auto;
  padding: 4.6rem clamp(1.5rem, 5vw, 5rem);
}
.hero .label {
  color: var(--wine);
  letter-spacing: .24em;
}
h1 {
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -.07em;
  font-weight: 400;
  margin: 1.45rem 0 2rem;
}
h1 small {
  font-size: .84rem;
  letter-spacing: .22em;
}
h1 em {
  color: #8d4254;
  font-size: .48em;
  margin: .19em 0;
}
.date {
  border-top: 1px solid var(--line);
  width: fit-content;
  margin-inline: auto;
  padding: 1.05rem .5rem 0;
}
.place {margin-bottom: 1.5rem}
.button {border-radius: 999px;padding-inline: 1.45rem}
.florals {
  grid-area: art;
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  margin: 1.2rem 1.2rem 1.2rem 0;
  background: radial-gradient(ellipse at 50% 30%, #842d48, #400b20 76%);
}
.florals::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #f5e2df59;
  inset-inline: 15px;
}
.florals .flower {width: min(95%, 600px)}
.florals .one {right: -14%;top: -10%;transform: rotate(-13deg)}
.florals .two {right: 20%;top: 40%;transform: rotate(32deg)}
.florals .leaves {width: 72%;right: 24%;top: 4%;transform: rotate(-112deg)}
.countdown {
  background: var(--rose);
  color: var(--wine);
  border-block: 1px solid var(--line);
}
.countdown h2 {color: var(--wine);font-size: clamp(2.25rem, 4.4vw, 3.5rem)}
.clock div {min-width: clamp(60px, 10vw, 105px)}
.clock div + div {border-left: 1px solid var(--line);padding-left: clamp(.45rem, 2.8vw, 1.7rem)}
.venue-grid {gap: 0;border-block: 1px solid var(--line)}
.venue-grid article {
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.35rem 1.2rem;
}
.venue-grid article + article {border-left: 1px solid var(--line)}
.venue-grid .button {margin-top: auto}
.venue-grid article p:last-of-type {margin-bottom: 1.25rem}
.program {list-style: none;padding: 0;text-align: center}
.program li {padding: .85rem 0}
.program strong {display: block;color: var(--wine);font-size: .88rem;letter-spacing: .12em}
.swatches li::before {width: 3.65rem}
details {background: transparent;border: 0;border-bottom: 1px solid var(--line)}
summary {text-align: left}
footer {padding-block: 4.5rem}

@media(max-width: 680px) {
  .nav {padding-block: .65rem .85rem}
  .hero {grid-template-columns: minmax(0,1fr);grid-template-areas: "text" "art";min-height: 0}
  .invitation {padding: 2.9rem 1rem 2.2rem}
  h1 {font-size: clamp(3rem, 13vw, 5.5rem)}
  .florals {height: 170px;margin: 0 .75rem .75rem}
  .florals .flower {width: 56%;max-width: 420px}
  .florals .one {top: -150px;right: -6%}
  .florals .two {display: block;right: 46%;top: 14px}
  .florals .leaves {width: 47%;right: 22%;top: -60px}
  .venue-grid article + article {border-left: 0;border-top: 1px solid var(--line)}
}

/* Printed invitation motifs */
.nav .monogram {display:flex;align-items:center}
.nav .monogram img,.section-seal,.footer-seal {object-fit:contain}
.hero {
  background: #fffaf4;
  border-bottom: 1px solid #e8d7cf;
}
.florals {
  margin: 0;
  background: transparent;
}
.florals::after {content:none}
.florals .one {right:-17%;top:-17%}
.florals .two {right:-17%;top:41%;transform:rotate(18deg)}
.florals .leaves {right:13%;top:-7%;transform:rotate(-64deg)}
.stationery {
  background-color:#fffaf4;
  background-image:url("bloom.webp"),url("leaves.webp");
  background-repeat:no-repeat;
  background-position:top -74px left -65px,bottom -66px right -53px;
  background-size:clamp(115px,17vw,255px) auto,clamp(118px,19vw,260px) auto;
  border-block:1px solid #e8d7cf;
}
.section-seal,.footer-seal {display:block;margin:0 auto 1rem}
.footer-seal {filter:brightness(0) invert(1)}
.stationery details,.stationery .venue-grid {background:#fffaf4}
@media(max-width:680px) {
  .florals {height:160px;margin:0}
  .florals .one {right:-10%;top:-105px}
  .florals .two {right:4%;top:47px}
  .florals .leaves {right:45%;top:-15px}
  .stationery {background-position:top -54px left -43px,bottom -48px right -45px}
}

/* Portrait invitation */
.hero-surround {
  background: radial-gradient(ellipse at top, #762942, #390d1e 78%);
  padding: clamp(1rem, 4vw, 3.4rem) 1rem;
}
.hero {
  display: grid;
  place-items: center;
  grid-template: 1fr / 1fr;
  width: min(100%, 465px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  container-type: inline-size;
  isolation: isolate;
  border: 0;
  box-shadow: 0 18px 60px #25081070;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 3.4%;
  border: 1px solid #a053615a;
  z-index: 0;
  pointer-events: none;
}
.hero .invitation {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 1.25rem;
}
.hero h1 {font-size: clamp(2.55rem, 13.5cqw, 4.05rem);margin: 1.1rem 0 1.2rem}
.hero h1 small {font-size: clamp(.67rem, 2.8cqw, .84rem);letter-spacing: .16em}
.hero .label {font-size: .75rem}
.hero .date {font-size: clamp(1rem, 4.6cqw, 1.35rem);padding-top: .8rem}
.hero .place {font-size: .875rem;margin-bottom: 1rem}
.hero .florals {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  z-index: -1;
}
.hero .florals .one {width: 59%;top: -12%;right: -14%;transform: rotate(-15deg)}
.hero .florals .two {display: block;width: 55%;top: auto;bottom: -14%;left: -16%;right: auto;transform: rotate(20deg)}
.hero .florals .leaves {width: 52%;top: -7%;right: 10%;transform: rotate(-58deg)}
.button {transition: color .24s ease, background-color .24s ease, box-shadow .24s ease}
.button:hover {box-shadow: 0 4px 15px #641b3126}
@media (prefers-reduced-motion: no-preference) {
  .hero .label,.hero h1,.hero .date,.hero .place,.hero .button {
    animation: invitation-reveal .92s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero h1 {animation-delay: .12s}
  .hero .date,.hero .place {animation-delay: .27s}
  .hero .button {animation-delay: .4s}
  .hero .florals img {
    animation: floral-arrival 3.4s cubic-bezier(.15,.65,.25,1) both;
  }
  .hero .florals .two {animation-delay: .15s}
}
@keyframes invitation-reveal {
  from {opacity: 0;translate: 0 13px}
  to {opacity: 1;translate: 0 0}
}
@keyframes floral-arrival {
  from {opacity: .25;scale: 1.12;translate: 0 -8px}
  to {opacity: 1;scale: 1;translate: 0 0}
}

/* Editorial stationery */
:root {
  --wine: #681c25;
  --deep: #3a1017;
  --paper: #faf5e8;
  --rose: #f2e8dd;
  --line: #d7c3b4;
  --ink: #331e1d;
  --script: "Snell Roundhand", "URW Chancery L", "Apple Chancery", "Palatino Linotype", Georgia, serif;
}
.nav {background: var(--paper)}
.hero-surround {
  background: var(--deep);
  background: radial-gradient(ellipse at top, #772936, #3a1017 75%);
  padding-block: clamp(.8rem, 3.5vw, 2.35rem);
}
.hero {
  width: min(100%, 455px);
  background: var(--paper);
}
.hero::before {inset: 2.8%;border-color: #b18e7b78}
.hero .invitation {padding: 2.8cqw 5cqw}
.cover-title {
  color: var(--deep);
  font: italic clamp(1.2rem, 5.6cqw, 1.7rem)/.9 var(--script);
  margin-bottom: 4.5cqw;
}
.cover-title span {
  display: block;
  font: normal 400 clamp(2.55rem, 13cqw, 4.1rem)/.93 var(--serif);
  letter-spacing: -.085em;
  text-transform: uppercase;
  margin: .1em 0 .13em;
}
.cover-art {
  position: relative;
  width: 67%;
  aspect-ratio: 5 / 6;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at center, #8b3948, #43101b 82%);
}
.cover-art img {display: block;position: absolute;height: auto}
.cover-leaves {width: 106%;top: -33%;left: -42%;transform: rotate(-28deg)}
.cover-bloom {width: 100%;bottom: -37%;right: -26%;transform: rotate(12deg)}
.cover-mark {
  width: 44%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  filter: brightness(0) invert(92%) sepia(15%) saturate(380%);
}
.hero h1 {
  font: italic clamp(1.35rem, 6.65cqw, 2.1rem)/1.17 var(--script);
  letter-spacing: -.045em;
  margin: .65rem 0 .2rem;
}
.hero h1 span {color: #9a4d50}
.cover-surnames {font-size: clamp(.62rem, 2.65cqw, .79rem);letter-spacing: .035em}
.cover-surnames span {padding-inline: .16rem}
.hero .date {margin-top: .65rem;padding-top: .55rem;font-size: clamp(.83rem, 3.9cqw, 1.08rem)}
.hero .place {font-size: .76rem;margin: .15rem 0 .7rem}
.button {border-radius: 0}
.hero .button {font-size: .78rem;padding: .48rem .85rem}
.section h2,.countdown h2,footer h2 {font-family: var(--script);font-style: italic;letter-spacing: -.045em}
.calendar-section {max-width: 540px;margin-inline: auto}
.calendar-section h2 span {display: block;font: 600 .83rem/2 system-ui,sans-serif;letter-spacing: .18em}
.wedding-calendar {width: min(100%, 375px);margin: 1rem auto 0;table-layout: fixed;font-variant-numeric: tabular-nums}
.wedding-calendar th {font-weight: 650}
.wedding-calendar td,.wedding-calendar th {height: 2.5rem}
.wedding-calendar abbr {text-decoration: none}
.wedding-day {display:inline-grid;place-items:center;width:2rem;aspect-ratio:1;background:var(--wine);color:#fff;border-radius:50%;font-weight:700}
.timing {background: var(--wine);color: var(--paper)}
.timing h2 {color: inherit}
.timing dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;max-width:520px;margin:2rem auto 0}
.timing dt {font: italic clamp(1.45rem,5vw,2.3rem)/1.1 var(--script)}
.timing dd {margin:.35rem 0 0}
.stationery,.stationery details,.stationery .venue-grid {background-color:var(--paper)}
.swatches li::before {width: 4rem;aspect-ratio: 1.8;border:0;border-radius: 36% 12% 24% 18% / 40% 21% 48% 31%;transform:rotate(-8deg)}
footer {background:var(--paper);color:var(--ink);border-top:1px solid var(--line)}
footer h2,footer .label {color:var(--wine)}
@media (prefers-reduced-motion: no-preference) {
  .hero .cover-title,.hero .cover-art,.hero .cover-surnames {animation:invitation-reveal .9s cubic-bezier(.2,.7,.2,1) both}
  .hero .cover-art {animation-delay:.12s}
  .hero .cover-surnames {animation-delay:.22s}
  .cover-art .cover-bloom,.cover-art .cover-leaves {animation:floral-arrival 3.2s cubic-bezier(.15,.65,.25,1) both}
}

@font-face {
  font-family: "Wedding Calligraphy";
  src: url("fonts/z003.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/noto-serif-display.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --serif: "Noto Serif Display", Georgia, serif;
  --script: "Wedding Calligraphy", "Apple Chancery", Georgia, serif;
}
.cover-title {
  font-size: clamp(1.55rem, 8.1cqw, 2.35rem);
  line-height: .86;
}
.cover-title span {
  font-size: clamp(2.55rem, 12.7cqw, 4rem);
  letter-spacing: -.055em;
}
.hero h1 {
  font-size: clamp(1.55rem, 8.15cqw, 2.4rem);
  letter-spacing: 0;
  padding-inline: .2rem;
}
.section h2,.countdown h2,footer h2 {
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  padding-inline: .22em;
}
.timing dt {font-size: clamp(1.65rem, 5vw, 2.45rem)}

.cover-title span {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(3.15rem, 17.4cqw, 5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: none;
  margin: .02em 0 .03em;
}

/* Fine borders and warmer paper bring the sections together. */
:root {
  --paper: #fbf6ec;
  --rose: #f3e8e0;
  --line: #d8c2b1;
  --wine: #681e30;
  --deep: #3c101e;
}
.nav {
  max-width: none;
  padding-inline: clamp(1rem, 7vw, 7rem);
}
.hero-surround {
  background: radial-gradient(ellipse at 50% 14%, #84364b 0%, #52182b 47%, #320b18 100%);
}
.hero {
  background: radial-gradient(ellipse at 50% 35%, #fffaf2, var(--paper) 73%, #f2e6d7);
  box-shadow: 0 22px 76px #2206117a, 0 0 0 1px #e2c9b566;
}
.hero::before {
  inset: 3%;
  border: 3px double #9963728a;
}
.hero .invitation {padding-inline: 7.5cqw}
.cover-title {line-height: .92;margin-bottom: 4cqw}
.cover-title span {font-size: clamp(3rem, 17cqw, 4.9rem)}
.cover-art {
  width: 69%;
  outline: 1px solid #8c5461;
  outline-offset: 4px;
  margin-block: 0 .95rem;
  box-shadow: 0 7px 23px #5e1b3123;
}
.cover-art::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ead2bd70;
  pointer-events: none;
}
.hero h1 {margin-block: .45rem .25rem}
.cover-rule {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 28%;
  margin: .65rem auto 0;
}
.cover-rule::before,.cover-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid #b48785;
}
.cover-rule {background: linear-gradient(45deg,#9c5867,#9c5867) center / .27rem .27rem no-repeat}
.hero .date {border: 0;margin-top: 0;padding-top: .48rem}
.hero .button {padding-inline: 1.1rem}
.wedding-calendar {
  border-collapse: separate;
  border: 1px solid var(--line);
  padding: .5rem;
  background: #fffaf2;
}
.wedding-day {box-shadow: 0 0 0 2px #fffaf2,0 0 0 3px #9a5767}
.timing {
  background: linear-gradient(140deg,#4a1223,#742b3f 55%,#4a1223);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.timing-frame {
  max-width: 680px;
  margin-inline: auto;
  border: 3px double #edcebab0;
  padding: clamp(1.6rem, 6vw, 3.6rem) .9rem;
}
.timing dl {gap: .95rem;margin-top: 1.5rem}
.timing dl div {padding: .75rem .3rem}
.timing dl div:nth-child(-n+2) {border-bottom: 1px solid #ecd0bd54}
.clock b {font-variant-numeric: lining-nums tabular-nums}
.venue-grid {
  gap: 1rem;
  border: 0;
}
.stationery .venue-grid {background: transparent}
.venue-grid article,.venue-grid article + article {
  border: 3px double var(--line);
  background: #fffbf5;
}
.stationery {background-color: var(--paper)}
.swatches li::before {
  box-shadow: inset 0 0 0 1px #42172230, 0 3px 5px #42172220;
}
footer {padding-inline: 1rem}
.footer-stationery {
  max-width: 620px;
  margin-inline: auto;
  padding: 2.1rem .9rem 1.2rem;
  border: 3px double var(--line);
  background: radial-gradient(ellipse at 50% 27%, #fffaf2, #f4e9dd);
}
@media (max-width: 380px) {
  .hero-surround {padding-inline: .65rem}
  .cover-art {width: 64%}
  .cover-title {font-size: 1.4rem}
  .hero h1 {font-size: 1.5rem}
}

/* Continuous printed invitation */
body {background: #ede2d8}
.nav,main,footer {max-width: 590px;margin-inline: auto}
main {background: var(--paper);box-shadow: 0 12px 52px #581b2324}
.nav {padding: .65rem 1.3rem}
nav {gap: .8rem;font-size: .83rem}
.hero-surround {padding: 0;background: var(--paper)}
.hero {width: min(100%, 455px);box-shadow: none;background: var(--paper)}
.hero::before {border: 0}
.cover-title {
  color: var(--wine);
  text-align: left;
  font-size: clamp(2rem, 10cqw, 3rem);
  line-height: .98;
  margin: 0 auto 5cqw;
  width: 86%;
}
.cover-title span {
  text-align: right;
  font-size: clamp(2.5rem, 13cqw, 4rem);
}
.cover-art {
  width: 65%;
  outline-offset: 3px;
  background: linear-gradient(145deg,#582130,#321119);
}
.cover-art img:not(.cover-mark) {filter: saturate(.58)}
.hero h1 {margin-top: .7rem}
.save-label {
  color: var(--wine);
  font: 400 clamp(.84rem, 4.1cqw, 1.15rem)/1.25 var(--serif);
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-top: .55rem;
}
.hero .date {
  font: italic clamp(1.2rem, 6cqw, 1.65rem)/1.08 var(--script);
  padding-top: .15rem;
}
.hero .button {background: transparent;color: var(--wine);padding: .36rem .8rem}
.hero .button:hover {background: var(--wine);color: white}
.section {padding-block: clamp(2.3rem, 8vw, 3.75rem)}
.calendar-section {padding-top: 1.6rem}
.location-panel {
  margin: 0 clamp(1rem, 6vw, 3.65rem);
  background: var(--deep);
  color: var(--paper);
  padding: 2.1rem 1.05rem;
}
.location-panel .section-seal {display: none}
.location-panel h2,.location-panel h3,.location-panel .time {color: inherit}
.location-panel .venue-grid {grid-template-columns: 1fr;margin-top: .8rem;gap: 0}
.location-panel .venue-grid article {
  border: 0;
  background: transparent;
  padding: .9rem .25rem 1.2rem;
}
.location-panel .venue-grid article + article {
  border-top: 1px solid #e5c5b67a;
  padding-top: 1.35rem;
}
.location-panel .venue-grid .button {
  color: var(--paper);
  border-color: #e6c7bb;
}
.location-panel .venue-grid .button:hover {
  background: var(--paper);
  color: var(--deep);
}
.timing {background: var(--paper);color: var(--wine)}
.timing-frame {border: 0;padding: 0 .5rem}
.timing dl {
  position: relative;
  display: grid;
  width: min(100%, 365px);
  gap: .55rem;
  margin-inline: auto;
  padding: .15rem 0;
}
.timing dl::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 2.6rem;
  left: 50%;
  width: 1px;
  background: #b98790;
}
.timing dl div,.timing dl div:nth-child(-n+2) {
  position: relative;
  width: 50%;
  border: 0;
  padding: .55rem clamp(.7rem, 4.5vw, 1.45rem) .7rem .2rem;
  text-align: right;
}
.timing dl div:nth-child(even) {
  margin-left: auto;
  padding: .55rem .2rem .7rem clamp(.7rem, 4.5vw, 1.45rem);
  text-align: left;
}
.timing dl div::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: -.25rem;
  width: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 3px var(--paper);
}
.timing dl div:nth-child(even)::after {
  right: auto;
  left: -.25rem;
}
.timing dt {font: 400 clamp(1.2rem, 5.4vw, 1.75rem)/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap}
.timing dd {color: var(--ink);font-size: .9rem}
.countdown {padding: 2rem .35rem}
.clock {gap: .4rem}
.clock div {min-width: 57px}
.clock div + div {padding-left: .4rem}
.swatches {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  max-width: 330px;
  margin-inline: auto;
  gap: 1.25rem .4rem;
}
.swatches li {min-width: 0;font-size: .78rem}
.swatches li::before {
  width: min(52px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: none;
  background: linear-gradient(145deg,#fff4 8%,transparent 29%,#21091235 43%,#fff5 57%,transparent 83%),var(--shade);
}
footer {background: var(--paper)}
.footer-stationery {border: 0;background: none;padding-top: 0}
@media(max-width: 420px) {
  .nav {flex-direction: column}
  .cover-art {width: 58%}
  .cover-title {margin-bottom: 4cqw}
}

.location-panel .ceremony-illustration {
  display: block;
  width: min(100%, 255px);
  height: auto;
  margin: .15rem auto 1.2rem;
}

/* Crop the uploaded floral artwork in place without stretching it. */
.cover-art .cover-floral-crop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: none;
}
.cover-mark {
  z-index: 1;
  filter: none;
  top: 42%;
}
.countdown {position: relative;overflow: hidden;padding-top: 0}
.countdown-floral-crop,.footer-floral-crop {
  display: block;
  width: 100%;
  object-fit: cover;
}
.countdown-floral-crop {
  height: clamp(80px, 22vw, 125px);
  object-position: center top;
  margin-bottom: 1.5rem;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(#000 78%, transparent);
}
footer:has(.footer-floral-crop) {padding-bottom: 0}
.footer-floral-crop {
  height: clamp(110px, 34vw, 240px);
  object-position: center bottom;
  margin: .5rem auto 0;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(transparent, #000 17%);
}
@media (prefers-reduced-motion: no-preference) {
  .cover-floral-crop {animation: floral-arrival 2s cubic-bezier(.15,.65,.25,1) both}
}

.hero {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.hero .invitation {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 0;
  padding: 5cqw 6cqw;
}
.hero .cover-title {
  width: 100%;
  text-align: center;
  font-size: clamp(1.55rem, 7.9cqw, 2.25rem);
  line-height: 1.12;
  margin: 0 0 3.5cqw;
}
.hero .cover-title span {
  text-align: center;
  font-size: clamp(2.15rem, 11.2cqw, 3.25rem);
  line-height: 1.04;
}
.hero .cover-art {
  flex: 0 0 auto;
  width: 59%;
  margin-bottom: .45rem;
}
.hero .cover-rule {min-height: 1px}
.hero .cover-surnames {text-align: center}
.countdown {
  background: var(--paper);
  border-top: 0;
}
.countdown-floral-crop {
  height: clamp(68px, 18vw, 100px);
  margin-bottom: 1rem;
  mask-image: linear-gradient(transparent, #000 16%, #000 72%, transparent);
}
@media (max-width: 380px) {
  .hero .invitation {padding-inline: .8rem}
  .hero .cover-art {width: 55%}
}

/* Transparent botanicals sit directly on the invitation paper. */
.hero .cover-art {
  isolation: isolate;
  overflow: visible;
  width: 81%;
  aspect-ratio: 1.35;
  background: transparent;
  outline: 0;
  box-shadow: none;
  margin-block: .15rem .35rem;
}
.cover-art::after {content: none}
.cover-art .cover-floral-crop {
  inset: auto 0 0;
  height: 68%;
  object-fit: contain;
  object-position: center bottom;
}
.cover-art .cover-mark {
  top: 23%;
  width: 38%;
  filter: none;
}
.countdown-floral-crop,.footer-floral-crop {
  object-fit: contain;
  mix-blend-mode: normal;
  mask-image: none;
  width: min(100%, 560px);
}
.countdown-floral-crop {
  height: clamp(86px, 23vw, 135px);
  margin: 0 auto .7rem;
}
.footer-floral-crop {
  height: auto;
  max-height: 240px;
  object-position: center bottom;
}

.hero .cover-art {
  width: 100%;
  height: clamp(105px, 30cqw, 144px);
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  margin-block: .15rem .4rem;
}
.cover-art .cover-mark {
  position: static;
  width: auto;
  height: 88%;
  max-width: 45%;
  object-fit: contain;
  translate: none;
}
.countdown {padding-top: 2rem}

/* Matching transparent floral artwork from the invitation PDF. */
.hero {
  background:
    url("bloom.webp") right -10cqw top -11cqw / 29% auto no-repeat,
    url("leaves.webp") left -11cqw bottom -8cqw / 32% auto no-repeat,
    radial-gradient(ellipse at 50% 35%, #fffaf2, var(--paper) 73%, #f2e6d7);
}
.hero .invitation {padding-inline: 8cqw}
footer {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    url("leaves.webp") left -55px bottom -65px / clamp(140px, 37%, 225px) auto no-repeat,
    url("bloom.webp") right -60px bottom -66px / clamp(145px, 37%, 225px) auto no-repeat,
    var(--paper);
}
.footer-stationery {padding-inline: .45rem}

/* The printed invitation's asymmetrical cover. */
.hero {
  background: #fcf8f0;
  text-align: left;
}
.hero .invitation {
  align-items: flex-start;
  justify-content: center;
  width: 76%;
  justify-self: start;
  padding: 4cqw 1cqw 4cqw 9cqw;
}
.hero .cover-title {
  margin: 0 0 4cqw;
  color: var(--wine);
  font: 400 clamp(1.75rem, 9.2cqw, 2.65rem)/.92 var(--serif);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-align: left;
}
.cover-kicker {
  max-width: 22ch;
  color: var(--wine);
  font: 550 clamp(.63rem, 2.8cqw, .8rem)/1.33 system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 3cqw 0 4cqw;
  padding: 0;
  font: 400 clamp(1.8rem, 9cqw, 2.6rem)/.97 var(--serif);
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: -.06em;
}
.hero h1 small {
  margin-top: .32rem;
  font-size: clamp(.61rem, 2.7cqw, .8rem);
  letter-spacing: .12em;
}
.hero h1 em {
  margin: .12em 0 .02em;
  font: italic 400 1.04em/1 var(--script);
  text-transform: lowercase;
}
.hero .date {margin: 0; padding: 0; font-size: clamp(1.05rem, 5.8cqw, 1.6rem)}
.cover-place {
  margin: .25rem 0 .8rem;
  font-size: clamp(.68rem, 3cqw, .85rem);
  line-height: 1.4;
}
.cover-botanical {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.cover-botanical img {position: absolute; height: auto}
.botanical-bloom {width: 52%;right: -24%}
.botanical-bloom.top {top: 19%;transform: rotate(-18deg)}
.botanical-bloom.middle {top: 41%;right: -25%;transform: rotate(19deg)}
.botanical-bloom.bottom {top: 62%;right: -23%;transform: rotate(-26deg)}
.botanical-leaves {width: 46%;right: -11%;top: -4%;transform: rotate(-34deg)}
.cover-botanical::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -8%;
  width: 42%;
  aspect-ratio: 400 / 421;
  background: url("leaves.webp") center / contain no-repeat;
  transform: rotate(126deg);
  z-index: -1;
}
.cover-botanical {isolation: isolate}
@media (prefers-reduced-motion: no-preference) {
  .cover-botanical img {animation: floral-arrival 2.1s cubic-bezier(.15,.65,.25,1) both}
  .cover-botanical .middle {animation-delay: .1s}
  .cover-botanical .bottom {animation-delay: .2s}
}

@media (prefers-reduced-motion: no-preference) {
  .cover-botanical img {
    transform-origin: right center;
    animation: floral-arrival 1.55s cubic-bezier(.15,.65,.25,1) both,
      floral-sway 3s ease-in-out 1.75s;
  }
  .cover-botanical .middle {animation-delay: .1s, 1.95s}
  .cover-botanical .bottom {animation-delay: .2s, 2.1s}
  .cover-botanical::after {
    transform-origin: right center;
    animation: floral-sway 3s ease-in-out 1.9s;
  }
  .ceremony-illustration.asset-in-view {
    animation: church-line-reveal 1.15s cubic-bezier(.25,.6,.25,1) both;
  }
  .section-seal.asset-in-view {
    animation: stationery-stamp .8s cubic-bezier(.22,.65,.3,1) both;
  }
  .envelope.asset-in-view .envelope-card {
    animation: card-rise 1.2s cubic-bezier(.22,.65,.25,1) both;
  }
  .swatches.asset-in-view li::before {
    animation: swatch-settle .52s ease-out both;
  }
  .swatches li:nth-child(2)::before {animation-delay: .08s}
  .swatches li:nth-child(3)::before {animation-delay: .16s}
  .swatches li:nth-child(4)::before {animation-delay: .24s}
  .swatches li:nth-child(5)::before {animation-delay: .32s}
}
@keyframes floral-sway {
  0%,100% {rotate: 0deg}
  35% {rotate: -2.5deg}
  72% {rotate: 1.6deg}
}
@keyframes church-line-reveal {
  from {clip-path: inset(100% 0 0);opacity: .25}
  to {clip-path: inset(0);opacity: 1}
}
@keyframes stationery-stamp {
  from {scale: .88;opacity: .25}
  to {scale: 1;opacity: 1}
}
@keyframes card-rise {
  from {translate: 0 26%}
  to {translate: 0 0}
}
@keyframes swatch-settle {
  from {translate: 0 5px;scale: .82;opacity: .35}
  to {translate: 0 0;scale: 1;opacity: 1}
}

@media (max-width: 680px) {
  .hero .invitation {width: 78%;padding-block: 3cqw}
  .hero .cover-title {
    font-size: clamp(2.08rem, 12.25cqw, 3.5rem);
    margin-bottom: 3cqw;
  }
  .hero h1 {
    font-size: clamp(2rem, 11.15cqw, 3.25rem);
    margin: 2.5cqw 0 3cqw;
  }
  .hero h1 small {font-size: clamp(.64rem, 2.8cqw, .87rem)}
  .hero .date {font-size: clamp(1.12rem, 6.1cqw, 1.7rem)}
  .hero .cover-place {margin-bottom: .65rem}
}

/* Arched location card, sized to its content. */
.location-panel {
  width: min(calc(100% - 2rem), 372px);
  max-width: none;
  margin: 0 auto;
  border-radius: 50% 50% 0 0 / min(46vw, 186px) min(46vw, 186px) 0 0;
  background: #470c0b;
  padding: clamp(4.65rem, 24vw, 7.2rem) clamp(.9rem, 4vw, 1.75rem) 2.45rem;
}
.location-panel .ceremony-illustration {
  width: min(85%, 205px);
}
.location-panel .venue-grid {
  margin-top: .5rem;
}
.location-panel h2 {margin-bottom: .75rem}

.countdown {padding: 1.35rem .75rem;border-bottom: 0}
.countdown-frame {
  display: grid;
  place-items: center;
  width: min(100%, 375px);
  margin-inline: auto;
}
.countdown-frame > * {grid-area: 1 / 1}
.countdown-frame > img {display: block; width: 100%; height: auto}
.countdown-content {position: relative; width: 57%}
.countdown-content h2 {
  font-size: clamp(1.45rem, 7vw, 2.45rem);
  line-height: 1.03;
  margin-bottom: .75rem;
  padding: 0;
}
.countdown-content .clock:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.countdown-content .clock div {
  min-width: 0;
  padding: 0;
  font-size: clamp(.54rem, 2.25vw, .69rem);
}
.countdown-content .clock b {font-size: clamp(1rem, 4.4vw, 1.55rem)}

/* Illustrated reception program */
#program {background: var(--paper)}
#program .program {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.65rem, 6vw, 3rem) clamp(.75rem, 4vw, 1.5rem);
  max-width: 445px;
}
#program .program li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 0 .15rem;
  border: 0;
  color: var(--wine);
  font: italic clamp(1.15rem, 4.4vw, 1.6rem)/1.18 var(--script);
}
#program .program svg {
  width: clamp(47px, 14vw, 72px);
  height: auto;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.55;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#program .program time {
  display: block;
  margin-bottom: .28rem;
  font: 400 1rem/1.18 var(--serif);
}

.entourage-group {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.35rem .25rem 0;
  border-top: 1px solid var(--line);
}
.entourage-group > h3 {
  margin: 0 0 1.15rem;
  font: italic clamp(1.7rem, 6vw, 2.55rem)/1.15 var(--script);
}

.party .ring-bearer {grid-column: 1 / -1;text-align: center}
.rsvp-section {
  background: var(--deep);
  color: var(--paper);
}
.rsvp-section h2 {color: inherit;margin-bottom: .65rem}

.falling-petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}
.falling-petals span {
  position: absolute;
  top: -1.5rem;
  left: var(--position);
  width: var(--size);
  height: calc(var(--size) * .73);
  border-radius: 75% 25% 70% 25%;
  background: radial-gradient(ellipse at 24% 20%, #db939f, #a84d60 53%, #67192d);
  animation: petal-fall var(--duration) var(--delay) infinite linear;
}
.falling-petals span:nth-child(3n) {
  background: radial-gradient(ellipse at 25% 20%, #efd0ce, #c47a88 58%, #8b354a);
}
@keyframes petal-fall {
  0% {transform: translate3d(0, 0, 0) rotate(10deg);opacity: 0}
  12% {opacity: .55}
  40% {transform: translate3d(var(--drift), 41vh, 0) rotate(105deg)}
  73% {transform: translate3d(calc(var(--drift) * -.35), 76vh, 0) rotate(220deg);opacity: .55}
  100% {transform: translate3d(var(--drift), calc(100vh + 3rem), 0) rotate(340deg);opacity: 0}
}
@media (max-width: 580px) {
  .falling-petals span:nth-child(n+9) {display: none}
}
@media (prefers-reduced-motion: reduce) {
  .falling-petals {display: none}
  .falling-petals span {animation: none}
}

@media (prefers-reduced-motion: no-preference) {
  .countdown-frame.asset-in-view > img {
    animation: wreath-unfold 1.3s cubic-bezier(.2,.65,.25,1) both;
  }
  .countdown-frame.asset-in-view .clock div {
    animation: stationery-appear .68s ease-out both;
  }
  .countdown-frame.asset-in-view .clock div:nth-child(2) {animation-delay: .1s}
  .countdown-frame.asset-in-view .clock div:nth-child(3) {animation-delay: .2s}
  .countdown-frame.asset-in-view .clock div:nth-child(4) {animation-delay: .3s}
  .wedding-day.asset-in-view {
    animation: date-highlight .85s cubic-bezier(.2,.65,.25,1) both;
  }
  #program .program svg.asset-in-view {
    animation: icon-appear .88s cubic-bezier(.18,.7,.25,1) both;
  }
  #program .program li:nth-child(even) svg.asset-in-view {animation-delay: .15s}
  #rsvp.asset-in-view p {
    animation: stationery-appear .85s .12s ease-out both;
  }
}
@keyframes wreath-unfold {
  from {scale: .94;opacity: .28}
  to {scale: 1;opacity: 1}
}
@keyframes date-highlight {
  0% {scale: .84;opacity: .45}
  62% {scale: 1.12;opacity: 1}
  100% {scale: 1;opacity: 1}
}
@keyframes icon-appear {
  from {translate: 0 9px;rotate: -5deg;opacity: .25}
  to {translate: 0 0;rotate: 0deg;opacity: 1}
}
@keyframes stationery-appear {
  from {translate: 0 7px;opacity: .38}
  to {translate: 0 0;opacity: 1}
}

.gift-registry {
  background: var(--paper);
  color: var(--ink);
}
.gift-registry > p {
  max-width: 29rem;
  margin-inline: auto;
}
.gift-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 3vw, 1.25rem);
  max-width: 29rem;
  margin: 1.5rem auto 1.2rem;
}
.gift-option {
  margin: 0;
  padding: .8rem .5rem;
  border: 1px solid var(--line);
}
.gift-option figcaption {
  margin-bottom: .55rem;
  color: var(--wine);
  font: 400 1.15rem var(--serif);
}
.gift-option img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: auto;
}
.gift-option .button.outline {
  margin-top: .75rem;
  padding: .35rem .5rem;
  font-size: .78rem;
}
.gift-instructions {font-size: .875rem}

.photo-gallery {
  background: var(--rose);
  border-block: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.5rem auto 0;
  max-width: 480px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 540px) {
  .gallery-grid {grid-template-columns: repeat(3, minmax(0, 1fr))}
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .gallery-grid img {transition: transform .35s ease}
  .gallery-grid a:hover img {transform: scale(1.04)}
}

.photo-viewer {
  width: min(94vw, 900px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--deep);
  color: var(--paper);
}
.photo-viewer::backdrop {background: #210913c9}
.viewer-panel {padding: .65rem}
.viewer-panel form {text-align: right;margin-bottom: .55rem}
.viewer-photo {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  object-fit: contain;
}
.viewer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  padding-top: .55rem;
}
.viewer-panel button {
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
.viewer-panel button:focus-visible {outline: 2px solid white;outline-offset: 2px}

@font-face {
  font-family: "Pinyon Script";
  src: url("fonts/pinyon-script.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.section h2,.countdown h2,footer h2,.entourage-group > h3 {
  font-family: "Pinyon Script", var(--script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.18;
}

.rsvp-section .rsvp-link {
  margin-top: 1rem;
  background: var(--paper);
  color: var(--deep);
}
.invitation-intro {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: radial-gradient(ellipse at 50% 42%, #fcf7ee, #eadbd2);
  color: var(--wine);
}
.invitation-intro[open] {display: grid;place-items: center}
.invitation-intro::backdrop {background: var(--paper)}
body:has(.invitation-intro[open]) {overflow: hidden}
.intro-panel {text-align: center}
.intro-open,.intro-skip {font: inherit;color: inherit;cursor: pointer}
.intro-open {display: block;border: 0;background: transparent;padding: 0}
.intro-art {
  display: block;
  position: relative;
  width: min(84vw, 63svh, 500px);
  aspect-ratio: 1;
  container-type: inline-size;
}
.intro-art img {display: block;width: 100%;height: auto}
.intro-reveal,.intro-closed {position: absolute;inset: 0}
.intro-closed {transform: scale(1.16)}
.intro-reveal {opacity: 0;transform: translateY(4%) scale(.96)}
.intro-reveal time {
  position: absolute;
  inset: 45.8% 29% auto;
  height: 5%;
  display: grid;
  place-content: center;
  background: #fcfbfc;
  color: #78132b;
  font: 400 4.4cqw/1 var(--serif);
  letter-spacing: .13em;
}
.is-revealed .intro-closed {opacity: 0;transform: translateY(5%) scale(1.07)}
.is-revealed .intro-reveal {opacity: 1;transform: none}
.intro-action {display: block;letter-spacing: .12em;text-transform: uppercase;font-size: .84rem}
.intro-skip {border: 0;background: transparent;text-decoration: underline;margin-top: .65rem;padding: .45rem}
@media (prefers-reduced-motion: no-preference) {
  .intro-reveal,.intro-closed {transition: opacity .65s ease, transform .8s cubic-bezier(.2,.75,.25,1)}
}

@media (prefers-reduced-motion: no-preference) {
  .invitation-intro,.invitation-intro::backdrop {transition: opacity .36s ease}
  .invitation-intro.is-leaving,.invitation-intro.is-leaving::backdrop {opacity: 0}
}

@media (prefers-reduced-motion: no-preference) {
  .intro-art::before {
    content: "";
    position: absolute;
    inset: 7%;
    background: radial-gradient(ellipse, #fffaf0 8%, #bf718773 46%, transparent 72%);
    opacity: 0;
    pointer-events: none;
  }
  .is-revealed .intro-art::before {animation: envelope-glow 1.65s ease-out both}
  .intro-petal {
    position: absolute;
    top: 54%;
    left: 50%;
    width: 10px;
    height: 7px;
    pointer-events: none;
    border-radius: 78% 25% 68% 27%;
    background: linear-gradient(120deg, #e6a3aa, #862739);
    animation: envelope-petal 1.35s var(--delay) cubic-bezier(.15,.5,.35,1) both;
  }
  .invitation-entered .hero :is(.cover-title,.cover-kicker,h1,.date,.cover-place,.button) {
    animation: invitation-arrival .83s cubic-bezier(.2,.7,.2,1) both;
  }
  .invitation-entered .hero .cover-kicker {animation-delay: .09s}
  .invitation-entered .hero h1 {animation-delay: .17s}
  .invitation-entered .hero :is(.date,.cover-place) {animation-delay: .25s}
  .invitation-entered .hero .button {animation-delay: .32s}
}
@keyframes envelope-glow {
  0% {opacity: 0;scale: .65}
  36% {opacity: 1}
  100% {opacity: 0;scale: 1.4}
}
@keyframes envelope-petal {
  0% {opacity: 0;transform: translate(0,0) rotate(0)}
  22% {opacity: .9}
  100% {opacity: 0;transform: translate(var(--x),var(--y)) rotate(175deg)}
}
@keyframes invitation-arrival {
  from {opacity: .25;translate: 0 12px}
  to {opacity: 1;translate: 0 0}
}

.invitation-intro {
  background: #f7f2e8 url("intro-ivory-florals.webp") center bottom / cover no-repeat;
  color: var(--deep);
}
.intro-art {filter: drop-shadow(0 12px 16px #2207108c)}
.intro-action,.intro-skip {
  width: fit-content;
  margin-inline: auto;
  padding: .35rem .7rem;
  border-radius: .2rem;
  background: #fcf8f0;
}
@media (min-aspect-ratio: 4/5) {
  .invitation-intro {background-size: auto 100%}
}
.music-toggle {
  position: fixed;
  z-index: 11;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  padding: .48rem .85rem;
  border: 1px solid #f5e9dc;
  border-radius: 999px;
  background: var(--deep);
  color: var(--paper);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.music-toggle:focus-visible {outline: 2px solid var(--wine);outline-offset: 2px}

@media (prefers-reduced-motion: no-preference) {
  .invitation-intro {
    background-image: none;
    isolation: isolate;
    overflow: hidden;
  }
  .invitation-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("intro-ivory-florals.webp") center bottom / cover no-repeat;
    pointer-events: none;
    transform-origin: center bottom;
    animation: intro-paper-arrival 2.2s cubic-bezier(.18,.65,.3,1) both;
  }
  .intro-panel {
    animation: intro-envelope-arrival 1s cubic-bezier(.2,.72,.28,1) both;
  }
  .intro-art {
    animation: intro-envelope-lift 2s .95s ease-in-out both;
  }
  .invitation-intro.is-revealed .intro-art {animation: none}
  .intro-reveal time {background: none}
  .intro-reveal time::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fcfbfc;
  }
  .intro-reveal time {isolation: isolate}
  .is-revealed .intro-reveal time {
    animation: intro-date-ink .8s .36s ease-out both;
  }
  .is-leaving .intro-panel {transition: transform .36s ease;transform: translateY(-9px)}
}
@media (prefers-reduced-motion: no-preference) and (min-aspect-ratio: 4/5) {
  .invitation-intro::before {background-size: auto 100%}
}
@keyframes intro-paper-arrival {
  from {transform: scale(1.045);opacity: .7}
  to {transform: scale(1);opacity: 1}
}
@keyframes intro-envelope-arrival {
  from {transform: translateY(16px);opacity: .2}
  to {transform: translateY(0);opacity: 1}
}
@keyframes intro-envelope-lift {
  0%,100% {translate: 0 0}
  52% {translate: 0 -7px}
}
@keyframes intro-date-ink {
  from {color: transparent}
  to {color: #78132b}
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-grid .gallery-visible {
    animation: gallery-tile-reveal .64s var(--gallery-delay, 0ms) cubic-bezier(.2,.72,.28,1) both;
  }
  .photo-viewer[open] .viewer-panel {animation: gallery-viewer-open .28s ease-out both}
}
@keyframes gallery-tile-reveal {
  from {opacity: .3;transform: translateY(12px) scale(.985)}
  to {opacity: 1;transform: translateY(0) scale(1)}
}
@keyframes gallery-viewer-open {
  from {opacity: .35;transform: translateY(6px)}
  to {opacity: 1;transform: translateY(0)}
}

.viewer-photo {display: grid;grid-template: minmax(0, 1fr) / minmax(0, 1fr)}
.viewer-photo > img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-panel:focus {outline: none}
.intro-open:focus-visible {
  outline: none;
}
.intro-open:focus-visible .intro-action {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
