/* ===== RankViaGuest — editorial blog ===== */
:root {
  --indigo: #3b3a7a;
  --indigo-dark: #292855;
  --violet: #6c5ce7;
  --rose: #e8617f;
  --gold: #e0a458;
  --ink: #232231;
  --ink-soft: #5f5d72;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-soft2: #edecf6;
  --card: #ffffff;
  --border: #e6e5f0;
  --shadow: 0 8px 26px rgba(35, 34, 49, 0.08);
  --shadow-lg: 0 16px 44px rgba(35, 34, 49, 0.16);
  --radius: 14px;
  --maxw: 1140px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; transition: color .15s; }
a:hover { color: var(--indigo); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), var(--rose)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-family: var(--sans); font-weight: 800; }
.brand b { color: var(--violet); }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.92rem; padding: 8px 13px; border-radius: 8px; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--violet); background: var(--bg-soft2); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.7rem; cursor: pointer; }
.search-mini { display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 40px; padding: 6px 14px; }
.search-mini input { border: 0; background: none; font-size: 0.9rem; outline: none; width: 120px; font-family: var(--sans); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; padding: 60px 0; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 620px; margin: 0 auto 24px; }
.hero .search-big { max-width: 520px; margin: 0 auto; display: flex; gap: 8px; }
.hero .search-big input { flex: 1; padding: 14px 18px; border: 0; border-radius: 40px; font-size: 1rem; font-family: var(--sans); }
.hero .search-big button { padding: 14px 26px; border: 0; border-radius: 40px; background: var(--gold); color: #fff; font-weight: 800; cursor: pointer; font-family: var(--sans); }

/* Page head */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 44px 0; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-soft); }
.page-head h1 { font-size: clamp(1.8rem,4vw,2.6rem); }
.page-head p { color: var(--ink-soft); margin-top: 8px; max-width: 720px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 310px; gap: 46px; align-items: start; padding: 50px 0; }

/* Article */
.article .post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; align-items: center; }
.cat-tag { background: var(--bg-soft2); color: var(--violet); font-weight: 700; padding: 3px 12px; border-radius: 40px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }

/* Prose */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.55rem; margin: 34px 0 12px; color: var(--indigo); }
.prose h3 { font-size: 1.22rem; margin: 24px 0 10px; color: var(--violet); }
.prose p { color: #353347; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; color: #353347; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 4px solid var(--violet); background: var(--bg-soft); border-radius: 8px; padding: 14px 20px; margin: 18px 0; font-style: italic; color: var(--ink-soft); }
.prose .placeholder { background: #fbf0dd; border-bottom: 1px dashed var(--gold); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.prose .callout { background: var(--bg-soft2); border-left: 4px solid var(--violet); border-radius: 8px; padding: 16px 20px; margin: 22px 0; }

/* Wishes/quote list items */
.wish-list { list-style: none; padding: 0; margin: 18px 0; counter-reset: wish; }
.wish-list li { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--rose); border-radius: 10px; padding: 16px 18px 16px 46px; margin-bottom: 12px; position: relative; color: #353347; }
.wish-list li::before { counter-increment: wish; content: counter(wish); position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; background: var(--bg-soft2); color: var(--violet); border-radius: 50%; font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.prayer-list li { border-left-color: var(--violet); }
.quote-list li { border-left-color: var(--gold); font-style: italic; }

/* Quick facts */
.facts-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 22px 0; }
.facts-box h2 { font-size: 1.2rem; margin: 0 0 14px; color: var(--indigo); }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table tr { border-bottom: 1px solid var(--border); }
.facts-table tr:last-child { border-bottom: 0; }
.facts-table td { padding: 10px 0; font-size: 0.96rem; vertical-align: top; }
.facts-table td:first-child { color: var(--ink-soft); font-weight: 600; width: 42%; }
.facts-table td:last-child { font-weight: 700; }

/* TOC */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; }
.toc h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--ink); }
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.94rem; }

/* Sidebar */
.sidebar { display: grid; gap: 22px; position: sticky; top: 84px; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-soft2); }
.side-list { list-style: none; }
.side-list li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.side-list li:last-child { border-bottom: 0; }
.side-list li a { color: var(--ink); font-weight: 600; }
.side-list li a:hover { color: var(--violet); }
.side-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.side-cats a { background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 13px; border-radius: 40px; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.side-cats a:hover { background: var(--bg-soft2); color: var(--violet); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--bg-soft2), #e3e0f5); }
.post-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card .cat-tag { align-self: flex-start; margin-bottom: 10px; }
.post-card h3 { font-size: 1.06rem; margin-bottom: 6px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--violet); }
.post-card .excerpt { color: var(--ink-soft); font-size: 0.88rem; flex: 1; }

/* Section */
section.block { padding: 56px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(1.6rem,3.5vw,2.2rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }

/* Related */
.related { margin-top: 42px; }
.related h2 { font-size: 1.35rem; margin-bottom: 18px; color: var(--indigo); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.related-item a { font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.related-item a:hover { color: var(--violet); }

/* Footer */
.site-footer { background: var(--indigo-dark); color: #b9b8d4; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: 1rem; margin-bottom: 13px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b9b8d4; font-size: 0.91rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #b9b8d4; font-size: 0.91rem; }
.footer-bottom { border-top: 1px solid #3a3968; padding-top: 20px; text-align: center; color: #8483a8; font-size: 0.85rem; }
.footer-bottom a { color: #b9b8d4; }

/* Responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid, .card-grid.cols-4, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .search-mini { display: none; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 22px; gap: 4px; display: none; }
  .nav-links.show { display: flex; }
  .nav-links a { width: 100%; }
  .card-grid, .card-grid.cols-4, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .search-big { flex-direction: column; }
}
