/* ─── THE DRACONARI SAGA — draconarisaga.com ───────────────────────────────── */
/* Design: Dark, ancient, controlled. Red-blue iridescence. Not fantasy — sci-fi mythology. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── RESET & ROOT ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #080810;
  --deep:        #0d0d1a;
  --surface:     #111122;
  --panel:       #161628;
  --border:      #2a2a44;
  --muted:       #3a3a5c;
  --text-dim:    #7a7a9a;
  --text:        #c8c8d8;
  --text-bright: #e8e8f0;
  --white:       #f4f4f8;

  --gold:        #C9A227;
  --gold-dim:    #8a6d18;
  --plasma:      #A0D8FF;
  --plasma-bright: #d4eeff;
  --plasma-glow: rgba(160, 216, 255, 0.15);
  --red-scale:   #8B2020;
  --red-dim:     #4a1010;

  --font-display: 'Cinzel', serif;
  --font-body:    'Crimson Text', serif;
  --font-mono:    'Courier Prime', monospace;

  --nav-height: 72px;
  --max-width:  1140px;
  --gutter:     clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

p { max-width: 68ch; }
p + p { margin-top: 1.2em; }

a { color: var(--plasma); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--plasma-bright); }

strong { color: var(--text-bright); font-weight: 600; }
em { color: var(--text-bright); font-style: italic; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 8vw, 8rem) 0; }

/* ─── DECORATIVE ELEMENTS ───────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}
.divider::after { background: linear-gradient(to left, transparent, var(--gold-dim)); }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* ─── NAVIGATION ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(8, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta-wrap {
  display: flex;
  align-items: center;
}

.mobile-lang-toggle { display: none; }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--gold);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--plasma) !important; color: var(--black) !important; }

/* ─── LANGUAGE TOGGLE ───────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-right: 0.5rem;
}
.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button + button { border-left: 1px solid var(--border); }
.lang-toggle button:hover { color: var(--text-bright); }
.lang-toggle button.active {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ─── PAGE HERO ─────────────────────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  position: relative;
}
.page-hero h4 { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.2rem; color: var(--text); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--plasma);
  color: var(--black);
}
.btn-secondary {
  background: transparent;
  color: var(--plasma);
  border: 1px solid var(--plasma);
}
.btn-secondary:hover {
  background: var(--plasma-glow);
  color: var(--plasma-bright);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── CARDS ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

/* ─── BOOK CARD ─────────────────────────────────────────────────────────────── */
.book-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.book-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 40px rgba(160, 216, 255, 0.04);
}
.book-cover-placeholder {
  width: 160px;
  aspect-ratio: 2/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.book-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-dim) 0%, var(--deep) 40%, rgba(0,30,60,0.8) 100%);
}
.book-cover-placeholder .book-num {
  position: relative;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.book-cover-placeholder .book-label {
  position: relative;
  text-align: center;
  padding: 0 0.5rem;
  color: var(--text-dim);
}

.book-card-meta { display: flex; flex-direction: column; gap: 1rem; }
.book-card-meta h4 { margin-bottom: 0; }
.book-card-meta h3 { color: var(--white); margin: 0; }
.book-card-meta .subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
}
.book-card-meta p { color: var(--text); font-size: 1rem; max-width: 55ch; }
.book-card-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ─── MONITORING LOG (book epigraph style) ──────────────────────────────────── */
.log-block {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-left: 2px solid var(--muted);
  padding: 1rem 1.5rem;
  background: var(--surface);
  margin: 2rem 0;
  line-height: 1.8;
}
.log-block .log-header {
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.log-block .log-line { display: block; }
.log-block .log-line.highlight { color: var(--plasma); }

/* ─── EMAIL SIGNUP ──────────────────────────────────────────────────────────── */
.email-signup {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.email-signup h3 { margin-bottom: 0.75rem; }
.email-signup p { color: var(--text-dim); margin: 0 auto 2rem; max-width: 50ch; }
.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.email-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.email-form input:focus { border-color: var(--gold); }
.email-form input::placeholder { color: var(--muted); }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 28ch;
}
.footer-links h4 { margin-bottom: 1rem; font-size: 0.7rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold); }

/* ─── PLASMA GLOW EFFECTS ───────────────────────────────────────────────────── */
.plasma-accent {
  color: var(--plasma);
  text-shadow: 0 0 20px rgba(160, 216, 255, 0.4);
}
.gold-accent { color: var(--gold); }

