/* ============================================================
   Unshaken Hope — Stylesheet
   Fonts : Lora (serif) · DM Sans (sans)
   Palette: Deep forest green + warm cream
   ============================================================ */

:root {
  --green-dark:    #085041;
  --green-mid:     #0F6E56;
  --green-bright:  #1D9E75;
  --green-light:   #9FE1CB;
  --green-pale:    #E1F5EE;
  --cream:         #FAF8F4;
  --cream-dark:    #F0EDE6;
  --ink:           #1C1C1A;
  --ink-mid:       #3D3D38;
  --ink-light:     #7A7A72;
  --ink-faint:     #BEBEB5;
  --white:         #FFFFFF;
  --border:        rgba(8,80,65,0.12);
  --border-mid:    rgba(8,80,65,0.22);

  --serif:  'Lora', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  --max-w:      740px;
  --max-w-post: 660px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Helpers ─────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-cta {
  background: var(--green-pale) !important;
  color: var(--green-dark) !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--green-light);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-light) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 4px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.mobile-menu a {
  font-size: 15px;
  color: var(--ink-mid);
}
.mobile-menu.open { display: flex; }

/* ── Hero — full bleed ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;

  /*
    ─────────────────────────────────────────────────────────
    HERO IMAGE INSTRUCTIONS
    ─────────────────────────────────────────────────────────
    1. Go to unsplash.com and search for one of these:
       · "still water morning mist"
       · "open Bible natural light"
       · "forest light peaceful"
       · "river calm reflection"
    2. Download a landscape-orientation photo (wide, not tall)
    3. Rename the file:  hero.jpg
    4. Place it in the /images/ folder inside this project
    5. Uncomment the line below (remove the two slashes //)
    ─────────────────────────────────────────────────────────
  */
  /* background-image: url('../images/hero.jpg'); */

  /* Fallback gradient shown until your photo is added */
  background: linear-gradient(135deg, #0d2b20 0%, #1D9E75 50%, #085041 100%);

  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient at bottom so text is always readable */
  background: linear-gradient(
    to top,
    rgba(5,25,15,0.82) 0%,
    rgba(5,25,15,0.45) 40%,
    rgba(5,25,15,0.15) 70%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.hero-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
}
.hero-title em {
  font-style: italic;
  color: var(--green-light);
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 440px;
}
.btn-primary {
  display: inline-block;
  background: var(--green-bright);
  color: var(--white);
  padding: 11px 26px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(0.98); }

/* Verse banner inside hero */
.hero-verse {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.vow-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.vow-text {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  quotes: none;
}
.vow-ref {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-light);
  font-style: normal;
  white-space: nowrap;
}

/* ── Topics ──────────────────────────────────────────────── */
.topics-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.topic-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--green-bright); color: var(--green-dark); }
.pill.active {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green-light);
  font-weight: 500;
}

/* ── Post grid ───────────────────────────────────────────── */
.posts-section { padding: 2.5rem 0; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(8,80,65,0.08);
}
.post-card.hidden { display: none; }
.post-card-inner { padding: 1.25rem; }
.post-topic {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
  margin-bottom: 8px;
}
.post-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-title a { color: var(--ink); transition: color 0.2s; }
.post-title a:hover { color: var(--green-dark); }
.post-excerpt {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-verse {
  font-size: 11px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 3px 10px;
  border: 1px solid var(--green-light);
  font-weight: 500;
}
.post-read { font-size: 11px; color: var(--ink-faint); }

/* ── Pull quote ──────────────────────────────────────────── */
.pull-quote-section {
  padding: 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pull-quote {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  quotes: none;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.8vw, 26px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}
.pull-quote cite {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
  font-style: normal;
}

/* ── Subscribe ───────────────────────────────────────────── */
.subscribe-section { padding: 3rem 0; }
.post-subscribe-section {
  background: var(--cream-dark);
  padding: 2.5rem 0;
}
.subscribe-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 6px 0 10px;
  line-height: 1.3;
}
.subscribe-sub {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto 10px;
}
.subscribe-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-mid);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input:focus { border-color: var(--green-bright); }
.subscribe-form button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-md);
  border: none;
  background: var(--green-bright);
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--green-dark); }
.subscribe-note { font-size: 11px; color: var(--ink-faint); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green-pale);
}
.footer-copy { font-size: 13px; color: var(--green-light); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-size: 13px;
  color: var(--green-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── Post page ───────────────────────────────────────────── */
.post-main { padding-bottom: 0; }
.post-article {
  max-width: var(--max-w-post);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--green-dark); }
.post-header { margin-bottom: 2.5rem; }
.post-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
  margin: 10px 0 14px;
}
.post-header-meta { display: flex; align-items: center; gap: 10px; }
.post-verse-tag {
  font-size: 12px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 4px 12px;
  border: 1px solid var(--green-light);
  font-weight: 500;
}
.post-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-mid);
}
.post-body p { margin-bottom: 1.4rem; }
.post-lead {
  font-size: 20px !important;
  color: var(--ink) !important;
  font-weight: 500;
  line-height: 1.6 !important;
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin: 2.5rem 0 1rem;
}
.post-body em { color: var(--ink); }

.scripture-block {
  background: var(--green-pale);
  border-left: 3px solid var(--green-bright);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.scripture-block blockquote {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--green-dark);
  line-height: 1.65;
  margin-bottom: 8px;
  quotes: none;
}
.scripture-block cite {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-mid);
  font-style: normal;
}

.closing-prayer {
  background: var(--cream-dark);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.prayer-label {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint) !important;
  margin-bottom: 10px !important;
}
.prayer-text {
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-style: italic;
  color: var(--ink-mid) !important;
  line-height: 1.8 !important;
}

/* Related posts */
.related-section { padding: 2.5rem 0 3.5rem; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* About */
.about-main { padding: 3.5rem 0; }
.about-container { max-width: 600px; }
.about-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--green-dark);
  margin: 6px 0 2rem;
}
.about-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-mid);
}
.about-body p { margin-bottom: 1.25rem; }
.about-body h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin: 2rem 0 0.75rem;
}
.about-cta { margin-top: 2rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-verse { flex-direction: column; gap: 4px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input,
  .subscribe-form button { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
}
