:root {
  color-scheme: dark;
  --ink: #0e0b09;
  --ink-soft: #17110d;
  --paper: #e5d3af;
  --body: #c3b69e;
  --muted: #948a7a;
  --line: #59412c;
  --amber: #d5924c;
  --violet: #8e67ca;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(74, 50, 32, .2), transparent 34%),
    var(--ink);
  color: var(--body);
  font-family: var(--serif);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { line-height: 1.65; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
::selection { background: #6b462b; color: white; }

.session-nav {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  width: min(780px, calc(100% - 28px));
  min-height: 48px;
  border: 1px solid rgba(226, 197, 154, .28);
  background: rgba(10, 8, 7, .9);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
  font-family: var(--sans);
}
.session-nav a, .session-nav span {
  padding: 12px 15px;
  color: #b9ad98;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.session-nav a:hover { background: var(--paper); color: #17110d; }
.session-nav .nav-index { border-inline: 1px solid rgba(226, 197, 154, .2); text-align: center; }
.session-nav .nav-next { text-align: right; }
.session-nav .is-empty { opacity: .3; }

.session-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid #61462e;
  background: #080605;
}
.session-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 4, .95), rgba(8, 5, 4, .54) 50%, transparent 78%),
    linear-gradient(0deg, #0e0b09 0, transparent 48%);
}
.cover-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 7vw, 110px);
  bottom: clamp(78px, 12vh, 150px);
  width: min(760px, 82vw);
}
.series-mark, .session-label, .micro-label {
  color: var(--amber);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.cover-copy h1 {
  max-width: 920px;
  margin: 14px 0 20px;
  color: #ebd9b5;
  font: 500 clamp(62px, 10vw, 150px)/.82 var(--serif);
  letter-spacing: -.055em;
  text-shadow: 0 10px 34px #000;
}
.cover-copy .deck { max-width: 670px; margin: 0; color: #c5b69e; font: italic clamp(20px, 2.4vw, 34px)/1.25 var(--serif); }
.cover-down {
  position: absolute;
  z-index: 3;
  right: 4vw;
  bottom: 34px;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #78573a;
  border-radius: 50%;
  color: #d0ae7c;
  text-decoration: none;
}

.chronicle-main { width: min(1160px, calc(100% - 36px)); margin: auto; }
.ornament { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 74px 0; color: #9a6c3b; }
.ornament::before, .ornament::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, #6d4c30); }
.ornament::after { background: linear-gradient(90deg, #6d4c30, transparent); }

.session-introduction { display: grid; grid-template-columns: 132px 1fr; gap: 36px; align-items: start; padding: 18px 0 75px; }
.illuminated-number {
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #8e683e;
  outline: 7px double #422f20;
  background: radial-gradient(circle, #7b4727, #25170f);
  color: #f0d397;
  font: 58px/1 var(--serif);
}
.session-introduction h2 { margin: 0 0 20px; color: #e5d3af; font: 500 clamp(42px, 6vw, 76px)/.95 var(--serif); }
.session-introduction .intro { margin: 0; color: #c2b69f; font: 20px/1.75 var(--serif); }
.session-introduction .intro::first-letter { float: left; margin: 10px 10px 0 0; color: var(--amber); font: 76px/.65 var(--serif); }

.scenes { display: grid; gap: 105px; }
.scene { display: grid; grid-template-columns: minmax(380px, 1.12fr) minmax(280px, .88fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.scene:nth-child(even) { grid-template-columns: minmax(280px, .88fr) minmax(380px, 1.12fr); }
.scene:nth-child(even) .scene-art { order: 2; }
.scene-art {
  margin: 0;
  padding: 7px;
  border: 1px solid #694c32;
  background: #070605;
  box-shadow: 18px 21px 0 #070605, 0 28px 70px rgba(0, 0, 0, .48);
}
.scene-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #070605; }
.scene-copy .scene-count { color: var(--amber); font-family: var(--sans); font-size: 9px; font-weight: 900; letter-spacing: .23em; text-transform: uppercase; }
.scene-copy h3 { margin: 10px 0 17px; color: #e3d1af; font: 500 clamp(32px, 4vw, 48px)/1 var(--serif); }
.scene-copy > p { margin-bottom: 18px; color: #aaa08e; font-size: 17px; }
.visible-cast { padding-top: 14px; border-top: 1px solid #3f2f22; color: #73695b; font: 8px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

.session-seal { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin: 110px 0 45px; padding: 40px 0; border-block: 1px solid #5c432d; }
.session-seal blockquote { margin: 0; color: #d8bf90; font: italic clamp(25px, 3vw, 36px)/1.3 var(--serif); }
.outcomes { padding: 22px 26px; border-left: 3px solid var(--amber); background: rgba(255, 255, 255, .025); }
.outcomes ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; color: #999080; font-size: 13px; line-height: 1.45; }

.cast-section { margin: 0 0 100px; }
.cast-section h3 { margin-bottom: 22px; color: #8e7558; font: 900 9px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.cast-strip { display: flex; gap: 12px; padding-bottom: 8px; overflow-x: auto; scrollbar-color: #6a4b31 transparent; }
.portrait-card { flex: 0 0 128px; margin: 0; border: 1px solid #4b3828; background: #18130f; }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.portrait-card figcaption { padding: 10px; }
.portrait-card strong, .portrait-card span { display: block; }
.portrait-card strong { color: #d5c3a3; font: 900 10px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.portrait-card span { margin-top: 5px; color: #796f61; font: 8px/1.3 var(--sans); }

.chapter-turn { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 90px; border: 1px solid #4b3625; }
.turn-card { min-height: 220px; padding: 28px; background: #15100c; text-decoration: none; }
.turn-card + .turn-card { border-left: 1px solid #4b3625; text-align: right; }
.turn-card:hover { background: #211810; }
.turn-card small { color: #8d6845; font: 900 8px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.turn-card strong { display: block; margin-top: 48px; color: #ddcaa8; font: 500 27px/1.05 var(--serif); }
.turn-card.is-empty { opacity: .25; }

.site-footer { padding: 38px 20px 70px; border-top: 1px solid #362619; color: #675d50; font: 900 9px/1 var(--sans); letter-spacing: .21em; text-align: center; text-transform: uppercase; }

/* Index */
.index-page { background: #0b0907; }
.index-hero { position: relative; min-height: 72svh; overflow: hidden; border-bottom: 1px solid #513924; }
.index-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.index-hero .cover-scrim { background: linear-gradient(90deg, rgba(8, 5, 4, .94), rgba(8, 5, 4, .35) 66%, transparent), linear-gradient(0deg, #0b0907, transparent 45%); }
.index-hero-copy { position: absolute; z-index: 2; left: clamp(24px, 7vw, 110px); bottom: clamp(70px, 10vh, 130px); width: min(820px, 82vw); }
.index-hero h1 { margin: 12px 0 18px; color: #ead6b0; font: 500 clamp(60px, 10vw, 145px)/.78 var(--serif); letter-spacing: -.055em; }
.index-hero h2 { margin: 0; color: #bba98e; font: italic clamp(20px, 3vw, 38px)/1.2 var(--serif); }
.index-main { width: min(1400px, calc(100% - 36px)); margin: auto; padding: 80px 0 110px; }
.index-intro { display: grid; grid-template-columns: 220px minmax(280px, 720px); gap: 35px; margin: 0 0 45px; }
.index-intro p:last-child { margin: 0; color: #a89d8a; font-size: 18px; }
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.session-card { position: relative; min-height: 430px; overflow: hidden; border: 1px solid #4a3524; background: #16110d; text-decoration: none; }
.session-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.session-card:hover img { transform: scale(1.025); }
.session-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 6, 5, .98), rgba(9, 6, 5, .1) 72%); }
.session-card-copy { position: absolute; z-index: 2; inset: auto 24px 24px; }
.session-card-copy span { color: #d08b49; font: 900 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.session-card-copy h3 { margin: 10px 0 0; color: #ead7b4; font: 500 30px/1 var(--serif); }

@media (max-width: 900px) {
  .scene, .scene:nth-child(even) { grid-template-columns: 1fr 1fr; gap: 28px; }
  .session-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .session-nav { top: 8px; width: calc(100% - 16px); grid-template-columns: 1fr auto 1fr; }
  .session-nav a, .session-nav span { padding: 11px 8px; font-size: 7px; }
  .session-cover { min-height: 760px; }
  .cover-scrim { background: linear-gradient(0deg, rgba(8, 5, 4, .97), rgba(8, 5, 4, .27) 76%, transparent); }
  .cover-copy { left: 20px; bottom: 88px; width: calc(100% - 40px); }
  .cover-copy h1 { font-size: clamp(52px, 16vw, 74px); }
  .cover-copy .deck { font-size: 20px; }
  .cover-down { display: none; }
  .chronicle-main { width: calc(100% - 28px); }
  .ornament { margin: 48px 0; }
  .session-introduction { grid-template-columns: 76px 1fr; gap: 20px; padding-bottom: 58px; }
  .illuminated-number { width: 68px; font-size: 34px; outline-width: 4px; }
  .session-introduction h2 { font-size: 36px; }
  .session-introduction .intro { grid-column: 1 / -1; font-size: 18px; }
  .scene, .scene:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .scene:nth-child(even) .scene-art { order: 0; }
  .scenes { gap: 78px; }
  .scene-art { box-shadow: 8px 10px 0 #070605, 0 24px 50px rgba(0, 0, 0, .45); }
  .scene-copy h3 { font-size: 35px; }
  .session-seal { grid-template-columns: 1fr; gap: 30px; margin-top: 82px; }
  .chapter-turn { grid-template-columns: 1fr; }
  .turn-card + .turn-card { border-top: 1px solid #4b3625; border-left: 0; }
  .turn-card { min-height: 170px; }
  .turn-card strong { margin-top: 35px; }
  .index-hero { min-height: 680px; }
  .index-hero .cover-scrim { background: linear-gradient(0deg, #0b0907, rgba(11, 9, 7, .25) 80%, transparent); }
  .index-hero-copy { left: 20px; bottom: 70px; width: calc(100% - 40px); }
  .index-hero h1 { font-size: 57px; }
  .index-main { width: calc(100% - 24px); padding-top: 55px; }
  .index-intro { grid-template-columns: 1fr; gap: 8px; }
  .session-grid { grid-template-columns: 1fr; }
  .session-card { min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .session-card img { transition: none; }
}

@media print {
  .session-nav, .cover-down, .chapter-turn { display: none; }
  .session-cover { min-height: 70vh; }
  .scene { break-inside: avoid; }
}
