:root {
  --paper: #f7f0e8;
  --paper-deep: #eee0d2;
  --blush: #e8c9c8;
  --rose: #b66d72;
  --wine: #71363e;
  --ink: #312a26;
  --muted: #766a63;
  --moss: #68715c;
  --gold: #b89563;
  --white: #fffaf4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --script: "Marck Script", cursive;
  --page-width: 540px;
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #ddd1c8;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  background:
    linear-gradient(rgba(53, 47, 43, 0.42), rgba(53, 47, 43, 0.42)),
    url("assets/stock/magnolia.jpg") center / cover fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(246, 238, 229, 0.2);
  backdrop-filter: blur(16px) saturate(0.75);
}

body.intro-active {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin-inline: auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 0 90px rgba(38, 29, 24, 0.3);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
  color: #4a3437;
  background: #eee4dc;
  isolation: isolate;
}

.intro[hidden] {
  display: none;
}

.intro__photo,
.intro__veil {
  position: absolute;
  inset: -5%;
}

.intro__photo {
  z-index: -5;
  background: url("assets/stock/magnolia.jpg") center 42% / cover;
  filter: saturate(0.68) contrast(0.84);
  transform: scale(1.08);
}

.intro__veil {
  z-index: -4;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 250, 240, 0.64) 0 13%, rgba(244, 229, 220, 0.58) 31%, rgba(94, 61, 61, 0.48) 100%),
    linear-gradient(180deg, rgba(248, 238, 231, 0.15), rgba(99, 60, 62, 0.25));
  backdrop-filter: blur(6px);
}

.intro__light {
  position: absolute;
  z-index: -3;
  width: min(88vw, 660px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 213, 0.92), rgba(255, 225, 195, 0.3) 36%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(12px);
  opacity: 0.55;
}

.intro__light--one {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
}

.intro__light--two {
  width: min(48vw, 360px);
  right: -6%;
  bottom: -8%;
  opacity: 0.32;
}

.intro__branch {
  position: absolute;
  z-index: -1;
  bottom: -6%;
  width: clamp(145px, 28vw, 290px);
  height: min(67vh, 650px);
  fill: rgba(122, 111, 88, 0.17);
  stroke: rgba(91, 82, 66, 0.46);
  stroke-width: 1.15;
  filter: drop-shadow(0 12px 20px rgba(44, 31, 29, 0.12));
}

.intro__branch--left {
  left: -1.5%;
}

.intro__branch--right {
  right: -1.5%;
}

.intro__eyebrow {
  position: absolute;
  top: clamp(42px, 7vh, 84px);
  left: 50%;
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.envelope-stage {
  position: relative;
  width: min(78vw, 440px);
  aspect-ratio: 1.35;
  margin-top: 1vh;
}

.envelope-shadow {
  position: absolute;
  inset: auto 10% -15% 10%;
  height: 28%;
  border-radius: 50%;
  background: rgba(61, 38, 38, 0.32);
  filter: blur(26px);
  transform: scaleY(0.35);
}

.envelope-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Keep the letter and pocket in explicit paint order; only the lid rotates. */
  transform-style: flat;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 24px 22px rgba(78, 47, 47, 0.2));
}

.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 1px solid rgba(134, 97, 91, 0.22);
  border-radius: 3px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 30%),
    var(--study-envelope, #ede5db);
}

.envelope-back::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(142, 102, 93, 0.18);
  content: "";
}

