/* ==================== FOUNDATION ==================== */

:root {
  /* Initial values match config.js so the palette is stable before scripts run. */
  --ivory: #FFFDF9;
  --plum: #244533;
  --lavender: #842630;
  --mauve: #AE3543;
  --lilac: #E5EFE7;
  --champagne: #D4E6D7;
  --ruby: #9F2E3C;
  --marigold: #285C43;
  --forest: #244533;
  --rose: #842630;
  --sage: #E5EFE7;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-title: "Bodoni Moda", "Times New Roman", serif;
  --font-names: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Geeza Pro", "Traditional Arabic", serif;
    --font-prose: "Cormorant Garamond", Georgia, serif;

  --credit-banner-height: 34px;
  --viewport-height: 100vh;
  --hero-height: var(--viewport-height);
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--lavender);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--lavender);
  color: var(--plum);
}

body.intro-locked {
  height: var(--viewport-height);
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button,
a,
.hero {
  --hero-reveal-start: 4s;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

main {
  overflow: clip;
  background: var(--ivory);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 68px 0;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--mauve);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 680px;
  text-align: center;
}

.section-heading h2,
.welcome-copy h2,
.venue-inner h2,
.dress-copy h2,
.gift-copy h2,
.closing-section h2 {
  margin: 13px 0 18px;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  color: var(--plum);
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.06;
}

.ornament {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 0;
  width: 108px;
}

.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 43px;
  background: color-mix(
    in srgb,
    var(--champagne) 75%,
    transparent
    );
}

.ornament i {
  border: 1px solid var(--champagne);
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.75,.25,1), transform 0.9s cubic-bezier(.2,.75,.25,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==================== HERO / OPENING ==================== */

.hero {
  align-items: center;
  display: flex;
  min-height: var(--hero-height);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--lavender);
  color: var(--ivory);
  
    -webkit-tap-highlight-color: transparent;
}

.hero.is-closed {
  height: var(--hero-height);
  cursor: pointer;
}

/* Hidden invitation text must not stretch the unopened video cover. */
.hero.is-closed .hero-content {
  position: absolute;
}

