@font-face {
  font-family: Prologue;
  src: url('assets/fonts/display.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Prologue;
  src: url('assets/fonts/display-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Companion;
  src: url('assets/fonts/body.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Companion;
  src: url('assets/fonts/body-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --indigo: #14202a;
  --cream: #f1e4c8;
  --ochre: #d6a45e;
  --teal: #78aaa3;
  --vermilion: #dc6243;
  --paper: #eadfc7;
  --ink-soft: #b9c2bf;
  --gutter: clamp(22px, 5.4vw, 104px);
  --display: Prologue, Georgia, serif;
  --body: Companion, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--indigo);
  color: var(--cream);
  scroll-behavior: auto;
  scroll-padding-top: 88px;
}

body {
  min-width: 280px;
  margin: 0;
  background: var(--indigo);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, p, figure, figcaption { margin: 0; }

h1, h2 {
  color: var(--cream);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

h1 { font-size: clamp(3.75rem, 8.7vw, 9.25rem); }
h2 { font-size: clamp(3rem, 6.5vw, 7.3rem); }

a { color: inherit; }
a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
a:hover { color: var(--ochre); }
a:active, button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 5px;
}

button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 20px;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--indigo);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip:focus { transform: translateY(0); }
.skip { transition:none; }
.link-arrow { flex:none; vertical-align:middle; }
.footer-cta { display:inline-flex; align-items:center; gap:10px; }

.masthead {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  min-height: 76px;
  padding: 17px var(--gutter);
  border-bottom: 1px solid rgba(241, 228, 200, .22);
  background: var(--indigo);
}

.wordmark {
  color: var(--cream);
  max-width: 15ch;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-decoration: none;
  white-space: normal;
}

.wordmark-dot { color: var(--vermilion); }

.trailer-edition .colophon,
.book-footer,
.illustrated-reader .reader-colophon { flex-wrap:wrap; }
.site-contact { flex-basis:100%; margin:0; color:#c5d0ce; font-size:.875rem; line-height:1.65; }
.colophon .site-contact a,
.book-footer .site-contact a,
.illustrated-reader .reader-colophon .site-contact a { display:inline; min-height:0; color:inherit; font-size:inherit; letter-spacing:normal; text-transform:none; text-underline-offset:4px; overflow-wrap:anywhere; }
.retired-page { max-width:48rem; margin:auto; padding:3rem 1.5rem; }

.chapter-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
}

.chapter-nav a {
  color: var(--ink-soft);
  font-size: .73rem;
  letter-spacing: .12em;
  text-decoration: none;
}

.chapter-nav a:hover, .chapter-nav a:focus-visible { color: var(--ochre); }

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(241, 228, 200, .54);
  color: var(--cream);
  font-size: .78rem;
  text-decoration: none;
  white-space: nowrap;
}

#motion-toggle {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid rgba(241, 228, 200, .45);
  background: transparent;
  color: var(--cream);
  font-size: .72rem;
}

#motion-toggle:hover, #motion-toggle[aria-pressed="true"] { border-color: var(--ochre); color: var(--ochre); }

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .66fr) minmax(0, 1.9fr);
  align-items: start;
  gap: clamp(42px, 7vw, 126px);
  padding: clamp(86px, 11vw, 170px) var(--gutter) clamp(98px, 12vw, 180px);
  overflow: hidden;
}

.chapter + .chapter { border-top: 1px solid rgba(20, 32, 42, .22); }
.chapter-hero { padding-top: clamp(60px, 7vw, 104px); }
.chapter-copy { max-width: 40rem; }
.chapter-hero .chapter-copy { padding-top: 2px; }

