html.has-pagination,
html.has-pagination body.paginated-session {
  height: 100%;
  overflow: hidden;
}

.paginated-session {
  background: #080706;
}

.story-session-nav {
  z-index: 140;
  transform: translateX(-50%);
}

.story-session-nav .nav-next {
  align-self: stretch;
  display: grid;
  place-items: center end;
}

@keyframes next-session-pulse {
  0%, 100% {
    background: rgba(213, 146, 76, .08);
    box-shadow: inset 0 0 0 1px rgba(213, 146, 76, .16);
    color: #c9b99f;
  }
  50% {
    background: rgba(213, 146, 76, .92);
    box-shadow:
      inset 0 0 0 1px rgba(255, 231, 190, .66),
      0 0 28px rgba(213, 146, 76, .58);
    color: #17100a;
  }
}

.story-session-nav .nav-next.is-next-session-pulsing {
  animation: next-session-pulse 1.65s ease-in-out infinite;
}

.story-deck {
  background: #080706;
}

.has-pagination .story-deck {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.has-pagination .story-deck::-webkit-scrollbar {
  display: none;
}

.story-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid #4b3524;
  background:
    radial-gradient(circle at 70% 30%, rgba(84, 55, 33, .13), transparent 35%),
    #0c0907;
}

.has-pagination .story-page {
  height: 100svh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-cover-image,
.story-cover-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-cover-image {
  object-fit: cover;
  object-position: center;
}

.story-cover-scrim {
  background:
    linear-gradient(90deg, rgba(6, 4, 3, .96), rgba(6, 4, 3, .5) 52%, transparent 80%),
    linear-gradient(0deg, rgba(8, 6, 5, .98), transparent 48%);
}

.cover-chapter-mark {
  display: grid;
  width: clamp(86px, 8vw, 116px);
  aspect-ratio: 1;
  place-content: center;
  flex: none;
  border: 1px solid #9b7448;
  outline: 7px double rgba(75, 49, 30, .92);
  background: radial-gradient(circle, rgba(124, 72, 38, .92), rgba(28, 17, 11, .96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .48);
  color: #f0d397;
  text-align: center;
}

.cover-chapter-mark span {
  margin-bottom: 5px;
  font: 900 8px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.cover-chapter-mark strong {
  font: 54px/.9 var(--serif);
}

.story-cover-copy {
  bottom: clamp(104px, 13vh, 155px);
  width: min(1120px, 86vw);
}

.cover-title-row {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  align-items: flex-start;
  margin: 14px 0 20px;
}

.story-cover-copy .cover-title-row h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(70px, 10vw, 150px);
}

.story-cover-copy.is-long-title h1 {
  font-size: clamp(56px, 7.5vw, 112px);
}

.story-cover-copy.is-very-long-title h1 {
  max-width: 850px;
  font-size: clamp(48px, 6.3vw, 94px);
  line-height: .86;
}

.cover-actions {
  position: absolute;
  z-index: 4;
  right: clamp(22px, 4vw, 64px);
  bottom: 100px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.cover-page-down,
.cover-fullscreen {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(213, 146, 76, .58);
  background: rgba(9, 7, 6, .72);
  color: #d9bd8d;
  cursor: pointer;
  font: 900 8px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cover-fullscreen {
  display: none;
}

.cover-fullscreen.is-available {
  display: flex;
}

.cover-page-down b,
.cover-fullscreen b {
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #765333;
  border-radius: 50%;
  font-size: 14px;
}

.cover-page-down:hover,
.cover-fullscreen:hover {
  border-color: rgba(240, 196, 126, .9);
  background: rgba(213, 146, 76, .92);
  color: #17100a;
}

.scene-page {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, .72fr);
}

.scene-page.is-reversed {
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1.48fr);
}

.scene-page.is-reversed .story-media {
  order: 2;
}

.story-media {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 78px 28px 66px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(91, 67, 46, .24), transparent 62%),
    #070605;
}

.story-image-button {
  display: grid;
  width: 100%;
  max-height: calc(100svh - 210px);
  margin: 0;
  padding: 7px;
  place-items: center;
  border: 1px solid #715035;
  background: #050403;
  box-shadow: 17px 20px 0 rgba(0, 0, 0, .48), 0 32px 80px rgba(0, 0, 0, .55);
  cursor: zoom-in;
}

.story-image-button img {
  width: 100%;
  max-height: calc(100svh - 226px);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050403;
}

.story-media figcaption {
  position: static;
  width: min(100%, 1050px);
  margin: 18px auto 0;
  color: #b5a791;
  font: 400 clamp(16px, 1.3vw, 19px)/1.45 var(--serif);
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.story-copy {
  display: flex;
  min-width: 0;
  padding: 100px clamp(34px, 4vw, 72px) 96px;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  border-left: 1px solid #46301f;
  background:
    linear-gradient(90deg, rgba(28, 19, 13, .72), rgba(12, 9, 7, .96)),
    #0d0a08;
}

.scene-page.is-reversed .story-copy {
  border-right: 1px solid #46301f;
  border-left: 0;
}

.story-kicker {
  margin-bottom: 18px;
  color: var(--amber);
  font: 900 9px/1.2 var(--sans);
  letter-spacing: .21em;
  text-transform: uppercase;
}

.story-copy h2,
.aftermath-heading h2 {
  margin: 0 0 28px;
  color: #ead7b3;
  font: 500 clamp(42px, 4.7vw, 76px)/.9 var(--serif);
  letter-spacing: -.04em;
}

.story-copy > p {
  max-width: 650px;
  margin-bottom: 18px;
  color: #a99f8e;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
}

.story-copy .story-lead {
  color: #d0c0a5;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.48;
}

.story-copy blockquote {
  margin: 14px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
  color: #d0b681;
  font: italic 20px/1.4 var(--serif);
}

.story-copy .story-coda {
  color: #b48253;
  font-style: italic;
}

.pagination-ui {
  position: fixed;
  z-index: 150;
  right: 18px;
  bottom: 16px;
  display: none;
  align-items: center;
  border: 1px solid rgba(205, 165, 112, .36);
  background: rgba(8, 6, 5, .86);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .52);
  backdrop-filter: blur(14px);
}

.has-pagination .pagination-ui {
  display: flex;
}

.page-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #d3b780;
  cursor: pointer;
  font-size: 17px;
}

