@font-face {
  font-family: "Wedding Closing Brush";
  src: url("./fonts/wedding-closing-brush.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* A stronger closing composition without changing the invitation copy. */
html.native-story-scroll .native-scroll-root .story-panel-ending.native-ending-page {
  container-type: inline-size;
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 100svh !important;
  padding: clamp(72px, 9svh, 96px) clamp(28px, 8vw, 40px) clamp(72px, 9svh, 96px) !important;
  color: #49362c;
  text-align: center;
}

html.native-story-scroll .native-scroll-root .native-ending-page .reveal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

html.native-story-scroll .native-scroll-root .native-ending-page .ending-mark {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 0 28px;
  color: #a34e3c;
  font-family: "Wedding Closing Brush", "Kaiti SC", "STKaiti", serif;
  font-size: clamp(128px, 45cqw, 160px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 250, 240, .8);
}

html.native-story-scroll .native-scroll-root .native-ending-page h2 {
  margin: 0;
  padding: 0;
  color: #3e2d25;
  font-family: "Wedding Closing Brush", "Kaiti SC", "STKaiti", serif;
  font-size: clamp(48px, 18cqw, 64px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: .085em;
  text-indent: .085em;
  text-align: center;
  text-shadow: none;
}

html.native-story-scroll .native-scroll-root .native-ending-page p {
  width: 100%;
  max-width: 19em;
  margin: 25px 0 0;
  padding: 0;
  color: #624b3d;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(16px, 5.3cqw, 18px);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .05em;
  text-indent: 0;
  text-align: center;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

html.native-story-scroll .native-scroll-root .native-ending-page p + p {
  margin-top: 12px;
}

html.native-story-scroll .native-scroll-root .native-ending-page .ending-date {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 16px 16px 0;
  border-top: 1px solid rgba(151, 111, 62, .45);
  color: #825638;
  font-family: "Bodoni 72", Didot, "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.9;
  letter-spacing: .12em;
  text-indent: 0;
  text-align: center;
}

html.native-story-scroll .native-scroll-root .native-ending-page .ending-date span,
html.native-story-scroll .native-scroll-root .native-ending-page .ending-date time {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

@media (max-height: 700px) {
  html.native-story-scroll .native-scroll-root .story-panel-ending.native-ending-page {
    padding-top: 68px !important;
    padding-bottom: 64px !important;
  }

  html.native-story-scroll .native-scroll-root .native-ending-page .ending-mark {
    margin-bottom: 20px;
    font-size: clamp(116px, 40cqw, 136px);
  }

  html.native-story-scroll .native-scroll-root .native-ending-page p {
    margin-top: 20px;
    line-height: 1.85;
  }

  html.native-story-scroll .native-scroll-root .native-ending-page .ending-date {
    margin-top: 25px;
    padding-top: 13px;
  }
}
