/* ============================================================
   Prayerful Rosary — shared blog article styles
   Theme tokens mirror index.html / privacy.html
   ============================================================ */
@font-face {
  font-family: 'Cinzel';
  src: url('./marketing-assets/Cinzel-Variable.ttf') format('truetype-variations'),
       url('./marketing-assets/Cinzel-Variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:           #F5EDD8;
  --cream-soft:      rgba(245, 237, 216, 0.75);
  --cream-dim:       rgba(245, 237, 216, 0.6);
  --cream-faint:     rgba(245, 237, 216, 0.3);
  --gold:            #C9A84C;
  --gold-ink:        #9A7B2E;
  --dark-warm:       #1A0F08;
  --dark-overlay:    rgba(20, 12, 4, 0.55);
  --dark-overlay-2:  rgba(20, 12, 4, 0.65);
  --off-white:       #FAF8F4;
  --label:           #1C1C1E;
  --secondary-label: #6B6B6B;
  --separator:       rgba(0, 0, 0, 0.08);
  --shadow-card:     0 8px 40px rgba(0, 0, 0, 0.07);
  --shadow-deep:     0 30px 80px rgba(0, 0, 0, 0.18);
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
  --measure: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--label);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease, color 300ms ease;
  color: var(--cream);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--separator);
  color: var(--label);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 0.04em; font-weight: 600;
}
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.82; transition: opacity 200ms ease; }
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.nav-cta {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  background: #fff; color: var(--label);
  transition: background 300ms ease, color 300ms ease, transform 200ms ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav.scrolled .nav-cta { background: var(--label); color: #fff; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  min-height: clamp(420px, 64vh, 600px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  color: var(--cream); isolation: isolate;
  padding: 128px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('./marketing-assets/cathedral.jpg') center/cover no-repeat;
  transform: scale(1.06); z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20,12,4,0.28) 0%, rgba(20,12,4,0.68) 70%, rgba(20,12,4,0.92) 100%),
    var(--dark-overlay);
  z-index: -1;
}
.page-hero-inner { max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 42px; height: 1px; background: var(--gold); opacity: 0.6; }
.page-hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08;
  letter-spacing: 0.02em; color: var(--cream); text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.post-byline {
  margin-top: 26px;
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--cream-dim);
}
.post-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding-top: clamp(28px, 4vw, 44px);
  font-size: 13px; letter-spacing: 0.02em; color: var(--secondary-label);
}
.breadcrumb a { color: var(--gold-ink); transition: color 200ms ease; }
.breadcrumb a:hover { color: var(--label); }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }
.breadcrumb .current { color: var(--secondary-label); opacity: 1; margin: 0; }

/* ---------- POST BODY ---------- */
.post-body { background: var(--off-white); padding-bottom: clamp(64px, 9vw, 104px); }
.post { padding-top: clamp(34px, 5vw, 52px); }
.post .lede {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--label);
  margin: 0 0 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--separator);
}
.post section { margin-top: clamp(40px, 5vw, 56px); }
.post h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: 0.02em; line-height: 1.2;
  color: var(--label);
}
.post h2 + p, .post h2 + ul { margin-top: 18px; }
.post h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink); margin: 28px 0 10px;
}
.post p {
  margin: 16px 0;
  color: var(--secondary-label);
  font-size: 17px; line-height: 1.75;
}
.post p strong, .post li strong { color: var(--label); font-weight: 600; }
.post a.inline {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(201, 168, 76, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.post a.inline:hover { color: var(--label); border-color: var(--label); }
.post ul { margin: 18px 0; padding: 0; display: grid; gap: 13px; }
.post ul li {
  list-style: none; position: relative; padding-left: 28px;
  color: var(--secondary-label); font-size: 17px; line-height: 1.65;
}
.post ul li::before { content: "✦"; position: absolute; left: 0; top: 3px; color: var(--gold); font-size: 11px; }
.post .note {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.07);
  border-radius: 0 12px 12px 0;
  font-size: 16.5px; line-height: 1.65; color: var(--secondary-label);
}
.post .note strong { color: var(--label); }

/* ---------- IN-ARTICLE APP CTA ---------- */
.app-cta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: clamp(44px, 6vw, 64px) 0;
  padding: 28px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden; isolation: isolate;
}
.app-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.app-cta-icon img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.app-cta-text { flex: 1; min-width: 200px; }
.app-cta-text h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.01em; color: var(--label); margin-bottom: 8px; }
.app-cta-text p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--secondary-label); }
.app-cta-btn {
  flex: none;
  padding: 13px 24px; border-radius: 999px;
  background: var(--label); color: #fff;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  box-shadow: var(--shadow-card);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}
.app-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-deep); }

/* ---------- RELATED ---------- */
.related { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--separator); }
.related-head {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600; margin-bottom: 22px; text-align: center;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card {
  position: relative; background: #fff; border-radius: 16px;
  padding: 26px 26px 28px; box-shadow: var(--shadow-card);
  overflow: hidden; isolation: isolate;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease;
}
.related-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.related-card .post-cat {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; margin-bottom: 12px;
}
.related-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; color: var(--label); letter-spacing: 0.01em; }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center; color: var(--cream);
  overflow: hidden; isolation: isolate;
  padding: clamp(72px, 10vw, 110px) 24px 40px;
  background: var(--dark-warm);
}
.footer-crucifix { height: 96px; filter: drop-shadow(0 0 32px rgba(245,237,216,0.5)); }
.footer-wordmark { margin-top: 24px; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.05em; color: var(--cream); }
.footer-tag { margin: 12px 0 0; font-size: 16px; color: var(--cream-dim); }
.footer-socials { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.footer-social-link {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--cream); background: rgba(245, 237, 216, 0.06); border: 1px solid rgba(245, 237, 216, 0.18);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.footer-social-link:hover { transform: translateY(-2px); background: rgba(245, 237, 216, 0.14); border-color: rgba(245, 237, 216, 0.4); color: #fff; }
.footer-social-link svg { width: 18px; height: 18px; display: block; }
.footer-copy { margin-top: 40px; font-size: 13px; color: var(--cream-faint); letter-spacing: 0.02em; }
.footer-copy a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 2px; transition: color 220ms ease; }
.footer-copy a:hover { color: var(--cream); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .page-hero { padding: 110px 20px 60px; }
  .related-grid { grid-template-columns: 1fr; }
  .app-cta { gap: 16px; }
}
@media (max-width: 420px) {
  .nav-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
