@font-face {
  font-family: "BOF3";
  src: url("/assets/fonts/bof3.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Color Palette inspired by Logo and Tabletop */
  --bg-deep: #0a0808;       /* Deepest shadow */
  --bg-surface: #141110;    /* Dark wood/table feel */
  --bg-card: #1c1817;       /* Slightly lighter for cards */
  
  --brand-red: #e62222;     /* Matched to the dragon in your logo */
  --brand-red-dark: #b81616;
  
  --text-main: #f2efe9;     /* Off-white parchment color */
  --text-muted: #c2bbae;    /* Aged paper shadow */
  
  --border-subtle: rgba(242, 239, 233, 0.12);
  --border-gold: rgba(212, 175, 55, 0.3);
  
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body.page {
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  /* A subtle warm "spotlight" on the dark background */
  background-image: 
    radial-gradient(circle at 50% 0%, #2a1616 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0d0b0a 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* --- LAYOUT & ALIGNMENT --- */
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 60px 0; }

/* --- HEADER --- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10, 8, 8, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand img {
  width: 40px; 
  height: 40px;
  object-fit: contain;
}

/* --- HERO SECTION --- */
.tabletop { padding: 80px 0 40px 0; }

.hero-content-fixed {
  max-width: 800px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  margin-bottom: 24px;
  margin-left: -8px; /* Optical alignment for the image bounding box */
  filter: drop-shadow(0 10px 20px rgba(230, 34, 34, 0.15));
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 19px;
  max-width: 65ch;
  line-height: 1.6;
}

/* Typography */
h2, .noteTitle {
  font-family: "BOF3", sans-serif;
  color: #ffffff;
  letter-spacing: 1px;
}

.sectionHead h2 { font-size: 36px; margin: 0 0 8px 0; }
.sectionHead p { color: var(--text-muted); margin: 0; font-size: 16px; }

.noteTitle {
  font-size: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Subtle "Parchment Edge" accent for text blocks */
.noteBlock {
  margin-top: 48px;
  max-width: 800px;
  border-left: 3px solid var(--brand-red);
  padding-left: 24px;
  background: linear-gradient(90deg, rgba(230, 34, 34, 0.05) 0%, transparent 100%);
  padding-top: 8px;
  padding-bottom: 8px;
}

.noteList {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 8px; /* Sharper corners for a fantasy feel */
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary { 
  background: var(--brand-red); 
  color: white; 
  box-shadow: 0 8px 20px rgba(230, 34, 34, 0.25);
}
.btn.primary:hover {
  background: var(--brand-red-dark);
}

.btn.ghost { 
  background: rgba(255, 255, 255, 0.03); 
  color: var(--text-main); 
  border-color: var(--border-subtle); 
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- GRIDS & CARDS --- */
.showsGrid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 20px; 
  margin-top: 30px;
}

.castGrid { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 16px; 
  margin-top: 30px;
}

/* The Tabletop Card Vibe */
.showCard, .charCard { 
  background: var(--bg-card); 
  border: 1px solid var(--border-subtle); 
  border-radius: 12px; 
  padding: 20px; 
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Top accent line on cards */
.showCard::before, .charCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-red);
  opacity: 0.5;
}

.showCard:hover, .charCard:hover {
  border-color: var(--border-gold);
}

/* Cast Specifics */
.charCard { padding: 16px; display: flex; flex-direction: column; align-items: center; }

.charRibbon { 
  font-family: "BOF3", sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-main);
  text-align: center;
}

.charPortrait { 
  width: 100%; 
  aspect-ratio: 1/1; /* Square token feel */
  border-radius: 8px; 
  object-fit: cover; 
  border: 2px solid var(--border-subtle);
  background: #000;
}

.charBottom {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.chip {
  font-size: 13px;
  color: var(--text-muted);
}

.miniLink {
  color: var(--brand-red);
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.miniLink:hover { color: white; }

/* Show Specifics */
.showTitle { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.showMeta { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; line-height: 1.7; }
.showMeta strong { color: var(--text-main); }
.pill { 
  display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: bold; 
  text-transform: uppercase; border-radius: 4px; background: rgba(230, 34, 34, 0.15); 
  color: #ff6b6b; margin-bottom: 12px; border: 1px solid rgba(230, 34, 34, 0.3);
}

@media (max-width: 900px) {
  .castGrid { grid-template-columns: repeat(2, 1fr); }
}