.hero-video, .hero-glow {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-video {
  transform: none;
  transition: filter 1.8s ease;
  z-index: -3;
  filter: none;
}

.is-open .hero-video {
  transform: none;
  filter: none;
}

.hero-glow {
  z-index: -2;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.hero-geometry {
  inset: 21px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-geometry::before, .hero-geometry::after {
  border-style: solid;
  content: "";
  inset: 0;
  position: absolute;
  border-color: color-mix(
    in srgb,
    var(--champagne) 32%,
    transparent
    );
}

.hero-geometry::before {
  border-width: 1px;
  clip-path: polygon(0 0, 35% 0, 35% 1px, 65% 1px, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% calc(100% - 1px), 35% calc(100% - 1px), 35% 100%, 0 100%);
}

.hero-geometry::after {
  border-width: 0 1px;
  inset: 12px 0;
}

.hero-geometry i {
  border: 1px solid color-mix(in srgb, var(--ivory) 23%, transparent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  height: 48%;
  left: 50%;
  max-width: 690px;
  position: absolute;
  top: 4%;
  transform: translateX(-50%);
  width: 72%;
  border-color: color-mix(
    in srgb,
    var(--champagne) 26%,
    transparent
    );
}

.hero-geometry i + i {
  height: 44%;
  opacity: .45;
  top: 8%;
  width: 64%;
}

.opening-mark {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 19px;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: absolute;
  transition: opacity .7s ease, transform .9s ease, visibility .7s;
  visibility: visible;
  z-index: 3;
  color: var(--ivory);
}

.is-open .opening-mark {
  opacity: 0;
  transform: scale(.96);
  visibility: hidden;
}

.opening-mono {
  align-items: center;
  display: flex;
  gap: 18px;
  line-height: 1;
  color: var(--ivory);
  font-family: var(--font-names);
  font-size: clamp(3.8rem, 12vw, 6rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

.opening-mono i {
  height: 52px;
  transform: rotate(28deg);
  width: 1px;
  background: color-mix(
    in srgb,
    var(--champagne) 70%,
    transparent
    );
}

.opening-title {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(90vw, 620px);
  color: var(--rose);
  font-family: "Great Vibes", "Snell Roundhand", cursive;
  font-size: clamp(3.9rem, 11vw, 6.75rem);
  font-weight: 400;
  line-height: .94;
  top: 50px;
  text-align: center;
}


.opening-title span {
  display: block;
  white-space: nowrap;
}

.opening-label {
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--champagne);
  display: none;
}

.opening-ripple {
  border: 1px solid color-mix(in srgb, var(--ivory) 52%, transparent);
  border-radius: 50%;
  height: 31px;
  margin-top: 6px;
  position: relative;
  width: 31px;
  border-color: color-mix(
    in srgb,
    var(--champagne) 80%,
    transparent
    );
}

.opening-ripple::before, .opening-ripple::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 35%, transparent);
  border-radius: inherit;
  content: "";
  inset: -1px;
  position: absolute;
  animation: pulse-ring 2.4s ease-out infinite;
  border-color: color-mix(
    in srgb,
    var(--champagne) 46%,
    transparent
    );
}

.opening-ripple::after {
  animation-delay: .8s;
}

.music-toggle {
  align-items: center;
  backdrop-filter: blur(7px);
  border: 1px solid color-mix(in srgb, var(--ivory) 42%, transparent);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font-size: .61rem;
  font-weight: 650;
  gap: 0;
  letter-spacing: .16em;
  padding: 10px 12px;
  position: fixed;
  right: 17px;
  text-transform: uppercase;
  top: 17px;
  transition: background .25s ease, border-color .25s ease;
  z-index: 50;
  background: color-mix(
    in srgb,
    var(--plum) 68%,
    transparent
    );
  border-color: color-mix(
    in srgb,
    var(--champagne) 55%,
    transparent
    );
  color: var(--ivory);
}

.music-toggle:hover, .music-toggle:focus-visible {
  outline: none;
  background: color-mix(
    in srgb,
    var(--plum) 92%,
    transparent
    );
  border-color: var(--champagne);
}

.music-bars {
  align-items: center;
  display: flex;
  gap: 2px;
  height: 15px;
}

.music-bars i {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 5px;
  opacity: .8;
  width: 1px;
}

.music-toggle.is-playing .music-bars i {
  animation: music-bar .8s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-bars i:nth-child(2) {
  animation-delay: -.45s;
}

.music-toggle.is-playing .music-bars i:nth-child(3) {
  animation-delay: -.25s;
}

.hero-content {
  margin: auto;
  max-width: 600px;
  padding: max(env(safe-area-inset-top, 0px), clamp(150px, calc(var(--viewport-height) * .2), 210px))
    34px clamp(115px, calc(var(--viewport-height) * .16), 170px);
  text-align: center;
  width: 100%;
  color: var(--lavender);
  text-shadow:
    0 1px 0 color-mix(in srgb, var(--ivory) 92%, transparent),
    0 0 12px color-mix(in srgb, var(--ivory) 72%, transparent);
  opacity: 0;
  transform: translateY(28px);
  visibility: hidden;
  pointer-events: none;
  line-height: 1.45;
}



.hero-invitation:empty {
  display: none;
}

.hero-welcome {
  font-size: .47rem;
  font-weight: 700;
  white-space: pre-line;
  letter-spacing: .14em;
  margin: 0 0 15px;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: .92;

}

.couple-names {
  align-items: center;
  display: grid;
  gap: clamp(6px, calc(var(--viewport-height) * .012), 10px);
  grid-template-columns: 1fr;
}

.couple-names [id$="Name"] {
  margin: 0 0 5px;
  text-wrap: balance;
  font-family: var(--font-names);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .01em;
  font-size: clamp(1.9rem, 5.4vw, 3.25rem);
  line-height: .92;
}

.couple-names [id$="Name"] span {
  display: block;
  font-size: 1.06em;
  font-family: inherit;
}

.couple-names p {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .17em;
  margin: 0 0 3px;
  opacity: .86;
  text-transform: uppercase;
}

.couple-names small {
  display: block;
  white-space: pre-line;
  font-family: var(--font-display);
  font-size: .72rem;
  font-style: italic;
  line-height: 1.25;
}

.name-ampersand {
  line-height: 1;
  color: color-mix(in srgb, var(--champagne) 62%, var(--plum));
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
}

.hero-invitation {
  font-family: var(--font-display);
  font-size: .92rem;
  line-height: 1.4;
  margin: 20px auto 6px;
  max-width: 500px;
}

.hero-closing {
  font-size: .47rem;
  font-weight: 700;
  white-space: pre-line;
  letter-spacing: .14em;
  line-height: 1.45;
  margin: clamp(10px, calc(var(--viewport-height) * .016), 16px) 0 0;
  opacity: .92;
  text-transform: uppercase;
}

.scroll-cue {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: clamp(12px, calc(var(--viewport-height) * .02), 22px) auto 0;
  text-decoration: none;
  width: fit-content;
  color: var(--lavender);
}

.scroll-cue span {
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.scroll-cue i {
  height: 27px;
  overflow: hidden;
  position: relative;
  width: 1px;
  background: color-mix(
    in srgb,
    var(--champagne) 55%,
    transparent
    );
}

.scroll-cue i::after {
  animation: scroll-line 2s ease-in-out infinite;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: -10px;
  width: 1px;
  background: var(--champagne);
}

/* ==================== WELCOME ==================== */

.welcome-section {
  background: var(--ivory);
}

.welcome-section::before, .welcome-section::after {
  border: 1px solid color-mix(in srgb, var(--mauve) 18%, transparent);
  border-radius: 50%;
  content: "";
  height: 230px;
  left: -160px;
  position: absolute;
  top: 20px;
  width: 230px;
  border-color: color-mix(
    in srgb,
    var(--champagne) 24%,
    transparent
    );
}

.welcome-section::after {
  height: 190px;
  left: auto;
  right: -130px;
  top: auto;
  bottom: 34px;
  width: 190px;
}

.welcome-shell {
  align-items: center;
  display: grid;
  gap: 52px;
  max-width: 350px;
}

.arch-emblem {
  align-items: center;
  aspect-ratio: .78;
  border: 1px solid color-mix(in srgb, var(--plum) 20%, transparent);
  border-radius: 50% 50% 5px 5px / 34% 34% 5px 5px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 285px;
  position: relative;
  width: 76%;
  background: color-mix(
    in srgb,
    var(--lilac) 72%,
    var(--ivory)
  );
}

.arch-emblem::before {
  border: 1px solid color-mix(in srgb, var(--champagne) 82%, transparent);
  border-radius: inherit;
  content: "";
  inset: 12px;
  position: absolute;
}

.arch-emblem::after {
  content: "";
  height: 1px;
  position: absolute;
  transform: rotate(-45deg);
  width: 53%;
  background: color-mix(
    in srgb,
    var(--plum) 26%,
    transparent
    );
}

.arch-emblem span {
  font-family: var(--font-arabic);
  font-size: 4.4rem;
  position: relative;
  z-index: 2;
  color: var(--plum);
}

.arch-emblem i {
  border: 1px solid color-mix(in srgb, var(--champagne) 68%, transparent);
  height: 48px;
  position: absolute;
  transform: rotate(45deg);
  width: 48px;
}

.welcome-copy {
  text-align: center;
}

.welcome-copy p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 320px;
  color: color-mix(
    in srgb,
    var(--plum) 78%,
    var(--ivory)
    );
}

.signature, .closing-names {
  color: var(--mauve);
  margin-top: 26px;
  font-family: var(--font-names);
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.1;
}

.signature span, .closing-names span {
  margin: 0 5px;
  font-family: var(--font-display);
  font-size: .6em;
  font-style: italic;
}

.signature span {
  color: var(--champagne);
}

.closing-names span {
  color: var(--champagne);
}

/* ==================== DATE REVEAL / SCRATCH ==================== */

.scratch-section {
  background: color-mix(
    in srgb,
    var(--lilac) 56%,
    var(--ivory)
  );
}

.scratch-section::before {
  background-size: 42px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  position: absolute;
  background-image: linear-gradient(
    30deg,
    transparent 49.5%,
    color-mix(
    in srgb,
    var(--plum) 4%,
    transparent
    ) 50%,
    transparent 50.5%
    ),
    linear-gradient(
    150deg,
    transparent 49.5%,
    color-mix(
    in srgb,
    var(--plum) 4%,
    transparent
    ) 50%,
    transparent 50.5%
    );
}

.scratch-wrap {
  aspect-ratio: 1.6;
  border: 1px solid color-mix(in srgb, var(--champagne) 45%, transparent);
  margin: 0 auto;
  max-width: 650px;
  overflow: hidden;
  position: relative;
  background: var(--ivory);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--plum) 12%, transparent);
  z-index: 1;
  width: 100%;
}

.date-reveal {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 48px 25px 28px;
  position: absolute;
  text-align: center;
  color: var(--plum);
}

.date-reveal::before {
  border: 1px solid color-mix(in srgb, var(--mauve) 18%, transparent);
  border-radius: 50% 50% 4px 4px / 33% 33% 4px 4px;
  content: "";
  inset: 24px 21%;
  position: absolute;
  border-color: color-mix(
    in srgb,
    var(--champagne) 46%,
    transparent
    );
}

.date-reveal > * {
  position: relative;
  z-index: 1;
}


.date-kicker {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .28em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--mauve);
  font-family: var(--font-body);
  line-height: 1;
  margin: 0 0 5px;
}

.date-reveal strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--plum);
}

.scratch-canvas {
  cursor: crosshair;
  height: 100%;
  inset: 0;
  position: absolute;
  touch-action: none;
  transition: opacity .7s ease, transform .8s ease;
  width: 100%;
  z-index: 3;
}

.scratch-canvas:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}

.scratch-wrap.is-revealed {
  animation: date-celebrate .85s cubic-bezier(.2,.8,.2,1);
}

.scratch-note {
  font-family: var(--font-display);
  font-size: .9rem;
  font-style: italic;
  margin: 22px auto 0;
  text-align: center;
  color: var(--lavender);
  display: none;
}

.petal-shower {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

.petal-shower i {
  display: block;
  left: 0;
  position: absolute;
  top: 0;
  box-shadow: 0 2px 4px
    color-mix(
    in srgb,
    var(--plum) 12%,
    transparent
    );
  transform-origin: center;
  will-change: transform, opacity;
}

/* ==================== GALLERY ==================== */

.gallery-section {
  background: var(--ivory);
}

.gallery-frame {
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  max-height: 720px;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  user-select: none;
  background: var(--lilac);
  box-shadow: 0 30px 80px
    color-mix(
    in srgb,
    var(--plum) 12%,
    transparent
    );
    touch-action: pan-y;
cursor: pointer;
}

.gallery-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.035);
  transition: opacity 1.1s ease, transform 5.8s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.gallery-slide img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  filter: saturate(.88)
    contrast(1.02)
    sepia(.04);
}

