/* FaithLabz Library production stylesheet
   Aligned with the FaithLabz / Prayer Candle brand:
   warm paper background with grain, handwritten Caveat for display headlines,
   Lora italic for emotional descriptive copy, Nunito for UI,
   teal-deep primary, amber-warm accent.
*/

:root {
  /* Paper backgrounds */
  --paper-warm: #F8F2E5;
  --paper-vellum: #FDFAF3;
  --paper-aged: #F0E8D5;

  /* Ink (text) */
  --ink-deep: #1A1612;
  --ink-charcoal: #2D2820;
  --ink-graphite: #5C544A;
  --ink-faded: #8A7E6E;

  /* Brand teal */
  --teal-deep: #0B7272;
  --teal-mid: #A8DDD6;
  --teal-wash: #DCEFEC;

  /* Brand amber/gold */
  --amber-warm: #F5C08A;
  --amber-honey: #E8A85C;
  --gold-leaf: #C9A35C;

  /* Accents for content types */
  --indigo: #6B6CB7;
  --sage: #7BA88E;
  --rose: #C97B7B;

  /* Borders */
  --hairline-color: rgba(40, 30, 20, 0.10);
  --hairline-color-strong: rgba(40, 30, 20, 0.20);

  /* Shadows */
  --shadow-hairline: 0 1px 0 rgba(40, 30, 20, 0.04);
  --shadow-card: 0 6px 18px -8px rgba(11, 114, 114, 0.20);
  --shadow-lift: 0 16px 40px -16px rgba(11, 114, 114, 0.35);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Typography */
  --font-display-ceremonial: 'Caveat', cursive;
  --font-display-emotional: 'Lora', Georgia, serif;
  --font-ui: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hebrew: 'Frank Ruhl Libre', 'David', serif;
  --font-greek: 'GFS Didot', 'Times New Roman', serif;

  /* Motion */
  --motion-paper-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-breath-ease: cubic-bezier(0.45, 0.05, 0.55, 0.95);

  --paper-grain-opacity: 0.55;
}

[data-theme="candlelight"] {
  --paper-warm: #1A140C;
  --paper-vellum: #221A12;
  --paper-aged: #2C2418;
  --ink-deep: #F8F2E5;
  --ink-charcoal: #E8DDC8;
  --ink-graphite: #B8AC95;
  --ink-faded: #7A6F5C;
  --teal-deep: #5BC4BC;
  --teal-mid: #2D8A82;
  --teal-wash: rgba(91, 196, 188, 0.12);
  --hairline-color: rgba(248, 242, 229, 0.10);
  --hairline-color-strong: rgba(248, 242, 229, 0.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink-charcoal);
  background: var(--paper-warm);
  background-image:
    radial-gradient(1200px 800px at 8% 0%, rgba(168, 221, 214, 0.30), transparent 60%),
    radial-gradient(900px 700px at 100% 28%, rgba(245, 192, 138, 0.26), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
  mix-blend-mode: multiply;
  opacity: var(--paper-grain-opacity);
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(40, 30, 20, 0.15); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(40, 30, 20, 0.25); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 242, 229, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline-color);
  padding: 16px 32px;
  display: flex; align-items: center; gap: 28px;
}
[data-theme="candlelight"] .header { background: rgba(26, 20, 12, 0.78); }
.brand {
  font-family: var(--font-display-ceremonial);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--teal-deep);
  white-space: nowrap;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand .accent { color: var(--amber-honey); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber-warm);
  box-shadow: 0 0 12px var(--amber-warm);
}
.brand:hover { text-decoration: none; }

.search-wrap { flex: 1; max-width: 540px; position: relative; }
.search {
  width: 100%;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color-strong);
  color: var(--ink-deep);
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  transition: border-color 200ms var(--motion-paper-ease), background 200ms var(--motion-paper-ease);
}
.search:focus { outline: none; border-color: var(--teal-deep); background: #fff; }
[data-theme="candlelight"] .search:focus { background: var(--paper-aged); }
.search::placeholder { color: var(--ink-faded); font-style: italic; font-family: var(--font-display-emotional); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faded); pointer-events: none;
}

