/* ==========================================================================
   Castlevania Fan Site — css/style.css
   Gothic cathedral aesthetic: near-black burgundy, blood red, candlelight gold.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:              #14000e;
  --bg-card:         #1e0014;
  --bg-alt:          #190010;
  --text:            #e8ddd0;
  --text-muted:      #8a7060;
  --accent:          #8b0000;
  --accent-dim:      #6b0000;
  --secondary:       #c8963e;
  --secondary-dim:   #a07030;
  --border:          #2e0020;
  --border-accent:   #8b0000;

  --font-heading:    'Metamorphous', 'Georgia', serif;
  --font-body:       'Crimson Text', 'Georgia', serif;

  --nav-height:      60px;
  --container-max:   1200px;

  /* Candlelight flicker — animated on hover */
  --candle-glow:     0 0 8px #c8963e44;
  --candle-glow-h:   0 0 18px #c8963e88, 0 0 36px #c8963e44;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, #2a0018 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 4px
    );
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

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

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

a:hover, a:focus {
  color: var(--secondary-dim);
  outline: none;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.4;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--secondary);
  text-shadow: var(--candle-glow);
  transition: text-shadow 0.4s ease;
}

h1:hover, h2:hover, h3:hover {
  text-shadow: var(--candle-glow-h);
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
h4 { font-size: 1.15rem; color: var(--secondary); }

p + p { margin-top: 0.9em; }

strong { color: var(--text); }

em { color: var(--secondary); font-style: italic; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-section {
  padding: 4rem 0;
}

.site-section + .site-section {
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Blood-drip section separator
   -------------------------------------------------------------------------- */
.blood-drip {
  position: relative;
  height: 3rem;
  overflow: visible;
  margin: 0;
}

.blood-drip::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
}

.blood-drip::after {
  content: '';
  display: block;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 24px solid var(--accent);
  filter: drop-shadow(0 4px 8px var(--accent));
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(20, 0, 14, 0.96);
  border-bottom: 1px solid var(--accent);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary);
  text-shadow: var(--candle-glow);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: text-shadow 0.3s;
}

.nav-brand:hover {
  text-shadow: var(--candle-glow-h);
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary);
  background: rgba(139, 0, 0, 0.2);
}

.nav-link--active {
  color: var(--secondary);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 2px;
}

.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(20, 0, 14, 0.98);
    border-bottom: 1px solid var(--accent);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-menu--open { display: flex; }

  .nav-link {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 2000;
  font-family: var(--font-heading);
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1.25rem 3rem;
  background:
    linear-gradient(to bottom, rgba(20,0,14,0.3) 0%, rgba(20,0,14,0.75) 60%, var(--bg) 100%),
    url('../images/super-castlevania-4-cover.png') center/cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: sepia(0.4) brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--secondary);
  text-shadow: 0 0 40px #c8963e66, 0 0 80px #8b000044;
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.25s;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 0 20px #8b000066;
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: rgba(200, 150, 62, 0.1);
  color: var(--secondary);
  box-shadow: var(--candle-glow-h);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(to bottom, rgba(139,0,0,0.15), transparent);
  border-bottom: 1px solid var(--border-accent);
  padding: 3rem 0 2.5rem;
}

.page-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--secondary);
  text-shadow: var(--candle-glow);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  color: var(--text-muted);
  font-style: italic;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--secondary);
  text-shadow: var(--candle-glow);
}