.gallery-slide::after {
  content: "";
  inset: 0;
  position: absolute;
  background: linear-gradient(
    to top,
    color-mix(
    in srgb,
    var(--plum) 78%,
    transparent
    ),
    transparent 42%
    );
}

.gallery-slide figcaption {
  bottom: 29px;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-style: italic;
  left: 29px;
  letter-spacing: .01em;
  position: absolute;
  z-index: 2;
  color: var(--ivory);
}

.gallery-corner {
  border-style: solid;
  height: 36px;
  position: absolute;
  width: 36px;
  z-index: 3;
  border-color: color-mix(
    in srgb,
    var(--champagne) 75%,
    transparent
    );
}

.gallery-corner-a {
  border-width: 1px 0 0 1px;
  left: 17px;
  top: 17px;
}

.gallery-corner-b {
  border-width: 0 1px 1px 0;
  bottom: 17px;
  right: 17px;
}

.gallery-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 24px;
}

.gallery-dots button {
  background: transparent;
  border: 1px solid var(--mauve);
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: background .25s, transform .25s;
  width: 7px;
}

.gallery-dots button.is-active {
  transform: scale(1.35);
  background: var(--mauve);
}

/* ==================== COUNTDOWN ==================== */

.countdown-section {
  background: var(--lavender);
  color: var(--ivory);
}

.countdown-section::before, .countdown-section::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 11%, transparent);
  content: "";
  height: 380px;
  position: absolute;
  transform: rotate(45deg);
  width: 380px;
  border-color: color-mix(
    in srgb,
    var(--champagne) 14%,
    transparent
    );
}

.countdown-section::before {
  left: -260px;
  top: -150px;
}

.countdown-section::after {
  bottom: -240px;
  right: -240px;
}

.countdown-section .eyebrow {
  color: var(--champagne);
}

.countdown-section .section-heading h2 {
  color: var(--ivory);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 15px auto 0;
  max-width: 850px;
}

.countdown div {
  padding: 22px 10px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 12vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
  color: var(--ivory);
}

.countdown span {
  display: block;
  font-size: .58rem;
  font-weight: 650;
  letter-spacing: .22em;
  margin-top: 7px;
  opacity: .68;
  text-transform: uppercase;
  color: color-mix(
    in srgb,
    var(--champagne) 72%,
    var(--ivory)
    );
}

/* ==================== PROGRAM ==================== */

.program-section {
  background: color-mix(
    in srgb,
    var(--lilac) 32%,
    var(--ivory)
    );
}

.timeline {
  margin: 0 auto;
  max-width: 830px;
  position: relative;
}

.timeline::before {
  bottom: 28px;
  content: "";
  left: 20px;
  position: absolute;
  top: 28px;
  width: 1px;
  background: color-mix(
    in srgb,
    var(--champagne) 58%,
    transparent
    );
}

.timeline article {
  align-items: start;
  display: grid;
  gap: 8px 17px;
  grid-template-columns: 40px 72px 1fr;
  padding: 22px 0;
  position: relative;
}

.timeline-index {
  align-items: center;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  display: flex;
  font-size: .49rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  letter-spacing: .1em;
  width: 40px;
  z-index: 1;
  background: color-mix(
    in srgb,
    var(--lilac) 20%,
    var(--ivory)
    );
  color: var(--mauve);
}

.timeline time {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding-top: 9px;
  text-transform: uppercase;
  color: var(--mauve);
}

.timeline h3, .event-list h3, .rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  margin: 3px 0 8px;
  color: var(--plum);
}

.timeline p {
  font-family: var(--font-display);
  font-size: .85rem;
  font-style: italic;
  margin: 0;
  color: color-mix(
    in srgb,
    var(--plum) 68%,
    var(--ivory)
    );
}

/* ==================== VENUE ==================== */

.venue-section {
  padding-left: 20px;
  padding-right: 20px;
  /* Keep the venue distinct from the light program and festivities sections. */
  background: var(--ivory);
  color: var(--ivory);
}

.venue-arch {
  align-items: center;
  border-radius: 48% 48% 4px 4px / 20% 20% 4px 4px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 980px;
  overflow: hidden;
  padding: 74px 26px 60px;
  position: relative;
  background: var(--mauve);
  color: var(--ivory);
  box-shadow: 0 35px 90px
    color-mix(
    in srgb,
    var(--plum) 18%,
    transparent
    );
}

.venue-arch::before, .venue-arch::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent);
  border-radius: inherit;
  content: "";
  inset: 13px;
  position: absolute;
}

.venue-arch::after {
  inset: 26px;
  border-color: color-mix(
    in srgb,
    var(--champagne) 48%,
    transparent
    );
}

.venue-inner {
  max-width: 630px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.venue-inner .eyebrow {
  color: var(--champagne);
}

.venue-mark {
  display: block;
  font-size: 1.1rem;
  margin: 24px 0;
  color: var(--champagne);
}

.venue-inner h2 {
  color: var(--ivory);
  font-size: clamp(4rem, 11vw, 6.6rem);
}

.venue-inner p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.7;
  margin: 20px auto 31px;
  max-width: 480px;
  opacity: .78;
  color: color-mix(
    in srgb,
    var(--ivory) 78%,
    transparent
    );
}

.primary-button {
  align-items: center;
  background: var(--lavender);
  border: 1px solid var(--lavender);
  border-radius: 0;
  color: var(--ivory);
  cursor: pointer;
  display: inline-flex;
  font-size: .62rem;
  font-weight: 700;
  gap: 24px;
  justify-content: center;
  letter-spacing: .16em;
  min-height: 50px;
  padding: 13px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button.light {
  background: transparent;
  border-color: color-mix(
    in srgb,
    var(--champagne) 72%,
    transparent
    );
  color: var(--ivory);
}

.primary-button.light:hover {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--plum);
}

/* ==================== DRESS CODE ==================== */

.dress-section {
  background: color-mix(
    in srgb,
    var(--lilac) 32%,
    var(--ivory)
  );
}

.dress-shell {
  align-items: center;
  display: grid;
  gap: 45px;
  max-width: 960px;
}

.dress-copy {
  text-align: center;
}

.dress-copy p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
  color: color-mix(
    in srgb,
    var(--plum) 75%,
    var(--ivory)
    );
}

.palette {
  display: flex;
  justify-content: center;
}

.palette i {
  border: 4px solid color-mix(in srgb, var(--ivory) 78%, var(--champagne));
  border-radius: 50%;
  display: block;
  height: 65px;
  margin-left: -10px;
  transition: transform .3s ease;
  width: 65px;
  box-shadow: 0 5px 18px
    color-mix(
    in srgb,
    var(--plum) 18%,
    transparent
    );
}

.palette i:first-child {
  margin-left: 0;
}

.palette i:hover {
  transform: translateY(-7px);
  z-index: 2;
}

/* ==================== EVENTS ==================== */

.events-section {
  background: var(--ivory);
}

.event-list {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 320px;
}

.event-list article {
  position: relative;
  padding: 34px 28px;
  text-align: center;

  background: var(--lavender);
  color: var(--ivory);

  border: 1px solid color-mix(
    in srgb,
    var(--champagne) 55%,
    transparent
  );

  box-shadow:
    0 16px 40px color-mix(
      in srgb,
      var(--plum) 18%,
      transparent
    );
}