.header-stats { display: none; }
@media (min-width: 1100px) {
  .header-stats { display: flex; gap: 22px; font-size: 12px; color: var(--ink-faded); white-space: nowrap; font-weight: 600; letter-spacing: 0.04em; }
  .header-stats strong { color: var(--teal-deep); font-weight: 700; }
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--hairline-color);
  padding: 0 32px;
  background: rgba(248, 242, 229, 0.65);
  backdrop-filter: blur(8px);
  position: sticky; top: 64px; z-index: 50;
}
[data-theme="candlelight"] .tabs { background: rgba(26, 20, 12, 0.65); }
.tab {
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faded);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--motion-paper-ease), border-color 200ms var(--motion-paper-ease);
  text-decoration: none;
}
.tab:hover { color: var(--ink-deep); text-decoration: none; }
.tab.active { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }

main { padding: 40px 32px 60px; max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-graphite); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-faded); }

/* Hero stats grid */
.hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .hero { grid-template-columns: repeat(2, 1fr); } }
.hero-stat {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  position: relative;
  box-shadow: var(--shadow-hairline);
}
.hero-stat .num {
  font-family: var(--font-display-ceremonial);
  font-size: 56px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--teal-deep);
}
.hero-stat .label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-top: 12px;
}
.hero-stat .sub {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-graphite);
  margin-top: 6px;
}

/* Section heading */
.section-h {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-color);
}
.section-h h2 {
  font-family: var(--font-display-ceremonial);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--ink-deep);
  letter-spacing: -0.5px;
}
.section-h h2 .accent { color: var(--teal-deep); }
.section-h .meta {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faded);
  margin-left: auto;
}

/* Filter pills */
.filter-row { display: flex; gap: 10px; margin-bottom: 24px; align-items: center; flex-wrap: wrap; }
.filter-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.pill {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color-strong);
  color: var(--ink-graphite);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 200ms var(--motion-paper-ease);
  display: inline-block;
  text-decoration: none;
}
.pill:hover { color: var(--ink-deep); border-color: var(--teal-deep); text-decoration: none; }
.pill.active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper-vellum); }
.pill.greek.active { background: var(--amber-honey); border-color: var(--amber-honey); color: var(--paper-vellum); }

/* Words grid */
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.word-card {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  cursor: pointer;
  transition: all 220ms var(--motion-breath-ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-hairline);
}
.word-card:hover {
  border-color: var(--teal-deep);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  text-decoration: none;
}
.word-card.greek:hover { border-color: var(--amber-honey); box-shadow: 0 6px 18px -8px rgba(232, 168, 92, 0.30); }
.word-card .lang-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  font-weight: 800;
}
.word-card.greek .lang-tag { color: var(--amber-honey); }
.word-card .native {
  font-family: var(--font-hebrew);
  font-size: 42px;
  line-height: 1.1;
  color: var(--ink-deep);
  direction: rtl;
  text-align: left;
  margin-bottom: 14px;
  min-height: 50px;
  font-weight: 500;
}
.word-card.greek .native { font-family: var(--font-greek); direction: ltr; font-style: italic; }
.word-card .native.empty {
  color: var(--ink-faded);
  font-size: 13px;
  font-style: italic;
  font-family: var(--font-display-emotional);
  direction: ltr;
}
.word-card .translit {
  font-family: var(--font-display-ceremonial);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 4px;
  line-height: 1;
}
.word-card.greek .translit { color: var(--amber-honey); }
.word-card .meaning {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-graphite);
  margin-bottom: 14px;
  line-height: 1.5;
}
.word-card .video-count {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Topics grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.topic-card {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: all 220ms var(--motion-breath-ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-hairline);
}
.topic-card:hover {
  border-color: var(--teal-deep);
  background: var(--teal-wash);
  text-decoration: none;
}
.topic-card .topic-name {
  font-family: var(--font-display-ceremonial);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-deep);
  text-transform: capitalize;
  line-height: 1.05;
}
.topic-card .topic-count {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.topic-card.tier-1 {
  background: linear-gradient(135deg, var(--paper-vellum) 0%, var(--teal-wash) 100%);
  border-color: var(--teal-deep);
}
.topic-card.tier-1 .topic-name { color: var(--teal-deep); }
.topic-card.tier-2 {
  background: linear-gradient(135deg, var(--paper-vellum) 0%, rgba(245, 192, 138, 0.18) 100%);
  border-color: rgba(232, 168, 92, 0.3);
}

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.book-card {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  transition: all 220ms var(--motion-breath-ease);
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-hairline);
}
.book-card:hover {
  border-color: var(--teal-deep);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  text-decoration: none;
}
.book-card .book-name {
  font-family: var(--font-display-ceremonial);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 8px;
  line-height: 1;
}
.book-card .book-stats {
  display: flex; gap: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
}
.book-card .book-stats strong { color: var(--teal-deep); font-weight: 800; }

