/*
Theme Name: Valardia
Theme URI: https://valardia.com
Author: Synaptic Media Ltd
Description: The official Valardia TRPG theme — dark fantasy, comic panel aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: valardia
*/

/* ═══════════════════════════════════════════
   VALARDIA DESIGN SYSTEM
═══════════════════════════════════════════ */

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

:root {
  --ink: #0a0a0f;
  --parchment: #f0e8d0;
  --parchment-dark: #d4c8a8;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --deep-blue: #0d1b2a;
  --night-blue: #1a2a3a;
  --forest-dark: #0a1a0a;
  --forest-green: #1a3020;
  --mire-purple: #1a0a2a;
  --blood-red: #3a0a0a;
  --moon-silver: #c8d8e8;
  --panel-border: 3px solid #0a0a0f;
  --shadow-strong: 6px 6px 0px #0a0a0f;
  --site-max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: #111118;
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--parchment);
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.6;
}

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

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

/* ═══════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════ */

.site-header {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-branding a {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--parchment);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.site-branding a:hover { color: var(--gold); }

.site-branding .tagline {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--parchment-dark);
  opacity: 0.5;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   PRIMARY NAVIGATION
═══════════════════════════════════════════ */

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.primary-nav a {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--parchment-dark);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.07);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
    padding: 16px 24px;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 8px; }
  .primary-nav a { display: block; padding: 8px 0; border: none; border-bottom: 1px solid rgba(201,162,39,0.1); }
}

/* ═══════════════════════════════════════════
   HERO / PAGE HEADER
═══════════════════════════════════════════ */

.page-hero {
  min-height: 40vh;
  background: radial-gradient(ellipse at 50% 30%, #1a1040 0%, #0a0820 40%, #050408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(201, 162, 39, 0.2);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 216, 232, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  color: var(--parchment);
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.3);
}

.page-hero p {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: clamp(15px, 2.5vw, 20px);
  color: var(--parchment-dark);
  margin-top: 16px;
  opacity: 0.75;
}

.gold-rule {
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════ */

.site-main {
  min-height: 60vh;
}

.content-wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 60px 24px;
}

/* ═══════════════════════════════════════════
   POST / PAGE CONTENT — PROSE STYLES
═══════════════════════════════════════════ */

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--parchment-dark);
}

.entry-content h2, .entry-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  margin: 40px 0 16px;
  line-height: 1.2;
}

.entry-content h2 { font-size: clamp(22px, 4vw, 36px); }
.entry-content h3 { font-size: clamp(18px, 3vw, 26px); font-weight: 400; color: var(--gold); letter-spacing: 1px; }

.entry-content p { margin-bottom: 20px; }

.entry-content ul, .entry-content ol {
  margin: 0 0 20px 28px;
}

.entry-content li { margin-bottom: 8px; }

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 24px;
  margin: 24px 0;
  background: rgba(201, 162, 39, 0.04);
  font-style: italic;
  color: var(--parchment);
}

.entry-content hr {
  border: none;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  margin: 40px auto;
  max-width: 300px;
}

/* ═══════════════════════════════════════════
   POST GRID (archive / blog)
═══════════════════════════════════════════ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.post-card {
  border: var(--panel-border);
  background: #0e0e14;
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.post-card-category {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}

.post-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--parchment);
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--gold); }

.post-card p {
  font-size: 15px;
  color: var(--parchment-dark);
  opacity: 0.75;
  line-height: 1.6;
}

.post-card-meta {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--parchment-dark);
  opacity: 0.4;
  text-transform: uppercase;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

/* ═══════════════════════════════════════════
   COMIC PANEL SYSTEM (reused from What Lies West)
═══════════════════════════════════════════ */

.comic-grid { display: grid; gap: 6px; margin-bottom: 60px; }
.comic-grid-2   { grid-template-columns: 1fr 1fr; }
.comic-grid-3   { grid-template-columns: 1fr 1fr 1fr; }
.comic-grid-2-1 { grid-template-columns: 2fr 1fr; }
.comic-grid-1-2 { grid-template-columns: 1fr 2fr; }
.comic-grid-3-2 { grid-template-columns: 3fr 2fr; }
.comic-grid-full { grid-template-columns: 1fr; }

