:root {
  --ink: #5a1723;
  --forest: #6f1d2c;
  --paper: #f2ede3;
  --sand: #d7c7ae;
  --white: #fffdf8;
  --serif: "Italiana", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-weight: 300; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.grain { position: fixed; inset: 0; z-index: 100; opacity: .055; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }

.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 3vh; overflow: hidden; color: #e0ac69; background: linear-gradient(145deg, #591321 0%, var(--forest) 52%, #480d19 100%); transition: opacity 1s .5s, visibility 1s .5s; }
.intro::before, .intro::after { content: ""; position: absolute; width: 50vw; height: 50vw; border: 1px solid rgba(224,172,105,.16); border-radius: 50%; }
.intro::before { top: -30vw; left: -20vw; }
.intro::after { bottom: -34vw; right: -20vw; }
.intro.opened { opacity: 0; visibility: hidden; }
.intro-copy { text-align: center; transition: opacity .45s, transform .7s; }
.intro.opening .intro-copy, .intro.opening .open-label { opacity: 0; transform: translateY(-15px); }
.intro-copy h1 { margin: 0; font: 4.5rem/1 var(--serif); }
.intro-copy .eyebrow { margin: 22px 0 0; }
.intro-copy h1 i, .hero h2 i, .closing h2 i {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: .65em;
  line-height: 1;
}
.intro-copy h1 i {
  margin-inline: .08em;
  transform: translateY(.08em);
  vertical-align: middle;
}
.eyebrow { margin: 0 0 20px; font: 500 .68rem/1.4 "Montserrat", sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow.light, .display.light { color: var(--white); }
.envelope { position: relative; width: min(520px, 84vw); aspect-ratio: 1.52; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 1000px; filter: drop-shadow(0 28px 34px rgba(26,4,10,.42)); }
.envelope-back { position: absolute; inset: 0; background: linear-gradient(145deg, #ead09f, #dfbf86 48%, #cda66d); box-shadow: inset 0 0 25px rgba(91,57,22,.18); }
.envelope-front { position: absolute; inset: 0; z-index: 4; background: linear-gradient(155deg, transparent 49.7%, #dfbf86 50%, #c69e64 100%) left/50% 100% no-repeat, linear-gradient(205deg, transparent 49.7%, #e8ca94 50%, #cda66d 100%) right/50% 100% no-repeat, linear-gradient(35deg, transparent 49.5%, #e2c38c 50%, #c49a5f 100%) bottom/100% 57% no-repeat; filter: saturate(.88); }
.envelope-flap { position: absolute; inset: 0; z-index: 6; clip-path: polygon(0 0,100% 0,50% 59%); background: linear-gradient(160deg, #ecd3a3 0%, #dfbf86 68%, #c69d63 100%); box-shadow: inset 0 1px rgba(255,240,207,.48); transform-origin: top; transition: transform .9s cubic-bezier(.6,0,.3,1), z-index 0s .45s; }
.seal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 51%;
  width: 64px;
  height: 64px;
  transform: translate(-50%,-50%) rotate(-4deg);
  transition: opacity .3s .25s, transform .5s;
}
.wax-seal { display: block; width: 100%; height: 100%; overflow: visible; }
.wax-overflow, .wax-body { shape-rendering: geometricPrecision; }
.wax-overflow { opacity: .98; }
.wax-body { opacity: 1; }
.wax-rim-light { opacity: .7; }
.wax-center { shape-rendering: geometricPrecision; }
.wax-highlight {
  fill: none;
  stroke: rgba(255,186,196,.42);
  stroke-width: 1.45;
  stroke-linecap: round;
}
.wax-specular {
  fill: none;
  stroke: rgba(255,220,224,.68);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: .72;
}
.wax-ridge {
  fill: none;
  stroke: rgba(37,4,11,.42);
  stroke-width: 1.25;
  stroke-linecap: round;
}
.stamp-pressure {
  fill: none;
  stroke: rgba(34,4,10,.46);
  stroke-width: 1;
  opacity: .58;
}
.wax-letter {
  font-family: var(--serif);
  font-size: 31px;
  font-style: normal;
  font-weight: 400;
  text-anchor: middle;
  fill: #e0ac69;
  stroke: rgba(89,38,20,.38);
  stroke-width: .35;
}
.wax-letter-s { transform: translateX(1px) rotate(-6deg); transform-origin: 40px 54px; }
.wax-letter-d { transform: translateX(-2px) rotate(4deg); transform-origin: 61px 54px; }
.card { position: absolute; z-index: 2; left: 8%; right: 8%; top: 8%; bottom: 5%; display: grid; place-content: center; gap: 12px; color: #6a1a27; background: radial-gradient(circle at 50% 35%, #f5e6c7 0%, #dfc496 70%, #c9a56c 100%); border: 1px solid #e3bd78; box-shadow: inset 0 0 32px rgba(104,48,18,.15), 0 8px 18px rgba(38,7,12,.2); transition: transform 1s .5s; }
.card::before, .card::after { content: ""; position: absolute; pointer-events: none; }
.card::before { inset: 8px; border: 1px solid rgba(111,29,44,.55); }
.card::after { inset: 13px; border: 1px solid rgba(177,120,54,.7); }
.card small { letter-spacing: .2em; text-transform: uppercase; }
.card b { color: #711d2d; font: 3rem var(--serif); text-shadow: 0 1px #f5d9a8; }
.intro.opening .envelope-flap { z-index: 1; transform: rotateX(180deg); }
.intro.opening .seal { opacity: 0; transform: translate(-50%,-60%) rotate(-4deg) scale(.7); }
.intro.opening .card { transform: translateY(-70%); }
.open-label { margin: 0; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

#site { opacity: 0; transition: opacity 1s; }
#site.visible { opacity: 1; }
.nav { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 78px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; color: white; }
.nav-mark { color: #e0ac69; font: 1.45rem var(--serif); letter-spacing: .08em; }
.nav-links { display: flex; gap: 32px; font-size: .67rem; letter-spacing: .17em; text-transform: uppercase; }
.menu-toggle { display: none; }
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; color: #e0ac69; }
.hero-image, .closing-image { position: absolute; inset: -7%; background: url("assets/garden-couple.png") center 42%/cover no-repeat; transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(71,10,26,.2), rgba(92,18,35,.15) 45%, rgba(62,8,22,.7)); }
.hero-content { position: absolute; z-index: 2; left: 5vw; right: 5vw; bottom: 10vh; text-align: center; }
.hero .eyebrow.light { color: #e0ac69; }
.hero-content h2, .closing h2 { display: flex; align-items: center; justify-content: center; gap: .22em; margin: 0; font: clamp(4.5rem, 11vw, 10rem)/.8 var(--serif); }
.hero-content h2 i { transform: translateY(.1em); }
.hero-date { margin-top: 34px; font-size: .72rem; letter-spacing: .23em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 3; right: 4vw; bottom: 5vh; display: flex; align-items: center; gap: 10px; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { width: 34px; height: 1px; background: currentColor; }
.paper { background: var(--paper); }
.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 95vh;
  padding: 14vh 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e0ac69;
  background: linear-gradient(145deg, #591321 0%, var(--forest) 52%, #480d19 100%);
  text-align: center;
}
.welcome > :not(.luxury-lights) {
  position: relative;
  z-index: 1;
}

/* Reusable, CSS-only canopy of layered luxury wedding starlights. */
.luxury-lights {
  --strand-opacity: .58;
  --strand-opacity-low: .31;
  --glow-size: 10px;
  --glow-spread: 20px;
  --sparkle-size: 3px;
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: min(31vh, 330px);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}
.light-strand {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--strand-width, 1px);
  height: var(--length);
  opacity: var(--strand-opacity);
  background: linear-gradient(
    to bottom,
    rgba(224, 172, 105, .08),
    rgba(244, 196, 132, .76) 48%,
    rgba(214, 137, 112, .42) 82%,
    rgba(239, 189, 124, .2)
  );
  box-shadow:
    0 0 4px rgba(244, 196, 132, .45),
    0 0 9px rgba(205, 116, 101, .18);
  transform-origin: top;
  animation: strand-shimmer var(--duration) ease-in-out var(--delay) infinite;
  will-change: opacity, transform;
}
.light-strand::before,
.light-strand::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  border-radius: 50%;
  background: #f2bd78;
  box-shadow:
    0 0 3px rgba(255, 211, 151, .95),
    0 0 var(--glow-size) rgba(239, 189, 124, .88),
    0 0 var(--glow-spread) rgba(205, 116, 101, .42);
  transform: translateX(-50%) rotate(45deg);
  animation: glow-twinkle var(--duration) ease-in-out var(--delay) infinite;
}
.light-strand::before { top: 42%; }
.light-strand::after {
  top: 96%;
  animation-delay: calc(var(--delay) - 5s);
}
.depth-back {
  --strand-opacity: .36;
  --strand-opacity-low: .2;
  --sparkle-size: 2px;
  filter: blur(.25px);
}
.depth-mid {
  --strand-opacity: .58;
  --strand-opacity-low: .31;
  --sparkle-size: 3px;
}
.depth-front {
  --strand-opacity: .76;
  --strand-opacity-low: .4;
  --sparkle-size: 4px;
  --strand-width: 1.25px;
}

/* A minority of strand endpoints catch the light like cut crystal. */
.star-four::after,
.star-six::after {
  width: var(--flare-size, 8px);
  height: var(--flare-size, 8px);
  border-radius: 0;
  background: linear-gradient(135deg, #f6cf91, #dc927d);
  box-shadow: none;
  filter:
    drop-shadow(0 0 2px rgba(255, 217, 157, .8))
    drop-shadow(0 0 6px rgba(224, 172, 105, .5));
  animation: crystal-twinkle var(--duration) ease-in-out var(--delay) infinite;
}
.star-four::after {
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.star-six::after {
  --flare-size: 7px;
  clip-path: polygon(50% 0, 57% 37%, 82% 18%, 63% 43%, 100% 50%, 63% 57%, 82% 82%, 57% 63%, 50% 100%, 43% 63%, 18% 82%, 37% 57%, 0 50%, 37% 43%, 18% 18%, 43% 37%);
}
@keyframes strand-shimmer {
  0%, 100% { opacity: var(--strand-opacity-low); transform: translateX(0) scaleY(.995); }
  43% { opacity: var(--strand-opacity); transform: translateX(.5px) scaleY(1); }
  71% { opacity: calc(var(--strand-opacity) * .8); transform: translateX(-.35px) scaleY(.998); }
}
@keyframes glow-twinkle {
  0%, 38%, 100% { opacity: .3; transform: translateX(-50%) rotate(45deg) scale(.92); }
  48% { opacity: .72; transform: translateX(-50%) rotate(45deg) scale(1.06); }
  63% { opacity: .42; transform: translateX(-50%) rotate(45deg) scale(.96); }
  82% { opacity: .58; transform: translateX(-50%) rotate(45deg) scale(1); }
}
@keyframes crystal-twinkle {
  0%, 44%, 100% { opacity: .28; transform: translateX(-50%) scale(.9); }
  51% { opacity: .88; transform: translateX(-50%) scale(1.15); }
  59% { opacity: .4; transform: translateX(-50%) scale(.95); }
  78% { opacity: .62; transform: translateX(-50%) scale(1.03); }
}
.flourish { margin-bottom: 52px; font: 2rem var(--serif); }
.flourish i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: .65em;
}
.display { margin: 0; font: clamp(3rem, 6vw, 6.5rem)/1.05 var(--serif); font-weight: 400; }
.body-copy { max-width: 580px; margin: 35px auto 0; font-size: .95rem; line-height: 1.9; }
.date-lockup { display: flex; align-items: center; gap: 28px; margin-top: 60px; }
.date-lockup span { padding: 12px 0; border-block: 1px solid currentColor; font-size: .66rem; letter-spacing: .2em; }
.date-lockup strong { font: 5rem/1 var(--serif); font-weight: 400; }
.story { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #d9d0c2; }
.story-photo { min-height: 750px; background: linear-gradient(rgba(111,29,44,.2),rgba(111,29,44,.2)), url("assets/garden-couple.png") 30% center/cover; background-blend-mode: color; filter: saturate(.75) sepia(.08); }
.story-copy { padding: 10vw; display: flex; flex-direction: column; justify-content: center; }
.story-copy .display { font-size: clamp(3rem,5vw,5.7rem); }
.story-copy .body-copy { margin-left: 0; max-width: 510px; }
.script { margin: 45px 0 0; font: italic 1.4rem Georgia, serif; }
.image-section { position: relative; background: linear-gradient(rgba(89,15,34,.62),rgba(64,8,23,.74)), url("assets/garden-couple.png") center/cover fixed; background-blend-mode: multiply; color: white; }
.countdown { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.countdown-inner { padding: 100px 20px; }
.timer { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(25px,7vw,100px); margin-top: 70px; }
.timer div { display: grid; gap: 12px; }
.timer strong { font: clamp(2.4rem,5vw,5rem) var(--serif); font-weight: 400; }
.timer span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.details { padding: 14vh 7vw; }
.section-heading { text-align: center; margin-bottom: 80px; }
.event-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; }
.event-card { position: relative; min-height: 620px; padding: clamp(45px,7vw,90px); display: flex; flex-direction: column; justify-content: center; border: 1px solid #bdb29f; }
.event-card.dark { color: var(--white); border-color: var(--forest); background: var(--forest); }
.event-card .eyebrow { margin-bottom: 30px; }
.event-card h3 { margin: 0 0 40px; font: 3.2rem var(--serif); font-weight: 400; }
.event-card p { line-height: 1.9; }
.event-card b { font-weight: 500; }
.card-number { position: absolute; top: 30px; right: 35px; opacity: .55; font: 1rem var(--serif); }
.line { width: 45px; height: 1px; margin: 28px 0; background: currentColor; opacity: .45; }
.text-link { align-self: flex-start; margin-top: 25px; padding-bottom: 5px; border-bottom: 1px solid; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; }
.attire { margin-top: 35px; font-size: .67rem; letter-spacing: .17em; text-transform: uppercase; }
.schedule { padding: 14vh 20px; background: #d8d0c2; }
.timeline { max-width: 850px; padding: 0; margin: auto; list-style: none; border-top: 1px solid rgba(111,29,44,.35); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; padding: 30px 5px; border-bottom: 1px solid rgba(111,29,44,.35); align-items: baseline; }
.timeline time { font: 1.8rem var(--serif); }
.timeline span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.rsvp { min-height: 110vh; padding: 12vh 20px; display: grid; place-items: center; background-attachment: scroll; }
.rsvp-card { width: min(700px,94vw); padding: clamp(40px,7vw,80px); color: var(--ink); background: rgba(245,240,230,.96); text-align: center; }
.rsvp-card > p { line-height: 1.7; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 45px; text-align: left; }
form label, fieldset { display: grid; gap: 8px; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
fieldset { grid-column: 1/-1; grid-template-columns: 1fr 1fr; padding: 0; border: 0; }
legend { margin-bottom: 12px; }
.radio { display: flex; align-items: center; padding: 15px; border: 1px solid #bdb29f; cursor: pointer; }
input, select, textarea { width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid #958b7b; border-radius: 0; outline: 0; color: var(--ink); background: transparent; text-transform: none; letter-spacing: normal; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
input[type=radio] { width: auto; margin-right: 8px; accent-color: var(--forest); }
form label:has(textarea), .button, .form-message { grid-column: 1/-1; }
.button { margin-top: 12px; padding: 17px 30px; border: 1px solid var(--forest); color: white; background: var(--forest); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.button:hover { color: var(--forest); background: transparent; }
.form-message { margin: 0; text-align: center; font-size: .75rem; }
.faq { padding: 14vh 20px; }
.accordion { max-width: 850px; margin: auto; border-top: 1px solid #a79d8e; }
details { border-bottom: 1px solid #a79d8e; }
summary { display: flex; justify-content: space-between; padding: 28px 0; cursor: pointer; list-style: none; font: 1.3rem var(--serif); }
summary::-webkit-details-marker { display: none; }
details p { max-width: 650px; margin: -5px 0 30px; line-height: 1.8; }
details[open] summary span { transform: rotate(45deg); }
summary span { transition: transform .25s; }
.closing { position: relative; height: 100svh; min-height: 650px; overflow: hidden; color: white; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(104,20,40,.2),rgba(61,7,21,.72)); }
.closing-image { background-position: center; filter: saturate(.8); }
.closing-copy { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; }
.closing-copy p:last-child { margin-top: 32px; }
.credit { position: absolute; z-index: 3; bottom: 25px; width: 100%; text-align: center; font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(35px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .intro-copy h1 { font-size: 3.1rem; }
  .envelope { width: 88vw; }
  .nav { height: 66px; padding: 0 22px; mix-blend-mode: normal; }
  .menu-toggle { position: relative; z-index: 2; display: grid; gap: 6px; padding: 10px 0 10px 10px; border: 0; background: transparent; }
  .menu-toggle span { display: block; width: 25px; height: 1px; background: white; transition: .3s; }
  .menu-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; color: white; background: var(--forest); transform: translateX(100%); transition: transform .5s; font-size: .8rem; }
  .nav-links.open { transform: translateX(0); }
  .hero-content { bottom: 15vh; }
  .hero-content h2, .closing h2 { flex-direction: column; gap: .05em; font-size: clamp(4rem,20vw,6.5rem); }
  .hero-content h2 i { margin: -.12em 0; }
  .hero-date { font-size: .6rem; }
  .scroll-cue { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .welcome { min-height: 100vh; }
  .luxury-lights {
    --strand-opacity: .54;
    --strand-opacity-low: .29;
    --glow-size: 8px;
    --glow-spread: 15px;
    --sparkle-size: 2.5px;
    height: min(28vh, 245px);
  }
  .light-strand:nth-child(6n) { display: none; }
  .depth-front { --sparkle-size: 3.5px; }
  .star-mobile-glow::after {
    width: var(--sparkle-size);
    height: var(--sparkle-size);
    border-radius: 50%;
    background: #f2bd78;
    clip-path: none;
    filter: none;
    box-shadow:
      0 0 3px rgba(255, 211, 151, .95),
      0 0 var(--glow-size) rgba(239, 189, 124, .88),
      0 0 var(--glow-spread) rgba(205, 116, 101, .42);
    animation-name: glow-twinkle;
  }
  .display { font-size: 2.9rem; }
  .story { grid-template-columns: 1fr; }
  .story-photo { min-height: 65vh; }
  .story-copy { padding: 16vh 8vw; }
  .story-copy .display { font-size: 3rem; }
  .image-section { background-attachment: scroll; }
  .countdown { min-height: 70vh; }
  .timer { gap: 12px; }
  .timer strong { font-size: 2.1rem; }
  .timer span { font-size: .5rem; letter-spacing: .08em; }
  .details, .schedule, .faq { padding-block: 12vh; }
  .section-heading { margin-bottom: 55px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 530px; padding: 55px 35px; }
  .event-card h3 { font-size: 2.8rem; }
  .timeline li { grid-template-columns: 90px 1fr; }
  .rsvp-card { padding: 50px 25px; }
  form { grid-template-columns: 1fr; }
  form > *, fieldset, form label:has(textarea), .button, .form-message { grid-column: 1; }
  fieldset { grid-template-columns: 1fr; }
  summary { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .light-strand, .light-strand::before, .light-strand::after { animation: none; }
}
