/* More ways to dress a page: four more falling shapes, five more entrances, five more photo galleries and three more
   section titles. Same rules as the others (invitation-motion.css, invitation-sections.css): everything that moves
   is switched off for visitors who ask for less motion. Shared by the application and the public invitation page. */

/* --- Falling shapes: snow, leaves, sparkles, feathers --------------------------------------------------------------- */
.invite-particles-snow i {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgb(255 255 255 / 85%);
}
.invite-particles-leaves i {
  aspect-ratio: 3 / 4;
  background: color-mix(in srgb, var(--invite-accent) 55%, #7aa05a);
  -webkit-mask: url('/art/forme/feuille.svg') center / contain no-repeat;
  mask: url('/art/forme/feuille.svg') center / contain no-repeat;
}
.invite-particles-sparkles i {
  background: #fff2b8;
  -webkit-mask: url('/art/forme/etoile.svg') center / contain no-repeat;
  mask: url('/art/forme/etoile.svg') center / contain no-repeat;
  animation:
    fall var(--t) linear var(--d) infinite,
    dc-twinkle 1.7s ease-in-out infinite;
}
.invite-particles-feathers i {
  aspect-ratio: 2 / 5;
  background: color-mix(in srgb, var(--invite-accent) 22%, #fff);
  -webkit-mask: url('/art/forme/plume.svg') center / contain no-repeat;
  mask: url('/art/forme/plume.svg') center / contain no-repeat;
}

/* --- Entrances: rise, blur, bounce, swing, shimmer ------------------------------------------------------------------ */
.invite-motion-rise [data-rv] {
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.invite-motion-rise [data-rv]:not(.is-in) {
  opacity: 0;
  transform: translateY(96px);
}
.invite-motion-blur [data-rv] {
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 1s ease;
}
.invite-motion-blur [data-rv]:not(.is-in) {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.05);
}
.invite-motion-bounce [data-rv] {
  transition:
    opacity 0.5s ease,
    transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.invite-motion-bounce [data-rv]:not(.is-in) {
  opacity: 0;
  transform: translateY(64px) scale(0.88);
}
.invite-motion-swing [data-rv] {
  transform-origin: 50% 0;
  transition:
    opacity 0.6s ease,
    transform 1.1s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.invite-motion-swing [data-rv]:not(.is-in) {
  opacity: 0;
  transform: rotate(-7deg) translateY(36px);
}
.invite-motion-swing [data-rv]:nth-child(even):not(.is-in) {
  transform: rotate(7deg) translateY(36px);
}
.invite-motion-shimmer .invite-content h2,
.invite-motion-shimmer .bn-intro h2 {
  background: linear-gradient(
      100deg,
      var(--invite-accent) 34%,
      color-mix(in srgb, var(--invite-accent) 30%, #fff) 50%,
      var(--invite-accent) 66%
    )
    0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dc-shine 4.5s linear infinite;
}
@keyframes dc-shine {
  to {
    background-position: -250% 0;
  }
}

/* --- Photo galleries: staggered columns, scrolling strip, pile, round medallions, arches ---------------------------- */
.invitation.invite-gal-masonry .invite-gallery {
  display: block;
  column-count: 2;
  column-gap: 8px;
  margin: 0 16px 22px;
}
.invitation.invite-gal-masonry .invite-gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
}
.invitation.invite-gal-masonry .invite-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  object-fit: cover;
}
.invitation.invite-gal-masonry .invite-gallery-item:nth-child(2n) img {
  aspect-ratio: 1;
}
.invitation.invite-gal-masonry .invite-gallery-item:nth-child(3n) img {
  aspect-ratio: 4 / 5;
}
.invitation.invite-gal-carousel .invite-gallery {
  display: flex;
  gap: 12px;
  --gm: 0px;
  margin: 0 0 22px;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.invitation.invite-gal-carousel .invite-gallery-item {
  flex: 0 0 min(74%, 340px);
  height: auto;
  border-radius: 10px;
  scroll-snap-align: center;
  box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
  transform: none;
}
.invitation.invite-gal-carousel .invite-gallery-item img {
  width: 100%;
  height: 210px;
  border-radius: 0;
  object-fit: cover;
}
.invitation.invite-gal-stack .invite-gallery {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  --gm: 30px;
  margin: 0 30px 44px;
  padding-top: 6px;
}
.invitation.invite-gal-stack .invite-gallery-item {
  width: min(80%, 340px);
  margin-top: -64px;
  padding: 6px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(0 0 0 / 24%);
  transform: rotate(-4deg);
}
.invitation.invite-gal-stack .invite-gallery-item:first-child {
  margin-top: 0;
}
.invitation.invite-gal-stack .invite-gallery-item:nth-child(even) {
  transform: rotate(3.5deg) translateX(10px);
}
.invitation.invite-gal-stack .invite-gallery-item:nth-child(3n) {
  transform: rotate(-1.5deg);
}
.invitation.invite-gal-stack .invite-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 1px;
  object-fit: cover;
}
.invitation.invite-gal-circles .invite-gallery {
  grid-template-columns: repeat(2, 1fr);
  --gm: 26px;
  gap: 14px;
  margin: 0 26px 22px;
}
.invitation.invite-gal-circles .invite-gallery-item {
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #fff,
    0 6px 16px rgb(0 0 0 / 22%);
  transform: none;
}
.invitation.invite-gal-circles .invite-gallery-item:nth-child(even) {
  margin-top: 18px;
}
.invitation.invite-gal-circles .invite-gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.invitation.invite-gal-arches .invite-gallery {
  grid-template-columns: repeat(2, 1fr);
  --gm: 22px;
  gap: 12px;
  margin: 0 22px 22px;
}
.invitation.invite-gal-arches .invite-gallery-item {
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 999px 999px 8px 8px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 18%);
  transform: none;
}
.invitation.invite-gal-arches .invite-gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* On a wide page (a computer) a gallery keeps a comfortable width in the middle instead of stretching: the photos keep
   their proportions. The 3D ring has its own stage. --gm is the side margin the design keeps on a narrow page. */
.invitation[class] .invite-gallery:not(.invite-gallery-ring) {
  box-sizing: border-box;
  width: min(640px, calc(100% - 2 * var(--gm, 16px)));
  margin-inline: auto;
}

/* --- Section titles: ribbon, dots, shadow -------------------------------------------------------------------------- */
.invitation.sv-title-ribbon .invite-section > h3 {
  display: table;
  margin-inline: auto;
  padding: 8px 32px;
  background: var(--invite-accent);
  color: var(--invite-on-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.invitation.sv-title-dotted .invite-section > h3::after {
  content: '';
  display: block;
  width: 72px;
  margin: 9px auto 0;
  border-bottom: 3px dotted currentColor;
  opacity: 0.6;
}
.invitation.sv-title-shadow .invite-section > h3 {
  font-weight: 800;
  text-shadow: 3px 3px 0 color-mix(in srgb, currentColor 18%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .invite-motion-shimmer .invite-content h2,
  .invite-motion-shimmer .bn-intro h2 {
    animation: none;
  }
  .invite-particles-sparkles i {
    animation: none;
  }
}

/* ===================================================================================================================
   More opening screens: flower, tiles, roller shutter, balloons, starry sky, candle.
   Same rules as the others (invitation-motion.css): the text is in the "on accent" colour, "is-leaving" opens the
   screen, the script removes it afterwards, and a visitor who asks for less motion gets no animation at all.
   =================================================================================================================== */
.invite-opening-blossom,
.invite-opening-tiles,
.invite-opening-roller {
  background: transparent;
  overflow: hidden;
}
.of-stage,
.oq-stage,
.orl-stage,
.oba-stage,
.ost-stage,
.oca-stage {
  position: absolute;
  inset: 0;
}
.of-center,
.oq-center,
.orl-center,
.oba-center,
.ost-center,
.oca-text {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--invite-on-accent);
  text-align: center;
}
.invitation .of-center h2,
.invitation .oq-center h2,
.invitation .orl-center h2,
.invitation .oba-center h2,
.invitation .ost-center h2,
.invitation .oca-text h2 {
  margin: 4px 0 0;
  color: inherit;
  font: 400 36px/1.15 var(--font-elegant, Georgia, serif);
}
.of-center .invite-opening-date,
.oq-center .invite-opening-date,
.orl-center .invite-opening-date,
.oba-center .invite-opening-date,
.ost-center .invite-opening-date,
.oca-text .invite-opening-date,
.of-center p,
.oq-center p,
.orl-center p,
.oba-center p,
.ost-center p,
.oca-text p {
  margin: 0;
  color: inherit;
  font-size: 17px;
}
.of-center,
.oq-center,
.oba-center,
.ost-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  align-content: center;
  padding: 20px;
  transition: opacity 0.4s;
}
.of-star,
.oq-star,
.orl-star {
  width: 30px;
  height: 30px;
  background: currentColor;
}
.invite-opening-blossom .invite-opening-btn,
.invite-opening-tiles .invite-opening-btn,
.invite-opening-roller .invite-opening-btn,
.invite-opening-balloons .invite-opening-btn {
  background: var(--invite-on-accent);
  color: var(--invite-accent);
}

/* Flower: eight petals slide apart */
.of-petals {
  position: absolute;
  inset: 0;
}
.of-petal {
  position: absolute;
  inset: 0;
  background: var(--invite-accent);
  clip-path: var(--cp);
  transition:
    transform 1s cubic-bezier(0.5, 0, 0.3, 1),
    opacity 0.6s ease 0.5s;
}
.of-petal:nth-child(even) {
  background: color-mix(in srgb, var(--invite-accent) 78%, #fff);
}
.invite-opening-blossom.is-leaving {
  opacity: 1;
}
.invite-opening-blossom.is-leaving .of-petal {
  opacity: 0;
  transform: translate(var(--dx), var(--dy));
}
.invite-opening-blossom.is-leaving .of-center {
  opacity: 0;
}

/* Tiles: a mosaic that flips away from the middle */
.oq-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, 1fr);
}
.oq-tile {
  display: block;
  background: color-mix(in srgb, var(--invite-accent) calc(100% - var(--s) * 20%), #fff);
  transition:
    transform 0.6s cubic-bezier(0.5, 0, 0.3, 1) var(--d),
    opacity 0.5s ease var(--d);
}
.invite-opening-tiles.is-leaving {
  opacity: 1;
}
.invite-opening-tiles.is-leaving .oq-tile {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}
.invite-opening-tiles.is-leaving .oq-center {
  opacity: 0;
}

/* Roller shutter: ribs, a bar and a handle, rolling up */
.orl-shutter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, var(--invite-accent) 86%, #fff) 0 16px,
    var(--invite-accent) 16px 22px,
    color-mix(in srgb, var(--invite-accent) 62%, #000) 22px 24px
  );
  transition: transform 1.1s cubic-bezier(0.6, 0, 0.2, 1);
}
.orl-center {
  padding: 26px 28px;
  border-radius: 14px;
  background: var(--invite-accent);
  box-shadow: 0 10px 34px rgb(0 0 0 / 32%);
}
.orl-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  height: 22px;
  background: linear-gradient(#5b5f66, #24272b);
  box-shadow: 0 6px 12px rgb(0 0 0 / 30%);
}
.orl-bar i {
  display: block;
  width: 46px;
  height: 7px;
  border-radius: 4px;
  background: #cfd3d8;
}
.invite-opening-roller.is-leaving {
  opacity: 1;
}
.invite-opening-roller.is-leaving .orl-shutter {
  transform: translateY(-100%);
}

/* Balloons: they bob, then fly away and the screen fades */
.invite-opening-balloons.is-leaving {
  transition-delay: 0.6s;
  transition-duration: 0.7s;
}
.oba-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.oba-balloon {
  position: absolute;
  bottom: var(--b);
  left: var(--x);
  width: var(--w);
  aspect-ratio: 60 / 110;
  background: var(--c);
  animation: oba-bob 3.4s ease-in-out var(--t) infinite;
  transition: translate 1.5s cubic-bezier(0.4, 0, 0.8, 0.3) var(--d);
}
.invite-opening-balloons.is-leaving .oba-balloon {
  translate: 0 -150vh;
}
.invite-opening-balloons.is-leaving .oba-center {
  opacity: 0;
}
@keyframes oba-bob {
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Starry sky: the stars rush past */
.invite-opening-stars {
  background: radial-gradient(
    circle at 50% 38%,
    color-mix(in srgb, var(--invite-accent) 40%, #0a0f24),
    #05070f 78%
  );
  color: #fff;
}
.ost-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ost-star {
  position: absolute;
  width: var(--z);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgb(255 255 255 / 75%);
  animation: dc-twinkle 2.6s ease-in-out var(--w) infinite;
  transition:
    translate 1.3s cubic-bezier(0.5, 0, 0.9, 0.5),
    scale 1.3s cubic-bezier(0.5, 0, 0.9, 0.5);
}
.ost-moon {
  position: absolute;
  top: 7%;
  right: 9%;
  width: 54px;
  aspect-ratio: 1;
  background: #ffe9a8;
  transition: opacity 0.6s;
}
.invite-opening-stars .ost-center {
  color: #fff;
}
.invite-opening-stars .invite-opening-btn {
  background: #fff;
  color: #0a0f24;
}
.invite-opening-stars.is-leaving {
  transition-delay: 0.5s;
  transition-duration: 0.8s;
}
.invite-opening-stars.is-leaving .ost-star {
  translate: var(--vx) var(--vy);
  scale: 9;
}
.invite-opening-stars.is-leaving .ost-center,
.invite-opening-stars.is-leaving .ost-moon {
  opacity: 0;
}

/* Candle: the flame flickers, then goes out and the light of the page comes on */
.invite-opening-candle {
  background: radial-gradient(
    circle at 50% 66%,
    color-mix(in srgb, var(--invite-accent) 38%, #2b1b0a),
    #070504 76%
  );
  color: #fff3d6;
}
.oca-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
}
.invite-opening-candle .oca-text {
  color: #fff3d6;
}
.invite-opening-candle .invite-opening-btn {
  background: #fff3d6;
  color: #2b1b0a;
}
.oca-candle {
  position: relative;
  width: 56px;
  height: 188px;
  margin-top: 10px;
}
.oca-glow {
  position: absolute;
  top: -70px;
  left: calc(50% - 130px);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(rgb(255 190 90 / 55%), rgb(255 160 60 / 0%) 68%);
  animation: oca-pulse 2.4s ease-in-out infinite alternate;
  transition: opacity 0.5s;
}
.oca-flame {
  position: absolute;
  top: 6px;
  left: calc(50% - 11px);
  width: 22px;
  height: 44px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(
    ellipse at 50% 72%,
    #fff7c4 0 22%,
    #ffc54d 48%,
    #ff8a1f 78%,
    rgb(255 138 31 / 0%) 100%
  );
  transform-origin: 50% 100%;
  animation: oca-flicker 1.1s ease-in-out infinite alternate;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.oca-wick {
  position: absolute;
  top: 46px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #2a2118;
}
.oca-body {
  position: absolute;
  top: 58px;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, #e9d9b3, #fff6dc 40%, #f1e2bd 75%, #cdb98a);
  box-shadow: 0 10px 24px rgb(0 0 0 / 55%);
}
.invite-opening-candle.is-leaving {
  transition-delay: 0.6s;
  transition-duration: 0.7s;
}
.invite-opening-candle.is-leaving .oca-flame {
  animation: none;
  opacity: 0;
  transform: scale(0.15) translateY(8px) rotate(12deg);
}
.invite-opening-candle.is-leaving .oca-glow {
  animation: none;
  opacity: 0;
}
@keyframes oca-flicker {
  0% {
    transform: scale(1, 1) rotate(-2deg);
  }
  50% {
    transform: scale(0.94, 1.07) rotate(1.5deg);
  }
  100% {
    transform: scale(1.04, 0.95) rotate(-1deg);
  }
}
@keyframes oca-pulse {
  to {
    opacity: 0.72;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oba-balloon,
  .ost-star,
  .oca-flame,
  .oca-glow {
    animation: none;
  }
}

/* ===================================================================================================================
   Transitions between sections: a band, a line or a row of small shapes drawn between two sections.
   The page puts <div class="invite-sep"><b></b><i></i><i></i><i></i></div> between sections when the style asks
   for one (class invite-sep-<name> on the page); b is the shape, the three i are small marks. Decoration only.
   =================================================================================================================== */
.invitation[class*='invite-sep-'] .invite-section {
  border-top: 0;
}
.invite-sep {
  --sep: color-mix(in srgb, var(--invite-accent) 22%, transparent);
  position: relative;
  display: block;
  height: 40px;
  overflow: hidden;
  pointer-events: none;
}
.invite-sep > b,
.invite-sep > i {
  position: absolute;
  display: none;
}
.invite-sep > b {
  inset: 0;
  background: var(--sep);
}

/* Waves: a tide that drifts sideways */
.invite-sep-wave .invite-sep {
  height: 46px;
  --tile: 120px;
}
.invite-sep-wave .invite-sep > b {
  display: block;
  -webkit-mask: url('/art/sep/wave.svg') 0 100% / 120px 100% repeat-x;
  mask: url('/art/sep/wave.svg') 0 100% / 120px 100% repeat-x;
  animation: sep-drift 9s linear infinite;
}
/* Curve: one large dome */
.invite-sep-curve .invite-sep {
  height: 36px;
}
.invite-sep-curve .invite-sep > b {
  display: block;
  inset: 0 -8% auto;
  height: 100%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
/* Zigzag: a row of teeth that slides */
.invite-sep-zigzag .invite-sep {
  height: 18px;
  --tile: 24px;
}
.invite-sep-zigzag .invite-sep > b {
  display: block;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / 24px 100%
    repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / 24px 100% repeat-x;
  animation: sep-drift 6s linear infinite;
}
/* Scallops: a hem of half circles */
.invite-sep-scallop .invite-sep {
  height: 14px;
  --tile: 26px;
}
.invite-sep-scallop .invite-sep > b {
  display: block;
  background: color-mix(in srgb, var(--invite-accent) 38%, transparent);
  -webkit-mask:
    radial-gradient(circle at 50% 0, #000 11px, #0000 11.5px) 0 0 / 26px 100% repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% 2px no-repeat;
  mask:
    radial-gradient(circle at 50% 0, #000 11px, #0000 11.5px) 0 0 / 26px 100% repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% 2px no-repeat;
}
/* Slanted edge */
.invite-sep-diagonal .invite-sep {
  height: 34px;
}
.invite-sep-diagonal .invite-sep > b {
  display: block;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
/* Golden fade: a hairline that dissolves at both ends, and a soft glow under it */
.invite-sep-fade .invite-sep > b {
  display: block;
  background:
    linear-gradient(90deg, transparent, var(--invite-accent) 50%, transparent) 0 0 / 100% 1px no-repeat,
    radial-gradient(
      60% 100% at 50% 0,
      color-mix(in srgb, var(--invite-accent) 26%, transparent),
      transparent 72%
    );
}
/* Dots, diamonds, stars: three small marks in the middle */
.invite-sep-dots .invite-sep,
.invite-sep-diamond .invite-sep,
.invite-sep-stars .invite-sep {
  height: 34px;
}
.invite-sep-dots .invite-sep > i {
  display: block;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--invite-accent);
  animation: sep-pulse 1.8s ease-in-out infinite;
}
.invite-sep-dots .invite-sep > i:nth-of-type(1) {
  translate: -16px 0;
}
.invite-sep-dots .invite-sep > i:nth-of-type(3) {
  translate: 16px 0;
  animation-delay: 0.6s;
}
.invite-sep-dots .invite-sep > i:nth-of-type(2) {
  animation-delay: 0.3s;
}
.invite-sep-diamond .invite-sep > b {
  display: block;
  background:
    linear-gradient(90deg, transparent, var(--invite-accent)) 6% 50% / 34% 1px no-repeat,
    linear-gradient(90deg, var(--invite-accent), transparent) 94% 50% / 34% 1px no-repeat;
}
.invite-sep-diamond .invite-sep > i {
  display: block;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--invite-accent);
  rotate: 45deg;
  animation: sep-pulse 2.4s ease-in-out infinite;
}
.invite-sep-diamond .invite-sep > i:nth-of-type(1),
.invite-sep-diamond .invite-sep > i:nth-of-type(3) {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  opacity: 0.6;
}
.invite-sep-diamond .invite-sep > i:nth-of-type(1) {
  translate: -22px 0;
}
.invite-sep-diamond .invite-sep > i:nth-of-type(3) {
  translate: 22px 0;
}
.invite-sep-stars .invite-sep > i {
  display: block;
  top: 50%;
  left: 50%;
  width: 14px;
  aspect-ratio: 1;
  margin: -7px 0 0 -7px;
  background: var(--invite-accent);
  -webkit-mask: url('/art/forme/etoile.svg') center / contain no-repeat;
  mask: url('/art/forme/etoile.svg') center / contain no-repeat;
  animation: sep-twinkle 2.2s ease-in-out infinite;
}
.invite-sep-stars .invite-sep > i:nth-of-type(1) {
  translate: -26px 0;
  width: 9px;
  margin: -4.5px 0 0 -4.5px;
  animation-delay: 0.5s;
}
.invite-sep-stars .invite-sep > i:nth-of-type(2) {
  width: 20px;
  margin: -10px 0 0 -10px;
}
.invite-sep-stars .invite-sep > i:nth-of-type(3) {
  translate: 26px 0;
  width: 9px;
  margin: -4.5px 0 0 -4.5px;
  animation-delay: 1s;
}
/* Torn paper */
.invite-sep-torn .invite-sep {
  height: 30px;
}
.invite-sep-torn .invite-sep > b {
  display: block;
  -webkit-mask: url('/art/sep/torn.svg') 0 100% / 160px 100% repeat-x;
  mask: url('/art/sep/torn.svg') 0 100% / 160px 100% repeat-x;
}
/* Clouds: puffy edge that floats up and down */
.invite-sep-clouds .invite-sep {
  height: 44px;
}
.invite-sep-clouds .invite-sep > b {
  display: block;
  -webkit-mask:
    radial-gradient(circle 18px at 22px 100%, #000 17.5px, #0000 18px) 0 0 / 110px 100% repeat-x,
    radial-gradient(circle 26px at 56px 100%, #000 25.5px, #0000 26px) 0 0 / 110px 100% repeat-x,
    radial-gradient(circle 20px at 92px 100%, #000 19.5px, #0000 20px) 0 0 / 110px 100% repeat-x,
    linear-gradient(#000 0 0) 0 100% / 100% 12px no-repeat;
  mask:
    radial-gradient(circle 18px at 22px 100%, #000 17.5px, #0000 18px) 0 0 / 110px 100% repeat-x,
    radial-gradient(circle 26px at 56px 100%, #000 25.5px, #0000 26px) 0 0 / 110px 100% repeat-x,
    radial-gradient(circle 20px at 92px 100%, #000 19.5px, #0000 20px) 0 0 / 110px 100% repeat-x,
    linear-gradient(#000 0 0) 0 100% / 100% 12px no-repeat;
  animation: sep-bob 6s ease-in-out infinite;
}
/* Arcades: a band with a row of arches cut out of its lower edge */
.invite-sep-arcades .invite-sep {
  height: 22px;
}
.invite-sep-arcades .invite-sep > b {
  display: block;
  -webkit-mask: radial-gradient(circle at 50% 100%, #0000 8px, #000 8.5px) 0 0 / 20px 100% repeat-x;
  mask: radial-gradient(circle at 50% 100%, #0000 8px, #000 8.5px) 0 0 / 20px 100% repeat-x;
}
/* A line that draws itself from the middle as the section arrives, with a small diamond */
.invite-sep-draw .invite-sep {
  height: 28px;
}
.invite-sep-draw .invite-sep > b {
  display: block;
  inset: 50% 14% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--invite-accent) 18% 82%, transparent);
}
.invite-sep-draw .invite-sep > i:nth-of-type(2) {
  display: block;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--invite-bg);
  border: 1px solid var(--invite-accent);
  rotate: 45deg;
}

/* Each one arrives as the page is scrolled to it (where the browser can tie an animation to the scroll). */
@supports (animation-timeline: view()) {
  .invitation[class*='invite-sep-'] .invite-sep {
    animation: sep-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 95%;
  }
  .invitation.invite-sep-draw .invite-sep > b {
    animation: sep-draw linear both;
    animation-timeline: view();
    animation-range: entry 15% cover 40%;
  }
}
@keyframes sep-in {
  from {
    opacity: 0;
    transform: translateY(14px) scaleX(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sep-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes sep-drift {
  to {
    -webkit-mask-position: var(--tile) 100%;
    mask-position: var(--tile) 100%;
  }
}
@keyframes sep-pulse {
  0%,
  100% {
    opacity: 0.4;
    scale: 0.8;
  }
  50% {
    opacity: 1;
    scale: 1.25;
  }
}
@keyframes sep-twinkle {
  0%,
  100% {
    opacity: 0.45;
    scale: 0.75;
  }
  50% {
    opacity: 1;
    scale: 1.15;
  }
}
@keyframes sep-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .invite-sep,
  .invite-sep > b,
  .invite-sep > i {
    animation: none !important;
  }
}

/* ===================================================================================================================
   More designs for the countdown: calendar flaps, round badges, thin frames, bars, big figures, a pill, a ticket and
   a neon sign. Drawn on the same markup (four <div style="--p"> with a <b> and a <span>), in the colour of the text
   (currentColor) so they hold on a card of any colour.
   =================================================================================================================== */
/* Calendar: a white flap with a fold line */
.sv-countdown-flip .invite-count-live > div {
  position: relative;
  padding: 14px 0 10px;
  border-radius: 8px;
  background: linear-gradient(#fff 50%, #f0ebe0 50%);
  box-shadow: 0 3px 8px rgb(0 0 0 / 18%);
  color: #2a2a2e;
}
.sv-countdown-flip .invite-count-live b {
  color: #2a2a2e;
  font-size: 30px;
  line-height: 1;
}
.sv-countdown-flip .invite-count-live > div::after {
  content: '';
  position: absolute;
  top: 29px;
  right: 0;
  left: 0;
  border-top: 1px solid rgb(0 0 0 / 22%);
}
/* Round badges */
.sv-countdown-circles .invite-count-live > div {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.sv-countdown-circles .invite-count-live b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent);
  font-size: 22px;
}
/* Thin frames, the label sitting on the top line */
.sv-countdown-outline .invite-count-live {
  gap: 10px;
  padding-top: 18px;
}
.sv-countdown-outline .invite-count-live > div {
  position: relative;
  padding: 18px 0 10px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 3px;
}
.sv-countdown-outline .invite-count-live b {
  font-size: 28px;
}
.sv-countdown-outline .invite-count-live span {
  position: absolute;
  top: -7px;
  left: 50%;
  margin: 0;
  padding: 0 6px;
  background: var(--card-bg, var(--invite-bg));
  font-size: 9px;
  line-height: 14px;
  transform: translateX(-50%);
}
/* Bars: one line per unit, a bar that shows how full it is */
.sv-countdown-bar .invite-count-live {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 6px 4px 0;
}
.sv-countdown-bar .invite-count-live > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: end;
  column-gap: 14px;
  row-gap: 6px;
  text-align: left;
}
.sv-countdown-bar .invite-count-live b {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-size: 30px;
  text-align: right;
}
.sv-countdown-bar .invite-count-live span {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.sv-countdown-bar .invite-count-live > div::after {
  content: '';
  grid-column: 2;
  grid-row: 2;
  height: 6px;
  margin-bottom: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    currentColor calc(var(--p, 60) * 1%),
    color-mix(in srgb, currentColor 18%, transparent) 0
  );
}
/* Big figures: the days large, the rest small underneath */
.sv-countdown-big .invite-count-live {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 16px;
}
.sv-countdown-big .invite-count-live > div:first-child {
  grid-column: 1 / -1;
}
.sv-countdown-big .invite-count-live > div:first-child b {
  font-size: 84px;
}
.sv-countdown-big .invite-count-live > div:first-child span {
  font-size: 13px;
  letter-spacing: 5px;
}
.sv-countdown-big .invite-count-live > div:not(:first-child) b {
  font-size: 28px;
}
/* A pill holding the four figures, separated by colons */
.sv-countdown-pill .invite-count-live {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 12px 18px 10px;
  border: 1.5px solid color-mix(in srgb, currentColor 60%, transparent);
  border-radius: 999px;
}
.sv-countdown-pill .invite-count-live > div {
  position: relative;
  padding: 0 10px;
}
.sv-countdown-pill .invite-count-live > div + div::before {
  content: ':';
  position: absolute;
  top: 1px;
  left: -3px;
  font-size: 22px;
  opacity: 0.55;
}
.sv-countdown-pill .invite-count-live b {
  font-size: 24px;
}
.sv-countdown-pill .invite-count-live span {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 1px;
}
/* A ticket: dashed edge, dashed tear lines between the units */
.sv-countdown-ticket .invite-count-live {
  gap: 0;
  padding: 14px 0 12px;
  border: 1.5px dashed color-mix(in srgb, currentColor 60%, transparent);
  border-radius: 10px;
}
.sv-countdown-ticket .invite-count-live > div + div {
  border-left: 1.5px dashed color-mix(in srgb, currentColor 45%, transparent);
}
.sv-countdown-ticket .invite-count-live b {
  font-size: 28px;
}
/* A neon sign */
.sv-countdown-neon .invite-count-live > div {
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 6px 12px -8px currentColor;
}
.sv-countdown-neon .invite-count-live b {
  text-shadow:
    0 0 6px currentColor,
    0 0 18px color-mix(in srgb, currentColor 70%, transparent);
  font-size: 32px;
}
.sv-countdown-neon .invite-count-live span {
  opacity: 0.85;
}

/* ===================================================================================================================
   More designs for "Notre histoire": hearts, numbered steps, quotations, banners, a grid, stairs, a centred column,
   dates as pills. Same markup as the others: <ol class="invite-story-list"> of <li> with an optional photo, a <small>
   (the date), a <b> (the title) and a <p>. The base list draws a line on the left and a dot (li::before): each
   design takes what it needs of them.
   =================================================================================================================== */
/* On a wide page (a computer) the story keeps a column of 640 px at most, in the middle, and its photos a sensible
   size; --sl is the side margin a design keeps on a narrow page. */
.invitation[class] .invite-story-list {
  margin-inline: max(var(--sl, 0px), calc((100% - 640px) / 2));
}
.sv-story-line .invite-story-list,
.sv-story-hearts .invite-story-list,
.sv-story-chapters .invite-story-list {
  --sl: 10px;
}
.sv-story-steps .invite-story-list {
  --sl: 14px;
}
.sv-story-polaroid .invite-story-list {
  --sl: 6px;
}
.invitation .invite-story-photo {
  max-width: 420px;
}
.sv-story-banners .invite-story-list .invite-story-photo {
  max-width: none;
  aspect-ratio: 16 / 9;
}
/* Hearts on a dotted line */
.sv-story-hearts .invite-story-list {
  border-left: 2px dotted color-mix(in srgb, var(--invite-accent) 60%, transparent);
}
.sv-story-hearts .invite-story-list li::before {
  top: 3px;
  left: -33px;
  width: 20px;
  height: 18px;
  border-radius: 0;
  background: var(--invite-accent);
  box-shadow: none;
  -webkit-mask: url('/art/forme/coeur.svg') center / contain no-repeat;
  mask: url('/art/forme/coeur.svg') center / contain no-repeat;
}
/* Numbered steps: a round badge on the line */
.sv-story-steps .invite-story-list {
  gap: 24px;
  margin-left: 14px;
  padding-left: 32px;
  counter-reset: step;
}
.sv-story-steps .invite-story-list li {
  counter-increment: step;
}
.sv-story-steps .invite-story-list li::before {
  top: -2px;
  left: -48px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--invite-accent);
  box-shadow: 0 0 0 4px var(--invite-bg);
  color: var(--invite-on-accent);
  content: counter(step);
  font: 700 14px/1 sans-serif;
}
/* Quotations: a large mark, the title in italics, the date last, a diamond between steps */
.sv-story-quotes .invite-story-list {
  gap: 28px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.sv-story-quotes .invite-story-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}
.sv-story-quotes .invite-story-list li::before {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 4px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--invite-accent);
  content: '“';
  font: 400 56px/0.8 var(--font-elegant, Georgia, serif);
  opacity: 0.6;
}
.sv-story-quotes .invite-story-list .invite-story-photo {
  order: -1;
  max-width: 280px;
}
.sv-story-quotes .invite-story-list b {
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
}
.sv-story-quotes .invite-story-list small {
  order: 5;
  margin-top: 10px;
}
.sv-story-quotes .invite-story-list li:not(:last-child)::after {
  order: 9;
  margin-top: 20px;
  color: var(--invite-accent);
  content: '◆';
  font-size: 8px;
  opacity: 0.6;
}
/* Banners: the date on a band across the card */
.sv-story-banners .invite-story-list {
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.sv-story-banners .invite-story-list li {
  overflow: hidden;
  padding-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--invite-accent) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--invite-accent) 9%, var(--invite-bg));
}
.sv-story-banners .invite-story-list li::before {
  display: none;
}
.sv-story-banners .invite-story-list small {
  display: block;
  margin-bottom: 10px;
  padding: 6px 14px;
  background: var(--invite-accent);
  color: var(--invite-on-accent);
}
.sv-story-banners .invite-story-list b,
.sv-story-banners .invite-story-list p {
  padding-inline: 14px;
}
.sv-story-banners .invite-story-list .invite-story-photo {
  margin: 0;
  border-radius: 0;
}
/* A grid of two columns */
.sv-story-grid .invite-story-list {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.sv-story-grid .invite-story-list li {
  padding: 12px 12px 14px;
  border: 1px solid color-mix(in srgb, var(--invite-accent) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--invite-accent) 9%, var(--invite-bg));
}
.sv-story-grid .invite-story-list li::before {
  display: none;
}
.sv-story-grid .invite-story-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.sv-story-grid .invite-story-list b {
  font-size: 15px;
}
.sv-story-grid .invite-story-list p {
  font-size: 13px;
}
.sv-story-grid .invite-story-list .invite-story-photo {
  margin-bottom: 8px;
}
/* Stairs: every step a little further in */
.sv-story-stairs .invite-story-list {
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.sv-story-stairs .invite-story-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--invite-accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--invite-accent) 8%, var(--invite-bg));
}
.sv-story-stairs .invite-story-list li::before {
  display: none;
}
.sv-story-stairs .invite-story-list li:nth-child(2) {
  margin-left: 18px;
}
.sv-story-stairs .invite-story-list li:nth-child(3) {
  margin-left: 36px;
}
.sv-story-stairs .invite-story-list li:nth-child(4) {
  margin-left: 54px;
}
.sv-story-stairs .invite-story-list li:nth-child(5) {
  margin-left: 72px;
}
/* A centred column: a diamond, the step, a thread down to the next one */
.sv-story-centered .invite-story-list {
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.sv-story-centered .invite-story-list li {
  padding: 0 10px;
}
.sv-story-centered .invite-story-list li::before {
  position: static;
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto 12px;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}
.sv-story-centered .invite-story-list .invite-story-photo {
  max-width: 280px;
  margin-inline: auto;
}
.sv-story-centered .invite-story-list li:not(:last-child)::after {
  display: block;
  width: 1px;
  height: 30px;
  margin: 16px auto 18px;
  background: color-mix(in srgb, var(--invite-accent) 50%, transparent);
  content: '';
}
/* Dates as pills */
.sv-story-pills .invite-story-list {
  gap: 20px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.sv-story-pills .invite-story-list li {
  padding-left: 14px;
  border-left: 3px solid color-mix(in srgb, var(--invite-accent) 45%, transparent);
}
.sv-story-pills .invite-story-list li::before {
  display: none;
}
.sv-story-pills .invite-story-list small {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--invite-accent);
  color: var(--invite-on-accent);
  font-size: 11px;
}

/* ===================================================================================================================
   More designs for "Cérémonie et réception": agenda, two columns, medallion, title ribbon, alternating, double frame,
   contrast, numbered. Same markup as the others: <ul> of <li> with an icon, the title (h3), the place, the address,
   the time, a date box (weekday, day, month, year) and a "route" link.
   =================================================================================================================== */
/* On a wide page the cards keep a width that reads well */
.invitation[class] .invite-moments ul {
  max-width: 560px;
  margin-inline: auto;
}
/* Agenda: the date in a box on the left, the details on the right, a line between moments */
.sv-moments-agenda .invite-moments ul {
  gap: 0;
}
.sv-moments-agenda .invite-moments li {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 3px 16px;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--invite-accent) 28%, transparent);
  border-radius: 0;
  background: none;
  text-align: left;
}
.sv-moments-agenda .invite-moments li > :not(.invite-datebox) {
  grid-column: 2;
}
.sv-moments-agenda .invite-moment-icon {
  display: none;
}
.sv-moments-agenda .invite-datebox {
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 4px;
  border: 1.5px solid var(--invite-accent);
  border-radius: 10px;
}
.sv-moments-agenda .invite-datebox b {
  font-size: 30px;
}
.sv-moments-agenda .invite-datebox small {
  font-size: 9px;
  letter-spacing: 1px;
}
/* Two columns: the moments side by side */
.sv-moments-split .invite-moments ul {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sv-moments-split .invite-moments li {
  padding: 18px 10px;
}
.sv-moments-split .invite-moments li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.sv-moments-split .invite-moments h3 {
  font-size: 16px;
}
.sv-moments-split .invite-datebox {
  padding: 8px 12px;
}
.sv-moments-split .invite-datebox b {
  font-size: 30px;
}
/* Medallion: the icon in a round badge across the top edge of the card */
.sv-moments-medallion .invite-moments ul {
  gap: 46px;
  padding-top: 30px;
}
.sv-moments-medallion .invite-moments li {
  position: relative;
  padding-top: 44px;
}
.sv-moments-medallion .invite-moment-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--invite-accent);
  box-shadow: 0 0 0 5px var(--invite-bg);
  transform: translateX(-50%);
}
.sv-moments-medallion .invite-moment-icon svg {
  width: 30px;
  height: 30px;
  color: var(--invite-on-accent);
}
/* Title ribbon: the title on a band across the top of the card */
.sv-moments-ribbon .invite-moments li {
  gap: 6px;
  padding: 0 0 18px;
  overflow: hidden;
}
.sv-moments-ribbon .invite-moment-icon {
  display: none;
}
.sv-moments-ribbon .invite-moments h3 {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 6px;
  padding: 12px 14px;
  background: var(--invite-accent);
  color: var(--invite-on-accent);
}
.sv-moments-ribbon .invite-moments li > :not(h3) {
  padding-inline: 14px;
}
/* Alternating: cards pushed to one side then the other, with a coloured edge */
.sv-moments-alternate .invite-moments li {
  width: 86%;
  justify-items: start;
  text-align: left;
}
.sv-moments-alternate .invite-moments li:nth-child(odd) {
  margin-right: auto;
  border-left: 5px solid var(--invite-accent);
}
.sv-moments-alternate .invite-moments li:nth-child(even) {
  margin-left: auto;
  border-right: 5px solid var(--invite-accent);
  justify-items: end;
  text-align: right;
}
/* Double frame */
.sv-moments-frame .invite-moments li {
  padding: 26px 20px;
  border: 1px solid var(--invite-accent);
  border-radius: 2px;
  outline: 1px solid var(--invite-accent);
  outline-offset: -8px;
  background: none;
}
/* Contrast: a dark card on a light page (the text colour as background, the page colour as ink) */
.sv-moments-contrast .invite-moments li {
  border: 0;
  background: var(--invite-text);
  color: var(--invite-bg);
}
.sv-moments-contrast .invite-moments h3,
.sv-moments-contrast .invite-datebox b,
.sv-moments-contrast .invite-moment-icon svg {
  color: inherit;
}
.sv-moments-contrast .invite-datebox {
  border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.sv-moments-contrast .invite-btn {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
/* Numbered: a large figure on the left, like a table of contents */
.sv-moments-numbered .invite-moments ul {
  gap: 22px;
  counter-reset: moment;
}
.sv-moments-numbered .invite-moments li {
  position: relative;
  justify-items: start;
  padding: 2px 4px 2px 64px;
  border: 0;
  background: none;
  counter-increment: moment;
  text-align: left;
}
.sv-moments-numbered .invite-moments li::before {
  position: absolute;
  top: -2px;
  left: 0;
  color: var(--invite-accent);
  content: counter(moment, decimal-leading-zero);
  font: 400 42px/1 var(--font-elegant, Georgia, serif);
  opacity: 0.55;
}
.sv-moments-numbered .invite-moment-icon {
  display: none;
}
.sv-moments-numbered .invite-datebox {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
}
.sv-moments-numbered .invite-datebox b {
  font-size: 22px;
}

/* --- The reply block: the most important thing of the invitation ----------------------------------------------------
   A panel of its own in the colours of the invitation, a big button that stands out from the page (--cta, chosen in
   invitation-studio.js for its contrast), a soft halo that breathes. The shape of the button stays the template's. */
.invitation .invite-rsvp {
  margin: 28px 16px 32px;
  padding: 8px 0 12px;
  border: 1px solid color-mix(in srgb, var(--invite-accent) 32%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--invite-accent) 10%, var(--invite-bg));
  text-align: center;
}
.invitation .invite-rsvp .invite-content {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.invitation .invite-rsvp h3 {
  margin: 0;
}
.invitation .invite-rsvp p {
  margin: 0 0 8px;
  opacity: 0.85;
}
.invitation .invite-rsvp .invite-rsvp-btn {
  min-height: 58px;
  min-width: min(100%, 300px);
  padding: 0 34px;
  border: 0;
  background: var(--cta, var(--invite-accent));
  color: var(--on-cta, var(--invite-on-accent));
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--cta, var(--invite-accent)) 38%, transparent),
    0 0 0 0 color-mix(in srgb, var(--cta, var(--invite-accent)) 45%, transparent);
  animation: rsvp-breathe 3.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}
.invitation .invite-rsvp .invite-rsvp-btn:hover {
  transform: translateY(-2px);
}
.invitation .invite-rsvp .invite-rsvp-btn:focus-visible {
  outline: 3px solid var(--invite-text);
  outline-offset: 3px;
}
@keyframes rsvp-breathe {
  0%,
  100% {
    box-shadow:
      0 12px 28px color-mix(in srgb, var(--cta, var(--invite-accent)) 38%, transparent),
      0 0 0 0 color-mix(in srgb, var(--cta, var(--invite-accent)) 45%, transparent);
  }
  55% {
    box-shadow:
      0 12px 28px color-mix(in srgb, var(--cta, var(--invite-accent)) 38%, transparent),
      0 0 0 12px color-mix(in srgb, var(--cta, var(--invite-accent)) 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .invitation .invite-rsvp .invite-rsvp-btn {
    animation: none;
    transition: none;
  }
}
