:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0c0c0d;
  --surface-2: #151416;
  --text: #f7f4f1;
  --muted: #bdb5ae;
  --ember: #ed3327;
  --ember-light: #ff756c;
  --line: rgba(255, 91, 78, .28);
  --paper: #e8dfd4;
  --ink: #171313;
  --max: 74rem;
  --chapter-gutter: clamp(1rem, 3vw, 2rem);
  --film-max: 42rem;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 24%, rgba(237,51,39,.07), transparent 25rem),
    repeating-linear-gradient(165deg, rgba(255,255,255,.012) 0 1px, transparent 1px 10px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: clamp(1.05rem, 4vw, 3.5rem); }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); background: #f4efe9; color: #080808; padding: .75rem 1rem; font-weight: 900; }
.skip-link:focus { transform: translateY(0); }

.nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(5,5,5,.93); backdrop-filter: blur(14px); }
.nav-inner { min-height: 4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; }
.menu-toggle { justify-self: start; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .65rem; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text); padding: .55rem .75rem; font: inherit; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.menu-icon { position: relative; width: 1rem; height: .75rem; }
.menu-icon::before, .menu-icon::after, .menu-icon span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ember-light); transition: transform .2s ease, top .2s ease, opacity .2s ease; }
.menu-icon::before { top: 0; }
.menu-icon span { top: 5px; }
.menu-icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }
.brand { font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--ember); }
.nav-signal { justify-self: end; color: var(--muted); font-family: Georgia, serif; font-size: .9rem; }
.gateway-menu { border-top: 1px solid var(--line); background: rgba(8,8,9,.98); box-shadow: 0 2rem 4rem rgba(0,0,0,.52); }
.gateway-menu[hidden] { display: none; }
.menu-grid { display: grid; grid-template-columns: .8fr 1.2fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2rem; }
.menu-group h2 { margin: 0 0 .65rem; color: var(--ember-light); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.menu-group a { min-height: 2.75rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); padding: .65rem .2rem; color: var(--muted); font-size: .93rem; font-weight: 750; text-decoration: none; }
.menu-group a:hover, .menu-group a[aria-current="page"] { color: var(--text); border-color: var(--ember); }
.menu-group a:focus-visible { color: var(--text); border-color: var(--ember); outline: 3px solid var(--ember-light); outline-offset: 3px; }

