/* ============================================================
   The Ranch Rolodex — stylesheet
   Palette: warm bone, deep prairie green, saddle leather
   ============================================================ */

:root {
  --bone: #f7f2e9;
  --bone-2: #efe7d7;
  --paper: #fffdf8;
  --ink: #20251d;
  --ink-soft: #4b4f44;
  --muted: #6c7062;
  --line: #e2d8c5;

  --green: #2f3a2b;
  --green-deep: #232c20;
  --green-soft: #3c4936;

  --saddle: #9a5b29;
  --saddle-deep: #7c451c;
  --saddle-tint: #c98d57;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1160px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(32,37,29,.06);
  --shadow: 0 18px 50px -24px rgba(32,37,29,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saddle); color: #fff; box-shadow: 0 10px 24px -10px rgba(154,91,41,.7); }
.btn-primary:hover { background: var(--saddle-deep); box-shadow: 0 16px 30px -10px rgba(154,91,41,.8); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--green-deep); }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.scrolled { background: rgba(247,242,233,.92); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--serif); font-weight: 600; }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: var(--saddle); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-size: 19px; letter-spacing: .2px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.92); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.scrolled .nav-links a { color: var(--ink-soft); }
.scrolled .nav-links a:hover { color: var(--saddle-deep); }
.nav-cta { padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); }
.scrolled .nav-cta { border-color: var(--saddle); color: var(--saddle-deep) !important; }
.nav-cta:hover { background: rgba(255,255,255,.12); }
.scrolled .nav-cta:hover { background: var(--saddle); color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: #20251d url('assets/hero.jpg') center 42%/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,25,17,.42) 0%, rgba(20,25,17,.16) 30%, rgba(20,25,17,.30) 70%, rgba(20,25,17,.50) 100%),
    linear-gradient(95deg, rgba(18,24,15,.82) 0%, rgba(18,24,15,.45) 42%, rgba(18,24,15,.08) 72%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 140px 24px 120px; width: 100%; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em; font-size: 12.5px; font-weight: 600; color: #e8d3b7; margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; margin: 0 0 26px; max-width: 16ch; font-weight: 600; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.lead { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.6; max-width: 60ch; color: #f1ebdf; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 36px 0 22px; }
.hero-meta { font-family: var(--sans); font-size: 14px; letter-spacing: .04em; color: #d8cab0; margin: 0; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 16px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Marquee strip ---------- */
.marquee { background: var(--green-deep); color: #cdbf9f; overflow: hidden; padding: 14px 0; border-top: 3px solid var(--saddle); }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 18px; }
.marquee-track span { opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; font-weight: 700; color: var(--saddle); margin: 0 0 14px; }
.kicker.light { color: var(--saddle-tint); }
.section-head { max-width: 720px; }
.section h2, .section-head h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; margin: 0 0 18px; }
.section-intro { font-size: 19px; color: var(--muted); margin: 0; }
.section-intro.light { color: #d8cdb8; }

/* ---------- Episodes ---------- */
.episode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 48px; }
.episode {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.episode:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--saddle-tint); }
.episode-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.episode-no { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--bone-2); line-height: 1; }
.episode:hover .episode-no { color: var(--saddle-tint); }
.episode-tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--saddle-deep); background: #f3e6d4; padding: 6px 12px; border-radius: 999px; }
.episode h3 { font-size: 23px; margin: 0 0 6px; }
.episode .guest { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--saddle); margin: 0 0 10px; }
.episode p { color: var(--ink-soft); margin: 0 0 18px; font-size: 15.5px; }
.episode-link { margin-top: auto; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--muted); }