/* subtle inner border */
.event-list article::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;

  border: 1px solid color-mix(
    in srgb,
    var(--champagne) 22%,
    transparent
  );
}

/* remove old number */
.event-list article > span {
  display: none;
}

.event-list h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 14px;

  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.event-list p {
  position: relative;
  z-index: 1;

  margin: 0 0 12px;

  color: var(--champagne);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.event-list small {
  position: relative;
  z-index: 1;
  display: block;

  margin-bottom: 15px;

  color: color-mix(
    in srgb,
    var(--ivory) 78%,
    var(--champagne)
  );

  font-family: var(--font-display);
  font-size: .95rem;
  font-style: italic;
}

.event-list .event-address {
  white-space: pre-line;
  line-height: 1.5;
}

.event-map-link {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 10px 18px;

  border: 1px solid var(--champagne);

  color: var(--ivory);
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 10px;

  transition:
    background .25s ease,
    color .25s ease;
}

.event-map-link:hover {
  background: var(--champagne);
  color: var(--plum);
}

@media (max-width: 600px) {
  .event-list {
    gap: 16px;
  }

  .event-list article {
    padding: 30px 22px;
  }
}

/* ==================== GIFTS ==================== */

.gifts-section {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: var(--lavender);
  color: var(--ivory);
}
.gift-bloom {
  height: 670px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 670px;
}

.gift-bloom::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(
    in srgb,
    var(--champagne) 22%,
    transparent
  );
}

.gift-bloom::before {
  width: 72%;
  height: 72%;
}

.gift-bloom::after {
  width: 48%;
  height: 48%;
}

.gift-bloom i {
  display: none;
}

.gift-copy {
  max-width: 680px;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.gift-copy .eyebrow {
  color: var(--champagne);
}

.gift-copy h2 {
  color: var(--ivory);
}

.gift-copy p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.8;
  margin: 26px auto 0;
  opacity: .78;
  color: color-mix(
    in srgb,
    var(--ivory) 78%,
    transparent
    );
}

/* ==================== RSVP ==================== */

.rsvp-section {
  background: var(--ivory);
}

.rsvp-shell {
  max-width: 880px;
}

.rsvp-form {
  display: grid;
  gap: 24px 28px;
}

.rsvp-form label {
  display: block;
}

.rsvp-form label > span {
  display: block;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .17em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--mauve);
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--plum) 32%, transparent);
  border-radius: 0;
  outline: none;
  padding: 9px 0 12px;
  transition: border-color .25s;
  width: 100%;
  color: var(--plum);
  border-bottom-color: color-mix(
    in srgb,
    var(--champagne) 56%,
    var(--plum)
    );
}

.rsvp-form select {
  background-position: calc(100% - 6px) 50%, 100% 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 20px;
  background-image: linear-gradient(
    45deg,
    transparent 50%,
    var(--champagne) 50%
    ),
    linear-gradient(
    135deg,
    var(--champagne) 50%,
    transparent 50%
    );
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  border-color: var(--mauve);
}

.rsvp-form ::placeholder {
  opacity: 1;
  color: color-mix(
    in srgb,
    var(--plum) 46%,
    var(--ivory)
    );
}

.form-wide {
  grid-column: 1 / -1;
}

.form-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  margin-top: 12px;
  text-align: center;
}

.form-footer p {
  font-family: var(--font-display);
  font-size: .92rem;
  font-style: italic;
  margin: 0;
  color: var(--plum);
}

.form-footer small {
  display: block;
  font-size: .67rem;
  margin-top: 2px;
  color: color-mix(
    in srgb,
    var(--plum) 62%,
    var(--ivory)
    );
}

.rsvp-success {
  margin: 0 auto;
  max-width: 610px;
  padding: 45px 25px;
  text-align: center;
}

.rsvp-success > span {
  color: var(--champagne);
}

.rsvp-success h3 {
  font-size: 2.5rem;
  margin: 15px 0;
  color: var(--plum);
}

.rsvp-success p {
  color: color-mix(in srgb, var(--plum) 68%, var(--ivory));
  font-family: var(--font-display);
}

.text-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 0;
  text-transform: uppercase;
  color: var(--mauve);
}

/* ==================== CLOSING ==================== */

.closing-section {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px 0;
  position: relative;
  background: var(--ivory);
  color: var(--plum);
}

.closing-section::before {
  background-size: 40px 69px;
  content: "";
  inset: 0;
  position: absolute;
  background-image: linear-gradient(
    30deg,
    transparent 49.5%,
    color-mix(
    in srgb,
    var(--champagne) 4%,
    transparent
    ) 50%,
    transparent 50.5%
    ),
    linear-gradient(
    150deg,
    transparent 49.5%,
    color-mix(
    in srgb,
    var(--champagne) 4%,
    transparent
    ) 50%,
    transparent 50.5%
    );
}

.closing-arch {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--plum) 22%, transparent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 790px;
  padding: 80px 27px 55px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
  border-color: color-mix(
    in srgb,
    var(--plum) 24%,
    transparent
    );
}

.closing-arch::before {
  border: 1px solid color-mix(in srgb, var(--plum) 27%, transparent);
  border-bottom: 0;
  border-radius: inherit;
  content: "";
  inset: 13px 13px 0;
  position: absolute;
  border-color: color-mix(
    in srgb,
    var(--plum) 48%,
    transparent
    );
}

.closing-arch > * {
  position: relative;
  z-index: 1;
}


.closing-arch > p {
  font-family: var(--font-display);
  font-size: .86rem;
  font-style: italic;
  line-height: 1.7;
  margin: 12px auto;
  max-width: 520px;
  opacity: .72;
  color: var(--plum);
}

.ornament.light::before, .ornament.light::after {
  background: color-mix(
    in srgb,
    var(--champagne) 55%,
    transparent
    );
}

.ornament.light i {
  border-color: var(--champagne);
}

.closing-section h2 {
  margin-top: 30px;
  color: var(--lavender);
  font-size: clamp(2.6rem, 11vw, 3.8rem);
}

.closing-names {
  margin-top: 10px;
  color: var(--mauve);
}

.closing-arch small {
  white-space: pre-line;
  font-size: .56rem;
  font-weight: 650;
  letter-spacing: .19em;
  margin-top: 25px;
  opacity: .87;
  text-transform: uppercase;
  color: var(--champagne);
}

.site-credit {
  display: grid;
  place-items: center;
  min-height: calc(var(--credit-banner-height) + env(safe-area-inset-bottom, 0px));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--lavender);
  color: #fff;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.6;
  text-align: center;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
}

.site-credit strong {
  font-weight: 700;
}

.site-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-credit a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero.is-open .hero-content {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

/* Each part enters on its own, once the opening video reaches its reveal. */
.hero.is-open .hero-content > :not(.couple-names),
.hero.is-open .couple-person > *,
.hero.is-open .name-ampersand {
  animation: hero-detail-reveal .9s cubic-bezier(.16,.75,.25,1)
    calc(var(--hero-reveal-start) + var(--reveal-delay, 0s)) both;
}

.hero-welcome {
  --reveal-delay: .08s;
  --reveal-opacity: .92;
}

.couple-person--bride {
  --reveal-delay: .86s;
}

.name-ampersand {
  --reveal-delay: .72s;
}

.couple-person--groom {
  --reveal-delay: .3s;
}

.hero.is-open .couple-person [id$="Name"] {
  animation-name: hero-name-reveal;
  animation-duration: 1.4s;
}

.hero.is-open .couple-person p {
  --reveal-opacity: .86;
  animation-delay: calc(var(--hero-reveal-start) + var(--reveal-delay) + .3s);
}

.hero.is-open .couple-person small {
  animation-delay: calc(var(--hero-reveal-start) + var(--reveal-delay) + .42s);
}

.hero-invitation {
  --reveal-delay: 2.1s;
}

.hero-closing {
  --reveal-delay: 2s;
}

.hero .scroll-cue {
  --reveal-delay: 2.35s;
}

::selection {
  background: var(--mauve);
  color: var(--ivory);
}

.rsvp-section .primary-button:hover {
  background: var(--mauve);
  border-color: var(--mauve);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--champagne);
}