/* Detail page hero */
.detail-hero {
  padding: 64px 48px 56px;
  text-align: center;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hairline);
}
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(168, 221, 214, 0.35), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, rgba(245, 192, 138, 0.30), transparent 55%);
  pointer-events: none;
}
.detail-hero.greek::before {
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(245, 192, 138, 0.35), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, rgba(168, 221, 214, 0.30), transparent 55%);
}
.detail-hero > * { position: relative; }
.detail-hero .lang-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal-deep);
  font-weight: 800;
  margin-bottom: 24px;
}
.detail-hero.greek .lang-tag { color: var(--amber-honey); }
.detail-hero .native {
  font-family: var(--font-hebrew);
  font-size: 132px;
  line-height: 1;
  color: var(--ink-deep);
  margin-bottom: 28px;
  direction: rtl;
  font-weight: 500;
}
.detail-hero.greek .native { font-family: var(--font-greek); direction: ltr; font-style: italic; }
.detail-hero .native.empty {
  font-size: 28px; color: var(--ink-faded);
  font-family: var(--font-display-emotional); font-style: italic;
}
.detail-hero h1 {
  font-family: var(--font-display-ceremonial);
  font-size: 84px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 0.95;
}
.detail-hero.greek h1 { color: var(--amber-honey); }
.detail-hero .meaning {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-charcoal);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Detail sections */
.detail-section { margin-bottom: 48px; }
.detail-section h2 {
  font-family: var(--font-display-ceremonial);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 8px;
  line-height: 1;
}
.detail-section .desc {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-graphite);
  margin-bottom: 20px;
}

/* Video list */
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 14px;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 200ms var(--motion-paper-ease);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-hairline);
}
.video-row:hover {
  background: #fff;
  border-color: var(--teal-deep);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
[data-theme="candlelight"] .video-row:hover { background: var(--paper-aged); }
.video-row .thumb {
  width: 200px; height: 113px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-aged);
  border: 1px solid var(--hairline-color);
}
.video-row .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 0; }
.video-row .title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-row .meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-faded);
  display: flex;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
}
.video-row .summary {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-graphite);
  line-height: 1.5;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Type badges */
.type-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.type-badge.word_study { background: rgba(11, 114, 114, 0.12); color: var(--teal-deep); }
.type-badge.scripture_teaching { background: rgba(107, 108, 183, 0.14); color: var(--indigo); }
.type-badge.topic_teaching { background: rgba(123, 168, 142, 0.18); color: #4F7A5C; }
.type-badge.bible_fact { background: rgba(201, 123, 123, 0.16); color: #A65555; }
.type-badge.narrative { background: rgba(232, 168, 92, 0.18); color: #B57A2B; }
.type-badge.promo, .type-badge.other { background: rgba(140, 130, 110, 0.18); color: var(--ink-graphite); }

/* Scripture pills */
.scripture-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Show more button */
.show-more { text-align: center; margin-top: 32px; }
.show-more button {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color-strong);
  color: var(--ink-graphite);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display-ceremonial);
  font-size: 22px;
  font-weight: 600;
  transition: all 200ms var(--motion-paper-ease);
}
.show-more button:hover { color: var(--teal-deep); border-color: var(--teal-deep); }

/* Discover hero */
.discover-hero {
  padding: 80px 48px;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-card);
}
.discover-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 12% 8%, rgba(168, 221, 214, 0.40), transparent 55%),
    radial-gradient(600px 500px at 92% 92%, rgba(245, 192, 138, 0.34), transparent 55%);
  pointer-events: none;
}
.discover-hero > * { position: relative; }
.discover-hero .label {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--amber-honey);
  margin-bottom: 28px;
  font-weight: 800;
}
.discover-hero .native {
  font-family: var(--font-hebrew);
  font-size: 140px;
  color: var(--ink-deep);
  line-height: 1;
  margin-bottom: 28px;
  direction: rtl;
  font-weight: 500;
}
.discover-hero.greek .native { font-family: var(--font-greek); direction: ltr; font-style: italic; }
.discover-hero .translit {
  font-family: var(--font-display-ceremonial);
  font-size: 86px;
  color: var(--teal-deep);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 0.95;
}
.discover-hero.greek .translit { color: var(--amber-honey); }
.discover-hero .meaning {
  font-family: var(--font-display-emotional);
  font-style: italic;
  color: var(--ink-charcoal);
  font-size: 22px;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
}

