/*
 * chapter-diamonds.css — Stolen Diamonds, Lost Rubies
 *
 * Pure black palette derived from her gem-photograph cover.
 * Includes the CSS-only content-warning interstitial pattern
 * (no JavaScript) per DESIGN.md §6.
 *
 * Interstitial mechanism: the page contains both .warning and
 * .book-content as siblings of a hidden anchor #enter. By
 * default, .book-content is hidden and .warning shown. When
 * #enter becomes :target (via a link href="#enter"), the
 * general-sibling combinators swap the visibility. Both
 * elements remain in the DOM so Wayback captures both states.
 */

[data-chapter="diamonds"] {
  --bg: #000000;           /* pure black, matches cover */
  --ink: #f0f0f0;          /* near-white */
  --ink-soft: #aaaaaa;     /* muted body */
  --ink-faint: #777777;    /* meta / footer */
  --rule: #2a2a2a;         /* hairline divider */
  --accent: #c91a52;       /* raspberry from the gem photo */
}

/* ----- interstitial gate ------------------------------------- */

[data-chapter="diamonds"] #enter {
  display: block;
  height: 0;
  overflow: hidden;
}

[data-chapter="diamonds"] .book-content {
  display: none;
}

[data-chapter="diamonds"] #enter:target ~ .book-content {
  display: block;
}

[data-chapter="diamonds"] #enter:target ~ .warning {
  display: none;
}

/* ----- warning surface --------------------------------------- */

[data-chapter="diamonds"] .warning {
  max-width: 32rem;
  margin: 5rem auto 3rem;
  text-align: center;
}

[data-chapter="diamonds"] .warning .heading {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

[data-chapter="diamonds"] .warning p {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

[data-chapter="diamonds"] .warning .dedication {
  font-style: italic;
  color: var(--ink);
}

[data-chapter="diamonds"] .warning .enter-link {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-soft);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

[data-chapter="diamonds"] .warning .enter-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* ----- cover and body adjustments for dark register ---------- */

[data-chapter="diamonds"] .cover-hero img {
  box-shadow: 0 1.5rem 4rem rgba(201, 26, 82, 0.18);
}