#brideName, #groomName {
  font-family: var(--font-names);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .01em;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: .92;
}

@keyframes hero-detail-reveal {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    visibility: visible;
    opacity: var(--reveal-opacity, 1);
    transform: none;
  }
}

@keyframes hero-name-reveal {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px) scale(.975);
    filter: blur(4px);
  }
  60% {
    filter: blur(0);
  }
  to {
    visibility: visible;
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes pulse-ring {
  70%, 100% { opacity: 0; transform: scale(2.05); }
}

@keyframes music-bar {
  to { height: 15px; }
}

@keyframes scroll-line { to { transform: translateY(38px); } }

@keyframes date-celebrate {
  40% {
    box-shadow: 0 28px 90px color-mix(in srgb, var(--mauve) 30%, transparent);
    transform: scale(1.02);
  }
}

@media (min-width: 700px) {
  .section-pad {
    padding: 90px 0;
  }

  .section-shell {
    width: min(1120px, calc(100% - 80px));
  }

  .hero-geometry {
    inset: 28px;
  }

  .hero-content {
    padding-left: 55px;
    padding-right: 55px;
  }

  .couple-names {
    grid-template-columns: 1fr auto 1fr;
  }

  .name-ampersand {
    font-size: 1.8rem;
  }

  .welcome-shell {
    grid-template-columns: .78fr 1.22fr;
    gap: 80px;
  }

  .welcome-copy {
    text-align: left;
  }

  .welcome-copy p {
    margin-left: 0;
  }

  .arch-emblem {
    max-width: 320px;
    width: 100%;
  }

  .gallery-frame {
    aspect-ratio: 16 / 10;
  }

  .gallery-slide figcaption {
    bottom: 40px;
    left: 43px;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline article {
    grid-template-columns: 50px 115px 1fr;
    gap: 26px;
    padding: 27px 0;
  }

  .timeline::before {
    left: 25px;
  }

  .timeline-index {
    height: 50px;
    width: 50px;
  }

  .timeline time {
    padding-top: 13px;
  }

  .timeline h3 {
    font-size: 1.85rem;
  }

  .venue-arch {
    border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px;
  }

  .dress-shell {
    grid-template-columns: 1.25fr .75fr;
    gap: 70px;
  }

  .dress-copy {
    text-align: left;
  }

  .palette {
    justify-content: flex-end;
  }

  .event-list article {
    grid-template-columns: 55px 1.1fr 1fr .9fr;
    padding: 29px 0;
  }

  .event-list p, .event-list small {
    grid-column: auto;
  }

  .event-list h3 {
    font-size: 1.8rem;
  }

  .rsvp-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-footer {
    flex-direction: row;
    text-align: left;
  }

  .closing-section {
    padding-left: 55px;
    padding-right: 55px;
  }
}

@media (min-width: 1000px) {
  .palette i {
    height: 78px;
    width: 78px;
  }
}

/* Compact vertical spacing on phones and landscape screens; text can still grow. */
@media (max-height: 700px) {
  .hero-content {
    padding-top: max(env(safe-area-inset-top, 0px), clamp(28px, calc(var(--viewport-height) * .07), 48px));
    padding-bottom: clamp(24px, calc(var(--viewport-height) * .04), 32px);
  }

  .hero-welcome {
    margin-bottom: 12px;
  }

  .couple-names {
    gap: 8px;
  }

  .scroll-cue {
    margin-top: 18px;
  }
}

/* Leave room below the chandelier on especially short portrait screens. */
@media (max-width: 699px) and (max-height: 600px) {
  .hero-content {
    padding-top: max(70px, env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
  }

  .hero-welcome {
    margin-bottom: 8px;
  }

  .name-ampersand {
    font-size: 1.45rem;
  }

  .scroll-cue {
    margin-top: 12px;
  }

  .scroll-cue i {
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero.is-open .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .hero.is-open .hero-content > :not(.couple-names),
  .hero.is-open .hero-content .couple-person > *,
  .hero.is-open .name-ampersand {
    animation: none;
    visibility: visible;
    transform: none;
    filter: none;
  }
}

@media (max-width: 600px) {
  #brideName, #groomName {
    font-size: clamp(2.1rem, 8.2vw, 3rem);
    line-height: .92;
    white-space: normal;
  }

  #brideName span, #groomName span {
    display: inline;
  }

  .section-shell {
    width: min(100% - 34px, 1120px);
  }

  .hero-geometry {
    inset: 14px;
  }

  .music-toggle {
    right: 12px;
    top: 12px;
  }

  .section-heading h2, .welcome-copy h2, .dress-copy h2, .gift-copy h2 {
    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }

  .venue-inner h2, .closing-section h2 {
    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }

  .signature, .closing-names {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

/* Revealed date */

.date-main {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .95;
  margin: 0 0 8px;
}

/* Weekday */

.date-day {
  color: var(--plum);
  font-family: var(--font-body);
  font-size: clamp(.96rem, 3vw, 1rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 6px;
}

/* Ceremony time */

.date-time {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(.9rem, 2.5vw, 1.2rem);
  font-style: normal;
  font-weight: 550;
  line-height: 1;
  margin: 0;
}

#musicLabel {
  display: none;
}

.floral-divider {
  height: 0;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.floral-divider img {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(850px, 92vw);
  height: auto;
  transform: translate(-50%, -60%);
  display: block;
}

/* ==================== VENUE ==================== */

.venue-card {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 70px 32px;
  text-align: center;
  background: var(--lavender);
  color: var(--ivory);
  border: 1px solid
    color-mix(
    in srgb,
    var(--champagne) 55%,
    transparent
    );
  box-shadow: 0 28px 70px
    color-mix(
    in srgb,
    var(--plum) 16%,
    transparent
    );
}

/* subtle inner border */

.venue-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid
    color-mix(
    in srgb,
    var(--champagne) 24%,
    transparent
    );
  pointer-events: none;
}

.venue-card .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--champagne);
}

/* small divider */

.venue-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 26px;
  color: var(--champagne);
}

.venue-divider::before, .venue-divider::after {
  content: "";
  width: 44px;
  height: 1px;
  background: color-mix(
    in srgb,
    var(--champagne) 60%,
    transparent
    );
}

.venue-divider span {
  font-size: .65rem;
}

/* Venue name */

.venue-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.06;
}

/* Address */

.venue-card p {
  position: relative;
  z-index: 1;
  white-space: pre-line;
  max-width: 520px;
  margin: 24px auto 32px;
  color: color-mix(
    in srgb,
    var(--ivory) 70%,
    transparent
    );
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
}

/* Map button */

.venue-map-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--champagne);
  color: var(--ivory);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.venue-map-button:hover {
  background: var(--champagne);
  color: var(--plum);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .venue-card {
    padding: 56px 26px;
  }

  .venue-card h2 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .venue-card p {
    margin-top: 20px;
    margin-bottom: 28px;
  }
}

.date-reveal::before {
  display: none;
}

