/* Beyond the Falls — podcast archive styles
   Lightly echoes riverfallsrealtor scaffold patterns; BTF-distinct branding.
*/
:root {
  --bg: #f5f7f8;
  --ink: #1a2228;
  --muted: #5a6670;
  --card: #ffffff;
  --line: #dce3e8;
  --accent: #1e5a6e;       /* river / St. Croix valley blue-teal */
  --accent-dark: #154556;
  --soft: #e6eef1;
  --header: #152028;
  --warm: #c4a574;        /* light sandstone accent */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }

header {
  background: var(--header);
  color: #eef3f5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: #9eb0bb;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
}

.nav-links a {
  color: #c5d4dc;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: var(--soft); }

.btn-header {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  color: #eef3f5 !important;
  border: 1.5px solid #6a7f8c;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: #9eb0bb;
}

.hero {
  padding: 3.25rem 0 2.25rem;
  background: linear-gradient(180deg, #e8f0f3 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 20ch;
}

.hero .tagline {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 0.85rem;
}

.hero p.lead-support {
  font-size: 1rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.page-hero {
  padding: 2.25rem 0 1.25rem;
  background: linear-gradient(180deg, #e8f0f3 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  max-width: 36ch;
}

.meta {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.meta .ep-badge {
  display: inline-block;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.4rem;
}

section { padding: 2.5rem 0; }

h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 55ch;
  margin: 0 0 1.5rem;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.episode-card:hover {
  border-color: #b8cdd6;
  box-shadow: 0 4px 14px rgba(21, 32, 40, 0.06);
}

.episode-card a.title {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.episode-card a.title:hover { color: var(--accent); }

.episode-card .card-date {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.episode-card .card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #0d1418;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blurb {
  max-width: 62ch;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.blurb p { margin: 0 0 0.85rem; }

.cta-panel {
  background: var(--soft);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
}

.cta-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.cta-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 52ch;
}

.back-link {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

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

.footer-brand {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer-meta { margin-top: 0.75rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .hero h1, .page-hero h1 { max-width: none; }
  .episode-grid { grid-template-columns: 1fr; }
}
