.sr-launch {
  position: fixed;
  inset: 0;
  z-index: 1000;
  transition: opacity 180ms ease-out;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020e0a;
  color: #f4efe6;
  padding: 24px;
  box-sizing: border-box;
}
.sr-launch-brand {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sr-launch-stage {
  position: relative;
  width: 100%;
  height: 182px;
  perspective: 900px;
}
/* The closed cover is centered first; the spread recenters as it opens. */
.sr-book {
  position: absolute;
  top: 10px;
  left: calc(50% - 112px);
  width: 224px;
  height: 156px;
  transform-style: preserve-3d;
  animation: sr-book-open 5100ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.sr-book-paper,
.sr-book-leaf,
.sr-book-cover {
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 156px;
  border-radius: 2px 7px 7px 2px;
  transform-origin: left center;
  transform-style: preserve-3d;
}
.sr-book-paper-base {
  background: #eee4d2;
  box-shadow:
    3px 3px 0 #d5c9b6,
    5px 6px 0 #153528,
    0 20px 28px #0008;
}
.sr-book-leaf {
  animation: sr-page-turn 1400ms cubic-bezier(0.4, 0, 0.3, 1) both;
}
.sr-book-leaf-one {
  z-index: 2;
  animation-delay: 1200ms;
}
.sr-book-leaf-two {
  z-index: 3;
  animation-delay: 900ms;
}
.sr-book-cover {
  z-index: 4;
  animation: sr-cover-turn 1900ms 600ms cubic-bezier(0.4, 0, 0.3, 1) both;
}
.sr-book-whisper {
  position: absolute;
  top: 37px;
  left: 14px;
  right: 14px;
  padding: 4px 0;
  background: #eee4d2;
  color: #583c42;
  text-align: center;
  font:
    italic 17px/23px Georgia,
    serif;
  animation: sr-copy 500ms 2600ms ease-out both;
}
.sr-book-page,
.sr-book-cover-front {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sr-book-page {
  background: #f7efe5;
  box-shadow: inset 3px 0 10px #806b4226;
}
.sr-book-page-back {
  transform: rotateY(180deg);
}
.sr-book-lines {
  position: absolute;
  top: 28px;
  right: 17px;
  bottom: 28px;
  left: 17px;
  background: repeating-linear-gradient(
    to bottom,
    #85745b36 0 1px,
    transparent 1px 8px
  );
  opacity: 0.7;
}
.sr-book-lines::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: calc(50% - 2px);
  width: 4px;
  height: 1px;
  background: #85745b70;
}
.sr-book-cover-front {
  background: #153528;
  border: 1px solid #bba87550;
  box-sizing: border-box;
  box-shadow:
    inset 5px 0 0 #0a2118,
    inset 7px 0 1px #c9ad6538,
    2px 3px 0 #091f16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e4c48a;
}
.sr-book-cover-front::before {
  content: "";
  position: absolute;
  inset: 10px 10px 10px 13px;
  border: 1px solid #bba87538;
}
.sr-book-monogram {
  font:
    29px/1 Georgia,
    serif;
  letter-spacing: -3px;
  padding-right: 3px;
}
.sr-book-cover-rule {
  width: 20px;
  height: 1px;
  margin: 12px 0;
  background: #e4c48a80;
}
.sr-book-cover-title {
  text-align: center;
  font:
    7px/12px Georgia,
    serif;
  letter-spacing: 1.5px;
}
.sr-launch-wordmark {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 270px;
  height: auto;
  max-width: 100%;
  animation: sr-wordmark 700ms 4700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.sr-launch-wordmark > img {
  display: block;
  width: 100%;
  height: auto;
}
/* Color treatment is restricted to the pepper; the original letterforms stay intact. */
.sr-wordmark-pepper {
  position: absolute;
  inset: 0;
  clip-path: inset(0 45% 0 40%);
  filter: brightness(1.2) saturate(1.05);
}
.sr-launch-tagline {
  position: absolute;
  top: 116px;
  width: 100%;
  margin: 0;
  text-align: center;
  font:
    italic 20px/30px Georgia,
    serif;
  animation: sr-final-copy 1300ms 5200ms ease-out both;
}
.sr-launch-rule {
  position: absolute;
  top: 171px;
  left: calc(50% - 16px);
  width: 32px;
  height: 1px;
  background: #f9a9ab;
  animation: sr-final-copy 1300ms 5200ms ease-out both;
}
.sr-launch-status {
  margin: 20px 0 0;
  color: #a9bfb2;
  font:
    13px/20px system-ui,
    sans-serif;
}
.sr-launch-skip {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  background: none;
  border: 0;
  padding: 10px 14px;
  color: #a9bfb2;
  font:
    13px/20px system-ui,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  visibility: hidden;
}
.sr-launch[data-destination-ready="true"] .sr-launch-skip {
  visibility: visible;
}
.sr-launch-skip:focus-visible {
  outline: 2px solid #f9a9ab;
  outline-offset: 2px;
}
.sr-launch-help {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
  color: #a9bfb2;
  font:
    13px/20px system-ui,
    sans-serif;
  visibility: hidden;
  animation: sr-help 0s 12s forwards;
}
.sr-launch-help button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  color: #f9a9ab;
  text-underline-offset: 3px;
}
.sr-launch-help button:focus-visible {
  outline: 2px solid #f9a9ab;
  outline-offset: 4px;
}
@keyframes sr-book-open {
  0%,
  12% {
    transform: translateX(-56px) rotate(-5deg);
    opacity: 1;
  }
  50%,
  85% {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0) rotate(0) translateY(5px) scale(0.96);
    opacity: 0;
  }
}
@keyframes sr-cover-turn {
  0%,
  10% {
    transform: rotateY(-4deg);
  }
  100% {
    transform: rotateY(-179deg);
  }
}
@keyframes sr-page-turn {
  from {
    transform: rotateY(0);
  }
  to {
    transform: rotateY(-174deg);
  }
}
@keyframes sr-wordmark {
  from {
    opacity: 0;
    clip-path: inset(0 50%);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@keyframes sr-copy {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Reveal the final line, then let the finished brand settle before handoff. */
@keyframes sr-final-copy {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  35%,
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sr-help {
  to {
    visibility: visible;
  }
}
.sr-launch-ready {
  opacity: 0;
  pointer-events: none;
}
.sr-launch-docking {
  background-color: transparent;
  transition: background-color 900ms ease;
}
.sr-launch-docking .sr-launch-brand,
.sr-launch-docking .sr-launch-skip,
.sr-launch-docking .sr-launch-help {
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .sr-book {
    display: none;
  }
  .sr-launch-wordmark,
  .sr-launch-tagline,
  .sr-launch-rule {
    animation: none;
  }
  .sr-launch {
    transition: none;
  }
}
.sr-no-js {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
  color: #f4efe6;
  font:
    18px/28px Georgia,
    serif;
}