.scratch-section .section-heading {
  margin-bottom: 10px;
}

.program-section {
  background: color-mix(
    in srgb,
    var(--lilac) 32%,
    var(--ivory)
  );
}

.program-section .section-heading {
  margin-bottom: 28px;
}

.timeline {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* vertical timeline line */
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 104px;
  width: 1px;
  background: color-mix(
    in srgb,
    var(--champagne) 65%,
    transparent
  );
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  column-gap: 58px;
  padding: 20px 0;
}

/* remove the numbers */
.timeline-index {
  display: none;
}

/* timeline dot */
.timeline article::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 24px;

  width: 9px;
  height: 9px;

  background: var(--champagne);
  border: 3px solid color-mix(
    in srgb,
    var(--lilac) 32%,
    var(--ivory)
  );

  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline time {
  grid-column: 1;
  padding-top: 5px;

  color: var(--mauve);
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

/* assumes h3 + p are inside the event content */
.timeline h3 {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 8px;
}

.timeline p {
  color: color-mix(
    in srgb,
    var(--plum) 60%,
    var(--ivory)
  );
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 600px) {
  .timeline {
    max-width: 100%;
  }

  .timeline::before {
    left: 86px;
  }

  .timeline article {
    grid-template-columns: 66px 1fr;
    column-gap: 58px;
    padding: 18px 0;
  }

  .timeline article::before {
    left: 86px;
  }

  .timeline h3 {
    font-size: 1.45rem;
  }
}


/* Personalised chapters extend Rangrez's original type, ornament and palette. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.opening-label { display: block; margin-top: clamp(22px, 5vh, 48px); color: var(--ivory); text-shadow: 0 1px 5px var(--plum); }
.hero-content { max-width: 760px; padding-left: 24px; padding-right: 24px; }
.couple-names { grid-template-columns: 1fr; }
#brideName, #groomName { font-size: clamp(2rem, 8vw, 3.7rem); line-height: 1.02; margin-bottom: 8px; }
.couple-names [id$="Name"] span { display: inline; }
.couple-names p { font-size: .65rem; }
.couple-names small { font-size: 1rem; line-height: 1.4; }
.hero-welcome { font-size: .62rem; }
.hero-invitation { font-size: 1.08rem; max-width: 440px; }
.welcome-shell { display: block; max-width: 680px; }
.welcome-copy, .welcome-copy p { text-align: center; margin-left: auto; margin-right: auto; max-width: 550px; }
.welcome-copy p + p { margin-top: 18px; }
.signature { margin-top: 25px; }
.chapter-copy { text-align: center; white-space: pre-line; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.7; max-width: 620px; margin: 0 auto 30px; }
.journey-section, .travel-section { background: var(--ivory); }
.journey-route { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 55px); text-align: center; color: var(--lavender); margin: 40px auto 10px; }
.journey-route strong, .journey-route > span { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.journey-route div span { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-top: 8px; }
.transition-section { background: var(--lavender); color: var(--ivory); padding: 100px 0; }
.transition-section .section-heading h2 { color: var(--ivory); font-size: clamp(2.4rem, 7vw, 4rem); white-space: pre-line; line-height: 1.1; }
.transition-section .journey-route { color: var(--champagne); }
.california-events { max-width: 780px; margin: auto; }
.california-events > article { display: block; text-align: center; padding: 38px 12px; }
.california-events > article::before { display: none; }
.california-events > article > h3 { font-family: var(--font-title); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; margin: 0 0 20px; }
.california-events p { display: block; font-size: 1.05rem; line-height: 1.6; margin: 8px auto; white-space: pre-line; }
.california-events .event-intro { max-width: 550px; font-family: var(--font-display); font-size: 1.1rem; }
.california-events .event-time { color: var(--lavender); font-weight: 600; }
.california-events .event-address { font-family: var(--font-display); font-size: 1rem; }
.event-date { font-size: .85rem; font-weight: 500; letter-spacing: .04em; margin-top: 30px; }
.california-events .timeline { text-align: left; margin-top: 20px; margin-bottom: 25px; }
.california-events .timeline h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 0; }
.event-map-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; font-size: .72rem; letter-spacing: .08em; color: var(--lavender); text-underline-offset: 5px; }
.timeline { width: min(680px, 100%); margin: 30px auto; }
.timeline article { grid-template-columns: 82px minmax(0, 1fr); column-gap: 48px; }
.timeline h3 { line-height: 1.15; }
.timeline time { font-size: .73rem; letter-spacing: .04em; }
.timeline p { white-space: pre-line; font-size: 1rem; line-height: 1.5; color: var(--plum); }
.timeline .ceremony-focus { border-top: 1px solid var(--champagne); border-bottom: 1px solid var(--champagne); margin: 10px 0; padding-top: 28px; padding-bottom: 28px; }
.timeline .ceremony-focus h3 { color: var(--lavender); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.timeline .ceremony-focus time { font-weight: 700; }
.timeline .ceremony-focus::before { background: var(--lavender); top: 34px; width: 12px; height: 12px; }
.wedding-feature .section-heading h2 { font-size: clamp(3.2rem, 11vw, 6rem); }
.venue-card { margin-bottom: 50px; }
.venue-name { font-family: var(--font-title); font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.08; font-weight: 600; margin: 0; position: relative; }
.venue-card p { color: var(--ivory); font-size: 1.15rem; }
.reception-section { background: color-mix(in srgb, var(--lilac) 20%, var(--ivory)); }
#dressPalettes { max-width: 800px; margin: auto; }
.palette-event { padding: 35px 0; text-align: center; border-bottom: 1px solid var(--champagne); }
.palette-event h3, .travel-details h3 { font-family: var(--font-title); font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 0 0 18px; }
.palette-event p { max-width: 500px; margin: 15px auto; font-family: var(--font-display); font-size: 1.05rem; }
.palette-event .eyebrow { font-family: var(--font-body); font-size: .7rem; }
.palette-event .palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 25px auto 0; }
.swatch-item { width: 90px; text-align: center; }
.swatch-item i { display: block; width: 62px; height: 62px; margin: 0 auto 12px; border: 1px solid color-mix(in srgb, var(--plum) 20%, transparent); }
.swatch-item span { display: block; font-size: .75rem; line-height: 1.4; }
.palette-event .jersey-line { font-family: var(--font-prose); font-style: italic; font-size: 2.6rem; color: var(--lavender); }
.palette-note { margin-top: 35px; }
.travel-details { text-align: center; max-width: 660px; margin: auto; }
.travel-details p { white-space: pre-line; }
.travel-details h3 { margin-top: 35px; }
.travel-details dl { display: flex; justify-content: center; gap: 35px; flex-wrap: wrap; margin: 30px 0; }
.travel-details dt { text-transform: uppercase; font-size: .7rem; letter-spacing: .15em; color: var(--lavender); }
.travel-details dd { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.15rem; }
.closing-arch .closing-message { font-size: 1.1rem; line-height: 1.7; opacity: 1; white-space: pre-line; margin-top: 30px; }
.closing-arch small { color: var(--plum); font-size: .72rem; }
.date-main { text-transform: uppercase; font-size: clamp(1.65rem, 5vw, 3rem); line-height: 1.08; }
.date-ceremony { color: var(--lavender); text-transform: uppercase; font-size: .8rem; letter-spacing: .16em; }
.reveal-date-button { display: block; margin: 18px auto 0; background: transparent; border: 1px solid var(--lavender); color: var(--lavender); min-height: 44px; padding: 9px 18px; cursor: pointer; font-size: .8rem; }
button:focus-visible, a:focus-visible, canvas:focus-visible, .hero:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; }
.music-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
@media (max-width: 600px) {
  .timeline article { grid-template-columns: 67px minmax(0, 1fr); column-gap: 35px; }
  .timeline::before, .timeline article::before { left: 84px; }
  .timeline h3 { font-size: 1.35rem; }
  .section-heading h2 { font-size: clamp(2.25rem, 10vw, 3.8rem); }
  .section-heading .eyebrow { line-height: 1.7; }
  .scratch-wrap { min-height: 230px; }
  .date-day { font-size: .8rem; }
  .date-kicker { font-size: 1.6rem; }
  .swatch-item { width: 72px; }
  .swatch-item i { width: 54px; height: 54px; }
  .palette-event .palette { gap: 12px; }
  .countdown { gap: 8px; }
  .countdown > div { padding-left: 3px; padding-right: 3px; }
  .countdown span { font-size: .6rem; letter-spacing: .05em; }
  .journey-route { gap: 14px; }
  .journey-route strong, .journey-route > span { font-size: .7rem; letter-spacing: .09em; }
}
.california-events > article::before { display: block; }
.california-events p { text-transform: none; letter-spacing: 0; font-weight: 400; }
.california-events .event-time, .california-events .event-map-link { color: var(--ivory); }
.california-events .timeline article { background: transparent; border: 0; box-shadow: none; text-align: left; padding: 15px 0; }
.california-events .timeline article::before { inset: auto; left: 104px; top: 24px; border: 0; }
.california-events .timeline h3, .california-events .timeline time { color: var(--ivory); }
.california-events .timeline::before { background: var(--champagne); }
.date-reveal { padding: 22px 12px; }
.date-reveal .date-main { font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.1; }
.date-kicker { font-size: .66rem; }
@media (max-width: 600px) { .california-events .timeline article::before { left: 84px; } }
.hero-content { width: 74%; max-width: 650px; padding-left: 0; padding-right: 0; }
#brideName, #groomName { font-size: clamp(1.9rem, 7vw, 3.7rem); }
.hero-invitation { font-size: 1rem; max-width: 370px; }
.scratch-note { display: block; max-width: 500px; font-size: 1.05rem; }
.date-kicker { display: none; }
.hero-invitation { width: 80%; }
/* Short phones may scroll the opened hero instead of squeezing text onto its florals. */
@media (max-height: 700px) {
  .hero.is-open { min-height: 820px; }
  .hero.is-open .hero-content { padding-top: 180px; padding-bottom: 160px; }
}
.scratch-section::before { pointer-events: none; }
.reveal-date-button { position: relative; z-index: 1; }

/* Mobile-only overrides — hero remains untouched */
@media (max-width: 600px) {
  /* More breathing room in sections after the hero */
  .section-shell {
    width: min(100% - 48px, 1120px);
  }

  .section-pad {
    padding: 56px 0;
  }

  /* Smaller section titles only */
  .section-heading h2,
  .welcome-copy h2,
  .dress-copy h2,
  .gift-copy h2,
  .venue-inner h2,
  .venue-card h2,
  .closing-section h2 {
    font-size: clamp(2.15rem, 9vw, 3.15rem);
    line-height: 1.04;
  }

  /* Centre labels below their colour circles */
  .swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 68px;
    text-align: center;
  }

  .swatch-item i {
    margin-left: 0;
  }

  .swatch-item span {
    display: block;
    width: 100%;
    min-height: 2.7em;
    text-align: center;
    line-height: 1.35;
  }

  #dressPalettes .palette {
    justify-content: center;
    gap: 16px 10px;
  }

  .scratch-wrap {
    position: absolute;
    inset: 28% 14% 17%;
    width: auto;
    height: auto;
    max-width: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }

  /* Shift date down from the flowers at the top of the frame */
  .date-reveal {
    padding: 58px 12px 18px;
  }

  .scratch-canvas {
    width: 100%;
    height: 100%;
  }
}

