/**
 * Blog — archive + single article
 */

.st-blog {
	background: var(--st-bg, #faf8f5);
}

/* Journal V1 — split hero + archive rhythm */
.st-blog > .st-ih--split {
	margin-bottom: 0;
}

.st-blog .st-blog-cats {
	padding: clamp(1.15rem, 2.5vw, 1.5rem) 0 clamp(1.35rem, 3vw, 2rem);
	border-bottom: 1px solid var(--st-line);
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.st-blog-featured__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* —— Archive hero —— */
.st-blog-hero {
	position: relative;
	min-height: min(52svh, 28rem);
	display: grid;
	place-items: end center;
	overflow: hidden;
	color: #fff;
	background: #1a1814;
}

.st-blog-hero__media {
	position: absolute;
	inset: 0;
}

.st-blog-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-blog-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(20 18 16 / 0.35) 0%, rgb(20 18 16 / 0.2) 40%, rgb(20 18 16 / 0.78) 100%);
	pointer-events: none;
}

.st-blog-hero__content {
	position: relative;
	z-index: 1;
	width: var(--st-container);
	margin-inline: auto;
	padding: calc(var(--st-header-height) + 3rem) 0 2.75rem;
}

.st-blog-hero__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.78);
}

.st-blog-hero__title {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: #fff;
}

.st-blog-hero__lead {
	margin: 0.9rem 0 0;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 0.88);
}

/* —— Category chips —— */
.st-blog-cats {
	padding: clamp(1.15rem, 2.5vw, 1.5rem) 0 clamp(1.35rem, 3vw, 2rem);
	background: var(--st-bg, #faf8f5);
}

.st-blog-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-blog-cats__list a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--st-line-strong);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--st-ink);
	text-decoration: none;
	background: #fff;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.st-blog-cats__list a:hover,
.st-blog-cats__list a.is-active {
	border-color: var(--st-accent);
	color: var(--st-accent);
	background: var(--st-accent-soft);
}

/* —— Archive layout —— */
.st-blog-archive {
	padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(4rem, 8vw, 6rem);
}

.st-blog-featured {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--st-line);
}

@media (min-width: 900px) {
	.st-blog-featured {
		grid-template-columns: 1.15fr 0.85fr;
		align-items: center;
	}
}

.st-blog-featured__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--st-radius-lg, 24px);
	background: #ebe6de;
}

.st-blog-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.st-blog-featured:hover .st-blog-featured__media img {
	transform: scale(1.03);
}

.st-blog-featured__label {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-blog-featured__title {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
}

.st-blog-featured__title a {
	color: var(--st-ink);
	text-decoration: none;
}

.st-blog-featured__title a:hover {
	color: var(--st-accent);
}

.st-blog-featured__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-top: 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--st-muted);
}

.st-blog-featured__excerpt {
	margin: 1rem 0 0;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--st-muted);
}

.st-blog-featured__link {
	display: inline-block;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--st-accent);
	text-decoration: none;
}

.st-blog-featured__link:hover {
	text-decoration: underline;
}

/* —— Card grid —— */
.st-blog-grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 640px) {
	.st-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.st-blog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.st-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--st-radius, 18px);
	overflow: hidden;
	border: 1px solid var(--st-line);
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.st-blog-card:hover {
	border-color: rgb(139 36 50 / 0.22);
	box-shadow: 0 12px 36px rgb(20 18 16 / 0.06);
}

.st-blog-card__media {
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #ebe6de;
}

.st-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.st-blog-card:hover .st-blog-card__media img {
	transform: scale(1.04);
}

.st-blog-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ebe6de, #ddd5c8);
}

.st-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.25rem 1.35rem;
}

.st-blog-card__cat {
	margin: 0 0 0.4rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-blog-card__cat a {
	color: inherit;
	text-decoration: none;
}

.st-blog-card__title {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.3;
}

.st-blog-card__title a {
	color: var(--st-ink);
	text-decoration: none;
}

.st-blog-card__title a:hover {
	color: var(--st-accent);
}

.st-blog-card__excerpt {
	margin: 0.55rem 0 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--st-muted);
	flex: 1;
}

.st-blog-card__meta {
	margin-top: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--st-muted);
}

.st-blog-empty {
	padding: 3rem 0;
	text-align: center;
	color: var(--st-muted);
}

.st-blog-archive .st-pagination {
	margin-top: 2.5rem;
}

/* —— Single article —— */
.st-article-hero {
	position: relative;
	min-height: min(58svh, 32rem);
	display: grid;
	place-items: end center;
	overflow: hidden;
	color: #fff;
	background: #1a1814;
}

.st-article-hero--plain {
	min-height: auto;
	place-items: center;
	background: var(--st-bg-alt, #f0ebe4);
	color: var(--st-ink);
}

.st-article-hero__media {
	position: absolute;
	inset: 0;
}

.st-article-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-article-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(20 18 16 / 0.25) 0%, rgb(20 18 16 / 0.15) 35%, rgb(20 18 16 / 0.82) 100%);
	pointer-events: none;
}

.st-article-hero--plain .st-article-hero__shade {
	display: none;
}

.st-article-hero__content {
	position: relative;
	z-index: 1;
	width: min(44rem, calc(100% - 2.5rem));
	margin-inline: auto;
	padding: calc(var(--st-header-height) + 3.5rem) 0 2.75rem;
}

.st-article-hero--plain .st-article-hero__content {
	padding-top: calc(var(--st-header-height) + 2.5rem);
	padding-bottom: 2rem;
}

.st-article-hero__eyebrow,
.st-article-hero__cat {
	margin: 0 0 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.8);
}

.st-article-hero--plain .st-article-hero__cat {
	color: var(--st-accent);
}

.st-article-hero__cat a {
	color: inherit;
	text-decoration: none;
}

.st-article-hero__title {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: #fff;
}

.st-article-hero--plain .st-article-hero__title {
	color: var(--st-ink);
}

.st-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	margin-top: 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgb(255 255 255 / 0.78);
}

.st-article-hero--plain .st-article-hero__meta {
	color: var(--st-muted);
}

.st-article-body {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.st-article-content {
	max-width: 40rem;
	margin-inline: auto;
	font-size: 1.0625rem;
	line-height: 1.78;
	color: var(--st-ink);
}

.st-article-content > *:first-child {
	margin-top: 0;
}

.st-article-content h2,
.st-article-content h3 {
	font-family: var(--st-font-display);
	font-weight: 400;
	letter-spacing: var(--st-heading-ls, -0.02em);
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
}

.st-article-content h2 {
	font-size: clamp(1.5rem, 3vw, 1.85rem);
}

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

.st-article-content p,
.st-article-content ul,
.st-article-content ol {
	margin: 0 0 1.15rem;
}

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

.st-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--st-radius, 18px);
}

.st-article-footer {
	max-width: 40rem;
	margin: 2.5rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--st-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
}

.st-article-back {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--st-accent);
	text-decoration: none;
}

.st-article-back:hover {
	text-decoration: underline;
}

/* Related */
.st-article-related {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background: #fff;
	border-top: 1px solid var(--st-line);
}

.st-article-related__head {
	margin-bottom: 1.75rem;
}

.st-article-related__head h2 {
	margin: 0.35rem 0 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
}

/* Article CTA — band colors in site-polish.css */
.st-article-cta {
	text-align: center;
}

.st-article-cta__inner {
	width: min(36rem, calc(100% - 2.5rem));
	margin-inline: auto;
}

.st-article-cta h2 {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 400;
}

.st-article-cta p {
	margin: 0.85rem 0 0;
	line-height: 1.6;
}

.st-article-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