.panel {
  border: var(--panel-border);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel.tall  { min-height: 300px; }
.panel.short { min-height: 120px; }
.panel.wide  { min-height: 200px; }
.panel.hero  { min-height: 420px; }

.bg-dawn    { background: linear-gradient(160deg, #0a0808 0%, #1a0e08 40%, #2a1808 100%); }
.bg-village { background: linear-gradient(180deg, #0c1018 0%, #1a2030 50%, #0a1018 100%); }
.bg-vale    { background: linear-gradient(160deg, #050f08 0%, #0a1a10 40%, #0f2018 100%); }
.bg-forest  { background: linear-gradient(180deg, #020808 0%, #050f05 40%, #081808 100%); }
.bg-slime   { background: linear-gradient(180deg, #020808 0%, #051005 40%, #0a150a 100%); }
.bg-dream   { background: linear-gradient(160deg, #080510 0%, #100820 50%, #080510 100%); }
.bg-wind    { background: linear-gradient(160deg, #050810 0%, #0a1020 50%, #050810 100%); }
.bg-steppe  { background: linear-gradient(180deg, #050a0f 0%, #0a1520 50%, #050a0f 100%); }
.bg-message { background: linear-gradient(160deg, #0f0a18 0%, #180f28 50%, #0f0a18 100%); }
.bg-ekhidon { background: linear-gradient(160deg, #0a0510 0%, #15082a 50%, #0a0510 100%); }
.bg-moon    { background: linear-gradient(180deg, #030810 0%, #050f18 40%, #0a1828 100%); }
.bg-chase   { background: linear-gradient(160deg, #05080f 0%, #080f18 50%, #05080f 100%); }
.bg-thunder { background: linear-gradient(180deg, #050305 0%, #100810 50%, #050305 100%); }
.bg-capture { background: linear-gradient(160deg, #080305 0%, #150508 50%, #080305 100%); }

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.panel.texture-grain::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.panel-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-art {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.panel-art-glyph {
  font-size: clamp(48px, 10vw, 100px);
  opacity: 0.07;
  user-select: none;
  color: var(--parchment);
  line-height: 1;
}

.light-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.light-moon {
  position: absolute;
  top: 10%; right: 15%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 216, 232, 0.25) 0%, rgba(200, 216, 232, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.light-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.caption {
  background: var(--parchment);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  margin-bottom: 10px;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  z-index: 3;
  max-width: 100%;
  box-shadow: 3px 3px 0 var(--ink);
}

.caption.narration { background: var(--parchment); border-top: 4px solid var(--gold); }

.caption.location {
  background: var(--ink);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-color: var(--gold);
  box-shadow: 3px 3px 0 var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}

.caption.journal {
  background: #f5edd0;
  border-left: 4px solid var(--gold);
  font-style: italic;
  font-size: 14px;
  font-family: 'Crimson Text', serif;
}

.bubble-wrap {
  position: relative;
  z-index: 3;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bubble-wrap.right  { align-items: flex-end; }
.bubble-wrap.center { align-items: center; }

.bubble {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 10px 16px;
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
  max-width: 85%;
  box-shadow: 3px 3px 0 var(--ink);
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 20px;
  border: 12px solid transparent;
  border-top: 12px solid var(--ink);
}

.bubble::before {
  content: '';
  position: absolute;
  bottom: -9px; left: 22px;
  border: 10px solid transparent;
  border-top: 10px solid white;
  z-index: 1;
}

.bubble-wrap.right .bubble::after { left: auto; right: 20px; }
.bubble-wrap.right .bubble::before { left: auto; right: 22px; }

.bubble.thought { border-radius: 24px; border-style: dashed; }
.bubble.thought::after { content: '○ ○'; bottom: -18px; left: 24px; border: none; font-size: 10px; color: var(--ink); white-space: nowrap; }
.bubble.thought::before { display: none; }

.bubble.wind-speech { background: #f0f8f0; border-color: #2a4a2a; font-style: italic; color: #1a3020; box-shadow: 3px 3px 0 #2a4a2a; }
.bubble.wind-speech::after { border-top-color: #2a4a2a; }
.bubble.wind-speech::before { border-top-color: #f0f8f0; }

.bubble.wind-telepathic { background: #e8f0f8; border-color: #1a2a4a; border-style: dashed; font-style: italic; color: #0a1a3a; box-shadow: none; }
.bubble.wind-telepathic::after, .bubble.wind-telepathic::before { display: none; }

.bubble.ekhidon-voice { background: #f8f0ff; border-color: #3a1a5a; font-style: italic; color: #2a0a4a; box-shadow: 3px 3px 0 #3a1a5a; }
.bubble.ekhidon-voice::after { border-top-color: #3a1a5a; }
.bubble.ekhidon-voice::before { border-top-color: #f8f0ff; }

.bubble.moon-elf { background: #e8f0f8; border-color: #0a2a4a; color: #0a1a3a; box-shadow: 3px 3px 0 #0a2a4a; }
.bubble.moon-elf::after { border-top-color: #0a2a4a; }
.bubble.moon-elf::before { border-top-color: #e8f0f8; }

.bubble-speaker {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--parchment-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-left: 4px;
  opacity: 0.8;
}

.bubble-wrap.right .bubble-speaker { padding-left: 0; padding-right: 4px; }

.narrative-strip {
  border: var(--panel-border);
  padding: 28px 32px;
  margin: 6px 0;
  position: relative;
  overflow: hidden;
}

.narrative-strip.bg-forest { background: linear-gradient(90deg, #020808 0%, #051005 50%, #020808 100%); }

.narrative-strip p {
  font-family: 'Crimson Text', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--parchment);
  position: relative;
  z-index: 2;
}

.narrative-strip p + p { margin-top: 12px; }

.narrative-strip .strip-glyph {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  opacity: 0.05;
  user-select: none;
  z-index: 1;
}

.chapter-end {
  text-align: center;
  padding: 40px 0 80px;
  position: relative;
}

.chapter-end::before {
  content: '— ✦ —';
  display: block;
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.chapter-end-text {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--parchment-dark);
  opacity: 0.4;
  text-transform: uppercase;
}

.interlude { max-width: 960px; margin: 0 auto; padding: 60px 16px; text-align: center; }

.interlude-box {
  border: 2px solid rgba(201, 162, 39, 0.4);
  padding: 40px;
  background: rgba(201, 162, 39, 0.04);
}

.interlude-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.7;
}

.interlude-text {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--parchment-dark);
  line-height: 1.6;
  opacity: 0.7;
}

.page-section { background: #111118; padding: 20px 0; }
.page-section:nth-child(odd) { background: #0e0e14; }

.wind-reveal {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #0a1a10 0%, #050a08 70%, #020504 100%);
  border: var(--panel-border);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wind-figure { text-align: center; position: relative; z-index: 2; padding: 40px; }
.wind-body-text { font-family: 'Cinzel', serif; font-size: clamp(48px, 10vw, 100px); line-height: 1; user-select: none; }
.wind-antlers { color: #3a2a10; display: block; }
.wind-face    { color: #2a3a2a; font-size: clamp(32px, 7vw, 70px); display: block; }
.wind-vines   { color: #1a3a1a; font-size: clamp(20px, 4vw, 44px); display: block; }
.wind-aura { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(26, 58, 26, 0.3) 0%, transparent 70%); pointer-events: none; }

.ekhidon-panel {
  border: var(--panel-border);
  background: radial-gradient(ellipse at 50% 50%, #1a0828 0%, #0f0520 60%, #07030f 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ekhidon-panel::before { content: '⋮ ⋮ ⋮'; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(148, 100, 200, 0.2); font-size: 24px; letter-spacing: 16px; }

.ekhidon-message { text-align: center; padding: 40px; position: relative; z-index: 2; }
.ekhidon-message-text { font-family: 'Crimson Text', serif; font-size: clamp(18px, 3.5vw, 28px); font-style: italic; color: #d8c8f0; line-height: 1.5; text-shadow: 0 0 20px rgba(148, 100, 200, 0.5); }
.ekhidon-message-attr { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 4px; color: rgba(148, 100, 200, 0.5); margin-top: 16px; text-transform: uppercase; }

.dream-panel {
  border: var(--panel-border);
  background: radial-gradient(ellipse at 50% 40%, #1a1030 0%, #0f0820 60%, #050310 100%);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.dream-panel::before { content: '⚡'; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 80px; opacity: 0.06; }

.dream-crown { font-size: 60px; margin-bottom: 24px; text-shadow: 0 0 20px rgba(201, 162, 39, 0.6); animation: glow 2s ease-in-out infinite alternate; }

@keyframes glow {
  0%   { text-shadow: 0 0 20px rgba(201, 162, 39, 0.6); }
  100% { text-shadow: 0 0 40px rgba(201, 162, 39, 0.9), 0 0 80px rgba(232, 200, 74, 0.4); }
}

.cliffhanger {
  border: 4px solid var(--ink);
  background: radial-gradient(ellipse at 50% 60%, #0f0305 0%, #07020a 100%);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 40px;
  text-align: center;
}

.cliffhanger-text { font-family: 'Cinzel', serif; font-size: clamp(20px, 4vw, 36px); font-weight: 700; color: var(--parchment); line-height: 1.3; margin-bottom: 32px; text-shadow: 0 0 20px rgba(200, 216, 232, 0.3); }
.cliffhanger-to-be-continued { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 8px; color: var(--gold); opacity: 0.6; text-transform: uppercase; margin-top: 40px; }

/* ═══════════════════════════════════════════
   CHAPTER NAVIGATION (story-specific)
═══════════════════════════════════════════ */

.chapter-nav {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding: 16px 24px;
  position: sticky;
  top: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-nav::-webkit-scrollbar { display: none; }

.chapter-nav-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  white-space: nowrap;
  margin-right: 8px;
  text-transform: uppercase;
}

.chapter-nav a {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--parchment-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  transition: all 0.2s;
}

.chapter-nav a:hover { color: var(--gold); border-color: var(--gold); background: rgba(201, 162, 39, 0.1); }

.chapter { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.chapter-header {
  padding: 60px 0 20px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.chapter-number {
  font-family: 'Cinzel', serif;
  font-size: clamp(72px, 15vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201, 162, 39, 0.3);
  user-select: none;
  flex-shrink: 0;
}

.chapter-header-text { flex: 1; min-width: 200px; }

.chapter-label { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 6px; color: var(--gold); text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; }
.chapter-title { font-family: 'Cinzel', serif; font-size: clamp(22px, 4vw, 40px); font-weight: 700; color: var(--parchment); line-height: 1.2; margin-bottom: 8px; }
.chapter-subtitle { font-family: 'Crimson Text', serif; font-style: italic; font-size: 16px; color: var(--parchment-dark); opacity: 0.7; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  border-top: 2px solid rgba(201, 162, 39, 0.2);
  padding: 40px 24px;
  text-align: center;
}

.site-footer-inner {
  max-width: var(--site-max);
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--parchment);
  text-transform: uppercase;
  opacity: 0.6;
}

.footer-tagline {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--parchment-dark);
  opacity: 0.35;
  margin: 8px 0 24px;
  letter-spacing: 1px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--parchment-dark);
  opacity: 0.4;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.8; color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--parchment-dark);
  opacity: 0.25;
  letter-spacing: 1px;
}

/* Cover stars pseudo-elements */
.cover-stars::before {
  content: '· ✦ · ∗ · ✧ · ∘ · ⊹ · ∗ · ✦ · ∘ · ✧ · ⊹ · ∗ · · ✦ · ∘ · ✧ · ⊹ · ∗ · ✦ · ∘';
  position: absolute;
  top: 10%; left: 0; right: 0;
  color: rgba(200, 216, 232, 0.3);
  font-size: 14px;
  letter-spacing: 12px;
  text-align: center;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.cover-stars::after {
  content: '· ⊹ · ∗ · ✦ · ∘ · ✧ · ⊹ · ∗ · ✦ · · ∗ · ✧ · ∘ · ⊹ · ✦ · ∗ · ∘ · ✧ · ⊹ · ∗ ·';
  position: absolute;
  bottom: 15%; left: 0; right: 0;
  color: rgba(200, 216, 232, 0.2);
  font-size: 12px;
  letter-spacing: 14px;
  text-align: center;
  animation: twinkle 5s ease-in-out infinite alternate-reverse;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */

@keyframes twinkle {
  0%   { opacity: 0.3; }
  100% { opacity: 0.8; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .comic-grid-2, .comic-grid-3, .comic-grid-2-1, .comic-grid-1-2, .comic-grid-3-2 {
    grid-template-columns: 1fr;
  }
  .panel { min-height: 200px; }
  .panel.hero { min-height: 300px; }
  .bubble { font-size: 13px; }
  .caption { font-size: 12px; }
  .content-wrap { padding: 40px 16px; }
}