/* Stop the original overlapping-circle offset */
@media (max-width: 600px) {
  #dressPalettes .palette .swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 68px;
    text-align: center;
  }

  #dressPalettes .palette .swatch-item i {
    display: block;
    margin: 0 auto 12px !important;
  }

  #dressPalettes .palette .swatch-item span {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .scratch-wrap {
    inset: 26% 14% 12%;
  }
}

@media (max-width: 600px) {
  /* Extend the scratch layer upward and downward behind the floral frame */
  .scratch-wrap {
    inset: 19% 14% 12%;
  }

  /*
    The scratch layer now extends behind the upper flowers.
    Push revealed date content down into the clear visible area.
  */
  .date-reveal {
    padding: 27px 12px 20px;
  }
}

.transition-section .journey-route .fa-plane {
  color: var(--champagne);
  font-size: 1.15rem;
}

/* Keep the opened hero exactly viewport-height on mobile */
@media (max-width: 600px) {
  .hero.is-open {
    height: var(--hero-height);
    min-height: var(--hero-height);
  }
}

/* Mobile: same viewport height before and after entry */
@media (max-width: 600px) {
  #hero.is-open {
    display: flex;
    height: var(--hero-height);
    min-height: var(--hero-height);
    max-height: var(--hero-height);
    align-items: center;
  }

  /* Override the oversized padding while retaining existing text styles */
  #hero.is-open .hero-content {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: 100%;
    margin: auto;

    padding-top: max(
      env(safe-area-inset-top, 0px),
      clamp(20px, calc(var(--viewport-height) * .05), 40px)
    );

    padding-bottom: max(
      env(safe-area-inset-bottom, 0px),
      clamp(20px, calc(var(--viewport-height) * .05), 40px)
    );

    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  #hero.is-open .hero-content {
    top: 28px;
    max-height: calc(100% - 56px);
  }
}

.naqsh-demo-badge {
  position: fixed;
  bottom: calc(var(--credit-banner-height) + env(safe-area-inset-bottom, 0px) + 18px);
  left: max(18px, env(safe-area-inset-left));
  z-index: 9998;

  padding: 8px 13px;
  border-radius: 999px;

  background: rgba(20, 20, 20, 0.72);
  color: #fff;

  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  opacity: .7;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
}
@media (max-width: 600px) {
  .naqsh-demo-badge {
    bottom: calc(var(--credit-banner-height) + env(safe-area-inset-bottom, 0px) + 12px);
    left: max(12px, env(safe-area-inset-left));

    padding: 7px 11px;

    font-size: 9px;
  }
}


.naqsh-demo-badge {
 display: none;
}

/* ==================== WHITE / RED / GREEN THEME ==================== */

html,
body {
  background: var(--ivory);
}

.section-heading h2,
.welcome-copy h2,
.palette-event h3,
.travel-details h3 {
  color: var(--rose);
}

.eyebrow,
.signature,
.closing-names,
.date-main {
  color: var(--rose);
}

.ornament i {
  border-color: var(--rose);
}

.ornament::before,
.ornament::after {
  background: color-mix(in srgb, var(--forest) 46%, transparent);
}

.welcome-section::before,
.welcome-section::after,
.closing-section::before {
  display: none;
}

.signature span,
.closing-names span {
  color: var(--forest);
}

/* A soft ivory glow follows the first line while the palace remains visible. */
.hero.is-open .hero-glow {
  --glow-width: 48%;
  background: radial-gradient(
    ellipse var(--glow-width) 44% at 50% 52%,
    rgba(255, 253, 249, .92) 0%,
    rgba(255, 253, 249, .82) 44%,
    rgba(255, 253, 249, .42) 78%,
    rgba(255, 253, 249, 0) 100%
  );
  animation: hero-glow-reveal .9s ease-out calc(var(--hero-reveal-start) + .08s) both;
}