.letter {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 7%;
  display: grid;
  width: 86%;
  height: 90%;
  place-content: center;
  padding: 26px;
  border: 1px solid rgba(168, 137, 103, 0.52);
  color: var(--wine);
  text-align: center;
  background:
    linear-gradient(135deg, #fffdf8, var(--paper, #f5ebe1));
  box-shadow: 0 10px 22px rgba(89, 58, 50, 0.13);
  will-change: transform;
}

.letter__border {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(157, 126, 92, 0.35);
}

.letter__border::before,
.letter__border::after {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 22px;
  border-top: 1px solid var(--gold);
  content: "";
}

.letter__border::before {
  left: 8px;
  border-left: 1px solid var(--gold);
}

.letter__border::after {
  right: 8px;
  border-right: 1px solid var(--gold);
}

.letter__small,
.letter > p:last-child {
  margin: 0;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.letter__monogram {
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgba(141, 85, 88, 0.09);
  font-family: var(--serif);
  font-size: clamp(100px, 24vw, 158px);
  font-weight: 400;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.letter h1 {
  position: relative;
  z-index: 1;
  margin: 7px 0 9px;
  font-family: var(--script);
  font-size: clamp(27px, 7vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.envelope-pocket,
.envelope-pocket-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}

.envelope-pocket-mask {
  position: fixed;
  z-index: 30;
  display: block;
  visibility: hidden;
  opacity: 0;
  background: transparent !important;
  transform-origin: 50% 50%;
}

.envelope-pocket span,
.envelope-pocket-mask span {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 -1px 0 rgba(132, 91, 88, 0.11));
}

.envelope-pocket__left {
  background: linear-gradient(135deg, var(--study-envelope, #ede5db), #f1ebe3);
  clip-path: polygon(0 0, 56% 50%, 0 100%);
}

.envelope-pocket__right {
  background: linear-gradient(225deg, #e5ddd3, var(--study-envelope, #ede5db));
  clip-path: polygon(100% 0, 44% 50%, 100% 100%);
}

.envelope-pocket__bottom {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.26), transparent 40%),
    var(--study-envelope, #ede5db);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: linear-gradient(165deg, var(--study-flap, #f5efe7) 5%, #e9e0d7 96%);
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.envelope-flap::after {
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(128, 91, 87, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 44%);
  clip-path: inherit;
  content: "";
}

.envelope-flap__inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(12deg, #e9e0d7, var(--study-flap, #f5efe7));
  clip-path: inherit;
  transform: rotateX(180deg);
  backface-visibility: hidden;
}

.seal-glow {
  position: absolute;
  z-index: 49;
  top: 36%;
  left: 50%;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 168, 0.8), rgba(202, 114, 93, 0.22) 48%, transparent 72%);
  filter: blur(5px);
  transform: translate(-50%, -50%);
}

.wax-seal {
  position: absolute;
  z-index: 50;
  top: 36%;
  left: 50%;
  display: grid;
  width: clamp(58px, 13vw, 72px);
  aspect-ratio: 1;
  padding: 7px;
  place-items: center;
  border: 0;
  border-radius: 48% 52% 44% 56% / 55% 43% 57% 45%;
  color: #f1b49e;
  background:
    radial-gradient(circle at 37% 30%, #b95c56 0 11%, transparent 12%),
    radial-gradient(circle at 55% 61%, #83373c, #9f4848 58%, #703039 100%);
  box-shadow:
    inset 0 1px 6px rgba(255, 214, 181, 0.3),
    inset 0 -5px 8px rgba(77, 21, 30, 0.3),
    0 8px 13px rgba(79, 37, 40, 0.34);
  cursor: pointer;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.wax-seal::before {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(113, 49, 52, 0.38);
  border-radius: 54% 46% 51% 49%;
  content: "";
}

.wax-seal svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.wax-seal:hover {
  filter: brightness(1.06);
}

.intro__instruction {
  position: absolute;
  bottom: clamp(84px, 15vh, 130px);
  left: 50%;
  display: grid;
  grid-template-columns: 34px auto 34px;
  gap: 12px;
  align-items: center;
  width: min(86%, 430px);
  transform: translateX(-50%);
}

.intro__instruction span {
  height: 1px;
  background: rgba(91, 60, 61, 0.34);
}

.intro__instruction p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.03em;
  text-align: center;
}

.intro__skip {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 10px;
  border: 0;
  color: rgba(70, 52, 52, 0.72);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.butterfly {
  position: absolute;
  z-index: 0;
  width: 28px;
  height: 21px;
  transform: rotate(var(--r, 0deg));
}

.butterfly i,
.butterfly b {
  position: absolute;
  top: 1px;
  width: 15px;
  height: 19px;
  border: 1px solid rgba(93, 65, 64, 0.22);
  background: linear-gradient(135deg, rgba(255, 243, 223, 0.94), rgba(212, 156, 151, 0.78));
  transform-origin: center right;
  animation: wing 1.15s ease-in-out infinite alternate;
}

.butterfly i {
  left: 0;
  border-radius: 100% 18% 70% 22%;
  transform: rotate(24deg);
}

.butterfly b {
  right: 0;
  border-radius: 18% 100% 22% 70%;
  transform: scaleX(-1) rotate(24deg);
  animation-delay: -0.26s;
}

.butterfly--1 { top: 21%; left: 13%; --r: -22deg; transform: scale(0.85) rotate(var(--r)); }
.butterfly--2 { top: 26%; right: 12%; --r: 24deg; transform: scale(1.12) rotate(var(--r)); }
.butterfly--3 { bottom: 27%; left: 18%; --r: 11deg; transform: scale(0.62) rotate(var(--r)); }
.butterfly--4 { right: 21%; bottom: 21%; --r: -17deg; transform: scale(0.72) rotate(var(--r)); }
.butterfly--5 { top: 13%; right: 31%; --r: 6deg; transform: scale(0.5) rotate(var(--r)); }

@keyframes wing {
  to { transform: perspective(80px) rotateY(57deg) rotate(15deg); }
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: #572f36;
  background: #50483c;
  isolation: isolate;
}

.hero__image,
.hero__wash,
.hero__silk,
.hero__arch {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -5;
  background: url("assets/stock/peonies.jpg") 50% 49% / cover;
  filter: saturate(0.78) contrast(0.94) brightness(0.83);
  transform: translate3d(0, var(--hero-y, 0), 0) scale(1.09);
  will-change: transform;
}

.hero__wash {
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(39, 30, 28, 0.56), rgba(62, 42, 42, 0.08) 31%, rgba(45, 31, 31, 0.5) 100%),
    linear-gradient(90deg, rgba(39, 30, 28, 0.42), transparent 24% 76%, rgba(39, 30, 28, 0.42));
}

.hero__silk {
  z-index: -3;
  inset: 6% 2% 4%;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(255, 249, 239, 0.98) 0 17%, rgba(249, 236, 222, 0.93) 31%, rgba(246, 226, 212, 0.63) 49%, rgba(244, 224, 211, 0.12) 67%, transparent 73%),
    linear-gradient(90deg, transparent 7%, rgba(255, 246, 235, 0.15) 35%, rgba(255, 248, 239, 0.28) 50%, rgba(255, 246, 235, 0.15) 65%, transparent 93%);
  filter: blur(0.2px);
  opacity: 0.96;
  transform: scale(1.04);
}

.hero__arch {
  z-index: -2;
  inset: clamp(30px, 7vh, 68px) 24px 45px;
  border: 1px solid rgba(236, 205, 151, 0.64);
  border-radius: 220px 220px 5px 5px;
  box-shadow: inset 0 0 44px rgba(255, 244, 221, 0.1), 0 0 34px rgba(74, 48, 44, 0.15);
  opacity: 0;
  transform: scale(0.96) translateY(16px);
}

.hero__arch::before,
.hero__arch::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero__arch::before {
  inset: 8px;
  border: 1px solid rgba(255, 240, 206, 0.25);
  border-radius: inherit;
}

.hero__arch::after {
  right: 50%;
  bottom: -7px;
  width: 76px;
  height: 14px;
  border-right: 1px solid rgba(236, 205, 151, 0.72);
  border-left: 1px solid rgba(236, 205, 151, 0.72);
  background: linear-gradient(90deg, transparent, rgba(255, 242, 215, 0.3), transparent);
  transform: translateX(50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(94px, 14vh, 142px) 40px 112px;
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 248, 237, 0.78);
}

.hero__ornament {
  width: min(58%, 220px);
  margin: 0 auto 26px;
  overflow: visible;
  fill: none;
  stroke: #a67944;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  opacity: 0;
}

.hero__ornament path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}

.kicker {
  margin: 0 0 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.33em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero__date {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.07em;
  opacity: 0;
}

.hero h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(60px, 17vw, 92px);
  font-weight: 400;
  line-height: 0.66;
}

.hero h2 em {
  margin: 5px 0 1px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.hero h2.hero__bride-name {
  margin-top: 8px;
  line-height: 0.9;
  opacity: 0;
}

.hero__note {
  max-width: 340px;
  margin: 31px auto 0;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
  opacity: 0;
}

.hero__content > .kicker {
  opacity: 0;
}

body:not(.intro-active) .hero__arch {
  animation: heroArchIn 1.65s var(--ease-silk) 0.15s forwards;
}

body:not(.intro-active) .hero__ornament {
  animation: heroOrnamentIn 1.2s var(--ease-silk) 0.36s forwards;
}

body:not(.intro-active) .hero__ornament path {
  animation: ornamentDraw 2s var(--ease-silk) 0.45s forwards;
}

body:not(.intro-active) .hero__content > .kicker,
body:not(.intro-active) .hero__date,
body:not(.intro-active) .hero h2.hero__bride-name,
body:not(.intro-active) .hero__note {
  animation: heroTextIn 1.05s var(--ease-silk) forwards;
}

body:not(.intro-active) .hero__content > .kicker { animation-delay: 0.58s; }
body:not(.intro-active) .hero__date { animation-delay: 0.7s; }
body:not(.intro-active) .hero h2.hero__bride-name { animation-delay: 0.82s; }
body:not(.intro-active) .hero__note { animation-delay: 0.98s; }

@keyframes heroArchIn {
  to { opacity: 1; transform: none; }
}

@keyframes heroOrnamentIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes ornamentDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  color: rgba(255, 250, 244, 0.78);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.23em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.scroll-cue span::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  background: white;
  animation: scrollLine 2.1s ease-in-out infinite;
  content: "";
}

.scroll-cue small {
  font: inherit;
}

@keyframes scrollLine {
  65%, 100% { transform: translateY(290%); }
}

.paper-section {
  position: relative;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(188, 133, 132, 0.09), transparent 34%),
    linear-gradient(145deg, var(--paper), #fbf7f1);
}

.paper-section::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 110px 34px;
  text-align: center;
}

.invitation .section-inner {
  padding-block: 130px 120px;
}

.botanical-mark {
  width: 132px;
  margin: 0 auto 34px;
  fill: rgba(185, 148, 99, 0.05);
  stroke: var(--gold);
  stroke-width: 1.1;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 10vw, 54px);
  font-weight: 400;
  line-height: 0.98;
}

.body-copy {
  color: var(--ink);
  margin: 34px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.66;
}

.body-copy strong {
  color: var(--wine);
  font-weight: 600;
}

.signature {
  margin: 34px 0 0;
  color: var(--wine);
  font-family: var(--script);
  font-size: 28px;
}

.floating-petal {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 70px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, rgba(199, 136, 140, 0.16), rgba(255, 255, 255, 0));
  filter: blur(0.3px);
  transform: rotate(28deg);
}

.floating-petal--one { top: 13%; left: -4px; }
.floating-petal--two { right: -8px; bottom: 12%; transform: rotate(208deg) scale(0.75); }

.portrait-story {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: end center;
  overflow: hidden;
  color: var(--white);
  background: #4f3438;
}

.portrait-story__image,
.portrait-story__veil {
  position: absolute;
  inset: -8% 0;
}

.portrait-story__image {
  background: url("assets/stock/magnolia.jpg") 48% 50% / cover;
  filter: saturate(0.62) contrast(0.96) brightness(0.72);
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.15);
  will-change: transform;
}

.portrait-story__veil {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 228, 207, 0.08), transparent 33%),
    linear-gradient(180deg, rgba(57, 37, 40, 0.22), rgba(55, 32, 36, 0.84));
}

.portrait-story__ornament {
  position: absolute;
  z-index: 1;
  top: 17%;
  left: 50%;
  width: 78%;
  max-width: 350px;
  overflow: visible;
  fill: none;
  stroke: rgba(234, 202, 150, 0.58);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.8;
  transform: translateX(-50%) scale(1.45);
}

.portrait-story__copy {
  position: relative;
  z-index: 2;
  padding: 60px 34px 72px;
  text-align: center;
}

.portrait-story__copy p {
  margin: 0;
  font-family: var(--serif);
  font-size: 52px;
  font-style: italic;
  line-height: 0.9;
}

.portrait-story__copy span {
  display: block;
  max-width: 290px;
  margin: 24px auto 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.65;
  text-transform: uppercase;
}

.date-section .section-inner {
  padding-block: 118px;
}

.date-lockup {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  margin: 0 auto 44px;
  grid-template-columns: minmax(72px, 1fr) auto minmax(58px, 1fr);
  gap: 16px;
  align-items: center;
}

.date-lockup::before,
.date-lockup::after {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: rgba(112, 54, 62, 0.28);
  content: "";
}

.date-lockup::before { right: 100%; }
.date-lockup::after { left: 100%; }

.date-lockup strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 82px;
  font-weight: 400;
  line-height: 0.8;
}

.date-lockup span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.date-lockup__month { text-align: right; }
.date-lockup__year { text-align: left; }

.calendar {
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(150, 117, 90, 0.22);
  background: rgba(255, 252, 247, 0.6);
}

.calendar__days,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar__days {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 115, 91, 0.14);
  color: var(--rose);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.calendar__grid {
  row-gap: 7px;
  padding-top: 15px;
  font-family: var(--serif);
  font-size: 15px;
}

