/* Furgiven — episode study companion (scripture-forward, visual) */

:root {
  --paper: #ffffff;
  --cream: #f5e8d3;
  --cream-deep: #efe0c6;
  --lavender: #d8cfe5;
  --peach: #f2c9b1;
  --gold: #d8b164;
  --gold-dark: #9a7332;
  --ink: #2c2824;
  --muted: #5c554c;
  --soft: #8a8278;
  --line: rgba(44, 40, 36, 0.1);
  --font-display: "Anton", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 64rem;
  --read: 42rem;
  --shadow-card: 0 2px 0 rgba(44, 40, 36, 0.04), 0 12px 34px rgba(44, 40, 36, 0.08);
  --shadow-img: 0 18px 50px rgba(44, 40, 36, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(130% 55% at 50% -8%, var(--cream) 0%, var(--paper) 52%) no-repeat,
    var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--gold-dark); }

/* Bible-reference links (KJV, new tab) — clickable but unobtrusive */
.vref {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(216, 177, 100, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.vref:hover, .vref:focus { color: var(--gold-dark); text-decoration-color: var(--gold-dark); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.read { max-width: var(--read); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 50;
}
.skip:focus { left: 0; }

/* --- top bar --- */
.study-top { padding: 1.4rem 0 0; }
.back-home {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.back-home:hover { color: var(--ink); }

/* --- hero --- */
.study-hero { padding: 1.4rem 0 1rem; text-align: center; }
.study-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dark); margin: 0 0 0.7rem;
}
.study-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.96; letter-spacing: 0.01em;
  margin: 0; color: var(--ink);
}
.study-sub { font-size: 1.15rem; color: var(--muted); margin: 0.5rem 0 0; font-style: italic; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0; margin: 1.1rem 0 0; }
.chips li {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.32rem 0.8rem; border-radius: 999px; background: var(--cream); color: var(--gold-dark);
}
.study-tagline {
  font-size: clamp(1.2rem, 2.7vw, 1.6rem); line-height: 1.4; max-width: 40rem;
  margin: 1.3rem auto 0; color: var(--ink);
}

/* hero image (thumbnail) — natural aspect, never cropped */
.hero-figure { margin: 2rem auto 0; max-width: 50rem; }
.hero-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; box-shadow: var(--shadow-img);
}

/* --- watch buttons --- */
.watch-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-watch { background: var(--gold); color: #2a2620; box-shadow: var(--shadow-card); }
.btn-watch:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(216, 177, 100, 0.4); }
.btn-soon { background: transparent; color: var(--soft); border-color: var(--line); cursor: default; font-weight: 600; }
.btn .ic { width: 1.1em; height: 1.1em; }

/* --- big verse pull-quote --- */
.pullquote { text-align: center; padding: 3rem 0 1rem; }
.pullquote blockquote {
  margin: 0 auto; max-width: 36rem; position: relative;
  font-size: clamp(1.6rem, 4.6vw, 2.7rem); line-height: 1.25; font-weight: 600; color: var(--ink);
}
.pullquote blockquote::before {
  content: "\201C"; position: absolute; left: 50%; top: -2.6rem; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 4rem; color: var(--gold); opacity: 0.5;
}
.pullquote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--gold-dark); font-size: 0.95rem; letter-spacing: 0.04em; }

/* --- sections --- */
.study-section { padding: 2.9rem 0; border-top: 1px solid var(--line); }
.study-section > .wrap > h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  margin: 0 0 0.4rem; color: var(--ink); letter-spacing: 0.01em;
}
.section-note { color: var(--soft); margin: 0 0 1.8rem; font-size: 0.96rem; max-width: 40rem; }
.context-lead { font-size: clamp(1.1rem, 2.2vw, 1.28rem); color: var(--ink); margin: 0; }

