body:has(.story-main) {
  --pmx-color-bg: #f3f0e7;
  --pmx-color-fg: #262e29;
  --pmx-color-link: #34695c;
  --pmx-color-accent: #34695c;
  background: #f3f0e7;
  color: #262e29;
  color-scheme: light;
}
.story-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  font:
    500 0.8rem/1.5 system-ui,
    sans-serif;
  border-bottom: 1px solid #262e2920;
}
.story-header a {
  color: inherit;
  text-decoration: none;
}
.story-main .pmx-document {
  max-inline-size: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}
.story-main .pmx-document:not([data-pmx-play]) > [data-pmx-block] {
  min-block-size: 92svh;
  padding-block: clamp(4rem, 10vh, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #262e2920;
}
.story-main :is(h1, h2) {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
  max-inline-size: 15ch;
}
.story-main h1 {
  font-size: clamp(3.7rem, 7.8vw, 7.5rem);
}
.story-main h2 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}
.story-main p {
  max-inline-size: 43ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.story-main .story-kicker {
  font:
    500 0.7rem/1.5 system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #34695c;
  margin-block: 0 2rem;
}
.story-main figure {
  margin: 0;
}
.story-main figcaption {
  text-align: center;
  font:
    0.8rem/1.5 system-ui,
    sans-serif;
  color: #52675c;
}
.story-main
  .pmx-document:not([data-pmx-play])
  > [data-pmx-block-layout="media-end"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 1rem 3rem;
}
.story-main [data-pmx-block-layout="media-end"] > :not(figure) {
  margin-block: 0;
}
.story-outline {
  --pmx-toc-layout: sidebar;
  position: fixed;
  right: 0.8rem;
  top: 40%;
  width: 2rem;
}
.story-outline summary {
  display: none;
}
.story-outline ul {
  list-style: none;
  padding: 0;
}
.story-outline a {
  font-size: 0;
  display: grid;
  place-items: center;
  min-height: 44px;
}
.story-outline a::before {
  content: "";
  width: 12px;
  height: 2px;
  background: currentColor;
}
.story-outline a[aria-current]::before {
  width: 22px;
  height: 3px;
}
.story-actions {
  margin-block-start: 2rem;
}
.story-actions p {
  font-size: 0.9rem;
}
html[data-pmx-play-mode] :is(.story-header, .story-outline) {
  display: none;
}
@media (max-width: 760px) {
  .story-outline {
    display: none;
  }
  .story-main
    .pmx-document:not([data-pmx-play])
    > [data-pmx-block-layout="media-end"] {
    display: flex;
  }
  .story-main [data-pmx-block-layout="media-end"] > figure {
    margin-block-start: 2rem;
  }
}
@media print {
  .story-header,
  .story-outline,
  .story-actions {
    display: none;
  }
  .story-main .pmx-document:not([data-pmx-play]) > [data-pmx-block] {
    min-block-size: auto;
    padding-block: 2rem;
    break-inside: avoid;
  }
}
.story-outline :is(ul, li) {
  margin: 0;
  padding: 0;
  border: 0;
}
.story-outline a {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.story-outline a::after {
  display: none;
}

.story-outline .pmx-toc-route {
  display: none;
}
.story-outline .pmx-toc-list {
  margin-inline: 0;
}

@media print {
  .story-main h1 {
    font-size: 32pt;
  }
  .story-main h2 {
    font-size: 24pt;
  }
  .story-main p {
    font-size: 11pt;
  }
  .story-main .path-diagram svg {
    max-height: 75mm;
  }
}
