/* BibleHelp blog — shared styles. Mirrors the landing design system. */

:root {
  --primary: #1B2A4A;
  --primary-soft: #2A3D66;
  --gold: #C9A96E;
  --gold-deep: #B08F50;
  --bg: #FAF7F2;
  --surface: #F0EBE1;
  --sage: #8BA888;
  --ink: #1B2A4A;
  --ink-60: rgba(27, 42, 74, 0.62);
  --ink-40: rgba(27, 42, 74, 0.40);
  --ink-15: rgba(27, 42, 74, 0.15);
  --ink-08: rgba(27, 42, 74, 0.08);
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(27,42,74,.06), 0 2px 6px rgba(27,42,74,.04);
  --shadow-md: 0 8px 24px rgba(27,42,74,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Lora', Georgia, serif; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* ----------- NAV ----------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Lora', serif; font-weight: 600; font-size: 19px;
  color: var(--primary);
}
.logo .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--white); overflow: hidden;
  display: block; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(27, 42, 74, 0.10);
}
.logo .mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--ink-60); font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn {
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--primary); color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ----------- BLOG INDEX HEAD ----------- */
.journal-head {
  padding: 96px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.journal-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,169,110,0.12), transparent 60%);
  pointer-events: none;
}
.journal-head .container { position: relative; z-index: 1; }
.journal-head h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 16px 0 18px;
}
.journal-head h1 em { font-style: italic; color: var(--gold-deep); }
.journal-head p {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 580px;
  margin: 0 auto;
}

/* ----------- POST CARDS ----------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 96px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 280px;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(27,42,74,.10);
}
.post-card .cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.post-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .body {
  padding: 28px 32px 32px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.post-card.no-cover .body { padding-top: 32px; }
.post-card .meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--ink-40);
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600;
}
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-15); }
.post-card h2 {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.post-card .excerpt {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-60);
  margin-top: 4px;
  flex: 1;
}
.post-card .read-more {
  font-size: 13px; font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.post-card .read-more::after { content: ' →'; }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }

/* ----------- ARTICLE PAGE ----------- */
.article-hero {
  padding: 88px 0 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(201,169,110,0.10), transparent 60%);
}
.article-hero .container { position: relative; z-index: 1; max-width: 740px; }
.article-hero .meta {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-40);
  text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600;
}
.article-hero .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-15); }
.article-hero h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 18px auto 0;
  max-width: 18ch;
}
.article-hero h1 em { font-style: italic; color: var(--gold-deep); }
.article-hero .byline {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-60);
}

.article-rule {
  width: 64px; height: 2px; background: var(--gold);
  margin: 0 auto 28px;
}

/* Article hero image — full-bleed inside container */
.article-hero-image {
  max-width: 1080px;
  margin: 8px auto 48px;
  padding: 0 24px;
}
.article-hero-image figure {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(27, 42, 74, 0.18);
  background: var(--surface);
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-hero-image figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-60);
  text-align: center;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .article-hero-image { padding: 0 16px; margin-bottom: 36px; }
  .article-hero-image figure { border-radius: 18px; }
}

/* Inline figures inside the article column */
.article figure {
  margin: 36px 0;
}
.article figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
.article figure figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
  text-align: center;
  margin-top: 12px;
  padding: 0 8px;
}
.article figure figcaption .cap-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-right: 8px;
  vertical-align: 1px;
}
/* Wider "bleed" figure breaks out of the 720px article column a touch */
.article figure.bleed {
  margin-left: -40px;
  margin-right: -40px;
}
@media (max-width: 820px) {
  .article figure.bleed { margin-left: 0; margin-right: 0; }
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}
.article p, .article ul, .article ol {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
}
.article p em, .article li em { font-style: italic; }
.article strong { font-weight: 600; color: var(--primary); }
.article h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 48px 0 18px;
}
.article h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--primary);
  margin: 32px 0 12px;
}

/* First-paragraph drop cap */
.article p.drop::first-letter {
  float: left;
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 68px;
  line-height: 0.88;
  padding: 6px 14px 0 0;
  color: var(--gold);
}

/* Pull-quote */
.article blockquote.pull {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--primary);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 32px 0;
}

/* Scripture verse callout */
.article blockquote.verse {
  background: var(--surface);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 32px 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--primary);
}
.article blockquote.verse .ref {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.article p.closer {
  margin-top: 36px;
  font-size: 18px;
  color: var(--ink-60);
  border-top: 1px solid var(--ink-08);
  padding-top: 28px;
}

/* ----------- AFTER ARTICLE: CTA + MORE ----------- */
.cta-block {
  background: var(--primary);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  color: var(--bg);
  margin: 0 24px 72px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.cta-block h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.cta-block h3 em { font-style: italic; color: var(--gold); }
.cta-block p {
  font-size: 16px;
  color: rgba(250, 247, 242, 0.72);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.cta-block .store-badges {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-block .store-badge { display: inline-flex; transition: transform .2s ease, opacity .2s ease; }
.cta-block .store-badge:hover { transform: translateY(-3px); opacity: .9; }
.cta-block .store-badge img { display: block; height: 54px; width: auto; }
.cta-block .store-badge.google img { height: 80px; margin: -13px 0; }

.more-from {
  max-width: 1200px; margin: 0 auto;
  padding: 8px 24px 96px;
}
.more-from h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.more-from .post-list { padding-bottom: 0; }

/* ----------- FOOTER (minimal) ----------- */
.footer {
  background: var(--primary);
  color: rgba(250,247,242,.65);
  padding: 56px 0 36px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer .logo { color: var(--bg); }
.footer-tagline { font-size: 13px; max-width: 360px; }
.footer-meta { font-size: 13px; }
.footer-meta a { transition: color .2s ease; }
.footer-meta a:hover { color: var(--gold); }
.footer-meta em { color: var(--gold); font-style: italic; }

/* ----------- Empty state (zero posts) ----------- */
.empty-state {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
}
.empty-state p.serif {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-60);
  margin-bottom: 32px;
  line-height: 1.5;
}
.empty-state .back-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
  transition: color .2s ease;
}
.empty-state .back-link:hover { color: var(--primary); }