.page-arrow:hover:not(:disabled) {
  background: #ead5ae;
  color: #15100c;
}

.page-arrow:disabled {
  opacity: .22;
  cursor: default;
}

.page-position {
  display: grid;
  grid-template-columns: auto auto auto;
  min-width: 124px;
  padding: 0 13px;
  color: #a78b68;
  font: 900 9px/1 var(--sans);
  letter-spacing: .12em;
  text-align: center;
}

.page-position i {
  padding: 0 5px;
  color: #5c4937;
  font-style: normal;
}

.page-position strong {
  grid-column: 1 / -1;
  margin-top: 5px;
  overflow: hidden;
  color: #d6c5a8;
  font-size: 7px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 12px;
  border-inline: 1px solid rgba(205, 165, 112, .2);
}

.page-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #806246;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.page-dots button[aria-current="step"] {
  border-color: #e2bd7c;
  background: #d5924c;
  box-shadow: 0 0 0 3px rgba(213, 146, 76, .15);
}

.aftermath-page {
  display: grid;
  padding: 88px clamp(28px, 7vw, 110px) 70px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 78, 39, .2), transparent 32%),
    #0b0806;
}

.aftermath-wrap {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(340px, 1.2fr);
  gap: 24px 60px;
  width: min(1280px, 100%);
  max-height: calc(100svh - 150px);
}

.aftermath-heading blockquote {
  margin: 0;
  color: #d4b77f;
  font: italic 28px/1.2 var(--serif);
}

.aftermath-outcomes {
  padding: 28px 34px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, .025);
}

.aftermath-outcomes h3,
.story-cast > h3 {
  margin: 0 0 14px;
  color: #9c7952;
  font: 900 9px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.aftermath-outcomes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #a79c8a;
  font-size: 14px;
  line-height: 1.4;
}

.story-cast {
  grid-column: 1 / -1;
  min-width: 0;
}

.story-cast-strip {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-color: #6a4b31 transparent;
}

.story-cast-strip figure {
  flex: 0 0 106px;
  margin: 0;
  border: 1px solid #4a3626;
  background: #17110d;
}

.story-cast-strip img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  object-position: top;
}

.story-cast-strip figcaption {
  padding: 8px;
}

.story-cast-strip strong,
.story-cast-strip span {
  display: block;
}

.story-cast-strip strong {
  color: #d9c6a6;
  font: 900 9px/1 var(--sans);
  text-transform: uppercase;
}

.story-cast-strip span {
  margin-top: 4px;
  color: #7c7163;
  font: 8px/1.2 var(--sans);
}

.aftermath-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border: 1px solid #4a3524;
}

.aftermath-links a,
.aftermath-links span {
  padding: 13px 16px;
  color: #a99578;
  font: 900 8px/1.2 var(--sans);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.aftermath-links > :nth-child(2) {
  border-inline: 1px solid #4a3524;
  text-align: center;
}

.aftermath-links > :last-child {
  text-align: right;
}

.aftermath-links span {
  opacity: .32;
}

.aftermath-links a:hover {
  background: #dfc9a3;
  color: #17110d;
}

.story-lightbox {
  width: min(96vw, 1800px);
  max-width: none;
  height: 94svh;
  max-height: none;
  margin: auto;
  padding: 16px;
  border: 1px solid rgba(212, 179, 129, .45);
  background: rgba(5, 4, 3, .96);
  color: #d9c7a7;
  box-shadow: 0 40px 120px #000;
}

.story-lightbox::backdrop {
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
}

.lightbox-stage {
  display: grid;
  width: 100%;
  height: calc(100% - 60px);
  place-items: center;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #846342;
  border-radius: 50%;
  background: rgba(8, 6, 5, .85);
  color: #e6d2ad;
  cursor: pointer;
  font: 28px/1 var(--serif);
}

.lightbox-caption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  min-height: 44px;
  padding: 10px 52px 0 8px;
  font-family: var(--sans);
}