/* ─── BACKGROUND TEXTURES ───────────────────────────────────────────────────── */
.bg-subtle-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--deep);
    padding: 2rem var(--gutter);
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
  }
  .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .lang-toggle { margin-right: 0; }
  .mobile-lang-toggle {
    display: block;
    order: -1;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
  }
  .mobile-lang-toggle .lang-toggle { display: inline-flex; }

  .book-card { grid-template-columns: 1fr; }
  .book-cover-placeholder { width: 140px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .email-form { flex-direction: column; }
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: INDEX (index.html)
   ═══════════════════════════════════════════════════════════════════════ */
/* ── Homepage only ── */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      padding-top: var(--nav-height);
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 65% 50%, rgba(139, 32, 32, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 30% 70%, rgba(0, 30, 80, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(160, 216, 255, 0.05) 0%, transparent 50%),
        var(--black);
    }
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(42, 42, 68, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 42, 68, 0.15) 1px, transparent 1px);
      background-size: 80px 80px;
    }
    .hero-content {
      position: relative;
      z-index: 2;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 5rem var(--gutter);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    .hero-text .eyebrow {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      color: var(--plasma);
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .hero-text .eyebrow::before {
      content: '';
      display: block;
      width: 40px;
      height: 1px;
      background: var(--plasma);
    }
    .hero-text h1 {
      margin-bottom: 1rem;
      font-size: clamp(2.8rem, 5vw, 5rem);
    }
    .hero-text h1 .series-name { display: block; }
    .hero-text .tagline {
      font-family: var(--font-body);
      font-style: italic;
      font-size: clamp(1.2rem, 2vw, 1.5rem);
      color: var(--gold);
      margin-bottom: 2rem;
      max-width: none;
    }
    .hero-text .description {
      color: var(--text);
      font-size: 1.1rem;
      margin-bottom: 2.5rem;
      max-width: 50ch;
    }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

    .hero-visual {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      position: relative;
    }
    .hero-book-stack {
      display: flex;
      gap: 0.75rem;
      align-items: flex-end;
      justify-content: center;
    }
    .hero-book {
      border-radius: 3px;
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      padding-bottom: 1rem;
      font-family: var(--font-display);
      overflow: hidden;
      position: relative;
      transition: transform 0.3s;
      cursor: default;
    }
    .hero-book:hover { transform: translateY(-8px) scale(1.03); }
    .hero-book:nth-child(1) { width: 85px; height: 130px; background: linear-gradient(160deg, #0B1F3A 0%, #0d0d1a 100%); }
    .hero-book:nth-child(2) { width: 85px; height: 140px; background: linear-gradient(160deg, #1B4332 0%, #0d0d1a 100%); }
    .hero-book:nth-child(3) { width: 90px; height: 150px; background: linear-gradient(160deg, #0891A8 0%, #0d0d1a 100%); }
    .hero-book:nth-child(4) { width: 85px; height: 145px; background: linear-gradient(160deg, #4B0082 0%, #0d0d1a 100%); }
    .hero-book:nth-child(5) { width: 85px; height: 135px; background: linear-gradient(160deg, #7A1F2B 0%, #0d0d1a 100%); }
    .hero-book::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--gold);
    }
    .hero-book .bk-num {
      font-size: 1.8rem;
      font-weight: 900;
      color: rgba(201, 162, 39, 0.3);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      line-height: 1;
    }
    .hero-book .bk-title {
      position: relative;
      font-size: 0.5rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      text-align: center;
      padding: 0 0.4rem;
      z-index: 1;
    }

    .log-block.hero-log {
      margin: 0;
      font-size: 0.7rem;
    }

    /* ── sections ── */
    .series-intro { background: var(--deep); }
    .series-intro .inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }
    .series-intro .left h2 { margin-bottom: 1.5rem; }
    .series-intro .left p { color: var(--text); }
    .series-intro .right {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      padding-top: 0.5rem;
    }
    .fact-row {
      display: flex;
      gap: 1.5rem;
      padding: 1.25rem 0;
      border-bottom: 1px solid var(--border);
    }
    .fact-row:last-child { border-bottom: none; }
    .fact-row .fact-icon {
      font-size: 1.2rem;
      width: 2rem;
      flex-shrink: 0;
      padding-top: 0.2rem;
    }
    .fact-row .fact-text strong {
      display: block;
      font-family: var(--font-display);
      font-size: 0.8rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 0.25rem;
    }
    .fact-row .fact-text p {
      font-size: 0.95rem;
      color: var(--text-dim);
      max-width: none;
      margin: 0;
    }

    .books-preview {
      background: var(--black);
    }
    .books-preview .container { }
    .books-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1rem;
      margin-top: 3rem;
    }
    .mini-book {
      aspect-ratio: 2/3;
      border-radius: 3px;
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      padding: 1rem 0.5rem;
      text-align: center;
      text-decoration: none;
      transition: transform 0.25s, border-color 0.25s;
      position: relative;
      overflow: hidden;
    }
    .mini-book:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
    .mini-book img.mini-cover-real {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
    }
    .mini-book .mn, .mini-book .mt, .mini-book .ms { position: relative; z-index: 2; }
    .mini-book::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(8,8,16,0.9) 0%, rgba(8,8,16,0.35) 55%, transparent 100%);
      z-index: 1;
      pointer-events: none;
    }
    .mini-book.b1 { background: linear-gradient(160deg, #0B1F3A 0%, #0d0d1a 100%); }
    .mini-book.b2 { background: linear-gradient(160deg, #1B4332 0%, #0d0d1a 100%); }
    .mini-book.b3 { background: linear-gradient(160deg, #0891A8 0%, #0d0d1a 100%); }
    .mini-book.b4 { background: linear-gradient(160deg, #4B0082 0%, #0d0d1a 100%); }
    .mini-book.b5 { background: linear-gradient(160deg, #7A1F2B 0%, #0d0d1a 100%); }
    .mini-book .mn { font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
    .mini-book .mt { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 0.25rem; }
    .mini-book .ms { font-family: var(--font-body); font-style: italic; font-size: 0.75rem; color: var(--text-dim); }

    .world-teaser { background: var(--deep); }
    .world-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .world-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 2rem;
    }
    .world-card .wc-icon { font-size: 1.8rem; margin-bottom: 1rem; }
    .world-card h3 { margin-bottom: 0.75rem; }
    .world-card p { font-size: 0.95rem; color: var(--text-dim); max-width: none; }

    @media (max-width: 900px) {
      .hero-content { grid-template-columns: 1fr; }
      .series-intro .inner { grid-template-columns: 1fr; gap: 2.5rem; }
      .world-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 700px) {
      .books-grid { grid-template-columns: repeat(2, 1fr); }
    }


/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: SERIES (series.html)
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--deep); padding-bottom: 3rem; }

    .books-list { background: var(--black); }
    .books-list .container { display: flex; flex-direction: column; gap: 3rem; }

    .book-entry { scroll-margin-top: calc(var(--nav-height) + 2rem); }
    .book-entry .book-card { }

    .book-blurb { font-size: 1.05rem; color: var(--text); margin-bottom: 1.5rem; }

    .book-meta-table {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem 2rem;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
    }
    .book-meta-table dt {
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }
    .book-meta-table dd { color: var(--text-bright); }

    .series-note {
      background: var(--panel);
      border: 1px solid var(--border);
      border-left: 3px solid var(--gold);
      padding: 1.5rem 2rem;
      border-radius: 2px;
      margin-top: 4rem;
    }
    .series-note p { font-size: 1rem; color: var(--text-dim); max-width: none; }
    .series-note p + p { margin-top: 0.75rem; }

    /* colour accents per book — derived from the locked cover palette
       (05_COVER_ART_PROMPTS.docx): B1 navy #0B1F3A, B2 forest #1B4332,
       B3 teal #0891A8, B4 purple #4B0082, B5 crimson #7A1F2B */
    #book1 .book-card { border-top: 2px solid #0B1F3A; }
    #book2 .book-card { border-top: 2px solid #1B4332; }
    #book3 .book-card { border-top: 2px solid #0891A8; }
    #book4 .book-card { border-top: 2px solid #4B0082; }
    #book5 .book-card { border-top: 2px solid #7A1F2B; }

    .book-num-badge {
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 0.25rem 0.75rem;
      border-radius: 2px;
      margin-bottom: 0.5rem;
      display: inline-block;
    }
    /* badge text colors are the locked hex lightened only as much as needed
       to clear 4.5:1 contrast against --panel — same hue as the cover, not
       an independently chosen accent */
    #book1 .book-num-badge { background: rgba(11,31,58,0.35); color: #768190; }
    #book2 .book-num-badge { background: rgba(27,67,50,0.3); color: #6c867b; }
    #book3 .book-num-badge { background: rgba(8,145,168,0.2); color: #0891A8; }
    #book4 .book-num-badge { background: rgba(75,0,130,0.3); color: #996fb8; }
    #book5 .book-num-badge { background: rgba(122,31,43,0.3); color: #aa7178; }

    .cover-placeholder-large {
      width: 160px;
      aspect-ratio: 2/3;
      border-radius: 2px;
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      font-family: var(--font-display);
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }
    .cover-placeholder-large img.cover-real {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 2;
    }
    .cover-placeholder-large.has-real-cover .cp-num,
    .cover-placeholder-large.has-real-cover .cp-text,
    .cover-placeholder-large.has-real-cover .cp-note {
      display: none;
    }
    #book1 .cover-placeholder-large { background: linear-gradient(160deg, #0B1F3A, #0d0d1a); }
    #book2 .cover-placeholder-large { background: linear-gradient(160deg, #1B4332, #0d0d1a); }
    #book3 .cover-placeholder-large { background: linear-gradient(160deg, #0891A8, #0d0d1a); }
    #book4 .cover-placeholder-large { background: linear-gradient(160deg, #4B0082, #0d0d1a); }
    #book5 .cover-placeholder-large { background: linear-gradient(160deg, #7A1F2B, #0d0d1a); }
    .cover-placeholder-large .cp-num {
      font-size: 2.5rem;
      font-weight: 900;
      color: rgba(201,162,39,0.25);
      line-height: 1;
      position: relative;
    }
    .cover-placeholder-large .cp-text {
      font-size: 0.55rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
      padding: 0 0.5rem;
      position: relative;
    }
    .cover-placeholder-large .cp-note {
      position: absolute;
      bottom: 0.5rem;
      font-size: 0.45rem;
      color: var(--muted);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }


/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: WORLD (world.html)
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--deep); }

    .species-section { background: var(--black); }
    .species-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 3rem;
    }
    .species-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
    }
    .species-card.male { border-top: 3px solid #8B2020; }
    .species-card.female { border-top: 3px solid var(--plasma); }
    .species-card h3 { margin-bottom: 0.75rem; }
    .species-card .species-desc { color: var(--text); margin-bottom: 1.5rem; }
    .spec-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
    .spec-list li {
      display: flex;
      gap: 1rem;
      font-size: 0.95rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }
    .spec-list li:last-child { border-bottom: none; padding-bottom: 0; }
    .spec-list .spec-icon { color: var(--gold); width: 1.2rem; flex-shrink: 0; }
    .spec-list .spec-text strong { display: block; font-size: 0.8rem; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-bright); margin-bottom: 0.2rem; }
    .spec-list .spec-text p { color: var(--text-dim); font-size: 0.9rem; margin: 0; max-width: none; }

    .biology-section { background: var(--deep); }
    .biology-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .bio-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 1.75rem;
    }
    .bio-card h4 { font-size: 0.7rem; margin-bottom: 0.75rem; }
    .bio-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
    .bio-card p { font-size: 0.9rem; color: var(--text-dim); max-width: none; }
    .bio-tag {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.65rem;
      padding: 0.2rem 0.5rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--plasma);
      margin-bottom: 0.75rem;
    }

    .halfblood-section { background: var(--black); }
    .halfblood-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }
    .conditions-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
    .condition-item {
      background: var(--panel);
      border: 1px solid var(--border);
      border-left: 3px solid var(--gold-dim);
      padding: 1.25rem 1.5rem;
      border-radius: 0 3px 3px 0;
    }
    .condition-item h4 { font-size: 0.7rem; color: var(--gold); margin-bottom: 0.4rem; }
    .condition-item p { font-size: 0.9rem; color: var(--text-dim); max-width: none; margin: 0; }

    .morthkai-section { background: var(--deep); position: relative; overflow: hidden; }
    .morthkai-section::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: radial-gradient(ellipse at 20% 50%, rgba(20, 0, 0, 0.4) 0%, transparent 60%);
      pointer-events: none;
    }
    .morthkai-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
      position: relative;
    }
    .morthkai-stats { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
    .stat-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.9rem;
    }
    .stat-row:last-child { border-bottom: none; }
    .stat-label { color: var(--text-dim); font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
    .stat-value { color: var(--text-bright); }
    .stat-value.red { color: #cc6060; }
    .stat-value.plasma { color: var(--plasma); }

    @media (max-width: 900px) {
      .species-grid { grid-template-columns: 1fr; }
      .biology-grid { grid-template-columns: 1fr 1fr; }
      .halfblood-inner { grid-template-columns: 1fr; gap: 2rem; }
      .morthkai-inner { grid-template-columns: 1fr; gap: 2rem; }
    }
    @media (max-width: 560px) {
      .biology-grid { grid-template-columns: 1fr; }
    }


/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: AUTHOR (author.html)
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--deep); }

    .author-section { background: var(--black); }
    .author-inner {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 5rem;
      align-items: start;
    }
    .author-portrait {
      position: sticky;
      top: calc(var(--nav-height) + 2rem);
    }
    .portrait-frame {
      width: 100%;
      aspect-ratio: 3/4;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 0.75rem;
      color: var(--muted);
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      position: relative;
      overflow: hidden;
      margin-bottom: 1.5rem;
    }
    .portrait-frame::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, rgba(139,32,32,0.08) 0%, var(--panel) 60%);
    }
    .portrait-frame img.portrait-real {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 2;
    }
    .portrait-frame.has-real-photo .pf-icon,
    .portrait-frame.has-real-photo .pf-text {
      display: none;
    }
    .portrait-frame .pf-icon {
      font-size: 3rem;
      position: relative;
      opacity: 0.3;
    }
    .portrait-frame .pf-text { position: relative; text-align: center; padding: 0 1rem; }
    .author-meta {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .author-meta-item {
      display: flex;
      gap: 0.75rem;
      font-size: 0.85rem;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--border);
    }
    .author-meta-item:last-child { border-bottom: none; }
    .author-meta-item dt {
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      min-width: 80px;
    }
    .author-meta-item dd { color: var(--text); }

    .author-bio { }
    .author-bio h2 { margin-bottom: 2rem; }
    .author-bio p { font-size: 1.1rem; color: var(--text); margin-bottom: 1.5rem; }
    .author-bio p.lead {
      font-size: 1.3rem;
      font-style: italic;
      color: var(--text-bright);
      border-left: 2px solid var(--gold);
      padding-left: 1.5rem;
      margin-bottom: 2rem;
    }

    .social-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

    @media (max-width: 900px) {
      .author-inner { grid-template-columns: 1fr; }
      .author-portrait { position: static; }
      .portrait-frame { max-width: 280px; }
    }


/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: PRESS (press.html)
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--deep); }

    .press-section { background: var(--black); }
    .press-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 3rem;
    }

    .press-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 2rem;
    }
    .press-block h4 { margin-bottom: 1rem; }
    .press-block p { font-size: 0.95rem; color: var(--text); max-width: none; }
    .press-block p + p { margin-top: 0.75rem; }

    .press-facts {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .press-fact {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 1.5rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.9rem;
    }
    .press-fact:last-child { border-bottom: none; }
    .press-fact dt {
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      padding-top: 0.1rem;
    }
    .press-fact dd { color: var(--text-bright); }

    .pitch-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-left: 3px solid var(--gold);
      border-radius: 0 3px 3px 0;
      padding: 2rem;
      margin-top: 3rem;
    }
    .pitch-block h4 { margin-bottom: 1.5rem; }
    .pitch-block p { font-size: 1.05rem; color: var(--text); max-width: none; }
    .pitch-block p + p { margin-top: 1rem; }

    .comps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-top: 1.5rem;
    }
    .comp-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 1.25rem;
    }
    .comp-item strong {
      display: block;
      font-family: var(--font-display);
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      margin-bottom: 0.4rem;
    }
    .comp-item p { font-size: 0.85rem; color: var(--text-dim); max-width: none; margin: 0; }

    .contact-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-top: 2px solid var(--plasma);
      border-radius: 3px;
      padding: 2.5rem;
      margin-top: 3rem;
      text-align: center;
    }
    .contact-block h3 { margin-bottom: 0.75rem; }
    .contact-block p { color: var(--text-dim); margin: 0 auto 2rem; max-width: 50ch; }
    .contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

    .excerpt-block {
      background: var(--deep);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 2.5rem;
      margin-top: 3rem;
      position: relative;
    }
    .excerpt-block::before {
      content: '"';
      position: absolute;
      top: -0.5rem;
      left: 2rem;
      font-family: var(--font-display);
      font-size: 5rem;
      color: var(--gold);
      opacity: 0.2;
      line-height: 1;
    }
    .excerpt-block p {
      font-family: var(--font-body);
      font-size: 1.05rem;
      font-style: italic;
      color: var(--text-bright);
      max-width: none;
      line-height: 1.8;
    }
    .excerpt-block .source {
      margin-top: 1rem;
      font-family: var(--font-display);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold);
      font-style: normal;
    }

    @media (max-width: 768px) {
      .press-grid { grid-template-columns: 1fr; }
      .comps-grid { grid-template-columns: 1fr 1fr; }
      .press-fact { grid-template-columns: 1fr; gap: 0.25rem; }
    }
    @media (max-width: 480px) {
      .comps-grid { grid-template-columns: 1fr; }
    }
