/* ============================================================================
 * samvāda · site.css
 * Page-level layout and component styles.
 * Depends on Spanda tokens from colors_and_type.css and components.css.
 * ==========================================================================*/

/* === BODY ================================================================= */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
}

/* === NAV ================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  background: rgba(30, 45, 39, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.wm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-breath);
}
.wm:hover { opacity: 0.8; }

.wm-show {
  font-weight: 500;
  font-family: var(--font-display);
}

.wm-domain {
  color: var(--fg-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-breath);
}
.nav-links a:hover { color: var(--accent); }

.nav-links .ph { font-size: 18px; }

/* === HERO ================================================================= */
.hero {
  min-height: 90vh;
  display: grid;
  place-content: center;
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--fg);
}

.hero-deva {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', system-ui, sans-serif;
  font-size: 0.5em;
  color: var(--fg-muted);
  display: block;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-tag {
  font-size: 18px;
  color: var(--fg-muted);
  margin: 16px 0 12px;
  font-weight: 300;
}

.hero-lede {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Breathing ring — decorative, right side of hero */
.spanda-hero-ring {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
  color: var(--accent);
}

.spanda-hero-ring .ring-mid {
  transform-origin: center;
  animation: spanda-ring2 4.5s ease-in-out infinite 0.5s;
}

.spanda-hero-ring .ring-core {
  transform-origin: center;
  animation: spanda-breathe 4.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .spanda-hero-ring { display: none; }
}

/* === EPISODE SECTION ====================================================== */
.episode-section {
  padding: 64px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.episode-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.episode-card:hover {
  border-color: rgba(61, 226, 166, 0.45);
  background: var(--surface-2);
  box-shadow: var(--shadow-md), var(--glow-soft);
}

.ep-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.ep-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  line-height: 1.1;
}

.ep-deva {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', system-ui, sans-serif;
  font-size: 22px;
  color: var(--fg-muted);
  font-weight: 300;
  display: block;
  margin-top: 4px;
}

.ep-gloss {
  font-style: italic;
  color: var(--fg-muted);
  font-size: 16px;
  margin: 8px 0 16px;
}

.ep-desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ep-pair {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.ep-pair::before {
  content: "paired with  ";
  text-transform: uppercase;
}

.ep-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ep-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* === SUBSCRIBE SECTION ==================================================== */
.subscribe-section {
  padding: 64px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 8px 0 20px;
  color: var(--fg);
}

h2.section-title em {
  font-style: italic;
  color: var(--fg-muted);
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.feed-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-breath),
              box-shadow var(--dur-base) var(--ease-breath),
              background var(--dur-fast) var(--ease-breath);
}

.feed-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
  background: var(--surface-2);
}

.feed-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.feed-name {
  font-weight: 500;
  font-size: 15px;
  display: block;
}

.feed-host {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* === ABOUT SECTION ======================================================== */
.about-section {
  padding: 64px 24px;
  max-width: 680px;
  margin: 0 auto;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin: 0 0 16px;
}

.about-section p:last-child {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* === PULSE LINE DIVIDER =================================================== */
.pulse-line {
  max-width: 720px;
  margin: 0 auto;
}

/* === FOOTER =============================================================== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
