@import 'https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap';

:root
{
	--bg: #f7f0e3;
	--bg-soft: #fff8ef;
	--text: #17253d;
	--text-soft: #5c667c;
	--border: #e0d6c6;
	--card: #fff8ee;
	--card-strong: #fff2df;
	--accent: #df5b2b;
	--accent-strong: #b53a10;
	--accent-soft: #ffe6ce;
	--shadow: 0 14px 30px rgb(23 37 61 / 9%);
}

*
{
	box-sizing: border-box;
}

body.blog-page
{
	margin: 0;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--text);
	background: radial-gradient(circle at 10% 0%, #fff3ca 0%, transparent 37%), radial-gradient(circle at 100% 12%, #ffd6b0 0%, transparent 30%), linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
	min-height: 100vh;
}

.blog-shell
{
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
}

.site-topbar
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.35rem 0 0.9rem;
}

.brand
{
	display: inline-flex;
	align-items: center;
	gap: 0.68rem;
	text-decoration: none;
	color: var(--text);
	font-family: Sora, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.brand-mark
{
	width: 36px;
	height: 36px;
}

.brand-text
{
	font-size: 1.15rem;
}

.top-nav
{
	display: inline-flex;
	gap: 0.55rem;
}

.top-nav-link
{
	display: inline-flex;
	align-items: center;
	padding: 0.52rem 0.86rem;
	text-decoration: none;
	border-radius: 999px;
	color: var(--text-soft);
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.top-nav-link:hover
{
	color: var(--text);
	background: #fff;
	border-color: var(--border);
}

.top-nav-link.is-active
{
	color: #fff;
	border-color: var(--accent);
	background: linear-gradient(95deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.market-strip
{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, auto)) 1fr;
	gap: 0.6rem;
	align-items: center;
	padding: 0.72rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.market-card
{
	display: inline-flex;
	flex-direction: column;
	gap: 0.08rem;
	padding: 0.42rem 0.68rem;
	border-radius: 10px;
	background: var(--accent-soft);
	border: 1px solid #f0c9a0;
}

.market-label
{
	margin: 0;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.market-symbol
{
	margin: 0;
	font-size: 0.76rem;
	font-weight: 700;
	color: #85452e;
}

.market-value
{
	margin: 0;
	font-family: Sora, sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
}

.market-status
{
	justify-self: end;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-soft);
}

.blog-main
{
	margin-top: 1rem;
}

.hero-copy
{
	padding: 1.65rem;
	border-radius: 18px;
	background: linear-gradient(150deg, #182542 0%, #24365d 64%, #35507f 100%);
	box-shadow: var(--shadow);
	color: #f9f1e6;
}

.eyebrow
{
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffd09f;
}

.hero-copy h1
{
	margin: 0.7rem 0 0;
	font-family: Sora, sans-serif;
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #fff;
}

.hero-copy p
{
	margin: 0.95rem 0 0;
	font-size: 1rem;
	line-height: 1.45;
	color: #eaf0ff;
}

.category-nav
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.48rem;
	margin-top: 1rem;
}

.category-pill
{
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
	padding: 0.43rem 0.76rem;
	text-decoration: none;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text-soft);
}

.category-pill:hover,
.category-pill.is-active
{
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.category-pill span
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.3rem;
	padding: 0.05rem 0.28rem;
	font-size: 0.7rem;
	border-radius: 999px;
	background: rgb(23 37 61 / 10%);
}

.category-pill:hover span,
.category-pill.is-active span
{
	background: rgb(255 255 255 / 22%);
}

.featured-story
{
	display: grid;
	grid-template-columns: 44% 1fr;
	gap: 0;
	margin-top: 0.95rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.featured-image-wrap
{
	display: block;
	min-height: 280px;
	height: 100%;
}

.featured-image
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-image-placeholder,
.article-image-placeholder
{
	display: flex;
	align-items: center;
	justify-content: center;
	background: #efe3d2;
	color: #9f8f73;
	font-family: Sora, sans-serif;
	font-weight: 700;
}

.featured-body
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.62rem;
	padding: 1.2rem;
}

.featured-kicker
{
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.featured-body h2,
.article-card-body h3,
.article-header h1,
.related-articles h2
{
	margin: 0;
	font-family: Sora, sans-serif;
	letter-spacing: -0.02em;
}

.featured-body h2
{
	font-size: 1.3rem;
	line-height: 1.22;
}

.featured-body h2 a,
.article-card-body h3 a,
.site-footer nav a,
.article-breadcrumb a,
.chip,
.article-category
{
	color: inherit;
	text-decoration: none;
}

.featured-body h2 a:hover,
.article-card-body h3 a:hover,
.site-footer nav a:hover,
.article-breadcrumb a:hover,
.chip:hover
{
	color: var(--accent-strong);
}

.featured-body p
{
	margin: 0;
	color: var(--text-soft);
	line-height: 1.45;
}

.featured-meta,
.article-card-meta,
.article-meta
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.58rem;
	align-items: center;
	font-size: 0.8rem;
	color: var(--text-soft);
}

.chip,
.article-category
{
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.52rem;
	border: 1px solid #efbb82;
	border-radius: 999px;
	background: #fff1df;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.article-grid
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.88rem;
	margin-top: 0.92rem;
}

.article-card
{
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 16px rgb(23 37 61 / 7%);
}

.article-card-media
{
	display: block;
	height: 186px;
}

.article-card-media img
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-card-body
{
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 0.95rem;
	flex: 1;
}

.article-card-kicker
{
	margin: 0;
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.article-card-body h3
{
	font-size: 1.02rem;
	line-height: 1.2;
}

.article-card-body p
{
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.44;
	color: var(--text-soft);
}

.pagination
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin-top: 0.95rem;
}

.pagination-link
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem 0.7rem;
	font-size: 0.84rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
	text-decoration: none;
}

.pagination-link:hover,
.pagination-link.is-active
{
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.pagination-link.is-disabled
{
	opacity: 0.45;
	pointer-events: none;
}

.empty-state
{
	margin-top: 1rem;
	padding: 1.2rem;
	border-radius: 14px;
	border: 1px dashed var(--border);
	background: #fff;
}

.empty-state h2
{
	margin: 0;
	font-family: Sora, sans-serif;
}

.empty-state p
{
	margin: 0.45rem 0 0;
	color: var(--text-soft);
}

.article-page
{
	margin-top: 0.95rem;
	padding: 1.1rem;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: #fff;
	box-shadow: var(--shadow);
}

.article-breadcrumb
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.36rem;
	font-size: 0.8rem;
	color: var(--text-soft);
}

.article-header
{
	margin-top: 0.75rem;
}

.article-header h1
{
	margin-top: 0.56rem;
	font-size: clamp(1.7rem, 2.4vw, 2.5rem);
	line-height: 1.1;
}

.article-hero
{
	display: block;
	width: 100%;
	margin-top: 0.95rem;
	border-radius: 12px;
}

.article-content
{
	margin-top: 0.95rem;
	font-size: 1.03rem;
	line-height: 1.75;
	color: #1f2a41;
}

.article-content h2,
.article-content h3,
.article-content h4
{
	font-family: Sora, sans-serif;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 1.2rem 0 0.75rem;
}

.article-content h2
{
	font-size: 1.5rem;
}

.article-content h3
{
	font-size: 1.24rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote
{
	margin: 0 0 1rem;
}

.article-content a
{
	color: var(--accent-strong);
}

.article-content img
{
	border-radius: 12px;
	display: block;
	margin-inline: auto;
	max-width: 100%;
}

.article-content figure
{
	margin: 1rem 0;
}

.article-content figcaption
{
	margin-top: 0.42rem;
	font-size: 0.8rem;
	color: var(--text-soft);
}

.article-footer
{
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border);
}

.tag-row
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.related-articles
{
	margin-top: 1.2rem;
}

.related-articles h2
{
	font-size: 1.15rem;
	margin-bottom: 0.85rem;
}

.related-grid
{
	margin-top: 0;
}

.site-footer
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	padding: 1.3rem 0 1.8rem;
	font-size: 0.84rem;
	color: var(--text-soft);
}

.site-footer p
{
	margin: 0;
}

.site-footer nav
{
	display: flex;
	gap: 1rem;
}

[data-price-status="stale"] .market-status
{
	color: #8c6f4a;
}

[data-price-status="error"] .market-status
{
	color: #9f2d2d;
}

@media (width <= 900px)
{
	.blog-shell
	{
		width: min(1180px, calc(100% - 1.2rem));
	}

	.site-topbar
	{
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}

	.market-strip
	{
		grid-template-columns: 1fr;
	}

	.market-status
	{
		justify-self: start;
	}

	.featured-story,
	.article-grid
	{
		grid-template-columns: 1fr;
	}

	.featured-image-wrap
	{
		min-height: 210px;
	}

	.article-card-media
	{
		height: 220px;
	}

	.site-footer
	{
		flex-direction: column;
		align-items: flex-start;
	}
}