@media (max-width: 600px) {
  .hero.is-open .hero-glow {
    --glow-width: 58%;
  }
}

@keyframes hero-glow-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero.is-open .hero-content {
  color: var(--forest);
  text-shadow: 0 1px 8px rgba(255, 253, 249, .85);
}

.hero.is-open .couple-person [id$="Name"],
.hero.is-open .name-ampersand {
  color: var(--rose);
}

.hero.is-open .scroll-cue {
  color: var(--forest);
}

.opening-label {
  color: var(--rose);
  background: color-mix(in srgb, var(--ivory) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--forest) 30%, transparent);
  border-radius: 999px;
  padding: 10px 18px;
  text-shadow: none;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--forest) 14%, transparent);
}

.opening-ripple,
.opening-ripple::before,
.opening-ripple::after {
  border-color: color-mix(in srgb, var(--rose) 70%, transparent);
}

.music-toggle {
  background: color-mix(in srgb, var(--forest) 90%, transparent);
  border-color: var(--sage);
  color: var(--ivory);
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: var(--forest);
  border-color: var(--ivory);
}

/* Floral detail frames the chapters; the white space remains the main surface. */
.floral-divider img {
  width: min(620px, 78vw);
}

.scratch-section,
.program-section,
.dress-section,
.reception-section {
  background: color-mix(in srgb, var(--sage) 48%, var(--ivory));
}

.scratch-wrap {
  border-color: color-mix(in srgb, var(--forest) 38%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--forest) 12%, transparent);
}

.date-reveal {
  background: var(--ivory);
}

.date-day {
  color: var(--forest);
}

.scratch-note {
  color: var(--forest);
}

.reveal-date-button {
  border-color: var(--rose);
  color: var(--rose);
}

.reveal-date-button:hover {
  background: var(--rose);
  color: var(--ivory);
}

/* Forest green grounds the countdown. */
.countdown-section {
  background: var(--forest);
  color: var(--ivory);
}

.countdown-section .section-heading .ornament::before,
.countdown-section .section-heading .ornament::after {
  background: var(--sage);
}

.countdown-section .section-heading .ornament i {
  border-color: var(--sage);
}

.countdown-section .eyebrow,
.countdown span,
.transition-section .journey-route {
  color: var(--sage);
}

.transition-section {
  background: var(--rose);
  color: var(--ivory);
}

/* Event details read as invitation cards on white, with red headings. */
.california-events > article {
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--forest) 30%, transparent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--forest) 8%, transparent);
  color: var(--forest);
}

.california-events > article::before {
  border-color: color-mix(in srgb, var(--forest) 17%, transparent);
}

.california-events > article > h3,
.california-events .event-time,
.california-events .event-map-link {
  color: var(--rose);
}

.california-events p,
.california-events .timeline h3,
.california-events .timeline time {
  color: var(--forest);
}

.california-events .timeline::before {
  background: color-mix(in srgb, var(--forest) 38%, transparent);
}

.california-events .timeline article::before {
  background: var(--rose);
}

.venue-card {
  background: var(--forest);
  border-color: color-mix(in srgb, var(--sage) 60%, transparent);
}

.venue-card::before {
  border-color: color-mix(in srgb, var(--sage) 35%, transparent);
}

.venue-card .eyebrow,
.venue-divider {
  color: var(--sage);
}

.venue-map-button {
  border-color: var(--sage);
}

.venue-map-button:hover {
  background: var(--sage);
  color: var(--forest);
}

.timeline::before {
  background: color-mix(in srgb, var(--forest) 42%, transparent);
}

.timeline article::before,
.timeline .ceremony-focus::before {
  background: var(--rose);
}

.timeline .ceremony-focus {
  border-color: color-mix(in srgb, var(--forest) 32%, transparent);
}

.palette-event {
  border-color: color-mix(in srgb, var(--forest) 26%, transparent);
}

.dress-section {
  background: var(--ivory);
}

.dress-section .palette-note {
  color: var(--forest);
}

.site-credit {
  background: var(--forest);
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible,
.hero:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--ivory);
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-open .hero-glow {
    animation: none;
    opacity: 1;
  }
}

/* Reception has a single start time, so it sits within its venue card. */
.venue-card .venue-time {
  display: inline-block;
  margin: 24px auto 0;
  padding: 0 10px 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 65%, transparent);
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
}

.venue-card .venue-time + p {
  margin-top: 18px;
}

/* California celebrations alternate forest green and deep red. */
.california-events > article:nth-child(odd) {
  --celebration-card-bg: var(--forest);
  background: var(--celebration-card-bg);
  border-color: color-mix(in srgb, var(--sage) 65%, transparent);
  color: var(--ivory);
}

.california-events > article:nth-child(even) {
  --celebration-card-bg: var(--rose);
  background: var(--celebration-card-bg);
  border-color: color-mix(in srgb, var(--ivory) 65%, transparent);
  color: var(--ivory);
}

.california-events > article::before {
  border-color: color-mix(in srgb, var(--ivory) 35%, transparent);
}

.california-events > article > h3,
.california-events > article p,
.california-events > article .timeline h3,
.california-events > article .timeline time,
.california-events > article .event-map-link {
  color: var(--ivory);
}

.california-events > article .event-date,
.california-events > article .event-time {
  color: var(--sage);
}

.california-events > article .timeline::before {
  background: color-mix(in srgb, var(--sage) 72%, transparent);
}

.california-events > article .timeline article::before {
  background: var(--sage);
}

.california-events > article .event-map-link:hover {
  color: var(--sage);
}

/* The scratch surface follows the open space inside the carved arch. */
.clip-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.scratch-wrap {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.date-reveal {
  padding: clamp(34px, 5vw, 65px) 12px 20px;
}

/* The date leads; year and ceremony details form a quieter second tier. */
.date-reveal .date-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, .8vw, 10px);
  margin: 0 0 clamp(24px, 3.4vw, 36px);
  color: var(--forest);
  font-weight: 600;
  line-height: 1;
}

.date-reveal .date-primary {
  font-size: clamp(2rem, 5.8vw, 3.6rem);
  letter-spacing: -.045em;
  white-space: nowrap;
}

.date-reveal .date-year {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: .08em;
}

.date-reveal .date-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 24px);
}

.date-reveal .date-day {
  margin: 0;
  font-size: clamp(.9rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
}

.date-reveal .date-ceremony {
  font-size: clamp(.76rem, 1.45vw, 1rem);
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .date-reveal {
    padding: 68px 24px 26px;
  }

  .date-reveal .date-main {
    margin-bottom: 16px;
  }

  .date-reveal .date-primary {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .date-reveal .date-year {
    font-size: clamp(1.35rem, 4.2vw, 1.8rem);
  }

  .date-reveal .date-details {
    gap: 10px;
  }
}

/* Keep the welcome names and wedding-day schedule quieter than the section titles. */
.welcome-copy .signature {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.2;
}

#programTimeline article {
  padding-block: 16px;
}

#programTimeline article::before {
  top: 50%;
  transform: translate(-50%, -50%);
}

#programTimeline h3 {
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3px;
}

#programTimeline time {
  font-size: .7rem;
  font-weight: 500;
}

#programTimeline .ceremony-focus {
  padding-block: 18px;
}

#programTimeline .ceremony-focus h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 500;
}
