/* ── Bibliography — warm parchment-dark palette ── */
:root {
  --bib-bg:      #09080c;
  --bib-surface: #100e14;
  --bib-card:    #161420;
  --bib-gold:    #c9a227;
  --bib-gold-lt: #dbb84a;
  --bib-cream:   #d4c8a8;
  --bib-text:    #bcb49a;
  --bib-muted:   #7a7060;
  --bib-white:   #e8e0cc;

  /* Category accent colours */
  --cat-alch:    #c9a227;
  --cat-theo:    #9ab0c0;
  --cat-jung:    #4a6880;
  --cat-sec:     #9a7840;
  --cat-lit:     #507860;
}

body { background-color: var(--bib-bg); }

/* ── Hero ── */
.bib-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-4) var(--space-8);
  overflow: hidden;
}
.bib-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(201,162,39,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(9,8,12,0) 0%, var(--bib-bg) 80%),
    var(--bib-bg);
  z-index: 0;
}
.bib-hero__content { position: relative; z-index: 1; max-width: 700px; }

/* ── Open book SVG ── */
.book-emblem {
  width: 160px; height: 160px;
  margin: 0 auto var(--space-6);
  display: block;
  color: var(--bib-gold);
}

/* ── Section surface ── */
.section--bib {
  background: var(--bib-surface);
  border-top: 1px solid rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}

/* ── Start Here panel ── */
.start-here {
  background: var(--bib-card);
  border: 1px solid rgba(201,162,39,0.28);
  border-top: 4px solid var(--bib-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.start-here__heading {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bib-gold);
  margin-bottom: var(--space-2);
}
.start-here__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--bib-white);
  margin-bottom: var(--space-2);
}
.start-here__intro {
  font-size: var(--text-sm);
  color: var(--bib-text);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  max-width: 680px;
}
.start-here__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.start-here__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-3);
  align-items: baseline;
}
.start-here__num {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.10em;
  color: var(--bib-gold);
  text-align: right;
}
.start-here__item-text {
  font-size: var(--text-sm);
  color: var(--bib-text);
  line-height: 1.65;
}
.start-here__item-text em { color: var(--bib-white); }
.start-here__item-text strong {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: normal;
  color: var(--bib-cream);
}

/* ── Bibliography category ── */
.bib-category {
  margin-bottom: var(--space-10);
}
.bib-category:last-child { margin-bottom: 0; }

.bib-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--cat-color, rgba(201,162,39,0.30));
}
.bib-category__glyph {
  font-size: 1.4rem;
  line-height: 1;
}
.bib-category__title {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-color, var(--bib-gold));
}

.cat--alch { --cat-color: var(--cat-alch); }
.cat--theo { --cat-color: var(--cat-theo); }
.cat--jung { --cat-color: var(--cat-jung); }
.cat--sec  { --cat-color: var(--cat-sec); }
.cat--lit  { --cat-color: var(--cat-lit); }

/* ── Bibliography entry ── */
.bib-list {
  list-style: none;
  padding: 0; margin: 0;
}
.bib-entry {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bib-entry:last-child { border-bottom: none; }

.bib-entry--key {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-4);
  border-bottom: none;
  border-left: 3px solid var(--cat-color, var(--bib-gold));
  margin-bottom: var(--space-2);
}

.bib-entry__author {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bib-muted);
  margin-bottom: 4px;
}
.bib-entry__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.bib-entry__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--bib-white);
}
.bib-entry__date {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--bib-muted);
}
.bib-entry__annotation {
  font-size: var(--text-sm);
  color: var(--bib-text);
  line-height: 1.75;
  margin-top: var(--space-2);
}
.bib-entry__key-label {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-color, var(--bib-gold));
  display: inline-block;
  border: 1px solid var(--cat-color, var(--bib-gold));
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: var(--space-2);
  opacity: 0.80;
}

/* ── Overrides ── */
.content-prose { color: var(--bib-text); }
.content-prose strong { color: var(--bib-white); }
.scripture { background: rgba(201,162,39,0.06); }
.epigraph__text { color: var(--bib-text); }

/* ── Page header eyebrow colour ── */
.page-header__eyebrow { color: var(--bib-gold); }

/* ── Stage indicator layout ── */
.stage-indicator {
  max-width: 500px;
  margin: var(--space-4) auto 0;
}

/* ── Footer theming ── */
.site-footer {
  background: var(--bib-surface);
  border-top-color: rgba(201,162,39,0.12);
}