/* Rails */
.rail { margin-bottom: 48px; }
.rail h3 {
  font-family: var(--font-display-ceremonial);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 18px;
  line-height: 1;
}
.rail h3 .accent { color: var(--teal-deep); }

/* Placeholder */
.placeholder {
  text-align: center;
  padding: 80px 40px;
  color: var(--ink-graphite);
}
.placeholder h2 {
  font-family: var(--font-display-ceremonial);
  font-size: 48px;
  color: var(--ink-deep);
  margin-bottom: 14px;
  font-weight: 700;
}
.placeholder p {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-graphite);
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline-color);
  padding: 48px 32px 60px;
  margin-top: 100px;
  text-align: center;
  color: var(--ink-faded);
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
footer p { max-width: 600px; margin: 0 auto; }
footer p + p { margin-top: 10px; }
footer a { color: var(--teal-deep); }

/* === Bible Studies =================================================== */

/* Studies index grid */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.study-card {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 240ms var(--motion-breath-ease);
  box-shadow: var(--shadow-hairline);
}
.study-card:hover {
  border-color: var(--teal-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.study-cover {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: var(--paper-aged);
  border-bottom: 1px solid var(--hairline-color);
}
.study-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.study-cover-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-wash) 0%, rgba(245, 192, 138, 0.30) 100%);
}
.study-cover-placeholder .placeholder-text {
  font-family: var(--font-display-ceremonial);
  font-size: 36px;
  color: var(--teal-deep);
  text-align: center;
  padding: 24px;
  line-height: 1.05;
}
.study-card-body { padding: 22px 24px 24px; }
.study-month {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-honey);
  font-weight: 800;
  margin-bottom: 8px;
}
.study-title {
  font-family: var(--font-display-ceremonial);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.study-subtitle {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-graphite);
  line-height: 1.4;
  margin-bottom: 12px;
}
.study-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-faded);
  font-weight: 700;
}

/* Study detail hero */
.study-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  margin-bottom: 32px;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-hairline);
}
.study-hero-cover {
  width: 320px;
  aspect-ratio: 8.5 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-aged);
  box-shadow: 0 16px 40px -16px rgba(11, 114, 114, 0.25);
}
.study-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.study-hero-body { padding-top: 8px; display: flex; flex-direction: column; }
.study-hero-month {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--amber-honey);
  font-weight: 800;
  margin-bottom: 14px;
}
.study-hero-title {
  font-family: var(--font-display-ceremonial);
  font-size: 76px;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 0.95;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.study-hero-subtitle {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-charcoal);
  margin-bottom: 18px;
  line-height: 1.4;
}
.study-hero-summary {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-graphite);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 60ch;
}
.study-hero-actions { margin-top: auto; }
.btn-primary {
  appearance: none;
  display: inline-block;
  padding: 14px 28px;
  background: var(--teal-deep);
  color: var(--paper-vellum);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display-ceremonial);
  font-weight: 700;
  font-size: 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(11, 114, 114, 0.4);
  transition: transform 200ms var(--motion-breath-ease), box-shadow 200ms var(--motion-breath-ease);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(11, 114, 114, 0.65); text-decoration: none; }
.btn-primary:active { transform: scale(0.97); }

@media (max-width: 760px) {
  .study-hero { grid-template-columns: 1fr; padding: 24px; }
  .study-hero-cover { width: 100%; max-width: 320px; margin: 0 auto; }
  .study-hero-title { font-size: 56px; }
}

/* Leading quote on study page */
.study-quote {
  background: var(--teal-wash);
  border-left: 4px solid var(--teal-deep);
  padding: 28px 36px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}
.study-quote p {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-deep);
  line-height: 1.5;
  margin-bottom: 12px;
}
.study-quote cite {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--teal-deep);
}