.calendar__grid > span {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.calendar__grid .is-event {
  z-index: 1;
  color: var(--white);
}

.calendar__grid .is-event::before {
  position: absolute;
  z-index: -1;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 4px 11px rgba(113, 54, 62, 0.22);
  content: "";
}

.calendar__grid .is-event i {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(113, 54, 62, 0.32);
  border-radius: 50%;
  transform: rotate(-12deg) scaleX(1.2);
}

.time-pill {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.time-pill span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.time-pill strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.calendar-download {
  gap: 12px;
  margin-top: 26px;
}

.calendar-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.hands-story {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: end center;
  overflow: hidden;
  color: var(--white);
  background: #7a675c;
}

.hands-story__image {
  position: absolute;
  inset: -12% -5%;
  background:
    linear-gradient(180deg, rgba(45, 31, 29, 0.06), rgba(45, 31, 29, 0.62)),
    url("assets/stock/family-hands.jpg") 50% 50% / cover;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  will-change: transform;
}

.hands-story__content {
  position: relative;
  z-index: 1;
  padding: 52px 35px 58px;
  text-align: center;
}

.hands-story__content p {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  line-height: 1.15;
}

.fine-line {
  display: block;
  width: 46px;
  height: 1px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.7);
}

.programme .section-inner {
  padding-block: 120px 130px;
}

.programme .display-title {
  max-width: 320px;
  margin-inline: auto;
}

.timeline {
  width: min(100%, 360px);
  margin: 60px auto 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 16px 1fr;
  gap: 14px;
  min-height: 105px;
  text-align: left;
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 17px;
  bottom: -2px;
  left: 75px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(184, 149, 99, 0.12));
  content: "";
}

.timeline time {
  padding-top: 2px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
}

.timeline__dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 7px auto 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline strong {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.timeline small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.countdown-section {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #6d6960;
}

.countdown-section__image,
.countdown-section__overlay {
  position: absolute;
  inset: -10% 0;
}

.countdown-section__image {
  background: url("assets/stock/peonies.jpg") center / cover;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  will-change: transform;
}

.countdown-section__overlay {
  background: linear-gradient(rgba(48, 40, 35, 0.45), rgba(76, 42, 47, 0.67));
  backdrop-filter: saturate(0.7);
}

.countdown-section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 70px 18px;
  text-align: center;
}

.countdown-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  font-style: italic;
}

.countdown {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
}

.countdown > div {
  min-width: 68px;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  margin-top: 9px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown i {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}

.venue .section-inner {
  z-index: 2;
  width: min(100%, 500px);
  padding: 112px 22px 118px;
}

.venue__address {
  color: var(--ink);
  margin: 28px 0 30px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.venue-map {
  width: 100%;
  margin: 0 auto 27px;
  text-align: left;
}

.venue-map__canvas {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(113, 54, 62, 0.18);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 45px rgba(86, 58, 52, 0.12);
  transform: translateZ(0);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 450ms var(--ease-silk);
}

.venue-map__canvas:hover {
  border-color: rgba(113, 54, 62, 0.34);
  box-shadow: 0 24px 52px rgba(86, 58, 52, 0.17);
  transform: translateY(-3px);
}

.venue-map__viewport {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 90vw, 430px);
  background: var(--paper-deep);
  isolation: isolate;
}

.venue-map__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.venue-map__surface .maplibregl-canvas {
  display: block;
  filter: saturate(0.92) brightness(1.015) contrast(1.025);
}

.venue-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  margin: 0;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.65;
  text-align: center;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.venue-map__viewport.is-ready .venue-map__fallback {
  visibility: hidden;
  opacity: 0;
}

.venue-map__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 240, 232, 0.025), rgba(113, 54, 62, 0.035)),
    rgba(184, 149, 99, 0.018);
  mix-blend-mode: multiply;
}

.venue-map__marker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.venue-map__marker::before {
  content: "";
  flex: 0 0 auto;
  box-sizing: border-box;
}

.venue-map__marker--venue::before {
  width: 24px;
  height: 24px;
  border: 5px solid var(--wine);
  border-radius: 50% 50% 50% 0;
  background: #f7eee7;
  box-shadow: 0 5px 14px rgba(78, 40, 46, 0.27);
  transform: rotate(-45deg);
}

.venue-map__marker--venue::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
}

.venue-map__marker-label {
  display: block;
  max-width: 136px;
  margin-left: 8px;
  padding: 5px 8px 4px;
  border: 1px solid rgba(113, 54, 62, 0.12);
  border-radius: 2px;
  color: #3d3332;
  background: rgba(255, 251, 247, 0.92);
  box-shadow: 0 5px 15px rgba(79, 55, 50, 0.13);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  white-space: normal;
}

.venue-map__marker--venue .venue-map__marker-label {
  color: var(--wine);
}

.venue-map__credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 24px;
  margin: 0;
  padding: 4px 8px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
  background: var(--paper-deep);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.015em;
  line-height: 1.25;
  white-space: nowrap;
}

.venue-map__credit a {
  color: inherit;
  text-underline-offset: 2px;
}

.venue-map__credit a:hover {
  color: var(--wine);
}

@media (max-width: 390px) {
  .venue-map__marker-label {
    max-width: 104px;
    font-size: 7px;
  }
}

.soft-button,
.dark-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: transform 300ms var(--ease-silk), box-shadow 300ms ease, background 300ms ease;
}

.soft-button {
  gap: 20px;
  padding: 0 25px;
  border: 1px solid rgba(113, 54, 62, 0.35);
  color: var(--wine);
  background: rgba(255, 255, 255, 0.42);
}

.soft-button:hover,
.dark-button:hover {
  transform: translateY(-2px);
}

.venue__flower {
  position: absolute;
  z-index: 1;
  right: -13%;
  bottom: -12%;
  width: 67%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: none;
  box-shadow: 0 12px 38px rgba(75, 55, 45, 0.15);
  -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 70%);
  mask-image: radial-gradient(circle, #000 42%, transparent 70%);
  opacity: 0.82;
}

.rsvp {
  padding: 88px 24px;
  background:
    linear-gradient(rgba(65, 44, 44, 0.53), rgba(65, 44, 44, 0.67)),
    url("assets/stock/magnolia.jpg") 50% 60% / cover;
}

.rsvp__card {
  position: relative;
  z-index: 1;
  padding: 56px 28px 36px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--ink);
  text-align: center;
  background: rgba(250, 244, 237, 0.94);
  box-shadow: 0 22px 50px rgba(48, 31, 30, 0.22);
  backdrop-filter: blur(18px);
}

.rsvp__card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(180, 144, 105, 0.24);
  pointer-events: none;
  content: "";
}

.rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.rsvp__card > p:not(.kicker) {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.rsvp form {
  position: relative;
  z-index: 1;
  margin-top: 37px;
  text-align: left;
}

.rsvp form > label > span,
.rsvp legend {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp input[type="text"] {
  width: 100%;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid rgba(93, 71, 64, 0.26);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  background: transparent;
}

.rsvp input:disabled,
.rsvp button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.rsvp input::placeholder {
  color: #a69890;
}

.rsvp fieldset {
  margin: 30px 0;
  padding: 0;
  border: 0;
}

.rsvp__invite-context {
  color: var(--wine) !important;
  font-family: var(--serif);
  font-size: 15px !important;
}

.rsvp__choice-list {
  display: grid;
  gap: 10px;
}

.rsvp__choice {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(113, 54, 62, 0.18);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.32);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.rsvp__choice:hover {
  border-color: rgba(113, 54, 62, 0.42);
  transform: translateY(-1px);
}

.rsvp__choice:has(input:checked) {
  border-color: rgba(113, 54, 62, 0.68);
  background: rgba(113, 54, 62, 0.08);
  box-shadow: 0 8px 20px rgba(113, 54, 62, 0.08);
}

.rsvp__choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.56;
}

.rsvp__choice input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--wine);
}

.dark-button {
  width: 100%;
  padding-inline: 20px;
  color: var(--white);
  background: var(--wine);
  box-shadow: 0 11px 24px rgba(113, 54, 62, 0.18);
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--wine);
  font-size: 10px;
  text-align: center;
}

.form-status.is-success {
  color: #4f725a;
}

.form-status.is-error {
  color: #9b3f4b;
}

footer {
  padding: 76px 24px 38px;
  color: var(--paper);
  text-align: center;
  background: #543a3d;
}

footer .signature {
  margin: 0;
  color: var(--wine);
  font-size: 30px;
}

footer > span {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.22em;
}

