:root {
  --bg: #061018;
  --surface: rgba(8, 23, 34, 0.8);
  --surface-soft: rgba(255, 240, 208, 0.06);
  --text: #f7f0de;
  --muted: #d9c8a0;
  --accent: #e8b85d;
  --accent-deep: #ca8125;
  --cyan: #4cb8bc;
  --border: rgba(236, 200, 122, 0.2);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Georgia", "Palatino Linotype", serif;
  background:
    radial-gradient(circle at top, rgba(76, 184, 188, 0.24), transparent 28%),
    radial-gradient(circle at right, rgba(232, 184, 93, 0.16), transparent 22%),
    linear-gradient(145deg, #02070b, #07131b 35%, #102433 72%, #081018);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 14%, rgba(76, 184, 188, 0.12), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(232, 184, 93, 0.15), transparent 14%);
}

a,
button,
select {
  font: inherit;
}

.landing-shell,
.main-panel {
  position: relative;
  z-index: 1;
}

.landing-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.2rem;
}

.landing-hero,
.landing-card,
.control-bar,
.dropdown-nav-card,
.player-card,
.shloka-card,
.jump-grid-wrap,
.chapter-summary-card,
.sidebar {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.landing-hero,
.chapter-summary-head,
.meaning-grid {
  display: grid;
  gap: 1.1rem;
}

.landing-hero,
.chapter-summary-head {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  border-radius: 32px;
}

.meaning-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-hero {
  overflow: hidden;
  padding: 1.3rem;
}

.landing-copy,
.chapter-summary-head > div:first-child {
  align-self: center;
}

.landing-hero h1,
.chapter-summary-card h1,
.landing-card h2 {
  margin: 0;
  line-height: 1.08;
}

.landing-hero h1,
.chapter-summary-card h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.landing-card h2 {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
}

.lead,
.chapter-summary,
.landing-card p,
.sidebar-subtitle,
.meaning-block p,
.placeholder-text,
.names-list li {
  color: var(--muted);
  line-height: 1.7;
}

.landing-actions,
.top-strip,
.chapter-meta,
.preview-pills,
.verse-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.landing-actions,
.chapter-meta,
.dropdown-grid {
  margin-top: 1rem;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dropdown-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.dropdown-grid select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(239, 179, 71, 0.24);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
}

.primary-link,
.secondary-link,
.chapter-chip,
.rail-link,
.jump-link,
.chapter-button {
  border-radius: 999px;
  text-decoration: none;
}

.primary-link,
.secondary-link,
.chapter-button {
  padding: 0.72rem 1rem;
}

.primary-link {
  color: #15110a;
  background: linear-gradient(180deg, #f5cb74, #d78f34);
}

.secondary-link,
.chapter-button,
.rail-link,
.jump-link,
.chapter-chip {
  color: var(--text);
  border: 1px solid rgba(239, 179, 71, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.button-link,
.chapter-button {
  cursor: pointer;
}

.landing-art,
.hero-art {
  min-height: 320px;
}

.hero-art-circle {
  min-height: 0;
  width: min(340px, 74vw);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 0.8rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 184, 93, 0.42), transparent 40%),
    linear-gradient(145deg, rgba(13, 75, 95, 0.96), rgba(5, 35, 52, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.landing-art img,
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid rgba(239, 179, 71, 0.56);
}

.landing-card,
.control-bar,
.dropdown-nav-card,
.player-card,
.shloka-card,
.jump-grid-wrap,
.chapter-summary-card {
  margin-top: 1rem;
  border-radius: 28px;
  padding: 1rem 1.15rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-pills span,
.chapter-meta span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 179, 71, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.page-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.page-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.3rem 1rem 2rem;
  background: linear-gradient(180deg, rgba(6, 11, 17, 0.96), rgba(9, 20, 29, 0.88));
  transition: opacity 180ms ease, transform 180ms ease, padding 180ms ease;
}

.page-shell.sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding-inline: 0;
  transform: translateX(-18px);
}

.main-panel {
  padding: 1.1rem;
}

.sidebar-portrait {
  display: grid;
  place-items: center;
}

.sidebar-portrait-ring {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 999px;
  padding: 0.7rem;
  background:
    radial-gradient(circle at 28% 28%, rgba(232, 184, 93, 0.34), transparent 44%),
    linear-gradient(145deg, rgba(13, 75, 95, 0.92), rgba(5, 35, 52, 0.96));
}

.sidebar-portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.sidebar-title {
  margin: 1rem 0 0.2rem;
}

.chapter-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.chapter-button {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.chapter-button.active,
.jump-link.active {
  border-color: rgba(232, 184, 93, 0.7);
  background: rgba(232, 184, 93, 0.14);
}

.section-head h2 {
  margin: 0;
}

.verse-text,
.transliteration-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.8;
}

.verse-text {
  font-size: 1.2rem;
}

.transliteration-text {
  color: var(--muted);
}

.names-list {
  margin: 0;
  padding-left: 1.2rem;
}

.jump-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.jump-link {
  min-width: 2.9rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .page-shell,
  .page-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    height: auto;
    margin: 1rem;
  }

  .page-shell.sidebar-collapsed .sidebar {
    display: none;
  }
}

@media (max-width: 780px) {
  .landing-hero,
  .chapter-summary-head,
  .summary-grid,
  .meaning-grid,
  .dropdown-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-panel,
  .landing-shell {
    padding: 0.9rem;
  }
}
