/* ─── CBN Blog Stylesheet ───────────────────────────────────────────────
   Matches the design tokens from covenantbusinessnetwork.com/index.html.
   Light theme. Libre Franklin body. Spectral display.
─────────────────────────────────────────────────────────────────────── */

:root {
	--ink:      #f8fafd;
	--deep:     #ffffff;
	--warm:     #eef2f7;
	--card:     #ffffff;
	--ember:    #2c4870;
	--ember-lt: #4a6491;
	--gold:     #b08d3e;
	--gold-lt:  #c5a560;
	--sage:     #4a6491;
	--sage-lt:  #6a87b3;
	--cream:    #1a2c4d;
	--off:      #ffffff;
	--stone:    #6c727b;
	--rule:     #d8dfe8;
	--dim:      rgba(26,44,77,0.72);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Libre Franklin', sans-serif;
	background: var(--ink);
	color: var(--cream);
	line-height: 1.65;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Noise texture overlay to match main site */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
	opacity: 0.025;
	pointer-events: none;
	z-index: 1000;
}

/* ── NAV ── */
nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2.5rem;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }

.nav-logo-img {
	height: 44px;
	width: auto;
	filter: drop-shadow(0 2px 6px rgba(26,44,77,0.18));
}

.nav-name {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 900;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--cream);
	line-height: 1.1;
}

.nav-name span {
	display: block;
	font-weight: 300;
	font-size: 0.62rem;
	letter-spacing: 0.2em;
	color: var(--stone);
}

.nav-cta {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--off);
	background: var(--gold);
	padding: 0.55rem 1.25rem;
	border-radius: 2px;
	transition: background 0.2s;
}

.nav-cta:hover { background: var(--gold-lt); }

/* ── POST HERO ── */
.post-hero {
	position: relative;
	padding: 9rem 2.5rem 4.5rem;
	background: linear-gradient(180deg, var(--warm) 0%, var(--ink) 100%);
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
}

.post-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 60% at 12% 75%, rgba(44,72,112,0.10) 0%, transparent 60%),
		radial-gradient(ellipse 40% 55% at 92% 18%, rgba(176,141,62,0.10) 0%, transparent 55%);
}

.post-hero::after {
	content: '✝';
	position: absolute;
	right: -2rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(14rem, 28vw, 26rem);
	color: rgba(26,44,77,0.04);
	font-family: serif;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.post-hero-inner {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	z-index: 2;
}

.post-category {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold);
	border: 1px solid rgba(176,141,62,0.45);
	padding: 0.45rem 0.95rem;
	border-radius: 1px;
	margin-bottom: 2rem;
}

.post-title {
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: clamp(2.2rem, 5.5vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--cream);
	margin-bottom: 1.5rem;
}

.post-deck {
	font-family: 'Spectral', serif;
	font-style: italic;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	color: var(--dim);
	max-width: 64ch;
	line-height: 1.65;
	margin-bottom: 2rem;
}

.post-deck em { color: var(--ember); font-style: italic; }

.post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--stone);
}

.post-meta a { color: var(--ember); transition: color 0.2s; }
.post-meta a:hover { color: var(--gold); }

/* ── PULL QUOTE ── */
.pull-quote {
	font-family: 'Spectral', serif;
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.4;
	color: var(--ember);
	text-align: center;
	max-width: 760px;
	margin: 3rem auto;
	padding: 0 1rem;
	position: relative;
}

.pull-quote::before,
.pull-quote::after {
	content: '';
	display: block;
	width: 60px;
	height: 1px;
	background: var(--gold);
	margin: 1.25rem auto;
}

/* ── ARTICLE BODY ── */
.post-body {
	max-width: 720px;
	margin: 0 auto;
	padding: 4rem 1.5rem 3rem;
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--cream);
}

.post-body p { margin-bottom: 1.5rem; }
.post-body p strong { color: var(--ember); font-weight: 700; }
.post-body p em { font-style: italic; color: var(--ember-lt); }

.post-body h2 {
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	line-height: 1.3;
	color: var(--cream);
	margin: 3rem 0 1.25rem;
	padding-top: 0.85rem;
	position: relative;
}

.post-body h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 36px;
	height: 2px;
	background: var(--gold);
}

.post-body h3 {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	color: var(--ember);
	margin: 2rem 0 0.75rem;
}

.post-body ol,
.post-body ul {
	margin: 0 0 1.75rem 1.5rem;
}

.post-body li {
	margin-bottom: 0.85rem;
	padding-left: 0.35rem;
}

.post-body ol li::marker {
	color: var(--gold);
	font-weight: 700;
}

.post-body a {
	color: var(--ember);
	font-weight: 600;
	border-bottom: 1px solid rgba(176,141,62,0.45);
	transition: color 0.2s, border-color 0.2s;
}