.listen-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.listen-label { font-family: var(--sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.listen-pill { text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink-soft); transition: .25s var(--ease); }
.listen-pill:hover { border-color: var(--saddle); color: var(--saddle-deep); transform: translateY(-2px); }
.listen-note { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Scholarship ---------- */
.scholarship { background: var(--green); color: #fff; position: relative; }
.scholarship::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 80% 0%, rgba(154,91,41,.22), transparent 60%); pointer-events: none; }
.scholarship-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.scholarship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.scholarship-card { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 34px 30px; transition: background .3s var(--ease), transform .3s var(--ease); }
.scholarship-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.scholarship-card h3 { font-size: 24px; margin: 0 0 12px; color: #fff; }
.scholarship-card p { color: #ded3bf; margin: 0 0 24px; }
.micro-note { font-family: var(--sans); font-size: 13px; font-style: italic; color: var(--muted); margin: 22px 0 0; }
.micro-note.light { color: #b9ad95; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-copy h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; }
.about-copy p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; max-width: 52ch; }
.stats { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--saddle); line-height: 1; }
.stat-label { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.hosts { display: flex; flex-direction: column; gap: 16px; }
.host { display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.host:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.host-avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--green-soft), var(--green-deep)); color: #f1e4cf; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.host h3 { font-size: 20px; margin: 0 0 3px; }
.host p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { background: var(--green-deep); color: #fff; text-align: center; }
.contact-inner { max-width: 760px; margin: 0 auto; padding: 110px 24px; }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 18px; }
.contact p { color: #d8cdb8; font-size: 18px; margin: 0 auto 30px; max-width: 50ch; }
.contact .btn { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a201631; background: var(--bone-2); color: var(--ink); padding: 56px 24px 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0; }
.footer-tag { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 2px 0 0; letter-spacing: .02em; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.footer-nav a:hover { color: var(--saddle-deep); }
.footer-bottom { max-width: var(--maxw); margin: 22px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .episode-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(247,242,233,.98); backdrop-filter: blur(10px);
    padding: 8px 16px 18px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.4);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { color: var(--ink) !important; padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { border: 0 !important; color: var(--saddle-deep) !important; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--ink); }

  .hero-inner { padding: 130px 22px 110px; }
  .section { padding: 80px 22px; }
  .scholarship-inner, .contact-inner { padding: 80px 22px; }
  .episode-grid, .scholarship-grid { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Added: section-alt, host bios, notify box, photo band
   ============================================================ */
.section-alt { background: var(--paper); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* Host bios — alternating rows */
.bios { margin-top: 56px; display: flex; flex-direction: column; gap: 64px; }
.bio-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.bio-row:nth-child(even) .bio-photo { order: 2; }
.bio-photo { position: relative; }
.bio-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.bio-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); pointer-events: none;
}
.bio-copy h3 { font-size: clamp(28px, 3.4vw, 38px); margin: 6px 0 14px; }
.bio-copy .kicker { margin-bottom: 4px; }
.bio-copy p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 14px; max-width: 56ch; }
.bio-copy em { color: var(--muted); font-style: italic; }

/* Notify box */
.notify {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #33402f, #232c20); color: #fff;
  border-radius: var(--radius); padding: 30px 36px;
}
.notify-text h3 { font-size: 24px; margin: 0 0 4px; color: #fff; }
.notify-text p { margin: 0; color: #d8cdb8; font-size: 15.5px; }

/* Full-width photo band */
.band {
  position: relative; min-height: 360px; display: grid; place-items: center;
  background: #20251d url('assets/band.jpg') center 60%/cover no-repeat fixed;
  text-align: center;
}
.band-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,17,.5), rgba(20,25,17,.35)); }
.band-quote {
  position: relative; font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 4vw, 44px); color: #fff; margin: 0; letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

@media (max-width: 880px) {
  .bio-row { grid-template-columns: 1fr; gap: 22px; }
  .bio-row:nth-child(even) .bio-photo { order: 0; }
  .bio-photo img { aspect-ratio: 4 / 5; max-height: 560px; object-position: center top; }
  .band { background-attachment: scroll; min-height: 280px; }
}
@media (max-width: 720px) {
  .notify { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}

/* Bio lead line */
.bio-lead { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; color: var(--saddle-deep); margin: 0 0 14px !important; letter-spacing: -0.01em; }

/* ============================================================
   Episode pages + clickable episode cards
   ============================================================ */
a.episode { text-decoration: none; color: inherit; }
a.episode .episode-link { color: var(--saddle-deep); }
a.episode:hover .episode-link { text-decoration: underline; }

.ep-header { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.ep-header::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 70% at 85% 0%, rgba(154,91,41,.25), transparent 60%); pointer-events:none; }
.ep-header-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 130px 24px 64px; }
.ep-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing:.18em; font-size:12.5px; font-weight:700; color: var(--saddle-tint); margin:0 0 14px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ep-eyebrow .tag { background: rgba(255,255,255,.14); color:#fff; padding:4px 11px; border-radius:999px; letter-spacing:.08em; }
.ep-header h1 { font-size: clamp(30px, 5vw, 48px); line-height:1.08; margin:0 0 12px; }
.ep-header .ep-guest { font-family: var(--serif); font-style: italic; font-size: 20px; color:#e8d3b7; margin:0 0 14px; }
.ep-header .ep-meta { font-family: var(--sans); font-size:14px; color:#cdbf9f; margin:0; }
.ep-listen { display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }

.ep-body { max-width: 820px; margin: 0 auto; padding: 56px 24px 100px; }
.ep-player { background: var(--paper); border: 2px dashed var(--border); border-radius: 16px; padding: 30px; text-align:center; color: var(--muted); margin-bottom: 44px; }
.ep-player .ph-title { font-family: var(--sans); font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color: var(--saddle); margin-bottom:8px; }
.ep-player p { font-size:14px; margin:0 auto; max-width: 52ch; }
.ep-body h2 { font-size: 26px; margin: 40px 0 14px; }
.ep-body h2:first-child { margin-top:0; }
.ep-body p { font-size: 17px; line-height:1.7; color: var(--ink-soft); margin: 0 0 16px; }
.ep-body ul.topics { list-style:none; padding:0; margin: 0 0 8px; }
.ep-body ul.topics li { position:relative; padding: 8px 0 8px 30px; border-bottom:1px solid var(--line); font-size:16.5px; color: var(--ink-soft); }
.ep-body ul.topics li:before { content:"›"; position:absolute; left:6px; color: var(--saddle); font-weight:bold; }
.ep-body ul.res { list-style:none; padding:0; margin:0; }
.ep-body ul.res li { padding:7px 0 7px 26px; position:relative; font-size:16.5px; }
.ep-body ul.res li:before { content:"•"; position:absolute; left:8px; color: var(--saddle); }
.ep-body ul.res a { color: var(--saddle-deep); font-weight:600; }
.ep-note { font-family: var(--sans); font-size:13px; font-style:italic; color: var(--muted); }
.ep-divider { border:0; border-top:1px solid var(--line); margin: 44px 0; }
.ep-back { display:inline-flex; align-items:center; gap:8px; font-family: var(--sans); font-weight:600; font-size:15px; color: var(--saddle-deep); text-decoration:none; }
.ep-back:hover { text-decoration:underline; }
.ep-guestbio { background: var(--paper); border:1px solid var(--line); border-radius:16px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.ep-guestbio h2 { margin-top:0; }
