/* The invitation unfolds as painted scenery, with the words resting between scenes. */
:root {
  --scene-paper: #fbf7ef;
  --scene-night: #13233b;
  --scene-gold: #e6c98b;
  --scene-gutter: clamp(22px, 6vw, 30px);
}

.site-header {
  background: #0d192d;
  border-bottom: 0;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 900px;
  max-width: none;
  width: 100%;
  padding: 36px var(--scene-gutter) 28px;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  background: #142b46;
}

.hero .hero-art.official-castle-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #142b46 url("assets/video/castle-clean-sky-v3-poster.jpg") center / cover no-repeat;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.hero .hero-background-video,
.hero .hero-background-poster,
.hero .official-castle-scene > video,
.hero .official-castle-scene > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  filter: none;
  box-shadow: none;
  transform: none;
}

.hero .hero-background-video {
  z-index: 1;
}

.hero .hero-background-poster {
  z-index: 0;
}

.hero .official-castle-card,
.hero .official-castle-scene figcaption {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  background: linear-gradient(180deg, #08132655 0%, #10213b00 20%, #10213b00 51%, #0b1a35a6 65%, #09162be8 81%, #09162bf2 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  height: 78px;
  background: linear-gradient(180deg, #fbf7ef00, #fbf7ef);
  filter: none;
  pointer-events: none;
}

.hero .hero-copy {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  max-width: 460px;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.hero-copy > .eyebrow {
  display: none;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero .couple-names {
  justify-content: center;
  color: #fff7e9;
}

.hero .couple-roman {
  margin-bottom: 17px;
  color: #ded9d1;
}

.hero .hero-event-info {
  margin: 14px 0 22px;
  color: #f0e6d3;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.3px;
}

.hero .hero-copy > .primary {
  width: min(100%, 280px);
  min-height: 50px;
  background: linear-gradient(110deg, #e6c98b, #f0dbae);
  box-shadow: none;
}

.hero .hero-copy .hero-magic-controls {
  position: static;
  inset: auto;
  width: min(100%, 280px);
  margin: 12px auto 0;
  border-color: #e4cb986b;
  background: #10223c5e;
  box-shadow: none;
}

.hero .hero-copy .hero-magic-controls button {
  min-height: 45px;
  color: #ebd8b4;
}

.hero .hero-bottom {
  display: none;
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  border: 0;
  margin: 0;
  padding: 22px 0 6px;
  justify-content: center;
}

.hero-bottom > span {
  display: none;
}

.hero .hero-bottom > a {
  color: #354662;
  font-size: 11px;
  letter-spacing: 1px;
}

.hero .hero-bottom > a span {
  color: #987b48;
}

.storybook-nav {
  background: var(--scene-paper);
}

.story.section {
  max-width: none;
  width: 100%;
  padding: 49px 0 0;
  border: 0;
  background: var(--scene-night);
  color: #f6ead6;
  overflow: hidden;
}

.story > .section-head,
.story > .story-heading {
  display: block;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--scene-gutter);
  padding-right: var(--scene-gutter);
}

.story > .section-head {
  display: flex;
  margin-bottom: 27px;
}

.story.section h2,
.story .story-book h3 {
  color: #f9edd8;
}

.story .section-head > .eyebrow,
.story .handwritten,
.story .tiny-star {
  color: #cfb482;
}

.story .story-heading > p,
.story .story-prose {
  color: #dcd5cb;
}

.story > .story-heading {
  margin-bottom: 27px;
}

.story .story-book {
  display: block;
  min-height: 0;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.story .story-book::before,
.story .story-book-left::before,
.story .story-book-left::after {
  display: none;
}

.story .story-book-left {
  display: block;
  position: relative;
  min-height: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.story .belle-beast-art {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border: 0;
  filter: none;
  box-shadow: none;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 83%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 83%, transparent);
}

.story .story-book-left > p {
  margin: -2px 0 0;
  padding: 11px var(--scene-gutter) 0;
  text-align: center;
  color: #e5c797;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.5px;
}

.story .story-book-left .book-caption {
  display: none;
}

.story .story-book-right {
  max-width: 620px;
  padding: 34px var(--scene-gutter) 49px;
  margin: 0 auto;
  background: transparent;
}

.story .story-book-right > .eyebrow {
  color: #c8ac7c;
}

.story .story-pending,
.story .chapter-date span {
  color: #bfb5a5;
}

.story .chapter-date {
  color: #e1c58d;
  border-color: #d4bb8c33;
}

.venue.section {
  display: block;
  max-width: none;
  width: 100%;
  padding: 0 0 49px;
  background: var(--scene-paper);
  overflow: hidden;
}

.venue .venue-visual-stack {
  width: 100%;
  margin: 0;
  padding: 0;
}

.venue .hotel-photo {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--scene-paper) url("assets/illustrated/shanghai-hotel-watercolor.png") center / cover no-repeat;
  box-shadow: none;
  transform: none;
}

.venue .hotel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fbf7ef55, transparent 18%, transparent 78%, #fbf7ef);
  pointer-events: none;
}

.venue .hotel-photo figcaption {
  display: none;
}

.venue .hotel-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  object-fit: contain;
  filter: none;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 84%, transparent);
}

.venue .ariel-postcard {
  position: relative;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.venue .ariel-postcard img {
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 77%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 77%, transparent);
}

.venue .ariel-postcard figcaption {
  display: none;
}

.venue .venue-copy {
  max-width: 620px;
  padding: 25px var(--scene-gutter) 0;
  margin: 0 auto;
  text-align: center;
}

.venue .venue-links {
  justify-content: center;
}

.stay.section {
  max-width: none;
  width: 100%;
  padding: 48px 0 45px;
  margin: 0;
  border: 0;
  background: linear-gradient(180deg, #fbf7ef, #efe6d7);
}

.stay > .section-head,
.stay > .stay-heading {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--scene-gutter);
  padding-right: var(--scene-gutter);
}

.stay .stay-panel {
  display: block;
  width: 100%;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.stay .stay-symbol {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stay .stay-symbol .zootopia-art {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 13%, #000 79%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 13%, #000 79%, transparent);
}

.stay .stay-symbol > span {
  display: none;
}

.stay .stay-details {
  max-width: 620px;
  padding: 30px var(--scene-gutter) 10px;
  margin: 0 auto;
  text-align: center;
}

.stay .stay-details dl {
  text-align: left;
}

.stay .guest-notes {
  max-width: 620px;
  padding: 0 var(--scene-gutter);
  margin: 25px auto 0;
}

.friends-section.section {
  position: relative;
  max-width: none;
  padding: 45px var(--scene-gutter) 49px;
  overflow: hidden;
  background: radial-gradient(ellipse at 15% 49%, #e7ead450, transparent 58%), radial-gradient(ellipse at 85% 63%, #eedce255, transparent 58%), linear-gradient(180deg, #f8f2e8, #f5f5eb 62%, #e3edf3);
}

.official-friends,
.official-friends figure,
.official-friends img {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.official-friends figure {
  padding: 0;
  transform: none;
}

.official-friends img {
  filter: none;
}

.closing.frozen-finale {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  gap: 0;
  padding: 0 0 48px;
  overflow: hidden;
  background: linear-gradient(180deg, #e3edf3, #e9f2f5);
}

.frozen-finale .official-frozen-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.frozen-finale .official-frozen-frame img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 11%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 11%, #000 78%, transparent);
}

.frozen-finale .official-frozen-frame figcaption {
  display: none;
}

.frozen-finale .closing-copy {
  max-width: 620px;
  padding: 29px var(--scene-gutter) 0;
  margin: 0 auto;
  text-align: center;
}

.official-intro-rose {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
}

.magic-intro {
  isolation: isolate;
  background: #0d1a30 url("assets/video/castle-clean-sky-v3-poster.jpg") center / cover no-repeat;
}

.magic-intro::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #07152c33, #0b1c3400 33%, #0a19364d 55%, #08162cdb 77%, #08162cf2);
  pointer-events: none;
}

.magic-intro .intro-frame,
.magic-intro .intro-sky,
.magic-intro .intro-overline,
.magic-intro #intro-description {
  display: none;
}

.magic-intro .intro-content {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  justify-content: flex-end;
  padding: 32px 24px calc(48px + env(safe-area-inset-bottom, 0px));
}

.magic-intro .intro-content h2 {
  font-size: 30px;
  line-height: 1.7;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #fff6e5;
}

.magic-intro .intro-button {
  width: min(100%, 280px);
  min-height: 50px;
  box-shadow: none;
}

.magic-intro #skip-intro {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.7;
}

.magic-reduced .hero .hero-background-video,
.magic-paused .hero .hero-background-video {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-background-video {
    visibility: hidden;
  }
}

@media (max-width: 720px) {
  .hero {
    height: calc(100svh - 70px);
    min-height: 780px;
    padding-top: 24px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .hero h1 {
    margin: -1px;
  }

  .hero .couple-names {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero .couple-roman {
    display: none;
  }

  .hero .hero-event-info {
    font-size: 13.5px;
    line-height: 1.8;
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .hero .hero-copy > .primary {
    min-height: 48px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .hero .hero-copy .hero-magic-controls {
    margin-top: 9px;
  }

  .hero .hero-copy .hero-magic-controls button {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero .hero-bottom {
    padding-bottom: 8px;
  }

  .story .story-book-right {
    padding-top: 31px;
    padding-bottom: 45px;
  }

  .official-friends {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 8px;
  }

  .official-friends figure {
    flex: 0 0 calc(25% - 6px);
    max-width: 120px;
  }

  .official-friends figcaption {
    font-size: 11px;
    margin-top: 9px;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 780px;
    padding-top: 24px;
  }

}

/* A sealed invitation keeps the welcome a surprise until the wedding day. */
.friends-section .mystery-invitation {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  height: 232px;
  padding: 28px 20px 24px;
  margin: 31px auto 21px;
  overflow: hidden;
  border: 1px solid #cdbb9570;
  border-radius: 2px;
  background: radial-gradient(ellipse at 50% 20%, #fffdf5, transparent 75%), linear-gradient(145deg, #f8f2e5, #eee4d2);
  color: #8b744b;
  box-shadow: none;
  text-align: center;
  cursor: default;
  pointer-events: none;
}

.friends-section .mystery-invitation::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(33deg, transparent 49.4%, #b69b7130 49.8%, transparent 50.2%) left bottom / 50% 100% no-repeat, linear-gradient(-33deg, transparent 49.4%, #b69b7130 49.8%, transparent 50.2%) right bottom / 50% 100% no-repeat;
}

.friends-section .mystery-invitation::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 132px;
  background: linear-gradient(180deg, #fffaf090, #f0e6d480);
  clip-path: polygon(0 0, 100% 0, 50% 84%);
}

.friends-section .mystery-spark {
  position: absolute;
  top: 19px;
  right: 20px;
  font: 21px/1 var(--roman);
  color: #b49a69;
}

.friends-section .mystery-overline {
  position: relative;
  font: 9px/1.7 var(--sans);
  letter-spacing: 2.3px;
  color: #a18b63;
}

.friends-section .mystery-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 15px auto 17px;
  border: 1px solid #b89c665f;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #faf0d4, #e4d1a4);
  color: #a58a53;
  font: 28px/1 var(--roman);
  box-shadow: none;
}

.friends-section .mystery-caption {
  max-width: 250px;
  font: 13px/1.9 var(--serif);
  color: #8d7856;
  letter-spacing: 0.5px;
}

.friends-section .mystery-invitation + .friends-note {
  max-width: 290px;
  margin: 14px auto 0;
  color: #a29581;
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.3px;
}