.section-subtitle {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   Screenshot strip (index hero)
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .screenshot-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Gothic arch frame via clip-path */
.screenshot-strip img,
.arch-frame {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(
    15% 0%, 85% 0%,
    100% 8%, 100% 100%,
    0% 100%, 0% 8%
  );
  border: 1px solid var(--border-accent);
  transition: clip-path 0.3s, box-shadow 0.3s;
}

.screenshot-strip img:hover,
.arch-frame:hover {
  clip-path: polygon(
    10% 0%, 90% 0%,
    100% 6%, 100% 100%,
    0% 100%, 0% 6%
  );
  box-shadow: 0 0 20px #8b000066;
}

/* Deeper gothic arch for featured images */
.arch-frame--tall {
  aspect-ratio: 3/4;
  clip-path: polygon(
    20% 0%, 80% 0%,
    100% 10%, 100% 100%,
    0% 100%, 0% 10%
  );
}

/* --------------------------------------------------------------------------
   Trivia callouts
   -------------------------------------------------------------------------- */
aside.trivia {
  background: linear-gradient(135deg, rgba(139,0,0,0.12), rgba(139,0,0,0.05));
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  position: relative;
}

aside.trivia::before {
  content: '🦇 Did You Know?';
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

aside.trivia ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

aside.trivia ol li {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

aside.trivia p {
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Developer quotes
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 3px solid var(--secondary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(200, 150, 62, 0.06);
  border-radius: 0 4px 4px 0;
}

blockquote.dev-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

blockquote.dev-quote cite {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--secondary);
  display: block;
}

/* --------------------------------------------------------------------------
   History timeline (CSS custom counter)
   -------------------------------------------------------------------------- */
.timeline {
  counter-reset: era-counter;
}

.timeline-section {
  counter-increment: era-counter;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3.5rem;
}

.timeline-section::before {
  content: counter(era-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.timeline-section::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.5rem;
  bottom: -3.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
}

.timeline-section:last-child::after { display: none; }

.timeline-section__era {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.timeline-section__image {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 220px;
}

.timeline-section__image img {
  clip-path: polygon(
    15% 0%, 85% 0%,
    100% 10%, 100% 100%,
    0% 100%, 0% 10%
  );
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .timeline-section {
    padding-left: 2.5rem;
  }
  .timeline-section__image {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Games list (scroll-snap)
   -------------------------------------------------------------------------- */
.games-snap-container {
  max-height: 600px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}

.games-snap-container::-webkit-scrollbar {
  width: 6px;
}

.games-snap-container::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.games-snap-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.game-row {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.game-row:last-child { border-bottom: none; }

.game-row:hover {
  background: rgba(139, 0, 0, 0.1);
}

.game-row__art {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.game-row__body {}

.game-row__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.game-row__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.game-row__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 500px) {
  .game-row {
    grid-template-columns: 1fr;
  }
  .game-row__art {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-position: top;
  }
}

/* --------------------------------------------------------------------------
   Platform badges / tags
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.tag--platform {
  background: rgba(139,0,0,0.25);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.tag--flagship {
  background: rgba(200,150,62,0.2);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.tag--genre {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   People cards
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.person-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 24px rgba(200,150,62,0.15);
}

.person-card__portrait {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  clip-path: polygon(
    12% 0%, 88% 0%,
    100% 8%, 100% 100%,
    0% 100%, 0% 8%
  );
  margin-bottom: 1.25rem;
}

.person-card__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(139,0,0,0.2), rgba(200,150,62,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.25rem;
  clip-path: polygon(
    12% 0%, 88% 0%,
    100% 8%, 100% 100%,
    0% 100%, 0% 8%
  );
}

.person-card__name {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.person-card__bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.person-card__works {
  margin-top: 1rem;
}

.person-card__works li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border);
}

.person-card__works li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   Flagship / deep-dive page
   -------------------------------------------------------------------------- */
.flagship-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.flagship-logo {
  max-width: 360px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 20px #c8963e55);
}

.flagship-body {
  max-width: 780px;
  margin: 0 auto;
}

.flagship-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(
    12% 0%, 88% 0%,
    100% 8%, 100% 100%,
    0% 100%, 0% 8%
  );
  border: 1px solid var(--border-accent);
  transition: clip-path 0.3s, box-shadow 0.3s;
}

.screenshot-grid img:hover {
  clip-path: polygon(
    8% 0%, 92% 0%,
    100% 5%, 100% 100%,
    0% 100%, 0% 5%
  );
  box-shadow: 0 0 24px #8b000055;
}

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 1.25rem;
}

.video-entry h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.video-entry p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 1rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
}

/* Inline embed (flagship/history/index) */
.embed-single {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  aspect-ratio: 16/9;
}

.embed-single iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Gallery grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(
    10% 0%, 90% 0%,
    100% 8%, 100% 100%,
    0% 100%, 0% 8%
  );
  transition: clip-path 0.3s, transform 0.3s;
}

.gallery-item:hover img {
  clip-path: polygon(
    6% 0%, 94% 0%,
    100% 5%, 100% 100%,
    0% 100%, 0% 5%
  );
  transform: scale(1.03);
}

.gallery-item__caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Content cards (section nav)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.content-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--candle-glow-h);
  color: var(--text);
}

.content-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.content-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Placeholder (missing image)
   -------------------------------------------------------------------------- */
.placeholder {
  background: linear-gradient(135deg, rgba(139,0,0,0.15), rgba(20,0,14,0.5));
  border: 1px dashed var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-accent);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--secondary);
  text-shadow: var(--candle-glow);
}

.site-footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.mt-sm  { margin-top: 0.75rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 3rem; }
.mb-md  { margin-bottom: 1.5rem; }
.clearfix::after { content: ''; display: table; clear: both; }

/* --------------------------------------------------------------------------
   Level breakdown table (flagship)
   -------------------------------------------------------------------------- */
.level-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.level-table th {
  font-family: var(--font-heading);
  color: var(--secondary);
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--accent);
  background: rgba(139,0,0,0.1);
}

.level-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.level-table tr:hover td {
  background: rgba(139,0,0,0.07);
}

/* --------------------------------------------------------------------------
   Notable features list
   -------------------------------------------------------------------------- */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.55rem;
}
