:root {
  --bg: #111111;
  --bg-elevated: rgba(28, 29, 27, 0.86);
  --panel: rgba(23, 23, 20, 0.94);
  --panel-strong: rgba(29, 29, 24, 0.98);
  --border: rgba(218, 197, 143, 0.18);
  --border-strong: rgba(218, 197, 143, 0.34);
  --text: #f4efe5;
  --muted: #c8bfae;
  --soft: #988f81;
  --accent: #d7a44e;
  --accent-2: #7fb0a6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 164, 78, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(127, 176, 166, 0.14), transparent 24%),
    linear-gradient(180deg, #151513 0%, #10100f 52%, #0c0c0b 100%);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel,
.section-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px 28px 30px;
  border-radius: 28px;
}

.eyebrow,
.section-kicker,
.panel-label,
.deck-meta,
.podcast-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.hero-text,
.section-body {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-button,
.deck-link,
.section-link,
.podcast-link {
  text-decoration: none;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-button:hover,
.deck-link:hover,
.section-link:hover,
.podcast-link:hover {
  transform: translateY(-1px);
}

.hero-button-primary {
  color: #1a150f;
  background: linear-gradient(135deg, #e4bc72 0%, #d79b43 100%);
}

.hero-button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-panel {
  border-radius: 24px;
  padding: 22px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-tile {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 0.84rem;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.section-card {
  border-radius: 24px;
  padding: 24px;
}

.section-card-accent {
  grid-column: span 4;
  background:
    linear-gradient(180deg, rgba(215, 164, 78, 0.08), rgba(215, 164, 78, 0.02)),
    var(--bg-elevated);
}

.section-card:not(.section-card-accent):not(.section-card-wide) {
  grid-column: span 8;
}

.section-card-wide {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.section-link,
.podcast-link,
.deck-link {
  color: var(--accent);
}

.mirror-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.deck-card,
.podcast-card,
.empty-card {
  border-radius: 22px;
  padding: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-card-top h3,
.podcast-head h3 {
  margin-top: 8px;
  font-size: 1.34rem;
}

.deck-subtitle,
.podcast-summary {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.mode-row,
.tag-row,
.deck-stats-row,
.podcast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-pill,
.tag-pill,
.deck-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.deck-stat strong {
  margin-right: 6px;
  color: var(--text);
}

.deck-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.deck-link,
.podcast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  background: rgba(215, 164, 78, 0.08);
}

.podcast-list {
  display: grid;
  gap: 14px;
}

.podcast-card {
  display: grid;
  gap: 14px;
}

audio {
  width: 100%;
  filter: sepia(0.12) saturate(0.82);
}

.podcast-link-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.empty-card {
  color: var(--soft);
  line-height: 1.5;
}

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

  .section-card-accent,
  .section-card:not(.section-card-wide):not(.section-card-accent),
  .section-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 20px 14px 40px;
  }

  .hero-copy,
  .hero-panel,
  .section-card {
    border-radius: 20px;
  }

  .hero-copy,
  .hero-panel,
  .section-card {
    padding: 18px;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}
