/**
 * SONGREPS single-post (Direction A: washed-overlay hero).
 *
 * Source of truth: docs/design/single-post-mockup.html / single-post-spec.md
 * (Monday 12332493291). Scoped under .songreps-single — the wrapper class on
 * <main> in templates/single.html. Hero markup comes from the
 * [songreps_post_hero] shortcode (functions.php).
 *
 * Color identity: the hero's --c CSS custom property carries the post's
 * deterministic palette color (post ID mod the 6-color palette, §2.29), so
 * the article and its Library card share one identity.
 */

/* ============================================================
 * HERO — content-driven banner; grayscale image + solid wash + flat scrim.
 * NEVER fixed height / vh — the band grows to fit a long title or text-zoom.
 * Scrim is SOLID, not a gradient (design-system §13).
 * ============================================================ */

.songreps-single-hero {
	position: relative;
	width: 100%;
	min-height: 340px;
	overflow: hidden;
	background: var(--c);
	display: flex;
	align-items: flex-end;
}

.songreps-single-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}

.songreps-single-hero__wash {
	position: absolute;
	inset: 0;
	background: var(--c);
	opacity: 0.72;
}

.songreps-single-hero__scrim {
	position: absolute;
	inset: 0;
	background: #2a3744;
	opacity: 0.14;
}

.songreps-single-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.songreps-single-hero__content {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 40px;
}

.songreps-single-hero .chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 250, 240, 0.18);
	color: #fffaf0;
}

.songreps-single-hero h1 {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(30px, 4.6vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fffaf0;
	margin: 12px 0 12px;
	max-width: 18ch;
}

.songreps-single-hero .meta {
	font-size: 13.5px;
	color: rgba(255, 250, 240, 0.92);
}

/* ============================================================
 * ARTICLE — single centered column, ~68ch measure, generous line-height.
 * Lede = first paragraph of post-content (auto, no editor effort).
 * Pull-quote = .is-style-songreps on core/quote (bronze left-rule).
 * ============================================================ */

.songreps-single-article {
	max-width: 712px;
	margin: 0 auto;
	padding: 36px 24px 72px;
}

.songreps-single-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 28px;
	color: #5b6f7d;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
}

.songreps-single-back:hover {
	color: #2a3744;
}

/* Body paragraphs (scoped so we override the wider blog.css rule). */
.songreps-single-article .wp-block-post-content > p {
	font-size: 17px;
	line-height: 1.75;
	color: #46555f;
	margin: 0 0 22px;
}

/* Auto-lede — first paragraph of post-content. Same selector pattern as
   §2.26 but scoped to the single-article container so the larger size +
   deep-slate color wins via specificity. */
.songreps-single-article .wp-block-post-content > p:first-of-type {
	font-size: 20.5px;
	line-height: 1.6;
	color: #2a3744;
	font-weight: 400;
}

/* Pull-quote — matches the mockup's .pullquote treatment for any
   core/quote with .is-style-songreps inside the article. */
.songreps-single-article .wp-block-quote.is-style-songreps {
	border-left: 3px solid #b58655;
	margin: 34px 0;
	padding: 2px 0 2px 24px;
}

.songreps-single-article .wp-block-quote.is-style-songreps p {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.42;
	color: #2a3744;
	margin: 0;
}

.songreps-single-article .wp-block-quote.is-style-songreps cite {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	color: #6f7e89;
	font-style: normal;
	display: block;
	margin-top: 8px;
}

@media (max-width: 720px) {
	.songreps-single-hero {
		min-height: 240px;
	}
	.songreps-single-hero__content {
		padding: 36px 20px 26px;
	}
	.songreps-single-article {
		padding: 28px 20px 56px;
	}
	.songreps-single-article .wp-block-post-content > p {
		font-size: 16.5px;
	}
	.songreps-single-article .wp-block-post-content > p:first-of-type {
		font-size: 19px;
	}
	.songreps-single-article .wp-block-quote.is-style-songreps p {
		font-size: 20px;
	}
}
