:root {
  --bg: #0f1220;
  --panel: #171d2f;
  --panel-soft: #1e2942;
  --primary: #7d5ae8;
  --primary-strong: #5e3cc8;
  --gold: #d7b86f;
  --cream: #f7f0df;
  --sage: #92b59d;
  --text: #edf2ff;
  --muted: #b7bfd9;
  --line: rgba(255,255,255,0.1);
  --shadow: rgba(10, 12, 20, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #1a2340 0%, var(--bg) 48%, #0b1020 100%);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 16, 28, 0.8);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #a47339);
  color: #20142b;
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(215, 184, 111, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover { color: var(--cream); }

.hero {
  padding: 78px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin: 0 0 18px;
  line-height: 1.16;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 { font-size: clamp(1.8rem, 2vw, 2.7rem); }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 18px 28px rgba(94, 60, 200, 0.32);
}

.button.secondary {
  color: var(--cream);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
}

.hero-image-panel,
.card,
.article,
.page-panel {
  background: linear-gradient(180deg, rgba(31,38,56,0.95), rgba(18,24,39,0.9));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 80px var(--shadow);
}

.hero-image-panel {
  padding: 12px;
}

.episode-hero-art {
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 28, 41, 0.95), rgba(31, 36, 53, 0.9));
  box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}

.episode-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-panel img {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
}

.section {
  padding: 36px 0 20px;
}

.meta-grid,
.feature-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 24px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p,
.article p,
.page-panel p,
li {
  color: var(--muted);
}

.story-grid {
  grid-template-columns: 1.35fr 0.65fr;
  margin-top: 34px;
}

.article {
  padding: 28px 30px;
}

.article p {
  margin: 0 0 18px;
}

.quote-box {
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(125,90,232,0.18), rgba(18,24,39,0.7));
  border: 1px solid rgba(125,90,232,0.45);
  border-radius: 20px;
}

.quote-box blockquote {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 1.2rem;
}

.feature-grid {
  margin-top: 18px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  padding: 22px;
}

.feature-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 1.1rem;
}

.page-shell {
  padding: 60px 0 90px;
}

.page-panel {
  padding: 34px 30px;
}

.page-panel ul {
  margin: 0;
  padding-left: 20px;
}

.page-panel li + li { margin-top: 10px; }

.inline-list {
  list-style: none;
  padding-left: 0;
}

.inline-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.inline-list li:last-child { border-bottom: none; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .hero-grid,
  .meta-grid,
  .feature-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 10px 16px;
  }
}
