/* =========================================================================
   Agape Study — shared styles
   Concept: "the light shines in the darkness" (John 1:5)
   Deep indigo identity, brass-gold as light, parchment for reading.
   Mobile-first. Edit tokens below to re-theme the whole site.
   ========================================================================= */

/* ---- Design tokens --------------------------------------------------- */
:root {
  /* Colour */
  --indigo-900: #0e1526;   /* deepest, footer floor            */
  --indigo-800: #141d33;   /* hero + header base               */
  --indigo-700: #1b2743;   /* raised panels on dark            */
  --indigo-600: #26324f;   /* borders / hovers on dark         */
  --gold:       #c8a35b;   /* the light — accent, used rarely  */
  --gold-soft:  #dcc38c;
  --parchment:  #f7f2e8;   /* reading background               */
  --parchment-2:#efe6d4;   /* alternating band                 */
  --ink:        #211f1a;   /* text on parchment                */
  --ink-soft:   #574f42;   /* secondary text on parchment      */
  --line:       #e2d7c2;   /* hairline rules on parchment      */
  --cloud:      #eef1f7;   /* primary text on dark             */
  --mist:       #9aa6bd;   /* secondary text on dark           */

  /* Type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Spectral", Georgia, "Times New Roman", serif;
  --ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space + shape */
  --wrap: 1160px;
  --measure: 68ch;
  --radius: 3px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }

/* ---- Reusable atoms -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--ink { color: #a07d38; }

/* Gold "illumination" divider — the connective mark of the site */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  width: min(120px, 22vw);
  background: linear-gradient(to var(--dir, right), transparent, currentColor);
}
.rule::before { --dir: left; }
.rule span { width: 6px; height: 6px; transform: rotate(45deg); background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--indigo-900); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cloud); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--ink { background: var(--indigo-800); color: var(--cloud); }
.btn--ink:hover { background: var(--indigo-700); transform: translateY(-2px); }

/* Focus visibility (quality floor) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Scroll-reveal helper */
.reveal { opacity: 0; transform: translateY(18px); 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; } }

/* =========================================================================
   Header + navigation
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

/* solid state: after scroll on home, always on inner pages */
.site-header.is-solid,
.site-header--solid {
  background: var(--indigo-800);
  border-bottom-color: rgba(200,163,91,.18);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.7);
}

.brand {
  display: inline-flex; align-items: baseline; gap: .5ch;
  font-family: var(--display);
  color: var(--cloud);
  text-decoration: none;
  font-size: 1.55rem;
  letter-spacing: .01em;
  line-height: 1;
}
.brand b { font-weight: 600; }
.brand i { font-style: normal; color: var(--gold); }
.brand .mark { /* small gold diamond before the wordmark */
  width: 8px; height: 8px; margin-right: .55ch;
  transform: translateY(-1px) rotate(45deg);
  background: var(--gold);
}

/* Desktop nav */
.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.nav a {
  font-family: var(--ui);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cloud); text-decoration: none; position: relative; padding: .3em 0;
  opacity: .88; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold-soft); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px;
  background: transparent; border: 0; cursor: pointer; z-index: 80;
}
.hamburger span { height: 2px; width: 100%; background: var(--cloud); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; visibility: hidden;
}
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(6,10,20,.55);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(82vw, 340px);
  background: var(--indigo-800);
  border-left: 1px solid rgba(200,163,91,.2);
  padding: calc(var(--header-h) + 20px) 30px 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer nav a {
  display: block; padding: 1.05rem 0;
  font-family: var(--display); font-size: 1.7rem; color: var(--cloud);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--gold-soft); padding-left: 8px; }
.drawer__foot { margin-top: auto; padding-top: 24px; color: var(--mist); font-family: var(--ui); font-size: .78rem; letter-spacing: .04em; }

body.no-scroll { overflow: hidden; }

@media (min-width: 860px) {
  .nav { display: block; }
  .hamburger { display: none; }
}

/* =========================================================================
   Hero slider
   ========================================================================= */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--cloud); overflow: hidden; }

.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; }

/* Each slide: a gradient base (so it looks intentional before you add photos)
   PLUS an optional background image on top. Drop your files at
   assets/img/slide-1.jpg etc. and they take over automatically. */
