/* =============================================
   Born Again in Christ — Global Styles
   Aesthetic: Warm, reverent, editorial
   ============================================= */

:root {
  --cream: #faf7f2;
  --warm-white: #fff9f0;
  --parchment: #f0e8d8;
  --gold: #c9943a;
  --gold-light: #e8b96a;
  --deep-blue: #1a2744;
  --slate: #3d4f6e;
  --text: #2c2416;
  --text-muted: #6b5e4e;
  --border: #ddd3c0;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  --max-width: 740px;
  --wide-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--deep-blue);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1.2rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--deep-blue); }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--parchment);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--slate);
  border-radius: 0 6px 6px 0;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ---- Layout ---- */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */
.site-header {
  background: var(--deep-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream);
}
.logo-cross {
  font-size: 1.3rem;
  color: var(--gold);
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-light); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--deep-blue);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--deep-blue) 0%, var(--slate) 100%);
  color: white;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '✝';
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero h1 { color: white; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 560px; margin: 0 auto 1.5rem; }
.hero-verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: white;
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: #b5832e; border-color: #b5832e; text-decoration: none; color: white; }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: white; text-decoration: none; color: white; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Post / Article ---- */
.post-header {
  background: var(--parchment);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.post-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.post-content {
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.post-content h2 { margin: 2rem 0 0.75rem; }
.post-content h3 { margin: 1.5rem 0 0.5rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.2rem 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; }

/* ---- Ad slots ---- */
.ad-banner { padding: 1.5rem 0; text-align: center; }
.ad-inline {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Email signup ---- */
.email-signup {
  background: var(--deep-blue);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 3rem 0 0;
}
.email-signup h2 { color: white; margin-bottom: 0.5rem; }
.email-signup p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 1.5rem; }
.email-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}
.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  border: none;
  font-size: 0.95rem;
}

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  padding: 3rem 1.5rem 1rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ---- Footer ---- */
.site-footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: auto;
}
.footer-verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-nav a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--gold-light); text-decoration: none; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
