:root { color-scheme: dark; }
body {
  margin: 0;
  background: #19131b;
  color: #fff4e8;
  font: 1rem/1.5 system-ui, sans-serif;
}
main { width: min(100% - 2rem, 42rem); margin: clamp(1rem, 5vw, 3rem) auto; }
h1, h2, a { color: #ffe3a3; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 1rem; }
article p { font: 1.15rem/1.65 Georgia, serif; margin: 0 0 .8em; }
article img { display: block; width: 100%; height: auto; border-radius: .75rem; margin-bottom: 1.5rem; }
.part-index ol, .story-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.part-index ol { list-style: none; padding: 0; margin: 0; }
.story-nav a, .part-index a, .part-index [aria-current] {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding: .4rem .75rem;
  border: 1px solid #bd977a;
  border-radius: .6rem;
  text-decoration: none;
}
.part-index [aria-current] { background: #ffe3a3; color: #19131b; font-weight: 700; }
.story-nav:last-child { margin-top: 2rem; }
a:hover { background: #3b2b34; }
a:focus-visible { outline: 2px solid #ffe3a3; outline-offset: 3px; }

.story-about {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #19131b45, #19131bc9),
    var(--story-cover) center / cover no-repeat,
    #19131b;
  display: flow-root;
}
.about-panel {
  margin-top: clamp(2rem, 10vh, 6rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #bd977a;
  border-radius: .75rem;
  background: #19131bed;
}
.about-panel h1 { margin-top: 0; }
.story-about > main > .story-nav a { background: #19131bed; }
.story-subtitle { font-style: italic; }
.scene-break { text-align: center; }