.slide__media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); }
.slide.is-active .slide__media { animation: driftIn 8s var(--ease) forwards; }
@keyframes driftIn { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@media (prefers-reduced-motion: reduce) { .slide.is-active .slide__media { animation: none; transform: scale(1); } }

.slide--1 .slide__media { background-color: #16233f;
  background-image: url("img/slide-1.jpg"), radial-gradient(120% 90% at 25% 15%, #2a3c66 0%, #16233f 45%, #0c1425 100%); }
.slide--2 .slide__media { background-color: #241a2c;
  background-image: url("img/slide-2.jpg"), radial-gradient(120% 100% at 80% 20%, #6b4a3a 0%, #35233a 45%, #150e1c 100%); }
.slide--3 .slide__media { background-color: #14202a;
  background-image: url("img/slide-3.jpg"), radial-gradient(130% 110% at 50% 120%, #b98a3f 0%, #3a3325 40%, #0f1a24 80%); }

/* Darkening veil over every slide */
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,22,.35) 0%, rgba(8,12,22,.28) 40%, rgba(8,12,22,.72) 100%),
    linear-gradient(90deg, rgba(8,12,22,.35), rgba(8,12,22,.05) 60%);
}

.hero__inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--header-h) 22px 96px;
}
.hero__eyebrow {
  font-family: var(--ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero__head {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 6.2rem);
  line-height: .98; letter-spacing: -0.01em;
  max-width: 15ch; margin-inline: auto; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero__sub {
  margin: 1.4rem auto 0; max-width: 46ch;
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  color: rgba(238,241,247,.86); font-weight: 300; line-height: 1.55;
}
/* animated swap of headline text handled by JS toggling .is-active on .slide;
   the copy per slide lives inside each slide's caption */
.slide__caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .9s var(--ease) .1s; pointer-events: none; }
.slide.is-active .slide__caption { opacity: 1; }
.slide__caption .inner { text-align: center; padding: var(--header-h) 22px 0; max-width: 900px; }

.hero__cta { margin-top: 2.4rem; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Slider controls */
.hero__controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 30px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.dots { display: flex; gap: 12px; }
.dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: transparent; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(10,14,24,.25);
  color: var(--cloud); cursor: pointer; display: none; place-items: center;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.arrow:hover { border-color: var(--gold); background: rgba(10,14,24,.55); }
.arrow svg { width: 18px; height: 18px; }
@media (min-width: 720px) { .arrow { display: grid; } }

/* scroll cue */
.hero__scroll { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 5;
  font-family: var(--ui); font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(238,241,247,.6); display: none; }
@media (min-height: 720px) and (min-width: 720px) { .hero__scroll { display: block; } }

/* =========================================================================
   Sections (on parchment)
   ========================================================================= */
.section { padding: clamp(64px, 11vw, 128px) 0; }
.section--tint { background: var(--parchment-2); }
.section--dark { background: var(--indigo-800); color: var(--cloud); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .rule { margin-bottom: 1.6rem; }
.h-lg { font-family: var(--display); font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.01em; }
.h-md { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.lede { font-size: clamp(1.06rem, 2.3vw, 1.24rem); color: var(--ink-soft); }
.section--dark .lede { color: var(--mist); }

/* Intro / about */
.about__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about__body p { margin: 0 0 1.15rem; max-width: var(--measure); }
.about__body p:last-child { margin-bottom: 0; }
.dropcap::first-letter {
  font-family: var(--display); font-weight: 600; float: left;
  font-size: 4.1em; line-height: .78; padding: .06em .12em 0 0; color: var(--gold);
}
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.15fr .85fr; } }

.plaque {
  background: var(--indigo-800); color: var(--cloud);
  border: 1px solid var(--indigo-600); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.plaque::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); }
.plaque .verse { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.05rem); line-height: 1.28; font-weight: 500; }
.plaque .verse em { font-style: italic; color: var(--gold-soft); }
.plaque cite { display: block; margin-top: 1.1rem; font-family: var(--ui); font-style: normal; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }

/* Three-column "how it works" */
.trio { display: grid; gap: 26px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.pillar { text-align: center; padding: 8px 6px; }
.pillar__icon { width: 52px; height: 52px; margin: 0 auto 1.1rem; color: var(--gold); }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { font-family: var(--display); font-size: 1.7rem; margin-bottom: .5rem; }
.pillar p { margin: 0 auto; max-width: 34ch; color: var(--ink-soft); }
.section--dark .pillar p { color: var(--mist); }

/* Begin-here feature strip */
.feature {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.feature__media { min-height: 220px; background-color: #16233f;
  background-image: url("img/begin.jpg"), radial-gradient(120% 120% at 20% 10%, #2a3c66, #101a30 70%); background-size: cover; background-position: center; }
.feature__body { padding: clamp(28px, 4vw, 48px); }
.feature__body h3 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .4rem 0 .8rem; }
.feature__body p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 1.6rem; }
@media (min-width: 820px) { .feature { grid-template-columns: 1fr 1.1fr; } .feature__media { min-height: 100%; } }

/* =========================================================================
   Newsletter
   ========================================================================= */
.newsletter { text-align: center; }
.newsletter .h-lg { color: var(--cloud); }
.news-form {
  margin: 2.4rem auto 0; max-width: 560px;
  display: grid; gap: 12px; text-align: left;
}
.field label { display: block; font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-bottom: .5rem; }
.field input {
  width: 100%; font-family: var(--body); font-size: 1.02rem; color: var(--cloud);
  background: var(--indigo-700); border: 1px solid var(--indigo-600); border-radius: var(--radius);
  padding: .9em 1em; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input::placeholder { color: #7a86a0; }
.field input:focus { outline: none; border-color: var(--gold); background: #202d4c; }
.news-form .btn--gold { justify-content: center; width: 100%; padding: 1.05em; }
.news-note { margin: 1.1rem 0 0; font-family: var(--ui); font-size: .78rem; color: var(--mist); }
.news-ok { margin: 1.4rem auto 0; max-width: 460px; color: var(--gold-soft); font-family: var(--display); font-size: 1.5rem; display: none; }
.news-ok.show { display: block; }
@media (min-width: 560px) {
  .news-form { grid-template-columns: 1fr 1fr; }
  .news-form .field--email { grid-column: 1 / -1; }
  .news-form .btn--gold { grid-column: 1 / -1; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--indigo-900); color: var(--mist); padding: 72px 0 40px; }
.footer__grid { display: grid; gap: 40px; }
.footer__brand .brand { font-size: 1.9rem; }
.footer__brand p { margin: 1rem 0 0; max-width: 34ch; font-size: .98rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__cols h4 { font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer__cols a { color: var(--mist); text-decoration: none; font-size: .96rem; transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--gold-soft); }
.footer__verse { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--cloud); border-top: 1px solid rgba(255,255,255,.09); margin-top: 48px; padding-top: 28px; text-align: center; }
.footer__legal { text-align: center; margin-top: 14px; font-family: var(--ui); font-size: .74rem; letter-spacing: .04em; color: #6d7891; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* =========================================================================
   Lessons index page
   ========================================================================= */
.page-head {
  background: var(--indigo-800); color: var(--cloud);
  padding: calc(var(--header-h) + 60px) 0 60px; text-align: center;
}
.page-head .rule { margin: 0 auto 1.4rem; }
.page-head h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.4rem); }
.page-head p { color: var(--mist); max-width: 40ch; margin: 1rem auto 0; font-size: 1.1rem; }

/* Sticky control bar: search + filters */
.controls {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(247,242,232,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.controls__inner { display: flex; flex-direction: column; gap: 14px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7em 1em; max-width: 520px; width: 100%;
}
.search svg { width: 18px; height: 18px; color: #a89b80; flex: none; }
.search input { border: 0; outline: none; width: 100%; font-family: var(--body); font-size: 1rem; background: transparent; color: var(--ink); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-family: var(--ui); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  padding: .5em 1.05em; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--indigo-800); color: var(--cloud); border-color: var(--indigo-800); }
@media (min-width: 720px) { .controls__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

.lessons-wrap { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 10vw, 110px); }
.result-count { font-family: var(--ui); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 24px; }

.lesson-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lesson-grid { grid-template-columns: repeat(3, 1fr); } }

.lesson-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(20,29,51,.5); border-color: #d8ccb2; }
.lesson-card__top { position: relative; padding: 20px 22px 0; }
.lesson-card__num { font-family: var(--display); font-size: 1.05rem; color: var(--gold); }
.lesson-card__cat { font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a07d38; }
.lesson-card__body { padding: 10px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.lesson-card h3 { font-family: var(--display); font-size: 1.55rem; line-height: 1.12; margin: .3rem 0 .55rem; }
.lesson-card p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.lesson-card__meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: var(--ui); font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; }
.tag-video { display: inline-flex; align-items: center; gap: 5px; color: #a07d38; }
.tag-video svg { width: 13px; height: 13px; }
.lesson-card__divider { height: 1px; background: var(--line); margin: 0 22px; }

.empty { text-align: center; padding: 60px 0; color: var(--ink-soft); font-family: var(--display); font-size: 1.6rem; display: none; }
.empty.show { display: block; }

/* =========================================================================
   Single lesson (article) page
   ========================================================================= */
.article-head { background: var(--indigo-800); color: var(--cloud); padding: calc(var(--header-h) + 54px) 0 64px; }
.crumb { font-family: var(--ui); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); margin: 0 0 1.4rem; }
.crumb a { color: var(--mist); text-decoration: none; }
.crumb a:hover { color: var(--gold-soft); }
.crumb span { color: var(--gold); margin: 0 .5em; }
.article-head h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.03; max-width: 20ch; }
.article-head .meta { margin-top: 1.4rem; font-family: var(--ui); font-size: .8rem; letter-spacing: .06em; color: var(--mist); display: flex; gap: 16px; flex-wrap: wrap; }

.article { padding: clamp(48px, 7vw, 88px) 0; }
.article__body { max-width: var(--measure); margin: 0 auto; }
.article__body > p, .article__body > h2, .article__body > h3, .article__body > blockquote, .article__body > ul { max-width: var(--measure); }
.article__body p { margin: 0 0 1.4rem; font-size: 1.14rem; line-height: 1.78; }
.article__body p.first::first-letter {
  font-family: var(--display); font-weight: 600; float: left;
  font-size: 4em; line-height: .76; padding: .05em .14em 0 0; color: var(--gold);
}
.article__body h2 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 2.6rem 0 1rem; }
.article__body blockquote {
  margin: 2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 3px solid var(--gold);
  font-family: var(--display); font-size: 1.5rem; font-style: italic; line-height: 1.4; color: #3a352c;
}
.article__body blockquote cite { display: block; margin-top: .8rem; font-family: var(--ui); font-style: normal; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #a07d38; }

/* Watch section */
.watch { max-width: var(--measure); margin: clamp(40px, 6vw, 64px) auto 0; }
.watch > .rule { justify-content: flex-start; margin-bottom: 1.2rem; }
.watch h2 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 1.6rem; }
.video { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: #fff; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; background-color: #16233f;
  background-image: radial-gradient(120% 120% at 30% 20%, #2a3c66, #101a30 70%); background-size: cover; background-position: center;
  display: grid; place-items: center; text-decoration: none; }
.video__thumb .play { width: 62px; height: 62px; border-radius: 50%; background: rgba(200,163,91,.92); display: grid; place-items: center; transition: transform .25s var(--ease); }
.video__thumb:hover .play { transform: scale(1.08); }
.video__thumb .play svg { width: 22px; height: 22px; color: var(--indigo-900); margin-left: 3px; }
.video__meta { padding: 18px 20px 20px; }
.video__meta h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .3rem; }
.video__meta a.src { font-family: var(--ui); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: #a07d38; text-decoration: none; }
.video__meta ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.video__meta li { margin: 0 0 .5rem; color: var(--ink-soft); }

/* Takeaways */
.takeaways { max-width: var(--measure); margin: clamp(40px, 6vw, 64px) auto 0; background: var(--parchment-2); border-radius: var(--radius); padding: clamp(28px,4vw,40px); }
.takeaways h2 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 1rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin-bottom: .7rem; }

/* Prev / next */
.lesson-nav { max-width: var(--measure); margin: clamp(40px,6vw,64px) auto 0; display: grid; gap: 14px; }
.lesson-nav a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: #fff; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.lesson-nav a:hover { border-color: var(--gold); transform: translateY(-2px); }
.lesson-nav small { font-family: var(--ui); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.lesson-nav strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin-top: .3rem; }
.lesson-nav .next { text-align: right; }
@media (min-width: 640px) { .lesson-nav { grid-template-columns: 1fr 1fr; } }
