@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --surface: #151515;
  --surface-2: #1e1b18;
  --surface-3: #231f1a;
  --gold: #c9a96e;
  --gold-light: #e2c898;
  --gold-dark: #8a6e3e;
  --red: #8b2020;
  --text: #e8e0d0;
  --text-soft: #c9bdab;
  --text-muted: #9a9080;
  --border: #2a2a2a;
  --border-gold: rgba(201, 169, 110, 0.34);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(139, 32, 32, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(201, 169, 110, 0.08), transparent 30rem),
    linear-gradient(180deg, #080808 0%, var(--bg) 42%, #0d0b0a 100%);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
  margin: 0;
  min-height: 100vh;
}

body::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)'/%3E%3C/svg%3E");
  content: '';
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  position: fixed;
  z-index: 1000;
}

a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

h1,
h2,
h3,
h4 {
  color: var(--gold);
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.045em;
  line-height: 1.18;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.65rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.32rem, 2.6vw, 2.15rem);
}

h3 {
  color: var(--gold-light);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  margin-top: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

strong {
  color: var(--gold-light);
}

blockquote {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  color: var(--text-soft);
  font-style: italic;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--border-gold);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  align-items: center;
  display: flex;
  gap: 1.1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem 1.25rem;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
}

.site-brand img {
  display: block;
  height: 3.15rem;
  width: auto;
}

.site-brand:hover img {
  filter: brightness(1.08);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.25rem 0;
  text-transform: uppercase;
}

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

main {
  margin: 0 auto;
  max-width: 1080px;
  padding: 2.25rem 1.25rem 4rem;
}

.hero,
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  border-color: var(--border-gold);
  margin-bottom: 1.2rem;
  padding: clamp(1.45rem, 4vw, 2.65rem);
}

.card {
  margin-bottom: 1rem;
  overflow-x: auto;
  padding: 1.2rem;
}

.card:hover {
  border-color: rgba(201, 169, 110, 0.26);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  margin-top: 1.5rem;
}

.grid .card {
  margin-bottom: 0;
}

.note {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.eyebrow {
  color: var(--gold-dark);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.meta-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  margin: 1.35rem 0 0;
}

.meta-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.9rem;
}

.meta-label {
  color: var(--text-muted);
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-top: 0.2rem;
}

.book-tag {
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: inline-block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-left: 0.35rem;
  padding: 0.23rem 0.42rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tag-list li {
  background: rgba(139, 32, 32, 0.16);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
  padding: 0.34rem 0.65rem;
}

.tag-list a {
  color: var(--gold-light);
}

.content-table {
  border-collapse: collapse;
  margin-top: 0.85rem;
  min-width: 680px;
  width: 100%;
}

.content-table th,
.content-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.78rem 0.68rem;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-table tr:hover td {
  background: rgba(201, 169, 110, 0.035);
}

.recap-glance {
  font-size: 0.88rem;
  line-height: 1.42;
  min-width: 0;
}

.recap-glance th,
.recap-glance td {
  padding: 0.44rem 0.5rem;
}

.recap-glance th {
  font-size: 0.62rem;
}

.recap-glance td:first-child,
.recap-glance td:nth-child(2) {
  white-space: nowrap;
}

.callout {
  background: rgba(201, 169, 110, 0.08);
  border-left: 3px solid var(--gold);
  color: var(--text-soft);
  margin: 1rem 0;
  padding: 1rem;
}

.affiliate-panel,
.partner-slot {
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.12), transparent 42%),
    var(--surface-2);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  margin: 1rem 0;
  padding: 1rem;
}

.affiliate-panel h2,
.partner-slot h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  margin-bottom: 0.45rem;
}

.affiliate-panel p,
.partner-slot p {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.affiliate-button {
  background: rgba(201, 169, 110, 0.13);
  border: 1px solid rgba(201, 169, 110, 0.34);
  color: var(--gold-light);
  display: inline-flex;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
}

.affiliate-button:hover {
  background: rgba(201, 169, 110, 0.2);
  color: #fff2cc;
}

.affiliate-disclosure {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.7rem;
}

.article-image {
  border: 1px solid var(--border-gold);
  display: block;
  height: auto;
  margin: 1.4rem 0 0;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.caption {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

.section-gap {
  margin-top: 1.2rem;
}

.section-gap-sm {
  margin-top: 1rem;
}

.character-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin: 1.5rem 0;
  padding: 0;
}

.character-card {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
  text-align: center;
}

.character-card img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-gold);
  filter: brightness(0.92);
  margin-bottom: 0.75rem;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.character-card h4 {
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.character-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.42;
  margin: 0;
}

.book-series-grid {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
}

.book-series-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100px;
}

.book-series-card img {
  border: 1px solid var(--border);
  height: 150px;
  object-fit: cover;
  width: 100px;
}

.book-series-label {
  color: var(--text-muted);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

.site-footer {
  background: #070707;
  border-top: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-footer-inner {
  margin: 0 auto;
  max-width: 1080px;
  padding: 1.5rem 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.45rem;
}

.footer-links a {
  color: var(--gold);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.site-disclosure {
  color: var(--text-muted);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0;
  margin-top: 0.45rem;
  max-width: 860px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
  }

  .site-brand img {
    height: 2.55rem;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 1rem;
  }

  .site-nav {
    gap: 0.45rem 0.85rem;
    justify-content: flex-start;
  }

  .site-nav a {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.14);
    padding: 0.28rem 0.42rem;
  }

  main {
    padding: 1.2rem 0.9rem 3rem;
  }

  .hero,
  .card {
    padding: 1rem;
  }

  .content-table {
    min-width: 560px;
  }
}


/* Grav export hardening */
main {
  max-width: 1160px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
}

.card {
  overflow-x: visible;
  overflow-wrap: anywhere;
}

.card h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}

.card p,
.card li,
.card a {
  overflow-wrap: anywhere;
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
