:root {
  color-scheme: light dark;
  --bg: #0b0d10;
  --fg: #e8e8e8;
  --muted: #8a8f98;
  --accent: #6ee7b7;
  --line: #1c2026;
}
* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}
main {
  max-width: 38rem;
  width: 100%;
}
a {
  color: var(--muted);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
.crumb {
  margin: 0 0 2rem;
  font-size: 0.85rem;
}

/* index page */
.index-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.ascii-dag {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: pre;
  display: inline-block;
  margin: 0 0 0.75rem;
}
.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.toc {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  counter-reset: entry;
}
.toc li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  margin: 0 0 0.9rem;
}
.toc a.title {
  color: var(--fg);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.35rem;
}
.toc a.title:hover {
  color: var(--accent);
}
.toc .part {
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}
.toc .blurb {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.45;
}

/* story page */
.story-head {
  text-align: center;
  margin: 0 0 2.5rem;
}
.story-head h1 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}
.story-head .meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose p {
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 1.15rem;
}
.prose p.stanza {
  margin: 0 0 1.4rem;
}
.prose h2.section {
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin: 2.6rem 0 1.5rem;
}
.story-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  gap: 1rem;
}
.story-nav .idx {
  font-size: 0.75rem;
}
.story-nav .empty {
  flex: 1;
}