.eyebrow, .chapter-kicker {
  color: var(--ochre);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.book-title {
  margin-top: clamp(34px, 5vw, 86px);
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  letter-spacing: .02em;
  line-height: 1;
}

.chapter h1 { margin-top: clamp(24px, 3vw, 48px); }
.chapter h2 { margin-top: clamp(26px, 3.5vw, 56px); }
.chapter-kicker { margin-top: clamp(28px, 4vw, 54px); }
.chapter-main {
  max-width: 33ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  line-height: 1.52;
}

.chapter-figure { min-width: 0; }
.chapter-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #223640;
}

.stage-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 52px;
  border-bottom: 1px solid rgba(241, 228, 200, .26);
  color: var(--ink-soft);
}

.chapter-play {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: .78rem;
  text-align: left;
}

.chapter-play:hover { color: var(--ochre); }

.chapter-scrub {
  width: 100%;
  accent-color: var(--ochre);
}

.chapter-status {
  font-size: .7rem;
  letter-spacing: .02em;
  text-align: right;
}

.chapter-figure figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .72fr);
  gap: clamp(28px, 5vw, 86px);
  padding-top: 21px;
}

.chapter-fable {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.6;
}

.chapter-turn {
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 2.15rem);
  line-height: 1.16;
}

.chapter-paper, .chapter-alive { background: var(--paper); color: var(--indigo); }
.chapter-paper h2, .chapter-alive h2, .chapter-paper .chapter-turn, .chapter-alive .chapter-turn { color: var(--indigo); }
.chapter-paper .chapter-main, .chapter-alive .chapter-main, .chapter-paper .chapter-fable, .chapter-alive .chapter-fable { color: #45545a; }
.chapter-paper .chapter-kicker, .chapter-alive .chapter-kicker { color: #815219; }
.chapter-paper .chapter-controls, .chapter-alive .chapter-controls { border-color: rgba(20, 32, 42, .26); }
.chapter-paper .chapter-play, .chapter-alive .chapter-play { color: var(--indigo); }
.chapter-paper .chapter-play:hover, .chapter-alive .chapter-play:hover { color: #8f5f24; }

.chapter-depth { background: #1b3037; }
.chapter-question { background: #26383d; }
.chapter-question { display:block; }
.chapter-question .chapter-copy { max-width:880px; }
.chapter-question .chapter-copy h2 { margin-top:24px; }
.chapter-question .chapter-main { font-family:var(--display); color:var(--cream); font-size:clamp(28px,3.3vw,45px); max-width:none; }
.chapter-question .chapter-context { max-width:60ch; margin-top:18px; }
.chapter-question .chapter-figure { margin-top:48px; }
.chapter-question .chapter-figure figcaption { grid-template-columns:1.2fr 1fr; }
.chapter-question .chapter-fable { max-width:65ch; }
.chapter-alive { background: #dce2d8; }
.chapter-anchor { background: #1c2d35; }

.chapter-detail {
  max-width: 42ch;
  margin-top: 38px;
  border-top: 1px solid rgba(241, 228, 200, .3);
  border-bottom: 1px solid rgba(241, 228, 200, .3);
  color: var(--ink-soft);
}

.chapter-detail summary {
  padding: 15px 0;
  color: var(--cream);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  list-style-position: inside;
}

.chapter-detail p { padding: 0 0 13px 20px; font-size: .8rem; line-height: 1.6; }
.chapter-detail a { display: inline-block; padding: 0 0 16px 20px; color: var(--teal); font-size: .75rem; }
.chapter-context { max-width: 37ch; margin-top: 28px; color: var(--ink-soft); font-size: .79rem; line-height: 1.55; }

.inquiry {
  padding: clamp(90px, 12vw, 180px) var(--gutter) clamp(100px, 12vw, 170px);
  background: var(--cream);
  color: var(--indigo);
}

.inquiry-copy { width: min(100%, 770px); margin: 0 auto; text-align: center; }
.inquiry .eyebrow { color: #84531b; }
.inquiry h2 { margin-top: 30px; color: var(--indigo); font-size: clamp(3.6rem, 8vw, 8.4rem); }
.inquiry-copy > p:not(.eyebrow):not(.edition-note) { max-width: 48ch; margin: 30px auto 0; color: #45545a; font-size: 1rem; line-height: 1.6; }
.read-link { display: inline-flex; align-items: center; justify-content: space-between; width: min(100%, 480px); margin-top: 38px; padding: 15px 0; border-bottom: 1px solid #8f5f24; color: var(--indigo); font-size: 1rem; text-decoration: none; }
.read-link span { color: #8f5f24; font-size: 1.5rem; line-height: 1; }
.read-link:hover { border-color: var(--vermilion); color: var(--vermilion); }
.edition-note { margin-top: 20px; color: #53605e; font-size: .72rem; }

.colophon {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px var(--gutter);
  border-top: 1px solid rgba(241, 228, 200, .22);
  background: var(--indigo);
  color: var(--ink-soft);
  font-size: .72rem;
}

.footer-reading { display: flex; align-items: baseline; gap: 18px; margin-right: auto; }
.footer-cta { color: var(--cream); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.footer-cta span { color: var(--ochre); font-size: 1rem; }
.footer-note { max-width: 46ch; color: var(--ink-soft); font-size: .68rem; line-height: 1.45; }
.footer-wordmark { color: var(--cream); font-weight: 600; }
.colophon a { text-decoration: none; }
.no-script-note { padding: 18px var(--gutter); background: var(--cream); color: var(--indigo); font-size: .85rem; }

@media (min-width: 1400px) {
  .chapter { grid-template-columns: minmax(280px, .6fr) minmax(0, 2.1fr); }
}

@media (max-width: 860px) {
  .masthead { flex-wrap: wrap; }
  .chapter-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .masthead-actions { margin-left: auto; }
  .chapter { display: block; padding-top: 82px; padding-bottom: 94px; }
  .chapter-copy { max-width: 52rem; }
  .chapter-figure { margin-top: 56px; }
  .chapter-hero .chapter-figure { margin-top: 48px; }
  .chapter-main { max-width: 46ch; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 118px; }
  .masthead { gap: 14px; padding-top: 15px; padding-bottom: 13px; }
  .masthead-actions { gap: 12px; }
  .masthead-read { font-size: .7rem; }
  .chapter-nav { gap: 8px; }
  .chapter-nav a { font-size: .66rem; }
  .chapter { padding-top: 66px; padding-bottom: 78px; }
  .chapter-hero { padding-top: 47px; }
  .book-title { margin-top: 30px; }
  h1 { font-size: clamp(3.55rem, 16vw, 5.1rem); }
  h2 { font-size: clamp(3.1rem, 14vw, 4.5rem); }
  .chapter h1, .chapter h2 { margin-top: 23px; }
  .chapter-kicker { margin-top: 29px; }
  .chapter-main { margin-top: 16px; font-size: 1rem; }
  .chapter-figure, .chapter-hero .chapter-figure { margin-top: 38px; }
  .chapter-controls { grid-template-columns: auto 1fr; gap: 11px; padding: 5px 0; }
  .chapter-status { grid-column: 1 / -1; text-align: left; font-size: .67rem; }
  .chapter-figure figcaption { display: block; padding-top: 17px; }
  .chapter-turn { margin-top: 21px; font-size: 1.65rem; }
  .chapter-detail { margin-top: 30px; }
  .inquiry { padding-top: 84px; padding-bottom: 92px; }
  .inquiry h2 { margin-top: 24px; }
  .inquiry-copy > p:not(.eyebrow):not(.edition-note) { margin-top: 22px; font-size: .92rem; }
  .colophon { align-items: flex-start; flex-wrap: wrap; gap: 16px 24px; }
  .footer-reading { width: 100%; align-items: flex-start; flex-direction: column; gap: 5px; margin-right: 0; }
  .footer-note { max-width: 42ch; }
  .footer-wordmark { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
