/* ============================================================
   Daily Habits Podcast — styles
   Palette: #1A1A1A near-black | #C8A96E gold | #F5F0E8 cream
   Type:    Poppins (headlines) | Montserrat (body)
   ============================================================ */

:root {
  --black: #1A1A1A;
  --black-2: #222220;
  --gold: #C8A96E;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --cream-60: rgba(245, 240, 232, 0.66);
  --cream-30: rgba(245, 240, 232, 0.16);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow { max-width: 680px; }

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.eyebrow-dark { color: #8a6f3c; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-lede {
  max-width: 560px;
  color: inherit;
  margin-bottom: 2.25rem;
}

/* ---------- hero ---------- */

.hero {
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(200, 169, 110, 0.13), transparent 60%),
    var(--black);
}

/* Brand wordmark — recreation of the supplied logo in live text:
   stacked DAILY / HABITS, gold rule, spaced subline */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-rule {
  width: 3.4em;
  height: 3px;
  background: var(--gold);
  margin: 0.55rem 0 0.6rem 2px;
}

.logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-60);
  margin-left: 2px;
}

.hero .logo { margin-bottom: 2.75rem; }

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 13ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cream-60);
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 169, 110, 0.35);
}

.platform-links { display: flex; gap: 1.5rem; }

.platform-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cream-60);
}

.platform-links a:hover { color: var(--cream); text-decoration: none; }

/* ---------- sections ---------- */

.section { padding: 5.5rem 0; }

.section-dark { background: var(--black); }

.section-dark + .section-dark { padding-top: 0; }

.section-cream {
  background: var(--cream);
  color: var(--black);
}

.section-cream .section-title { color: var(--black); }
.section-cream .eyebrow-dark { color: #8a6f3c; }

/* ---------- latest episode ---------- */

.latest-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 820px) {
  .latest-layout { grid-template-columns: 3fr 2fr; gap: 3rem; }
}

.latest-meta .ep-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.latest-meta h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.latest-meta p { color: var(--cream-60); margin-bottom: 1.25rem; }

.latest-meta .text-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- youtube facade ---------- */

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black-2) center / cover no-repeat;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.yt-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.18);
  transition: background 0.2s ease;
}

.yt-facade:hover::after { background: rgba(26, 26, 26, 0.02); }

.yt-facade .play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.yt-facade:hover .play { transform: scale(1.08); }

.yt-facade .play svg { margin-left: 4px; }

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- RISE ---------- */

.rise-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: rise;
}

@media (min-width: 720px) {
  .rise-list { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.rise-item {
  position: relative;
  border-radius: 12px;
  padding: 1.4rem 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 720px) {
  .rise-item { flex-direction: column; align-items: flex-start; gap: 0; min-height: 150px; }
}

.rise-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

@media (min-width: 720px) { .rise-num { margin-bottom: 0.8rem; } }

.rise-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--black);
  flex: 1;
}

.rise-status {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 0.6rem;
}

.rise-item.released .rise-status { color: #8a6f3c; }
.rise-item.upcoming .rise-status { color: rgba(26, 26, 26, 0.38); }
.rise-item.upcoming { background: rgba(255, 255, 255, 0.55); }
.rise-item.upcoming .rise-num { color: rgba(26, 26, 26, 0.22); }
.rise-item.upcoming .rise-name { color: rgba(26, 26, 26, 0.55); }

a.rise-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rise-item.released:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.08);
}

/* ---------- episode grid ---------- */

.episode-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 600px) { .episode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .episode-grid { grid-template-columns: repeat(3, 1fr); } }

.ep-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black-2);
  border: 1px solid var(--cream-30);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ep-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--gold);
}

.ep-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.ep-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }

.ep-card .ep-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.ep-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.ep-card p {
  font-size: 0.87rem;
  color: var(--cream-60);
  flex: 1;
}

/* ---------- about ---------- */

.section-about p { color: var(--cream-60); margin-bottom: 1.1rem; }

.section-about .bio {
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.55;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.75rem 0;
}

.about-links { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; }

.about-links a { font-size: 0.9rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--cream-30);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}

.logo-footer { align-items: center; }
.logo-footer .logo-word { font-size: 1.15rem; }
.logo-footer .logo-rule { margin-inline: auto; }

.footer-social { display: flex; gap: 1.5rem; }

.footer-social a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cream-60);
}

.footer-social a:hover { color: var(--gold); text-decoration: none; }

.footer-contact { font-size: 0.85rem; color: var(--cream-60); }

.footer-handle { font-size: 0.8rem; color: rgba(245, 240, 232, 0.35); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ep-card, .yt-facade .play { transition: none; }
}