/* Sessions grid on study detail page */
.sessions-grid { display: flex; flex-direction: column; gap: 16px; }
.session-card {
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-hairline);
}
.session-num {
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--amber-honey);
  font-weight: 800;
  margin-bottom: 8px;
}
.session-title {
  font-family: var(--font-display-ceremonial);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1;
  margin-bottom: 10px;
}
.session-subtitle {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-graphite);
  line-height: 1.5;
  margin-bottom: 14px;
}
.session-words { display: flex; flex-wrap: wrap; gap: 8px; }
.session-word-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--hairline-color-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  text-decoration: none;
  transition: all 200ms var(--motion-paper-ease);
}
.session-word-link:hover {
  border-color: var(--teal-deep);
  background: var(--teal-wash);
  text-decoration: none;
}
.session-word-link.missing {
  background: transparent;
  border-style: dashed;
  opacity: 0.7;
}
.session-word-link .word-translit {
  font-family: var(--font-display-ceremonial);
  font-size: 20px;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1;
}
.session-word-link.missing .word-translit { color: var(--ink-faded); font-style: italic; }
.session-word-link .word-native {
  font-family: var(--font-hebrew);
  font-size: 16px;
  color: var(--ink-deep);
  direction: rtl;
}
.session-word-link .word-native.greek { font-family: var(--font-greek); direction: ltr; font-style: italic; }

/* "Featured In" on word pages */
.featured-in-studies { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.featured-study {
  display: block;
  padding: 18px 22px;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 200ms var(--motion-paper-ease);
  box-shadow: var(--shadow-hairline);
}
.featured-study:hover { border-color: var(--teal-deep); transform: translateY(-1px); text-decoration: none; }
.featured-study-month {
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-honey);
  font-weight: 800;
  margin-bottom: 6px;
}
.featured-study-title {
  font-family: var(--font-display-ceremonial);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.featured-study-session {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-graphite);
  line-height: 1.4;
}

/* Latest study spotlight on Discover */
.study-feature {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: var(--paper-vellum);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 240ms var(--motion-breath-ease);
  box-shadow: var(--shadow-hairline);
}
.study-feature:hover { border-color: var(--teal-deep); box-shadow: var(--shadow-lift); transform: translateY(-2px); text-decoration: none; }
.study-feature-cover {
  width: 240px;
  aspect-ratio: 8.5 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-aged);
  box-shadow: 0 12px 28px -12px rgba(11, 114, 114, 0.25);
}
.study-feature-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.study-feature-body { display: flex; flex-direction: column; padding-top: 8px; }
.study-feature-month {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--amber-honey);
  font-weight: 800;
  margin-bottom: 10px;
}
.study-feature-title {
  font-family: var(--font-display-ceremonial);
  font-size: 56px;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 0.95;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.study-feature-subtitle {
  font-family: var(--font-display-emotional);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-charcoal);
  margin-bottom: 14px;
}
.study-feature-summary {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-graphite);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 56ch;
}
.study-feature-cta {
  margin-top: auto;
  font-family: var(--font-display-ceremonial);
  font-size: 22px;
  color: var(--teal-deep);
  font-weight: 600;
}

@media (max-width: 760px) {
  .study-feature { grid-template-columns: 1fr; }
  .study-feature-cover { width: 100%; max-width: 240px; }
  .study-feature-title { font-size: 44px; }
}

/* Responsive header tweaks */
@media (max-width: 700px) {
  .header { padding: 14px 16px; gap: 14px; }
  .brand { font-size: 26px; }
  .tabs { padding: 0 16px; top: 60px; }
  .tab { padding: 12px 12px; font-size: 11px; }
  main { padding: 28px 16px 40px; }
  .section-h h2 { font-size: 32px; }
  .detail-hero { padding: 40px 24px; }
  .detail-hero .native { font-size: 88px; }
  .detail-hero h1 { font-size: 56px; }
  .detail-hero .meaning { font-size: 17px; }
  .video-row { grid-template-columns: 1fr; }
  .video-row .thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  .discover-hero { padding: 48px 24px; }
  .discover-hero .native { font-size: 88px; }
  .discover-hero .translit { font-size: 56px; }
  .hero-stat .num { font-size: 44px; }
}