footer > button {
  margin-top: 37px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.65);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.language-toggle {
  position: fixed;
  z-index: 70;
  bottom: 18px;
  left: max(18px, calc((100vw - var(--page-width)) / 2 + 18px));
  display: flex;
  gap: 3px;
  align-items: center;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(61, 42, 42, 0.72);
  box-shadow: 0 8px 24px rgba(41, 29, 28, 0.16);
  backdrop-filter: blur(12px);
}

.language-toggle > span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 8px;
}

.language-toggle button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 99px;
  color: inherit;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease;
}

.language-toggle button[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.music-toggle {
  position: fixed;
  z-index: 70;
  right: max(18px, calc((100vw - var(--page-width)) / 2 + 18px));
  bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 99px;
  color: #fff;
  background: rgba(61, 42, 42, 0.72);
  box-shadow: 0 8px 24px rgba(41, 29, 28, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
}

.music-toggle:hover { transform: translateY(-2px); }
.music-toggle[aria-pressed="true"] { background: rgba(113, 54, 62, 0.9); }

.music-toggle__bars {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 15px;
}

.music-toggle__bars i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.music-toggle[aria-pressed="true"] .music-toggle__bars i {
  animation: musicBar 0.8s ease-in-out infinite alternate;
}

.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(2) { animation-delay: -0.38s; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(3) { animation-delay: -0.12s; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(4) { animation-delay: -0.55s; }

.music-toggle__label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes musicBar {
  to { height: 15px; }
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(44px);
}

@media (min-width: 640px) {
  :root {
    --page-width: min(760px, calc(100vw - 64px));
  }

  .site-frame {
    margin-block: 34px;
    border-radius: 4px;
  }

  .section-inner {
    width: min(100%, 620px);
    padding-inline: 48px;
  }

  .venue .section-inner {
    width: min(100%, 700px);
    padding-inline: 30px;
  }

  .rsvp__card {
    max-width: 590px;
    margin-inline: auto;
  }

  .intro__branch {
    opacity: 0.9;
  }
}

@media (max-width: 560px) {
  body {
    background: var(--paper);
  }

  body::before {
    display: none;
  }

  .site-frame {
    width: 100%;
    box-shadow: none;
  }

  .music-toggle {
    right: 14px;
    bottom: 14px;
  }

  .language-toggle {
    bottom: 14px;
    left: 14px;
  }

  .intro__branch {
    bottom: -3%;
    opacity: 0.62;
  }

  .envelope-stage {
    width: min(84vw, 390px);
  }
}



@media (max-height: 680px) {
  .intro__eyebrow {
    top: 24px;
  }

  .envelope-stage {
    width: min(67vw, 350px);
  }

  .intro__instruction {
    bottom: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Remote-baseline refactor: ceremonial paper, restrained rose, no photographs. */
@font-face { font-family: 'KZ Ceremonious'; src: url('assets/fonts/user-letter/kz-ceremonious-three.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --paper:#faf6ef; --paper-deep:#eee4d9; --ink:#493e39; --muted:#766962; --wine:#774852; --rose:#a7797d; --gold:#b39870; --serif:'Noto Serif',Georgia,serif; --sans:'Noto Sans',Arial,sans-serif; --script:'KZ Ceremonious','Noto Serif',serif; --page-width:1100px; }
html,body { background:#eae2d8; }
body::before { display:none; }
body { font-weight:400; }
.site-frame { box-shadow:0 0 65px #59463212; }
.intro { background:var(--paper); }
.intro__photo,.intro__veil,.intro__light,.butterflies,.seal-glow,.hero__image,.hero__wash,.hero__silk,.portrait-story__image,.portrait-story__veil,.hands-story__image,.countdown-section__image,.countdown-section__overlay,.venue__flower,.floating-petal { display:none; }
.intro__branch { opacity:.25; stroke:var(--gold); width:min(25vw,230px); }
.intro__eyebrow { font-size:11px; color:var(--muted); }
.intro__instruction { bottom:14%; display:flex; justify-content:center; }
.intro__instruction > span { display:none; }
.intro__instruction .soft-button { min-height:46px; background:transparent; font-size:12px; }
.intro__skip { top:auto; right:auto; bottom:6%; left:50%; transform:translateX(-50%); min-height:44px; }
.letter { background:var(--paper); }
.letter h1 { font-size:clamp(30px,7vw,44px); line-height:1.25; padding:0 12px; overflow-wrap:anywhere; }
.letter__monogram { display:none; }
.wax-seal { background:#a3787e; border:1px solid #8f636e; color:#f8eadb; box-shadow:inset 0 0 0 5px #ffffff14,0 5px 15px #52333b20; }
.hero { min-height:min(800px,100svh); background:var(--paper); color:var(--wine); }
.hero__content { width:100%; max-width:840px; margin:auto; padding:115px 70px 120px; text-align:center; text-shadow:none; }
.hero__guest-name { font:400 clamp(54px,6.7vw,88px)/1.45 var(--script); letter-spacing:0; max-width:100%; margin:26px auto 12px; padding-inline:20px; overflow-wrap:anywhere; }
.hero__event-name { font:400 clamp(18px,2vw,25px)/1.6 var(--serif); margin:20px 0 0; color:var(--ink); }
.hero__date { color:var(--muted); font:400 12px/1.8 var(--sans); margin:16px 0 0; letter-spacing:.12em; }
.hero__ornament { width:100px; margin:auto; opacity:.75; }
.hero__arch { inset:75px 50px 55px; border:1px solid #b398704d; box-shadow:none; border-radius:48% 48% 0 0 / 34% 34% 0 0; }
.hero__arch::before,.hero__arch::after { display:none; }
.scroll-cue { color:var(--muted); bottom:24px; }
.scroll-cue span { border-color:var(--gold); }
.paper-section { background:var(--paper); }
.section-inner { width:min(100%,760px); padding:80px 48px; }
.invitation .section-inner { padding-block:80px; }
.display-title { font-size:clamp(30px,4vw,44px); line-height:1.25; }
.body-copy { max-width:580px; margin-inline:auto; font-size:18px; line-height:1.85; }
.signature { font:italic 20px/1.7 var(--serif); }
.botanical-mark { width:95px; margin-bottom:24px; }
.kicker { font-size:10px; letter-spacing:.18em; }
.portrait-story { min-height:0; background:#efe5dc; color:var(--wine); }
.portrait-story__ornament { display:none; }
.portrait-story__copy { padding:55px 28px; }
.portrait-story__copy p { font:italic 32px/1.4 var(--serif); text-shadow:none; }
.portrait-story__copy p br { display:none; }
.portrait-story__copy span { color:var(--muted); font:400 11px/1.8 var(--sans); letter-spacing:.05em; }
.date-lockup { width:min(100%,330px); min-height:190px; margin:25px auto 30px; padding:30px 15px; border:1px solid #b3987070; border-radius:50%; gap:14px; }
.date-lockup::before,.date-lockup::after { display:none; }
.date-lockup strong { font-size:90px; }
.date-lockup span { writing-mode:horizontal-tb; transform:none; font-size:12px; letter-spacing:.08em; }
.calendar { max-width:480px; margin-inline:auto; }
.countdown-section { min-height:0; background:#e4cecb; color:var(--wine); }
.countdown-section__content { padding:55px 30px; }
.countdown-section h2 { font:italic 30px/1.4 var(--serif); }
.countdown { gap:24px; margin-top:30px; }
.countdown strong { font-size:clamp(40px,6vw,70px); font-variant-numeric:tabular-nums; }
.countdown span { font-size:10px; letter-spacing:.08em; }
.countdown i { background:#77485226; }
.timeline { max-width:570px; margin-inline:auto; }
.timeline strong { font-size:20px; line-height:1.5; }
.timeline small { font-size:13px; line-height:1.7; }
.venue .section-inner { width:min(100%,850px); padding:75px 45px; }
.venue__address { font:400 18px/1.8 var(--serif); }
.venue-map { max-width:720px; margin-inline:auto; }
.rsvp { padding:75px 40px; background:#e6d4d0; }
.rsvp__card { max-width:930px; margin:auto; background:var(--paper); border:1px solid #b3987055; padding:55px 44px; box-shadow:none; backdrop-filter:none; }
.rsvp__card::before { display:none; }
.rsvp h2 { font:400 34px/1.3 var(--serif); }
.rsvp__card > p:not(.kicker) { font-size:13px; line-height:1.7; }
.rsvp form > label > span,.rsvp legend { font-size:12px; line-height:1.5; }
.rsvp input[type='text'] { font-size:16px; min-height:48px; }
.rsvp__choice { font-size:14px; line-height:1.5; min-height:48px; }
.language-toggle,.music-toggle { z-index:120; top:16px; bottom:auto; color:var(--wine); background:#faf6eff2; border:1px solid #b3987055; box-shadow:0 4px 14px #493e3908; }
.language-toggle button { min-height:36px; font-size:10px; }
.language-toggle button[aria-pressed='true'] { color:var(--wine); background:#e9ddd3; }
.language-toggle > span { color:var(--muted); }
.music-toggle { font-size:10px; }
.music-toggle[aria-pressed='true'] { color:var(--paper); }
.js [data-reveal]:not(.is-visible) { opacity:0; transform:translateY(10px); }
.js [data-reveal].is-visible { opacity:1; transform:none; }
@media(min-width:850px) {
 .rsvp__card { display:grid; grid-template-columns:.8fr 1.2fr; column-gap:55px; text-align:left; align-items:start; }
 .rsvp__card > p,.rsvp__card > h2 { grid-column:1; }
 .rsvp__card form { grid-column:2; grid-row:1 / span 6; margin:0; }
}
@media(max-width:680px) {
 .hero { min-height:760px; min-height:100svh; }
 .hero__content { padding:125px 30px 100px; }
 .hero__guest-name { font-size:48px; line-height:1.4; padding-inline:8px; }
 .hero__arch { inset:85px 20px 55px; }
 .hero__ornament { width:85px; }
 .section-inner,.invitation .section-inner { padding:64px 28px; }
 .body-copy { font-size:17px; }
 .display-title { font-size:31px; }
 .date-lockup { min-height:170px; gap:9px; }
 .date-lockup strong { font-size:76px; }
 .date-lockup span { font-size:10px; }
 .countdown-section__content { padding:45px 18px; }
 .countdown { gap:10px; }
 .countdown > div { min-width:50px; }
 .countdown strong { font-size:39px; }
 .countdown span { font-size:8px; }
 .venue .section-inner { padding:60px 22px; }
 .rsvp { padding:45px 18px; }
 .rsvp__card { padding:35px 22px; }
 .rsvp h2 { font-size:29px; }
 .language-toggle { left:12px; top:12px; }
 .music-toggle { right:12px; top:12px; }
}
@media(prefers-reduced-motion:reduce) { .js [data-reveal]:not(.is-visible) { opacity:1; transform:none; } }

/* A single timeline owns the complete letter-to-page handoff. */
.hero__arch,.hero__ornament,.hero__ornament path,.hero__date,.hero__content > .kicker,.hero__note { animation:none !important; opacity:1; transform:none; stroke-dashoffset:0; }
.hero__event-name { font:400 clamp(36px,4.8vw,58px)/1.4 var(--script); color:var(--wine); margin:10px 0 0; padding:0 10px; overflow-wrap:anywhere; }
.hero__date { font-size:13px; margin-top:20px; }
.hero__content { padding-block:100px; }
.hero__guest-name { margin-top:18px; }
.hero__botanical,.hero__ornament--foot { display:none; pointer-events:none; }
html[data-decoration='botanical'] .hero__arch { border-radius:12px; border-color:#9ba48b66; inset:90px 35px 55px; }
html[data-decoration='botanical'] .hero__botanical { display:block; position:absolute; width:180px; height:90px; fill:#8b967c0d; stroke:#8b967c; stroke-width:1; opacity:.65; bottom:65px; right:40px; transform:rotate(-18deg); }
html[data-decoration='botanical'] .hero__ornament:not(.hero__ornament--foot) { opacity:.3; }
html[data-decoration='botanical'] .botanical-mark { stroke:#8b967c; }
html[data-decoration='botanical'] .paper-section { border-top:1px solid #8b967c22; }
html[data-decoration='ornament'] .hero__arch { border-radius:0; inset:85px 45px 60px; border-color:#b3987077; }
html[data-decoration='ornament'] .hero__ornament--foot { display:block; position:absolute; bottom:72px; left:50%; width:85px; margin:0; transform:translateX(-50%) rotate(180deg); }
html[data-decoration='ornament'] .paper-section { border-top:1px solid #b3987055; }
html[data-decoration='ornament'] .date-lockup { border:3px double #b3987088; }
@media(max-width:680px) {
 .hero__content { padding:115px 30px 115px; }
 .hero__event-name { font-size:37px; line-height:1.45; }
 .hero__guest-name { font-size:46px; }
 html[data-decoration='botanical'] .hero__arch { inset-inline:20px; }
 html[data-decoration='botanical'] .hero__botanical { width:130px; right:28px; bottom:58px; }
 html[data-decoration='ornament'] .hero__arch { inset-inline:24px; }
 html[data-decoration='ornament'] .hero__ornament--foot { width:65px; }
}
/* Full invitation studies. Query-selected; classic remains the default. */
html[data-decoration='embossed'] { --paper:#faf6ef; --paper-deep:#eeebe4; --wine:#795b60; --gold:#b3a38c; --ink:#504744; --muted:#756c65; --study-band:#eee9e2; --study-envelope:#ede5db; --study-flap:#f5efe7; --study-seal:#b59491; }
html[data-decoration='garden'] { --paper:#f8f7ee; --paper-deep:#e6e9dd; --wine:#4f624f; --gold:#8c9a7b; --ink:#404b40; --muted:#697161; --study-band:#e0e5d6; --study-envelope:#e9e4d4; --study-flap:#f3efdf; --study-seal:#78856a; }
html[data-decoration='burgundy'] { --paper:#faf3e7; --paper-deep:#eadbcb; --wine:#713b49; --gold:#af8952; --ink:#4f3b3b; --muted:#79645e; --study-band:#713b49; --study-envelope:#e9d6c1; --study-flap:#f5e7d5; --study-seal:#713b49; }
html:is([data-decoration='embossed'],[data-decoration='garden'],[data-decoration='burgundy']) {
 & body { background:var(--paper-deep); }
 & .envelope-back,& .envelope-pocket__left,& .envelope-pocket__right,& .envelope-pocket__bottom { background:var(--study-envelope); }
 & .envelope-flap,& .envelope-flap__inner { background:var(--study-flap); }
 & .wax-seal { background:var(--study-seal); border-color:var(--study-seal); }
 & .intro__branch { stroke:var(--gold); opacity:.35; }
 & .hero__ornament { stroke:var(--gold); }
 & .hero__arch { border-color:var(--gold); opacity:.5; }
 & .portrait-story { background:var(--paper-deep); }
 & .countdown-section { background:var(--study-band); }
 & .rsvp { background:var(--paper-deep); }
 & .rsvp__card { border-color:var(--gold); }
 & .date-lockup { border-color:var(--gold); }
 & .language-toggle,& .music-toggle { background:var(--paper); border-color:var(--gold); }
 & .language-toggle button[aria-pressed='true'] { background:var(--paper-deep); }
 & .botanical-mark { stroke:var(--gold); }
 & footer { background:var(--paper); color:var(--muted); border-top:1px solid var(--gold); }
 & footer .signature { color:var(--wine); }
 & footer > button { color:var(--muted); border-color:var(--gold); min-height:44px; font-size:10px; }
 & .rsvp__choice:has(input:checked) { background:var(--paper-deep); border-color:var(--wine); }
 & .music-toggle[aria-pressed='true'] { background:var(--wine); color:var(--paper); }
 & .calendar__grid .is-wedding-day { background:var(--wine); }
 & .hero__botanical { display:block; position:absolute; bottom:77px; right:55px; width:190px; height:100px; stroke:var(--gold); fill:none; stroke-width:1; pointer-events:none; }
}
html[data-decoration='embossed'] {
 & .hero__arch { border-radius:0; inset:90px 48px 65px; border-color:#d8d1c5; box-shadow:1px 1px 0 #fff,-1px -1px 0 #e4ded5; }
 & .hero__botanical { width:240px; height:120px; stroke:#e0d9ce; stroke-width:2; filter:drop-shadow(1px 2px 0 #fff) drop-shadow(-1px -1px 0 #c4baaa); opacity:.65; }
 & .hero__ornament { stroke:#c7bbae; filter:drop-shadow(1px 1px 0 white); }
 & .date-lockup { border-color:#d5cabb; box-shadow:inset 1px 1px 2px #ded6cb,1px 1px 0 white; }
 & .rsvp__card { border-color:#dbd2c6; box-shadow:3px 4px 0 #f8f5ed,4px 5px 0 #d5cabb; }
 & .botanical-mark { stroke:#ad9a89; }
}
html[data-decoration='garden'] {
 & .hero__arch { border-radius:48% 48% 0 0 / 28% 28% 0 0; inset:75px 45px 60px; }
 & .hero__botanical { transform:rotate(-18deg); bottom:72px; opacity:.7; }
 & .hero__ornament { opacity:.5; }
 & .date-lockup { background:#e6eadb66; }
 & .countdown-section { border-block:1px solid #a8b19a; }
 & .countdown i { background:#4f624f35; }
 & .rsvp__card { border-color:#a8b19a; border-radius:80px 0 0 0; }
 & .timeline { border-color:#a8b19a; }
}
html[data-decoration='burgundy'] {
 & .hero__arch { inset:82px 45px 65px; border:3px double var(--gold); border-radius:0; }
 & .hero__botanical { display:none; }
 & .hero__ornament--foot { display:block; position:absolute; width:90px; bottom:75px; left:50%; transform:translateX(-50%) rotate(180deg); }
 & .date-lockup { border:3px double var(--gold); }
 & .countdown-section,& .countdown-section .kicker,& .countdown-section h2,& .countdown-section strong,& .countdown-section span { color:#faf3e7; }
 & .countdown-section { border-block:3px double #c9a875; }
 & .countdown i { background:#f8e6ce55; }
 & .rsvp { background:#e5ccc6; }
 & .rsvp__card { border:3px double var(--gold); }
}
@media(max-width:680px) {
 html:is([data-decoration='embossed'],[data-decoration='garden'],[data-decoration='burgundy']) .hero__arch { inset-inline:22px; }
 html:is([data-decoration='embossed'],[data-decoration='garden']) .hero__botanical { width:130px; height:75px; right:32px; bottom:72px; }
 html[data-decoration='burgundy'] .hero__ornament--foot { width:65px; }
 html[data-decoration='garden'] .rsvp__card { border-top-left-radius:45px; }
}

/* Bride-first continuous letter, shared by every palette. */
.hero__bride-name { font:400 clamp(90px,12vw,150px)/1.35 var(--script); color:var(--wine); margin:22px 0 0; padding-inline:12px; }
.hero__event-type { font:400 18px/1.6 var(--serif); letter-spacing:.2em; text-transform:uppercase; color:var(--wine); margin:8px 0 0; }
.hero__date { font:400 18px/1.6 var(--serif); letter-spacing:.2em; color:var(--wine); margin:2px 0 0; opacity:1; }
.invitation__address { font:400 clamp(40px,5vw,62px)/1.5 var(--script); color:var(--wine); overflow-wrap:anywhere; margin:0 auto 24px; }
.invitation .signature { margin-top:30px; }
#date > .section-inner { padding-bottom:30px; }
#date .countdown-section { margin:0 auto 50px; width:calc(100% - 56px); max-width:620px; border-radius:0; }
#date .countdown-section__content { padding:26px 20px; }
#date .countdown-section h2 { font-size:21px; margin:0; }
#date .countdown { margin-top:16px; gap:18px; }
#date .countdown strong { font-size:42px; }
footer { padding:35px 24px 24px; }
footer .signature { font-size:22px; }
footer > button { margin-top:16px; }
@media(max-width:680px) {
 .hero { min-height:650px; min-height:85svh; }
 .hero__bride-name { font-size:94px; }
 .hero__event-type { font-size:15px; }
 .hero__date { font-size:15px; }
 .invitation__address { font-size:42px; }
 #date .countdown { gap:9px; }
 #date .countdown strong { font-size:32px; }
 #date .countdown > div { min-width:40px; }
 #date .countdown-section__content { padding-inline:12px; }
}

/* The real invitation is clipped to a paper window, then expands without fading. */
.sheet-flight-layer { position:fixed; inset:0; z-index:20; width:100%; height:100dvh; pointer-events:none; perspective:1400px; overflow:visible; }
.intro.is-sheet-flight { background:var(--paper); }
.intro.is-sheet-flight .site-frame { pointer-events:none; }
.intro.is-sheet-flight .letter { visibility:hidden; }
.intro.is-sheet-flight .intro__instruction,.intro.is-sheet-flight .intro__skip { z-index:10; }
.sheet-flight-layer .site-frame { opacity:1; visibility:visible; }
.sheet-flight-layer .site-frame {
  /* Keep the live invitation as one opaque sheet above every envelope part.
     This prevents pocket/lid edges from showing through while the sheet rises. */
  z-index:4;
  isolation:isolate;
}
.sheet-flight-layer > .envelope-back { z-index:1; }
.sheet-flight-layer > .envelope-pocket { z-index:3; }
.sheet-flight-layer > .envelope-flap { z-index:5; }
.sheet-flight-layer > .wax-seal { z-index:6; }

.companion-fields { display:grid; gap:18px; }
.companion-fields[hidden] { display:none; }
.companion-fields label { display:grid; gap:8px; }
.companion-fields label > span { font:400 12px/1.5 var(--sans); color:var(--muted); }

/* Shared reading scale: language never changes size or font family. */
:root { --type-label:14px; --type-body:clamp(17px,1.3vw,18px); --type-title:clamp(30px,3.4vw,40px); }
.display-title,.rsvp h2 { font:400 var(--type-title)/1.35 var(--serif); }
.body-copy,.venue__address { font-size:var(--type-body); line-height:1.8; }
.kicker,.intro__eyebrow { font:500 var(--type-label)/1.6 var(--sans); letter-spacing:.1em; }
.soft-button,.dark-button,.intro__instruction .soft-button,.intro__skip { font:500 var(--type-label)/1.5 var(--sans); letter-spacing:.06em; min-height:48px; }
.scroll-cue { font:400 var(--type-label)/1.5 var(--sans); min-height:48px; letter-spacing:.06em; }
.scroll-cue small { font-size:inherit; }
.language-toggle button,.music-toggle { font:500 var(--type-label)/1.4 var(--sans); }
.language-toggle button { min-height:40px; }
.date-lockup span,.calendar__days,.calendar__days span,.time-pill span { font:500 var(--type-label)/1.5 var(--sans); letter-spacing:.04em; }
.calendar__grid > span { font:400 22px/1.5 var(--serif); }
#date .countdown span { font:400 var(--type-label)/1.4 var(--sans); letter-spacing:0; }
.timeline strong { font:500 20px/1.5 var(--serif); }
.timeline time { font:400 25px/1.5 var(--serif); }
.rsvp__card > p:not(.kicker),.rsvp__invite-context { font-size:var(--type-body) !important; line-height:1.7; }
.rsvp form { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; min-width:0; align-content:start; }
.rsvp form > label,.companion-fields label { display:grid; gap:8px; min-width:0; }
.rsvp form > label > span,.companion-fields label > span,.rsvp legend { font:500 var(--type-label)/1.5 var(--sans); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0; }
.rsvp fieldset { margin:0; min-width:0; }
.rsvp legend { margin-bottom:12px; }
.rsvp input[type='text'] { font:400 var(--type-body)/1.5 var(--sans); display:block; min-height:52px; padding:12px 2px; }
.rsvp__choice { font:400 var(--type-body)/1.5 var(--sans); min-height:54px; padding:12px; }
.companion-fields { gap:24px; }
.rsvp .dark-button { position:relative; margin:0; min-height:52px; }
.form-status { font:400 var(--type-label)/1.6 var(--sans); margin:0; min-height:0; }
.form-status:empty { display:none; }
footer > span,footer > button,html:is([data-decoration='embossed'],[data-decoration='garden'],[data-decoration='burgundy']) footer > button { font-size:var(--type-label); line-height:1.6; letter-spacing:.06em; }
.venue-map__credit { font-size:12px; line-height:1.5; }
.venue-map__fallback { font-size:var(--type-label); }
section[id] { scroll-margin-top:78px; }
.paper-side-ornament { position:absolute; width:42px; height:180px; top:50%; transform:translateY(-50%); fill:none; stroke:var(--gold); stroke-width:2; opacity:.8; pointer-events:none; }
.paper-side-ornament--left { left:22px; }
.paper-side-ornament--right { right:22px; transform:translateY(-50%) scaleX(-1); }
html[data-texture='paper'] :is(.hero,.paper-section,.rsvp__card,.envelope-back,.envelope-flap,.envelope-pocket span) { background-image:url('assets/paper-grain.svg'); background-size:180px 180px; }
@media(max-width:680px) {
 .rsvp__card { padding:32px 20px; }
 .paper-side-ornament { width:25px; height:130px; }
 .paper-side-ornament--left { left:6px; }
 .paper-side-ornament--right { right:6px; }
 #date .countdown { gap:8px; }
 #date .countdown > div { min-width:46px; }
 .hero__bride-name { font-size:clamp(76px,24vw,94px); }
 .invitation__address { font-size:clamp(36px,10.7vw,42px); }
}

/* Two-family invitation: handwritten names/greeting, serif sections and copy. */
:root { --sans:var(--serif); }
/* Two text inks; paper-coloured text remains on filled controls. */
html[data-decoration] { --ink:#493e39; --wine:#774852; --muted:var(--ink); }
.kicker,.calendar__days,.calendar__days span,.language-toggle button,.rsvp__choice,.rsvp input,.venue-map__fallback { color:var(--ink); }
.rsvp input::placeholder { color:var(--ink); opacity:1; }
.form-status,.form-status.is-success,.form-status.is-error { color:var(--wine); }
#invitation .body-copy { max-width:620px; font:400 clamp(18px,1.8vw,20px)/1.85 var(--serif); color:var(--ink); letter-spacing:0; overflow-wrap:break-word; }
#invitation .body-copy strong { font-weight:400; }
#invitation .signature { font:400 18px/1.7 var(--serif); color:var(--ink); margin-top:28px; }

/* Read the date and arrival details as one invitation block. */
.event-date-summary { width:min(100%,480px); margin:24px auto 30px; }
.event-date-summary__date { margin:0; color:var(--wine); font:400 clamp(27px,3.5vw,40px)/1.35 var(--serif); }
.event-date-summary__weekday { margin:8px 0 24px; font:400 17px/1.5 var(--sans); text-transform:capitalize; color:var(--muted); }
.event-date-summary__times { display:grid; grid-template-columns:1fr 1fr; margin:0; padding:22px 0; border-block:1px solid color-mix(in srgb,var(--gold) 40%,transparent); }
.event-date-summary__times > div { display:flex; flex-direction:column; gap:10px; padding:0 16px; }
.event-date-summary__times > div + div { border-left:1px solid color-mix(in srgb,var(--gold) 40%,transparent); }
.event-date-summary__times dt { font:400 16px/1.5 var(--sans); }
.event-date-summary__times dd { margin:0; margin-top:auto; color:var(--wine); font:400 30px/1.2 var(--serif); font-variant-numeric:tabular-nums; }
.calendar__heading { margin:0 0 22px; color:var(--ink); font:400 22px/1.4 var(--serif); text-transform:capitalize; }
.calendar-download { margin-top:28px; }
.venue .venue__name { margin-bottom:8px; font:400 clamp(34px,4.5vw,52px)/1.25 var(--serif); overflow-wrap:normal; }
.venue__type { margin:0 0 24px; font:400 18px/1.5 var(--sans); color:var(--ink); }
.venue .venue__address { margin-top:0; font:400 18px/1.7 var(--sans); color:var(--ink); }
@media(max-width:380px) {
 .event-date-summary__times > div { padding:0 8px; }
 .event-date-summary__times dt { font-size:15px; }
 .venue .venue__name { font-size:32px; }
}

/* Personal letter rhythm and consistent RSVP type hierarchy. */
#invitation .signature,.letter-interlude p { white-space:pre-line; }
.letter-interlude { text-align:center; padding:10px 24px 38px; background:var(--paper); }
.letter-interlude p { margin:20px auto 0; max-width:540px; font:italic 20px/1.8 var(--serif); color:var(--wine); }
.chapter-ornament { display:flex; justify-content:center; padding:28px 24px; color:var(--gold); background:var(--paper); }
.chapter-ornament svg { width:240px; max-width:70%; height:auto; }
.chapter-ornament #horn { pointer-events:none; }
.rsvp h2 { font:400 clamp(32px,3.2vw,36px)/1.35 var(--serif); color:var(--wine); }
#inviteContext { display:none !important; }
.rsvp__card > p,.rsvp label,.rsvp legend,.rsvp input,.rsvp textarea,.rsvp__choice { color:var(--ink); }
.rsvp form label > span,.rsvp legend { font:400 18px/1.5 var(--serif); letter-spacing:0; text-transform:none; }
.rsvp input,.rsvp textarea,.rsvp__choice,.rsvp__card > p:not(.kicker) { font:400 18px/1.7 var(--serif); }
.rsvp-message { display:grid; gap:8px; }
.rsvp textarea { width:100%; min-height:120px; resize:vertical; padding:12px; border:1px solid var(--gold); border-radius:4px; background:var(--paper); box-sizing:border-box; }
.rsvp textarea:focus-visible { outline:2px solid var(--wine); outline-offset:3px; }
.rsvp-message small,.rsvp .form-status { font:400 16px/1.6 var(--serif); color:var(--ink); letter-spacing:0; }
.rsvp .dark-button { font:400 16px/1.5 var(--serif); text-transform:none; letter-spacing:0; }
@media(max-width:680px) { .chapter-ornament { padding:20px; } .chapter-ornament svg { width:180px; } .letter-interlude p { font-size:18px; } }


/* Compact mobile hero: keep the name/event lockup high, readable, and on one
   restrained ink colour so the sky remains visually open. */
@media (max-width:680px) {
  .hero__content {
    padding-top: 64px;
    padding-bottom: 90px;
    transform: translateY(-140px);
  }
  .hero__bride-name {
    font-size: clamp(72px, 22vw, 104px);
    line-height: 1.15;
    margin-top: 8px;
    color: var(--wine);
  }
  .hero__event-name {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.3;
    margin-top: 4px;
    color: var(--wine);
  }
  .hero__date { color: var(--wine); }
}


/* Desktop hero lockup: keep the bride/event pair higher in the open sky while
   the invitation frame remains full-width and proportionally scaled. */
@media (min-width:681px) {
  .hero__content {
    transform: translateY(-200px);
  }
  .hero__bride-name,
  .hero__event-name,
  .hero__date {
    color: var(--wine);
  }
}


/* Unified steppe paper treatment and responsive front-page artwork. */
.hero__image {
  display: block !important;
  position: absolute;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: var(--main-art-width);
  height: auto;
  max-width: 100%;
  opacity: 1;
  filter: none !important;
  mix-blend-mode: normal;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__content,
.hero__arch,
.hero__ornament,
.hero__side-ornament { z-index: 1; }
.paper-section {
  border-top: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  background: var(--paper);
}
.invitation__address {
  color: var(--wine);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.3;
  text-wrap: balance;
}
@media (max-width:680px) {
  .invitation__address {
    max-width: 22ch;
    margin-inline: auto;
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.35;
  }
}


/* Shared artwork scale: the hero and every ornament use one responsive width. */
:root {
  --main-art-width: min(720px, 92vw);
}
.chapter-ornament__image {
  width: var(--main-art-width);
  max-width: 100%;
  height: auto;
}
.footer__ornament img,
.footer__ornament {
  width: var(--main-art-width);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
@media (min-width:681px) {
  .chapter-ornament__image { width: var(--main-art-width); }
  .footer__ornament img { width: var(--main-art-width); }
}


/* Personalized greeting stays just below the bride-name scale, then contracts
   smoothly as the available width narrows. */
.invitation__address:has(.invitation__address-prefix) {
  font-size: clamp(25px, 4.4vw, 70px);
}
@media (max-width:680px) {
  .invitation__address:has(.invitation__address-prefix) {
    font-size: clamp(20px, 5.5vw, 32px);
    max-width: 19ch;
  }
}


/* Two-font system: the ceremonial script is reserved for the bride name;
   every other readable/UI element shares the serif family. */
:root { --sans: var(--serif); }
.invitation__address:has(.invitation__address-prefix) {
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -.01em;
}
.invitation__address-prefix,
.invitation__address-names { white-space: nowrap; }
@media (max-width:680px) {
  .invitation__address:has(.invitation__address-prefix) {
    font-size: clamp(24px, 7vw, 36px);
    max-width: 100%;
  }
  .invitation__address-names { white-space: normal; }
}


/* Greeting hierarchy: clearly larger than body copy, but still subordinate to
   the ceremonial bride name. */
.invitation__address:has(.invitation__address-prefix) {
  font-size: clamp(34px, 5vw, 62px);
}
@media (max-width:680px) {
  .invitation__address:has(.invitation__address-prefix) {
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1.18;
  }
}


/* Editorial breathing room: keep each section readable without changing its hierarchy. */
.paper-section .section-inner {
  padding-block: clamp(58px, 8vw, 86px);
}
.date-section .section-inner {
  padding-top: clamp(24px, 4vw, 42px);
}
.event-date-summary {
  margin-top: clamp(34px, 5vw, 52px);
  margin-bottom: clamp(38px, 5vw, 56px);
}
.venue .section-inner {
  padding-bottom: clamp(68px, 9vw, 96px);
}
.venue__address {
  margin-bottom: clamp(28px, 4vw, 42px);
}
.venue-map {
  margin-top: clamp(30px, 4vw, 46px);
}
.rsvp__card {
  padding-block: clamp(42px, 6vw, 64px);
}
.rsvp__card > h2,
.rsvp__card > p:not(.kicker) {
  margin-bottom: clamp(22px, 3vw, 34px);
}
footer {
  padding-top: clamp(58px, 8vw, 88px);
  padding-bottom: clamp(42px, 6vw, 64px);
}
@media (max-width: 680px) {
  .paper-section .section-inner { padding-block: 46px; }
  .date-section .section-inner { padding-top: 20px; }
  .event-date-summary { margin-top: 28px; margin-bottom: 38px; }
  .venue .section-inner { padding-bottom: 58px; }
  .venue__address { margin-bottom: 26px; }
  .venue-map { margin-top: 26px; }
  .rsvp__card { padding-block: 38px; }
  footer { padding-top: 54px; padding-bottom: 46px; }
}


/* Date composition trial: one ceremonial lockup instead of stacked widgets. */
.date-section__lead {
  padding-bottom: 28px;
}
.date-section__lead p {
  max-width: 310px;
  margin-inline: auto;
  font-size: clamp(21px, 2.8vw, 34px);
}
.event-date-summary {
  width: min(100%, 360px);
  margin: 18px auto 38px;
  text-align: center;
}
.event-date-summary__date {
  display: grid;
  justify-items: center;
  margin: 0;
  color: var(--wine);
}
.event-date-summary__day {
  font: 400 clamp(72px, 20vw, 92px)/.82 var(--serif);
}
.event-date-summary__month {
  margin-top: 14px;
  font: 400 15px/1.2 var(--serif);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.event-date-summary__weekday {
  margin: 9px 0 0;
  color: var(--muted);
  font: 400 14px/1.5 var(--serif);
  letter-spacing: .05em;
}
.event-date-summary__times {
  position: relative;
  display: block;
  width: 210px;
  margin: 34px auto 0;
  padding: 30px 0 0;
  border: 0;
}
.event-date-summary__times::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 1px;
  content: "";
  background: color-mix(in srgb, var(--gold) 50%, transparent);
  transform: translateX(-50%);
}
.event-date-summary__times > div {
  display: block;
  padding: 0;
}
.event-date-summary__times dt {
  color: var(--ink);
  font: 400 16px/1.5 var(--serif);
}
.event-date-summary__times dd {
  margin: 8px 0 0;
  color: var(--wine);
  font: 400 clamp(32px, 5vw, 38px)/1 var(--serif);
}
.calendar {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 28px 16px 22px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  background: transparent;
}
.calendar__heading {
  margin: 0 0 28px;
  color: var(--wine);
  font: 400 18px/1.4 var(--serif);
  letter-spacing: .03em;
}
.calendar__days {
  padding-bottom: 12px;
  border: 0;
  font-size: 11px;
  letter-spacing: .08em;
}
.calendar__grid { row-gap: 9px; padding-top: 12px; }
.calendar__grid > span { font-size: 17px; }
.calendar__grid .is-event::before {
  width: 38px;
  height: 38px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--wine) 9%, transparent);
}
@media (max-width:680px) {
  .date-section__lead { padding-bottom: 22px; }
  .date-section__lead p { font-size: clamp(20px, 6.2vw, 28px); }
  .event-date-summary { margin-top: 12px; margin-bottom: 30px; }
  .event-date-summary__month { font-size: 13px; }
  .event-date-summary__weekday { font-size: 13px; }
  .event-date-summary__times { margin-top: 28px; }
  .calendar { padding-top: 24px; }
}


/* RSVP paper-form trial: quieter controls and a symmetrical ceremonial frame. */
.rsvp__card {
  padding: 44px 26px 36px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
}
.rsvp__card::before {
  inset: 5px;
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
}
.rsvp h2 { margin-bottom: 0; }
.rsvp__card > p:not(.kicker) {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}
.rsvp form { margin-top: 34px; }
.rsvp form > label > span,
.rsvp legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
}
.rsvp input[type="text"] {
  min-height: 48px;
  padding: 8px 2px 9px;
  border-bottom-color: color-mix(in srgb, var(--wine) 45%, transparent);
  font-size: 18px;
}
.rsvp input[type="text"]:focus {
  outline: 0;
  border-bottom-color: var(--wine);
  box-shadow: 0 1px 0 var(--wine);
}
.rsvp fieldset { margin: 28px 0 30px; }
.rsvp__choice-list { gap: 0; }
.rsvp__choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  line-height: 1.45;
}
.rsvp__choice:first-child { border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.rsvp__choice:hover { border-color: color-mix(in srgb, var(--gold) 42%, transparent); transform: none; }
.rsvp__choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--wine);
  background: transparent;
  box-shadow: none;
}
.rsvp__choice:has(input:checked) span { font-weight: 500; }
.rsvp__choice input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid color-mix(in srgb, var(--wine) 60%, transparent);
  border-radius: 50%;
  background: transparent;
}
.rsvp__choice input[type="radio"]:checked { border: 5px solid var(--wine); }
.rsvp .dark-button {
  min-height: 52px;
  border-radius: 3px;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}
.rsvp .form-status {
  max-width: 240px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  opacity: .78;
}
@media (max-width:680px) {
  .rsvp__card { padding: 38px 22px 32px; }
  .rsvp__card > p:not(.kicker) { font-size: 14px; }
  .rsvp__choice { font-size: 16px; }
}

.hero__arch { display: none !important; }

/* Recovery checkpoint: the artwork's sampled ivory is the single page canvas. */
html,
body,
.site-frame,
main,
main > section,
main > .chapter-ornament,
main > footer {
  background-color: var(--paper) !important;
}

/* Hero artwork controls: change these two values to tune the gap and width.
   The image stays in normal flow, so it is never cropped or used as a backdrop. */
:root {
  --hero-art-gap: clamp(28px, 4vw, 64px);
  --hero-art-width: min(720px, 92vw);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
}

.hero__content {
  order: 1;
  transform: none !important;
  position: relative;
  top: clamp(18px, 2.5vw, 34px);
}

.hero__image {
  order: 2;
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: var(--hero-art-width);
  height: auto;
  margin: var(--hero-art-gap) auto 0;
  transform: none;
}

/* Final visual tuning for the recovered paper composition. */
.date-section__lead p {
  color: var(--wine);
  text-align: center;
  font-family: var(--script);
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: 0;
  line-height: 1.1;
}

.venue-map__credit {
  background: var(--paper) !important;
}

footer .signature {
  font-size: 18px !important;
  line-height: 1.45;
}

footer .footer__hosts {
  display: grid;
  gap: 4px;
  margin-top: clamp(36px, 5vw, 56px) !important;
  margin-bottom: clamp(22px, 3vw, 34px);
}

footer .footer__hosts > span {
  font-size: 18px !important;
  line-height: 1.45;
}

footer .footer__hosts-names {
  font-size: 18px !important;
}

footer .footer__ornament {
  margin-top: 22px;
  margin-bottom: 22px;
}

.hero__bride-name {
  font-size: clamp(108px, 14vw, 180px);
}

.hero__event-type {
  font-size: clamp(18px, 2.1vw, 22px);
}

/* Quiet the page margins around the information sections.  The side line
   ornaments compete with the centered composition, so the sections breathe
   through whitespace instead of additional edge decoration. */
.paper-side-ornament {
  display: none !important;
}

#date > .section-inner {
  padding-top: clamp(56px, 8vw, 108px);
  padding-bottom: clamp(78px, 10vw, 132px);
}

#date .countdown-section {
  /* Keep the countdown on the same paper instead of a separate tinted card. */
  background: transparent;
  margin-top: clamp(54px, 7vw, 92px);
  margin-bottom: clamp(64px, 8vw, 108px);
}

.venue .section-inner {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(82px, 10vw, 136px);
}

.venue-map {
  margin-top: clamp(42px, 5vw, 72px);
  margin-bottom: clamp(34px, 4vw, 56px);
}

.rsvp {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(86px, 11vw, 148px);
}

.rsvp__card {
  margin-block: clamp(18px, 3vw, 36px);
}

.invitation__address-prefix,
.invitation__address-names {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}
.invitation__address-prefix { margin-inline-end: .3em; }

.invitation__address:has(.invitation__address-prefix) {
  max-width: min(100%, 26ch);
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.18;
}

footer > button {
  min-height: 36px;
  margin-top: 12px;
  font-size: 10px !important;
  line-height: 1.35;
}

/* Keep mobile display type ceremonial without crowding the artwork. */
@media (max-width:680px) {
  .hero {
    min-height: 0 !important;
  }

  .hero__content {
    padding: 132px 30px 0;
    top: clamp(18px, 5vw, 28px);
  }

  .hero__bride-name {
    font-size: clamp(82px, 26vw, 106px);
  }

  .hero__event-type {
    font-size: 17px;
  }

  .invitation__address:has(.invitation__address-prefix) {
    /* The greeting is prominent, but remains just below the bride lockup. */
    max-width: min(100%, 18ch);
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.2;
  }

  .date-section__lead p {
    font-size: clamp(28px, 8.8vw, 42px);
    line-height: 1.1;
  }

  #invitation .body-copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .display-title,
  .rsvp h2 {
    font-size: 28px;
  }

  .venue .venue__name {
    font-size: 30px;
  }

  .venue__type,
  .venue .venue__address {
    font-size: 16px;
  }
}