/* --- two lenses --- */
.lenses { background: linear-gradient(180deg, var(--paper), #fcf7ee); }
.lens-row { display: grid; gap: 1.1rem; }
@media (min-width: 42rem) { .lens-row { grid-template-columns: 1fr 1fr; } }
.lens {
  display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.4rem;
  border-radius: 16px; box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.lens-mira { background: linear-gradient(180deg, #fbf8ff, #f3eefb); }
.lens-tov { background: linear-gradient(180deg, #fff9f3, #fdeede); }
.lens img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #fff; box-shadow: 0 4px 12px rgba(44,40,36,0.12); }
.lens-tag { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.lens-mira .lens-tag { color: #6b5a86; }
.lens-tov .lens-tag { color: #9a6a38; }
.lens-line { margin: 0; font-size: 1.08rem; line-height: 1.4; font-style: italic; color: var(--ink); }

/* --- the story: alternating prose + image --- */
.story-rows { display: grid; gap: 2.2rem; }
.story-row { display: grid; gap: 1rem 1.9rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 44rem) {
  .story-row { grid-template-columns: 1fr 1fr; }
  .story-row.flip .story-media { order: 2; }
  .story-row.no-media { grid-template-columns: 1fr; max-width: 46rem; margin-inline: auto; }
}
.story-media { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-img); background: var(--cream); }
.story-media img { width: 100%; height: auto; display: block; }
.story-text p { margin: 0; font-size: clamp(1.06rem, 2vw, 1.2rem); line-height: 1.62; color: var(--ink); }

/* --- illustrated walk through the story (chapters + stills) --- */
.walk { display: grid; gap: 1.6rem; }
.walk-step {
  display: grid; gap: 1rem 1.6rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) {
  .walk-step { grid-template-columns: 1fr 1fr; }
  .walk-step.flip .walk-media { order: 2; }
}
.walk-media { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-img); background: var(--cream); }
.walk-media img { width: 100%; height: auto; display: block; }
.walk-time {
  display: inline-block; font-family: var(--font-display); color: var(--gold-dark);
  font-size: 0.9rem; letter-spacing: 0.04em; background: var(--cream); padding: 0.2rem 0.7rem;
  border-radius: 999px; margin-bottom: 0.6rem;
}
.walk-label { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.25; font-weight: 700; color: var(--ink); }
.walk-step.is-reflection .walk-body { padding-left: 1rem; border-left: 3px solid var(--lavender); }
.walk-step.is-reflection .walk-time { background: #efeaf6; color: #6b5a86; }
.walk-step.no-media { grid-template-columns: 1fr; max-width: 46rem; }

/* text-only chapter outline (episodes without stills) */
.chapter-list { list-style: none; margin: 0; padding: 0; }
.chapter-list li {
  display: flex; gap: 0.9rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.chapter-list li:last-child { border-bottom: none; }
.chapter-list .t { font-family: var(--font-display); color: var(--gold); font-size: 0.95rem; flex: 0 0 auto; min-width: 3.2rem; }
.chapter-list .l { font-size: 1.05rem; color: var(--ink); }

/* --- passages --- */
.passage {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-card);
}
.passage-ref {
  font-weight: 700; color: var(--gold-dark); font-size: 0.82rem; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem;
}
.speaker-tag {
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--lavender); color: #5a4f6a;
}
.passage p { margin: 0; font-size: 1.1rem; line-height: 1.5; }

/* --- richness threads (story spine) --- */
.spine { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.spine::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 2px;
  background: linear-gradient(var(--gold), var(--cream-deep));
}
.spine-item { position: relative; padding: 0 0 1.5rem 1.25rem; }
.spine-item::before {
  content: ""; position: absolute; left: -0.42rem; top: 0.35rem; width: 0.62rem; height: 0.62rem;
  border-radius: 50%; background: var(--cream-deep); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.spine-item.is-payoff::before { background: var(--gold); width: 0.85rem; height: 0.85rem; left: -0.54rem; box-shadow: 0 0 0 4px rgba(216,177,100,0.25); }
.spine-ref { font-weight: 700; color: var(--gold-dark); font-size: 0.8rem; }
.spine-detail { margin: 0.15rem 0 0; font-size: 1.02rem; color: var(--ink); }
.spine-thread {
  margin: 0.55rem 0 0; padding: 0.6rem 0.85rem; border-radius: 8px;
  background: rgba(216,177,100,0.12); font-size: 0.92rem; color: var(--muted);
}
.spine-thread b { color: var(--gold-dark); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.68rem; }

/* --- doctrine --- */
.doctrine {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  background: var(--cream); border-radius: 14px; padding: 1.3rem 1.5rem;
}
.doctrine-seal { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; color: #3c6b3c; font-size: 1.05rem; }
.doctrine-seal .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #4a8f4a; }
.doctrine p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --- grace --- */
.grace { text-align: center; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.grace h2 { color: var(--gold-dark); }
.grace-figure { margin: 0 auto 1.6rem; max-width: 40rem; }
.grace-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-img); }
.grace blockquote {
  margin: 0.4rem auto 0; max-width: 38rem;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem); line-height: 1.35; font-weight: 600; color: var(--ink);
}

/* --- more to watch (long + shorts cross-reference) --- */
.watchmore { background: linear-gradient(180deg, #fcf7ee, var(--paper)); }
.watch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.wl {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.wl:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(44, 40, 36, 0.1); border-color: rgba(216, 177, 100, 0.55); }
.wl-kind {
  flex: 0 0 auto; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-dark); background: var(--cream);
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.wl-film .wl-kind { background: var(--gold); color: #2a2620; }
.wl-sib .wl-kind { background: var(--lavender); color: #5a4f6a; }
.wl-title { flex: 1 1 auto; font-weight: 600; }
.wl-dur { flex: 0 0 auto; color: var(--soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.wl-go { flex: 0 0 auto; font-weight: 700; font-size: 0.82rem; color: var(--gold-dark); white-space: nowrap; }
.wl-soon { cursor: default; }
.wl-soon .wl-go { color: var(--soft); }

/* --- talk about it (engagement prompt) --- */
.talk { background: linear-gradient(180deg, #fcf7ee, var(--paper)); }
.talk-box {
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px;
  background: var(--paper); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-card);
}
.talk-box p { margin: 0; font-size: 1.1rem; color: var(--ink); }

/* --- shorts --- */
.shorts-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: stretch; }
.short-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; scroll-margin-top: 1.5rem;
}
.short-card .short-thumb { width: 100%; height: auto; display: block; background: var(--cream); }
.short-blurb { margin: 0; font-size: 0.95rem; color: var(--muted); }
.short-inner { flex: 1 1 auto; padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.short-kicker { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.short-card h3 { margin: 0; font-size: 1.15rem; }
.short-len { font-size: 0.8rem; color: var(--soft); }
.short-verses { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.short-verses li { padding: 0.12rem 0; }
.short-verses b { color: var(--gold-dark); font-weight: 700; }
.short-inner .btn { margin-top: auto; align-self: flex-start; }

/* --- footer --- */
.study-foot { padding: 3rem 0 4rem; text-align: center; border-top: 1px solid var(--line); margin-top: 1rem; }
.study-foot .wm { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); margin: 0 0 0.5rem; letter-spacing: 0.06em; }
.study-foot p { margin: 0.3rem auto; color: var(--soft); font-size: 0.9rem; max-width: 40rem; }
.study-foot a { color: var(--muted); font-weight: 600; text-decoration: none; }
.study-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
