/* Urelevant — light theme, matching the velza palette family */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --accent: #395aed;        /* keep urelevant brand purple-blue */
  --accent-hover: #2c47c9;
  --border: #e2e8f0;
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: 'Fira Sans', 'Open Sans', sans-serif; font-weight: 800; line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { max-width: var(--max); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
.nav .brand img { height: 38px; width: auto; filter: invert(1) brightness(0.15); }
.nav .links { margin-left: auto; display: flex; gap: 32px; }
.nav .links a { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }
.nav .links a:hover { color: var(--accent); }

/* Hero — banner image with subtle dark overlay so white text reads */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  background: url('/assets/images/hero-banner.png') center/cover no-repeat, var(--bg);
  isolation: isolate;
  padding: 100px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.6) 100%);
  z-index: -1;
}
.hero h1 { color: #ffffff; font-size: clamp(2.6rem, 5.5vw, 4.5rem); max-width: 18ch; }
.hero p.lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 50ch; color: #ffffff; opacity: 0.95; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #ffffff;
  border: none; border-radius: 8px;
  padding: 16px 38px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: #ffffff; transform: translateY(-1px); }
.btn.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn.btn-outline:hover { background: var(--accent); color: #ffffff; }

/* Topic sections */
.topic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}
.topic.flip { direction: rtl; }
.topic.flip > * { direction: ltr; }
.topic img {
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}
.topic h2 { color: var(--ink); }
.topic p { color: var(--ink-soft); font-size: 1.05rem; }
.topic .btn { margin-top: 14px; }

.section-alt { background: var(--bg-soft); }

/* Episodes grid */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ep-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(57,90,237,0.12); }
.ep-card .num { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.ep-card .title { color: var(--ink); font-weight: 700; font-size: 1.08rem; line-height: 1.35; min-height: 2.7em; font-family: 'Fira Sans', sans-serif; }
.ep-card .meta { color: var(--muted); font-size: 0.85rem; margin-top: auto; }

/* Episode page */
.episode header.ep-head { padding: 16px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.episode .crumb { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.episode .crumb a { color: var(--muted); }
.episode .crumb a:hover { color: var(--accent); }
.episode h1 { color: var(--ink); font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.episode .video, .episode .audio { margin: 28px 0; }
.episode .video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.episode .audio audio { width: 100%; }
.episode .desc { font-size: 1.06rem; color: var(--ink-soft); }
.episode .desc a { color: var(--accent); text-decoration: underline; }
.episode .nav-prev-next {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border);
}
.episode .nav-prev-next a { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }

/* Subscribe row */
.subscribe-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.subscribe-row a {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 20px; color: var(--ink); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.subscribe-row a:hover { border-color: var(--accent); background: var(--accent); color: #ffffff; }

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-grid img { border-radius: 8px; box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.about-grid h2 { color: var(--ink); margin-top: 1.4em; }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  padding: 56px 0 40px;
  margin-top: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: center; }
.site-footer .links a { color: var(--muted); margin-right: 22px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; font-weight: 700; }
.site-footer .links a:hover { color: var(--accent); }
.site-footer .social { text-align: center; }
.site-footer .social a { font-size: 1rem; margin: 0 14px; color: var(--muted); font-weight: 700; }
.site-footer .social a:hover { color: var(--accent); }
.site-footer .copy { text-align: right; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 80px 0; }
  .topic, .topic.flip, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .topic.flip { direction: ltr; }
  .nav { gap: 12px; }
  .nav .links { gap: 18px; font-size: 0.82rem; }
  .section { padding: 56px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .site-footer .copy { text-align: center; }
  .site-footer .links a { margin: 0 10px; }
}
