/* ===== Cover-specific ===== */
.cover-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(90, 14, 14, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(120, 20, 20, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 8, 8, 1) 0%, transparent 60%),
    var(--bg);
}
.cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='4' seed='8'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.cover-bg .brush {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 56%;
  height: 220px;
  pointer-events: none;
  opacity: 0.55;
}

.cover-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 140px 80px 60px;
}
.cover-titleblock {
  align-self: center;
  max-width: 1100px;
}
.cover-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cover-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.cover-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 32px;
  text-wrap: balance;
}
.cover-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
  display: block;
}
.cover-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 540px;
  line-height: 1.4;
  margin-bottom: 48px;
}
.cover-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cover-meta .pip { color: var(--accent); }

.cover-bottom {
  align-self: end;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: end;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  padding: 18px 28px;
  border: 1px solid var(--accent);
  background: rgba(185, 28, 28, 0.08);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.cover-cta:hover {
  background: rgba(185, 28, 28, 0.2);
  border-color: var(--accent-bright);
  transform: translateX(4px);
}
.cover-cta .arr { color: var(--accent); }

.cover-warning {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.8;
  max-width: 280px;
  text-align: right;
}
.cover-warning .label {
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.cover-stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.8;
}

/* ===== Chapter index ===== */
.index-section {
  position: relative;
  padding: 160px 80px 120px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.index-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.index-header h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.index-header .text {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 36ch;
  align-self: end;
}

.index-list {
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;
}
.index-list li {
  border-top: 1px solid var(--rule);
}
.index-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.index-list a {
  display: grid;
  grid-template-columns: 100px 1fr 200px 80px;
  align-items: center;
  gap: 40px;
  padding: 36px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.4s, background 0.4s;
  position: relative;
}
.index-list a:hover {
  background: rgba(185, 28, 28, 0.06);
  padding-left: 48px;
}
.index-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.4s;
}
.index-list a:hover::before {
  width: 3px;
}
.index-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.index-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--paper);
}
.index-list a:hover .index-title {
  color: var(--accent-bright);
}
.index-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.index-arrow {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  transition: color 0.3s, transform 0.3s;
}
.index-list a:hover .index-arrow {
  color: var(--accent-bright);
  transform: translateX(8px);
}

/* ===== Footer ===== */
.cover-footer {
  padding: 80px 80px 60px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cover-footer .center {
  color: var(--accent);
  text-align: center;
}
.cover-footer .right { text-align: right; }

/* Floating numerals in cover bg */
.cover-numerals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.cover-numerals span {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: rgba(185, 28, 28, 0.05);
  user-select: none;
}
.cover-numerals span:nth-child(1) { font-size: 320px; top: 8%; left: -40px; }
.cover-numerals span:nth-child(2) { font-size: 200px; top: 60%; right: 6%; color: rgba(232, 226, 214, 0.025); }

@media (max-width: 900px) {
  .cover-content { padding: 120px 32px 40px; }
  .cover-bottom { grid-template-columns: 1fr; gap: 32px; }
  .cover-warning, .cover-footer .right { text-align: left; }
  .index-section { padding: 100px 32px; }
  .index-list a { grid-template-columns: 60px 1fr 60px; gap: 20px; }
  .index-meta { display: none; }
  .index-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }
  .cover-footer { grid-template-columns: 1fr; }
  .cover-footer .center, .cover-footer .right { text-align: left; }
}