.lightbox-caption strong {
  color: #e4cfa9;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lightbox-caption span {
  color: #8e8271;
  font-size: 10px;
}

@media (max-width: 760px) {
  .story-session-nav .nav-index {
    font-size: 6px;
  }

  .cover-chapter-mark {
    width: 62px;
    outline-width: 4px;
  }

  .cover-chapter-mark span {
    font-size: 6px;
  }

  .cover-chapter-mark strong {
    font-size: 34px;
  }

  .story-cover-copy {
    bottom: 116px;
  }

  .cover-title-row {
    gap: 16px;
  }

  .story-cover-copy h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .story-cover-copy.is-long-title h1 {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .story-cover-copy.is-very-long-title h1 {
    font-size: clamp(32px, 8.7vw, 44px);
  }

  .story-cover-copy .deck {
    font-size: 18px;
  }

  .cover-actions {
    right: 14px;
    bottom: 64px;
    left: 14px;
    justify-content: space-between;
  }

  .scene-page,
  .scene-page.is-reversed {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 51svh) minmax(0, 49svh);
  }

  .scene-page.is-reversed .story-media {
    order: 0;
  }

  .story-media {
    padding: 70px 12px 16px;
  }

  .story-image-button {
    max-height: calc(51svh - 150px);
    padding: 4px;
    box-shadow: 8px 10px 0 rgba(0, 0, 0, .5);
  }

  .story-image-button img {
    max-height: calc(51svh - 158px);
  }

  .story-media figcaption {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.35;
  }

  .story-copy,
  .scene-page.is-reversed .story-copy {
    display: block;
    padding: 24px 22px 84px;
    border-top: 1px solid #46301f;
    border-right: 0;
    border-left: 0;
  }

  .story-kicker {
    margin-bottom: 10px;
    font-size: 7px;
  }

  .story-copy h2,
  .aftermath-heading h2 {
    margin-bottom: 16px;
    font-size: 39px;
  }

  .story-copy > p,
  .story-copy .story-lead {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  .story-copy blockquote {
    font-size: 17px;
  }

  .pagination-ui {
    right: 8px;
    bottom: 8px;
    left: 8px;
    justify-content: space-between;
  }

  .page-position {
    min-width: 94px;
  }

  .page-dots {
    gap: 6px;
    padding: 0 8px;
  }

  .aftermath-page {
    display: block;
    padding: 76px 16px 72px;
    overflow-y: auto;
  }

  .aftermath-wrap {
    display: block;
    max-height: none;
  }

  .aftermath-heading h2 {
    font-size: 38px;
  }

  .aftermath-heading blockquote {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .aftermath-outcomes {
    margin-bottom: 20px;
    padding: 18px 20px;
  }

  .aftermath-outcomes ul {
    font-size: 12px;
  }

  .story-cast {
    margin-bottom: 18px;
  }

  .story-cast-strip figure {
    flex-basis: 86px;
  }

  .aftermath-links {
    grid-template-columns: 1fr;
  }

  .aftermath-links a,
  .aftermath-links span,
  .aftermath-links > :last-child {
    text-align: center;
  }

  .aftermath-links > :nth-child(2) {
    border-block: 1px solid #4a3524;
    border-inline: 0;
  }

  .story-lightbox {
    width: 96vw;
    height: 92svh;
    padding: 8px;
  }

  .lightbox-stage {
    height: calc(100% - 82px);
  }

  .lightbox-caption {
    display: grid;
    gap: 4px;
    padding: 8px 44px 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-pagination .story-deck {
    scroll-behavior: auto;
  }
}

@media print {
  html.has-pagination,
  html.has-pagination body.paginated-session {
    height: auto;
    overflow: visible;
  }

  .has-pagination .story-deck {
    height: auto;
    overflow: visible;
  }

  .has-pagination .story-page {
    height: auto;
    min-height: 100vh;
    break-after: page;
  }

  .pagination-ui,
  .story-session-nav,
  .cover-actions {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-session-nav .nav-next.is-next-session-pulsing {
    animation: none;
    background: rgba(213, 146, 76, .92);
    box-shadow: inset 0 0 0 1px rgba(255, 231, 190, .66);
    color: #17100a;
  }
}