.post-body a:hover {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

/* ── COVENANT BLOCK ── */
.covenant-block {
	max-width: 720px;
	margin: 3rem auto;
	padding: 2rem 2rem 2rem 2.5rem;
	background: var(--card);
	border: 1px solid var(--rule);
	border-left: 4px solid var(--gold);
	box-shadow: 0 8px 24px rgba(26,44,77,0.06);
	position: relative;
}

.covenant-label {
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

.covenant-block p {
	font-family: 'Spectral', serif;
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.75;
	color: var(--cream);
	margin: 0;
}

.covenant-block p em { color: var(--ember); font-style: italic; font-weight: 600; }
.covenant-block p a { color: var(--ember); font-weight: 600; border-bottom: 1px solid rgba(176,141,62,0.45); }
.covenant-block p a:hover { color: var(--gold); }

/* ── RELATED ── */
.related {
	max-width: 880px;
	margin: 4rem auto 0;
	padding: 0 1.5rem;
}

.related-label {
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ember-lt);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.related-label::before {
	content: '';
	width: 2rem;
	height: 1px;
	background: var(--ember-lt);
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.related-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--rule);
	padding: 1.5rem;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(26,44,77,0.08);
	border-color: var(--gold-lt);
}

.related-card-cat {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.related-card-title {
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--cream);
	margin-bottom: 0.5rem;
}

.related-card-deck {
	font-size: 0.92rem;
	color: var(--dim);
	line-height: 1.55;
}

/* ── CTA BLOCK ── */
.cta-block {
	max-width: 720px;
	margin: 4rem auto;
	padding: 3rem 2rem;
	background: var(--card);
	border: 1px solid var(--rule);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-block::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(176,141,62,0.06) 0%, transparent 60%);
}

.cta-block h2 {
	position: relative;
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
	line-height: 1.3;
	color: var(--cream);
	margin-bottom: 1rem;
}

.cta-block p {
	position: relative;
	font-size: 1rem;
	color: var(--dim);
	max-width: 56ch;
	margin: 0 auto 2rem;
	line-height: 1.7;
}

.cta-buttons {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.btn-primary {
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--off);
	background: var(--gold);
	padding: 0.85rem 1.75rem;
	border-radius: 2px;
	transition: background 0.2s;
}

.btn-primary:hover { background: var(--gold-lt); }

.btn-outline {
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ember);
	background: transparent;
	border: 1px solid var(--ember);
	padding: 0.85rem 1.75rem;
	border-radius: 2px;
	transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: var(--ember); color: var(--off); }

/* ── FOOTER ── */
footer {
	background: var(--ink);
	border-top: 1px solid var(--rule);
	padding: 2.5rem 2.5rem;
	margin-top: 2rem;
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-img {
	height: 52px;
	width: auto;
	filter: drop-shadow(0 2px 6px rgba(26,44,77,0.18));
}

.footer-name {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 900;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--stone);
}

.footer-right {
	font-size: 0.72rem;
	color: var(--stone);
	text-align: right;
	line-height: 1.7;
}

.footer-right a { color: var(--gold); transition: color 0.2s; }
.footer-right a:hover { color: var(--gold-lt); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BLOG INDEX ── */
.blog-index-hero {
	position: relative;
	padding: 9rem 2.5rem 4rem;
	background: linear-gradient(180deg, var(--warm) 0%, var(--ink) 100%);
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
}

.blog-index-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 60% at 15% 70%, rgba(44,72,112,0.10) 0%, transparent 60%),
		radial-gradient(ellipse 40% 55% at 90% 20%, rgba(176,141,62,0.10) 0%, transparent 55%);
}

.blog-index-hero::after {
	content: '✝';
	position: absolute;
	right: -2rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(14rem, 28vw, 26rem);
	color: rgba(26,44,77,0.04);
	font-family: serif;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.blog-index-hero .post-hero-inner { max-width: 1000px; }

.blog-list {
	max-width: 880px;
	margin: 4rem auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.blog-list-item {
	display: block;
	background: var(--card);
	border: 1px solid var(--rule);
	padding: 2rem;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(26,44,77,0.08);
	border-color: var(--gold-lt);
}

.blog-list-cat {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.blog-list-title {
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
	line-height: 1.25;
	color: var(--cream);
	margin-bottom: 0.85rem;
}

.blog-list-deck {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--dim);
	margin-bottom: 1rem;
	max-width: 65ch;
}

.blog-list-deck em { font-style: italic; color: var(--ember); }

.blog-list-meta {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ember);
}

/* ── MOBILE ── */
@media (max-width: 820px) {
	.post-hero { padding: 7rem 1.25rem 3rem; }
	.post-body { padding: 3rem 1.25rem 2rem; font-size: 1rem; }
	.post-body h2 { font-size: 1.4rem; margin-top: 2.25rem; }
	.pull-quote { font-size: 1.35rem; margin: 2rem auto; }
	.covenant-block { margin: 2rem 1.25rem; padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
	.related { padding: 0 1.25rem; }
	.cta-block { margin: 3rem 1.25rem; padding: 2.25rem 1.5rem; }
	.blog-index-hero { padding: 7rem 1.25rem 3rem; }
	.blog-list { margin: 2.5rem auto; padding: 0 1.25rem; }
	.blog-list-item { padding: 1.5rem; }
	footer { padding: 2rem 1.25rem; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.footer-right { text-align: left; }
}

@media (max-width: 640px) {
	nav { padding: 0.9rem 1.25rem; }
	.nav-name span { display: none; }
	.nav-cta { padding: 0.5rem 0.9rem; }
}
