/* Foothill Covenant Sermons — minimal, fast, readable. */

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --text: #1a1a1f;
  --text-muted: #5e5e66;
  --accent: #8a6a1f;
  --accent-bg: #fff4d5;
  --border: #ece7d8;
  --heading: #1a1a2e;
  --shadow: 0 2px 6px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.06);
  --serif: ui-serif, Charter, "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 940px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6d5215; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { text-decoration: none; color: var(--heading); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-bg);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { background: var(--accent); color: #fff; }

/* ── Hero / page heads ──────────────────────────────────────────── */
main { padding: 0; }
.hero, .page-head {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}
.hero h1, .page-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 12px;
  color: var(--heading);
  letter-spacing: -.02em;
}
.hero .lede, .page-head .lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 680px;
}
.eyebrow {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 8px;
}
.count-line { color: var(--text-muted); }

/* ── Sermon cards / grid ────────────────────────────────────────── */
.card-grid, .recent .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.sermon-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-thumb { display: block; }
.card-thumb img { aspect-ratio: 16/9; object-fit: cover; background: #2a2a35; }
.card-body { padding: 14px 18px 18px; }
.card-title { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; line-height: 1.2; }
.card-title a { color: var(--heading); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta { color: var(--text-muted); font-size: 13px; margin: 0 0 8px; }
.card-hero { font-size: 14px; color: #2c2c2c; margin: 0; font-style: italic; }

/* ── Browse-by section on home ──────────────────────────────────── */
.recent, .browse-by { background: var(--bg); }
.recent h2, .browse-by h2 {
  max-width: 1100px; margin: 0 auto; padding: 24px 20px 0;
  font-family: var(--serif); color: var(--heading); font-size: 28px;
}
.browse-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  max-width: 1100px; margin: 0 auto; padding: 16px 20px 64px;
}
.browse-card {
  display: block; padding: 22px 22px;
  background: var(--surface); border-radius: 14px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.browse-card h3 { font-family: var(--serif); margin: 0 0 6px; color: var(--heading); font-size: 22px; }
.browse-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.browse-card:hover { transform: translateY(-1px); }

/* ── Sermon detail page ─────────────────────────────────────────── */
.sermon-detail { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.sermon-head .eyebrow { margin-bottom: 8px; }
.sermon-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 38px);
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--heading);
  line-height: 1.15;
}
.sermon-original-title { color: var(--text-muted); margin: 0 0 16px; }
.sermon-hero {
  font-size: 18px;
  color: #2c2c2c;
  background: #fffae3;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin: 16px 0 24px;
}
.sermon-video { margin: 24px 0; }
.sermon-watch { margin: 8px 0 0; text-align: right; font-size: 14px; }
.sermon-description { margin: 24px 0; }
.sermon-description p { margin: 0 0 14px; }

/* ── Lite-YT (facade embed) ─────────────────────────────────────── */
.lite-yt {
  position: relative;
  aspect-ratio: 16/9;
  background: #000 center/cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.lite-yt::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 35%, transparent 65%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.lite-yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 48px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
}
.lite-yt-play svg { opacity: .88; transition: opacity .15s, transform .15s; }
.lite-yt:hover .lite-yt-play svg { opacity: 1; transform: scale(1.05); }
.lite-yt iframe { width: 100%; height: 100%; border: 0; }

/* ── Transcript ─────────────────────────────────────────────────── */
.sermon-transcript { margin-top: 40px; }
.sermon-transcript h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--heading);
}
.transcript-note { color: var(--text-muted); font-size: 13px; margin: 0 0 18px; }
.transcript-paragraph { margin: 0 0 14px; line-height: 1.7; font-size: 16.5px; }
.transcript-paragraph .ts {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--accent-bg);
  padding: 1px 6px;
  border-radius: 8px;
  margin-right: 6px;
  vertical-align: 2px;
  cursor: pointer;
}
.transcript-paragraph .ts:hover { background: var(--accent); color: #fff; }

/* ── Index lists (preachers / topics / scripture) ───────────────── */
.index-list {
  list-style: none; padding: 0; margin: 12px 0 64px;
  max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;
}
.index-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.index-list a { font-size: 18px; text-decoration: none; color: var(--heading); }
.index-list a:hover { color: var(--accent); }
.index-list .count { color: var(--text-muted); font-size: 14px; }

/* ── Related / taglist ──────────────────────────────────────────── */
.sermon-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.sermon-related h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; color: var(--heading); }
.taglist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.taglist a:hover { background: var(--accent); color: #fff; }

/* ── Prose (about page) ─────────────────────────────────────────── */
.prose { max-width: 680px; margin: 0 auto; padding: 24px 20px 64px; font-size: 17px; }
.prose p { margin: 0 0 16px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fffdf8;
  margin-top: 40px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 8px; }
.footer-fine { font-size: 12px; }
