:root {
  --bg: #090806;
  --panel: #11100d;
  --ink: #f3ead8;
  --muted: #b5a58c;
  --line: rgba(243, 234, 216, 0.16);
  --fire: #c26a2b;
  --max: 760px;
  --nav: 158px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(194,106,43,.16), transparent 32rem),
    radial-gradient(circle at 12% 88%, rgba(123,47,24,.22), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav);
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(9, 8, 6, 0.76);
  backdrop-filter: blur(12px);
  z-index: 10;
  overflow-y: auto;
}

.nav-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ink);
}

.site-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  line-height: 1.24;
  letter-spacing: .065em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid rgba(243,234,216,.07);
}

.site-nav a:hover { color: var(--ink); }

.hero, .chapter, .fire-stats {
  margin-left: var(--nav);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(9,8,6,.30), rgba(9,8,6,.94)),
    url("images/cover.png") center center / cover no-repeat;
  filter: saturate(.9) contrast(1.03);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(86vw, 980px);
  padding: 10vh 0;
  text-align: center;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(74px, 11vw, 150px);
  line-height: .86;
  letter-spacing: .015em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.byline,
.chapter-kicker,
.date-line {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  line-height: 1.4;
}

.byline { margin: 0 0 36px; }

.subtitle p {
  margin: .22em 0;
  font-size: clamp(22px, 2.5vw, 34px);
  color: rgba(243,234,216,.88);
}

.chapter {
  padding: 15vh 6vw 16vh;
  border-bottom: 1px solid var(--line);
}

.chapter-header,
.chapter-body,
.fire-stats > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.chapter h2,
.fire-stats h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .92;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin: 16px auto 42px;
}

.chapter-image {
  max-width: min(960px, 100%);
  margin: 0 auto 9vh;
  transform: translateX(calc((var(--max) - min(960px, 86vw)) / 2));
}

.chapter-image img,
.inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(243,234,216,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}

.chapter-image figcaption,
.inline-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.chapter-body p {
  margin: 0 0 1.05em;
}

.inline-image {
  max-width: min(980px, 92vw);
  margin: 8vh auto;
  transform: translateX(calc((var(--max) - min(980px, 92vw)) / 2));
}

.inline-image.ending-image {
  max-width: min(740px, 88vw);
}

.fire-stats {
  min-height: 100vh;
  padding: 15vh 6vw;
  background: #0d0b08;
}

.map-note {
  max-width: var(--max);
  margin: 3vh auto 7vh;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}

.stats {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats li {
  background: #0d0b08;
  padding: 24px 18px;
  min-height: 140px;
}

.stats strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 33px;
  line-height: 1;
  font-weight: 500;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  :root { --nav: 0px; }
  body { font-size: 18px; }
  .site-nav { display: none; }
  .hero, .chapter, .fire-stats { margin-left: 0; }
  .chapter { padding: 12vh 7vw 13vh; }
  .hero h1 { font-size: clamp(62px, 17vw, 118px); }
  .chapter-image,
  .inline-image {
    transform: none;
    max-width: 100%;
  }
  .stats { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-nav { display: none; }
  .hero, .chapter, .fire-stats { margin-left: 0; page-break-after: always; }
}


/* v5 cinematic refinement */
:root {
  --bg: #070605;
  --panel: #0e0c09;
  --ink: #f4ead6;
  --muted: #a99676;
  --line: rgba(244, 234, 214, 0.13);
  --fire: #b86128;
  --max: 720px;
  --nav: 148px;
}

body {
  background:
    radial-gradient(circle at 75% 0%, rgba(184,86,29,.15), transparent 30rem),
    linear-gradient(180deg, #070605 0%, #0b0907 42%, #070605 100%);
}

.site-nav {
  width: var(--nav);
  padding: 18px 13px;
  background: rgba(7, 6, 5, 0.82);
}

.nav-title {
  font-size: 15px;
  line-height: 1.05;
}

.site-nav a {
  font-size: 9.5px;
  padding: 5.5px 0;
}

.hero h1 {
  font-size: clamp(64px, 9vw, 128px);
  letter-spacing: .025em;
}

.chapter {
  padding: 13vh 6vw 14vh;
}

.chapter h2,
.fire-stats h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: .98;
  letter-spacing: .045em;
  margin: 14px auto 34px;
}

.chapter-kicker {
  font-size: 11px;
  letter-spacing: .22em;
}

.chapter-header {
  margin-bottom: 5vh;
}

.chapter-image {
  max-width: min(880px, 100%);
  margin: 34px auto 8vh;
  transform: translateX(calc((var(--max) - min(880px, 86vw)) / 2));
}

.chapter-image img,
.inline-image img,
.map-image img {
  border: 1px solid rgba(244,234,214,.12);
  box-shadow: 0 28px 90px rgba(0,0,0,.46);
}

.chapter-image figcaption,
.inline-image figcaption,
.map-image figcaption {
  color: rgba(169,150,118,.88);
  font-size: 10.5px;
  letter-spacing: .16em;
}

.chapter-body {
  position: relative;
}

.chapter-body p {
  margin: 0 0 .96em;
}

.inline-image {
  max-width: min(900px, 90vw);
  margin: 7vh auto;
  transform: translateX(calc((var(--max) - min(900px, 90vw)) / 2));
}

.inline-image.ending-image {
  max-width: min(660px, 84vw);
  margin-top: 9vh;
}

.fire-stats {
  padding: 13vh 6vw;
}

.map-image {
  max-width: min(1120px, 92vw);
  margin: 6vh auto 7vh;
  transform: translateX(calc((var(--max) - min(1120px, 92vw)) / 2));
}

.map-image img {
  display: block;
  width: 100%;
  height: auto;
}

.stats {
  max-width: 900px;
  grid-template-columns: repeat(5, 1fr);
}

.stats li {
  padding: 22px 16px;
  min-height: 126px;
}

.stats strong {
  font-size: 28px;
}

.stats span {
  font-size: 11px;
}

@media (max-width: 980px) {
  .chapter h2,
  .fire-stats h2 {
    font-size: clamp(34px, 10vw, 56px);
  }
  .chapter-image,
  .inline-image,
  .map-image {
    transform: none;
    max-width: 100%;
  }
}

/* Make images feel attached to the chapter they introduce */
.chapter-header .chapter-image {
  padding-top: 4px;
}

.chapter-header + .chapter-body {
  margin-top: 2vh;
}


/* v6 image centering and sizing */
.chapter-image,
.inline-image,
.map-image {
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

.chapter-image {
  max-width: 760px !important;
}

.inline-image {
  max-width: 820px !important;
}

.inline-image.ending-image {
  max-width: 620px !important;
}

.map-image {
  max-width: 980px !important;
}

.chapter-image img,
.inline-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .chapter-image,
  .inline-image,
  .map-image {
    max-width: 100% !important;
  }
}


/* v7 reduce image sizes by ~50% */
.chapter-image {
  max-width: 380px !important;
}

.inline-image {
  max-width: 410px !important;
}

.inline-image.ending-image {
  max-width: 310px !important;
}

.map-image {
  max-width: 490px !important;
}

@media (max-width: 980px) {
  .chapter-image,
  .inline-image,
  .inline-image.ending-image,
  .map-image {
    max-width: 100% !important;
  }
}