.back-link { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--text); font-size: .75rem; font-weight: 900; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--ember-light); }
.eyebrow, .part-label { margin: 0 0 .7rem; color: var(--ember-light); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.chapter-number { display: inline-grid; width: 2.75rem; aspect-ratio: 1; place-items: center; background: var(--ember); color: #120504; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 1.15rem; box-shadow: .2rem .2rem 0 #050505; }
h1 { max-width: 18ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1; letter-spacing: -.035em; }
.chapter-hook { max-width: 55ch; margin: .55rem 0 0; color: #ded5cf; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.5; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ember); background: var(--ember); padding: .55rem .85rem; color: #120504; font-size: .78rem; font-weight: 900; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.button:hover { background: #ff5b4e; }
.button.secondary { border-color: rgba(255,255,255,.22); background: transparent; color: var(--text); }
.button.secondary:hover { border-color: var(--ember-light); color: var(--ember-light); }

.journey, .page-chapter .journey { padding-block: clamp(.8rem, 2vw, 1.4rem); }
.journey > .chapter-block { width: min(calc(100% - var(--chapter-gutter) - var(--chapter-gutter)), var(--max)); }
.chapter-block { position: relative; margin-top: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(237,51,39,.05), transparent 24rem), var(--surface); padding: clamp(1rem, 2vw, 1.5rem); }
.chapter-block:first-child { margin-top: 0; }
.block-head { max-width: 50rem; margin-bottom: 1rem; }
.block-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; }
.block-head p:last-child { max-width: 58ch; margin: .65rem 0 0; color: var(--muted); font-family: Georgia, serif; line-height: 1.6; }

.chapter-opening { width: min(100%, calc(var(--film-max) + 2rem)); margin-inline: auto; padding: clamp(.55rem, 1.5vw, 1rem) var(--chapter-gutter) 0; }
.chapter-film { width: 100%; margin: 0; }
.chapter-film-frame { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #000; box-shadow: 0 .8rem 2rem rgba(0,0,0,.36); }
.chapter-film-frame .back-link, .chapter-film-frame .chapter-number { position: absolute; z-index: 2; top: .6rem; }
.chapter-film-frame .back-link { left: .6rem; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.76); padding: .15rem .65rem; }
.chapter-film-frame .chapter-number { right: .6rem; }
.chapter-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.chapter-film-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .7rem 1rem; border: 1px solid rgba(255,255,255,.14); border-top: 0; background: linear-gradient(100deg, rgba(237,51,39,.08), transparent 55%), #0b0b0c; padding: .8rem .9rem; }
.chapter-film-caption > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chapter-film-caption .eyebrow { margin-bottom: .35rem; }
.page-chapter .chapter-film-caption { grid-template-columns: minmax(0, 1fr) auto; }
.page-chapter main .chapter-film-caption h1 { max-width: 18ch; font-size: clamp(2.25rem, 3.3vw, 2.75rem); }
.page-chapter .chapter-film-caption > span { max-width: 20ch; color: var(--muted); font-size: .875rem; line-height: 1.35; text-align: right; white-space: normal; }
.chapter-opening-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.media-access { margin-top: .75rem; border-left: 2px solid var(--ember); background: rgba(255,255,255,.025); padding: .25rem .85rem .7rem; color: var(--muted); }
.media-access summary { min-height: 3rem; display: flex; align-items: center; width: fit-content; color: var(--text); font-size: .84rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; cursor: pointer; }
.media-access p { max-width: 68ch; margin: .45rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.65; }
.media-access strong { color: var(--text); }
.lyric-transcript { margin-top: .8rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .75rem; }
.lyric-transcript h2 { margin: 0 0 .65rem; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; }
.lyric-transcript pre { max-width: 65ch; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #ded5cf; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.55; }

#read { --folio-padding: clamp(1.2rem, 4vw, 2.4rem); background: linear-gradient(160deg, rgba(92,49,35,.16), transparent 30rem), #0b0a0a; border-color: rgba(224,192,157,.2); }
#read .block-head { width: min(100%, 65ch); max-width: none; margin-inline: auto; margin-bottom: 1.25rem; padding-right: var(--folio-padding); padding-left: calc(var(--folio-padding) + 3px); }
.read-page { max-width: 65ch; margin-inline: auto; border: 1px solid rgba(224,192,157,.16); border-left: 3px solid var(--ember); background: linear-gradient(100deg, rgba(237,51,39,.06), transparent 42%), #141111; padding: var(--folio-padding); box-shadow: 0 1rem 2.4rem rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.025); }
.read-page p { margin: 0; color: #ddd5cf; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.68; }
.read-page p + p { margin-top: .62rem; }
#read .content-note { width: min(100%, 65ch); margin: 0 auto 1.25rem; border-block: 1px solid rgba(255,117,108,.25); background: rgba(237,51,39,.055); padding: .9rem 1rem; color: #cfc5be; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; line-height: 1.6; }
.read-page .chapter-divider { margin: 1.15rem 0; color: var(--ember-light); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1; letter-spacing: .55em; text-align: center; }
.chapter-support summary { min-height: 3rem; display: flex; align-items: center; cursor: pointer; }
.chapter-support summary .part-label { display: block; margin-bottom: .15rem; }
.chapter-support summary strong { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.chapter-support[open] summary { margin-bottom: .65rem; }

#listen { width: min(calc(100% - var(--chapter-gutter) - var(--chapter-gutter)), 68rem); background: linear-gradient(90deg, rgba(237,51,39,.12), transparent 38%), var(--surface-2); border-color: rgba(255,117,108,.3); padding-block: clamp(1.1rem, 2vw, 1.5rem); }
.listen-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 28rem); align-items: center; gap: 1rem 2rem; }
.listen-strip h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.listen-strip p { margin: .45rem 0 0; color: var(--muted); font-family: Georgia, serif; line-height: 1.55; }
.listen-strip audio { width: 100%; }

.remember { max-width: 58rem; margin-inline: auto; overflow: hidden; background: linear-gradient(160deg, #efe7dc, #cfc3b5); color: var(--ink); transform: rotate(-.2deg); box-shadow: 0 1.2rem 2.5rem rgba(0,0,0,.32); }
.remember .part-label { color: #7c1710; }
.remember blockquote { max-width: 42rem; margin: 1rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.4; }
.remember cite { font-size: .8rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.chapter-nav { display: flex; justify-content: center; padding-block: 0 4rem; }
.footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
a:focus-visible, button:focus-visible, video:focus-visible, audio:focus-visible, summary:focus-visible { outline: 2px solid var(--ember-light); outline-offset: 3px; }

@media (max-width: 820px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .brand { justify-self: end; }
  .nav-signal { display: none; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .page-chapter .chapter-film-caption { grid-template-columns: 1fr; }
  .page-chapter .chapter-film-caption > span { max-width: none; text-align: left; }
  .listen-strip { grid-template-columns: 1fr; }
  .remember { transform: none; }
}
@media (max-width: 520px) {
  .menu-grid { grid-template-columns: 1fr; }
  h1, .page-chapter main .chapter-film-caption h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .chapter-number { width: 2.5rem; font-size: 1.05rem; }
  .chapter-opening { padding-inline: .5rem; }
  .chapter-film-caption { padding: .7rem .75rem; }
  .page-chapter .chapter-opening-actions .button { flex: 1 1 0; width: auto; min-width: 0; min-height: 3rem; padding: .35rem .4rem; line-height: 1.15; }
  .chapter-block { padding-inline: 1.05rem; }
  #read { --folio-padding: 1.1rem; }
  .support-links .button, .relationship-actions .button, .continuation-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
