/* Base look ported directly from aintogeny.com's style.css - same paper/
   ink editorial palette, same serif type, same restrained rules. Real
   addition here: the browser's NATIVE View Transitions API (not a JS
   library) for smooth cross-document navigation between chapters -
   `@view-transition { navigation: auto }` alone gives every same-origin
   navigation a default crossfade for free, and giving the chapter image
   and heading a shared `view-transition-name` across every page makes
   them morph/cross-fade into each other on chapter-to-chapter navigation
   instead of hard-cutting, closer to an actual page turn. */
@view-transition {
  navigation: auto;
}

:root { --ink: #0a0a0a; --paper: #f5f5f3; --line: #d8d8d4; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 70vh; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero-text {
  position: relative; padding: 60px 0; text-align: center; width: 100%;
  color: var(--paper); z-index: 2;
  background: linear-gradient(to top, rgba(10,10,10,0.85), transparent);
}
.hero-text h1 {
  font-size: clamp(32px, 6vw, 64px); font-weight: normal; letter-spacing: 1px;
  font-style: italic;
}
.hero-text .sub {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: #ccc; margin-top: 14px;
  max-width: 600px; margin-left: auto; margin-right: auto; font-style: normal; line-height: 1.7;
}

section { padding: 60px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: #666; margin-bottom: 28px; }
p { font-size: 17px; margin-bottom: 18px; max-width: 640px; }
.lede { font-size: 20px; font-style: italic; color: #333; max-width: 620px; }

.story-bar {
  padding: 24px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  display: flex; justify-content: space-between; align-items: center;
}
.story-bar a { text-decoration: none; color: #666; }
.story-bar a:hover { color: var(--ink); }

.chapter-heading {
  font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: #666;
  padding: 40px 0 0;
}
.chapter-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: normal; font-style: italic;
  margin: 10px 0 32px;
  view-transition-name: chapter-title;
}

.chapter-image { margin: 0 0 32px; view-transition-name: chapter-image; }
.chapter-image img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

.toc { list-style: none; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a {
  display: block; padding: 22px 0; text-decoration: none; font-size: 20px;
  font-style: italic; color: var(--ink);
}
.toc .toc-num {
  font-family: 'Courier New', monospace; font-style: normal; font-size: 13px;
  color: #999; margin-right: 14px;
}
.toc a:hover { color: #555; }

.page-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 0 60px; gap: 16px;
}
.page-nav a {
  flex: 1; text-decoration: none; font-size: 14px; padding: 16px 18px;
  border: 1px solid var(--line); text-transform: uppercase; letter-spacing: 1px;
}
.page-nav a.next { text-align: right; }
.page-nav a:hover { border-color: var(--ink); }
.page-nav .spacer { flex: 1; visibility: hidden; }

.review-quote {
  max-width: 560px; margin: 50px auto 0; text-align: center;
  font-size: 19px; font-style: italic; color: #333; line-height: 1.7;
}
.review-quote cite {
  display: block; margin-top: 14px; font-size: 12px; font-style: normal;
  text-transform: uppercase; letter-spacing: 2px; color: #999;
}

.read-cta {
  display: block; text-align: center; padding: 40px 0; text-decoration: none;
}
.read-cta .cta {
  display: inline-block; border: 1px solid var(--ink); padding: 14px 32px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
}
.read-cta .cta:hover { background: var(--ink); color: var(--paper); }

footer { padding: 50px 0; text-align: center; font-size: 12px; color: #999; letter-spacing: 1px; }
