:root {
  --panel: rgba(21, 8, 12, 0.82);
  --panel-strong: rgba(30, 10, 15, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3ede7;
  --muted: #d5c2b7;
  --accent-soft: #ff6b57;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 28, 36, 0.28), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(255, 60, 22, 0.16), transparent 25%),
    radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.18), transparent 40%),
    linear-gradient(180deg, #050102 0%, #0c0205 38%, #120307 100%);
  font-family: "IBM Plex Serif", Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 12%, rgba(255, 54, 54, 0.08) 12.2%, transparent 12.6%) left top / 34% 100% no-repeat,
    linear-gradient(240deg, transparent 0 12%, rgba(255, 54, 54, 0.08) 12.2%, transparent 12.6%) right top / 34% 100% no-repeat;
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(180deg, rgba(255, 25, 25, 0.12), rgba(10, 4, 6, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy,
.hero-visual,
.chapter-panel,
.side-card {
  animation: rise 0.8s ease both;
}

.eyebrow,
.chapter-index,
.side-title,
.story-kicker {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "IBM Plex Sans Condensed", Arial Narrow, sans-serif;
}

.hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero-dek {
  max-width: 34rem;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-pills span,
.chapter-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "IBM Plex Sans Condensed", Arial Narrow, sans-serif;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-emblem {
  width: min(100%, 420px);
  padding: 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 38, 38, 0.45), transparent 38%),
    linear-gradient(180deg, rgba(12, 5, 7, 0.95), rgba(17, 4, 8, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.hero-emblem img {
  width: 100%;
  border-radius: 22px;
}

.hero-emblem--fallback {
  min-height: 28rem;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 0, 0, 0.6), transparent 28%),
    linear-gradient(180deg, rgba(10, 3, 4, 0.4), rgba(10, 3, 4, 0.88));
}

.hero-emblem--fallback strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
}

.crest-overline,
.crest-subline {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.chapter-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 4, 6, 0.82);
  backdrop-filter: blur(14px);
}

.chapter-nav a {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
  font-family: "IBM Plex Sans Condensed", Arial Narrow, sans-serif;
}

.chapter-nav a span {
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-nav a:hover,
.chapter-nav a[data-active="true"] {
  transform: translateY(-2px);
  background: rgba(255, 44, 50, 0.12);
  border-color: rgba(255, 88, 88, 0.32);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
}

.story-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 7rem;
  height: fit-content;
}

.side-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.side-card p,
.side-card li {
  color: var(--muted);
  line-height: 1.7;
}

.side-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.story-main {
  display: grid;
  gap: 1.5rem;
}

.chapter-panel {
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 40, 40, 0.06), transparent 18%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.chapter-header h2 {
  margin: 0.35rem 0 0.5rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: 0.04em;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
}

.chapter-lead {
  max-width: 56rem;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.chapter-body {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.story-paragraph,
.story-quote,
.story-standalone,
.story-kicker,
.story-countdown {
  max-width: 66ch;
  margin: 0;
}

.story-paragraph {
  font-size: 1.04rem;
  line-height: 1.95;
  color: #f5eee7;
}

.story-kicker {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.story-quote {
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 3px solid rgba(255, 78, 78, 0.85);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.03);
  color: #fff5f2;
  font-size: 1.08rem;
  line-height: 1.85;
}

.story-standalone {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff1e8;
}

.story-countdown {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 0.95;
  color: var(--accent-soft);
}

.media-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.media-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.media-grid--2,
.media-grid--3,
.media-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-card {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shot-card:hover,
.shot-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 92, 0.28);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32);
}

.shot-card img {
  width: 100%;
  border-radius: 16px;
}

.shot-card figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Sans Condensed", Arial Narrow, sans-serif;
  letter-spacing: 0.04em;
}

.lightbox {
  width: min(100% - 2rem, 920px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(8, 2, 4, 0.96);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
}

.lightbox-close {
  margin-left: auto;
  margin-bottom: 0.75rem;
  display: inline-flex;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 1rem;
  }

  .hero,
  .chapter-panel {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .chapter-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: 0.5rem;
  }

  .media-grid--2,
  .media-grid--3,
  .media-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
