/**
 * ===================================================================
 * Bio page redesign
 *
 * Markup: decibel_child_bio_intro() / decibel_child_bio_filmstrip() /
 * decibel_child_bio_follow() (the_content, bio page only), plus the
 * page's own WPBakery content (a single vc_raw_html block rendering
 * .bio-narrative - kept as raw HTML rather than vc_column_text so
 * wpautop can't reflow the <section>/<h3> structure).
 * Loaded only on the bio page via decibel_child_enqueue_bio_styles().
 *
 * .page-entry-content is a narrow ~750px centred column (same as on
 * the home/discography pages) - .bio-intro and .bio-filmstrip-section
 * break out to full viewport width the same way those pages' sections
 * do; .bio-narrative stays inside the normal column for readable line
 * length.
 *
 * NB: the theme sets html { font-size: 10px }, so 1rem = 10px here.
 * ===================================================================
 */

:root {
	--bio-ink: #241d18;
	--bio-ink-soft: #6b5f58;
	--bio-rule: #d9cdd0;
	--bio-accent: #c74735; /* the site's existing accent colour, reused for continuity */
	--bio-stage: #1a130f; /* matches the dark hero band used sitewide */
	--bio-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--bio-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- intro: portrait + lede + credentials ---------- */

.bio-intro {
	position: relative;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
}

.bio-intro__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(4rem, 6vw, 7.2rem) 3rem clamp(3rem, 5vw, 5rem);
	display: grid;
	grid-template-columns: minmax(24rem, 38rem) 1fr;
	gap: clamp(2.4rem, 4vw, 6.4rem);
	align-items: start;
}

/* Grid items don't shrink below the <img>'s intrinsic size otherwise. */
.bio-intro__inner > * {
	min-width: 0;
}

.bio-intro__figure {
	margin: 0;
}

.bio-intro__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--bio-stage);
}

.bio-intro__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
}

.bio-intro__cap {
	margin: 1.2rem 0 0;
	font-family: var(--bio-display);
	font-size: 1.2rem;
	letter-spacing: 0.05em;
	color: var(--bio-ink-soft);
}

.bio-intro__kicker {
	margin: 0 0 1rem;
	font-family: var(--bio-display);
	font-weight: 500;
	font-size: 1.3rem;
	letter-spacing: 0.08em;
	color: var(--bio-accent);
}

.bio-intro__headline {
	margin: 0 0 2rem;
	font-family: var(--bio-display);
	font-weight: 400;
	font-size: clamp(3rem, 3.4vw, 4.4rem);
	line-height: 1.05;
	color: var(--bio-ink);
	text-wrap: balance;
}

.bio-intro__lede {
	max-width: 46ch;
	margin: 0 0 3.2rem;
	font-family: var(--bio-serif);
	font-size: clamp(1.9rem, 1.7vw, 2.2rem);
	line-height: 1.55;
	color: var(--bio-ink);
}

.bio-stats {
	display: flex;
	flex-wrap: nowrap;
	border-top: 1px solid var(--bio-rule);
}

.bio-stat {
	flex: 0 1 auto;
	padding: 1.8rem 2rem 0 0;
	margin-right: 2rem;
	border-right: 1px solid var(--bio-rule);
	font-family: var(--bio-serif);
}

.bio-stat:last-child {
	border-right: none;
	margin-right: 0;
}

.bio-stat__n {
	display: block;
	font-family: var(--bio-display);
	font-weight: 500;
	font-size: clamp(2.2rem, 2.2vw, 3rem);
	color: var(--bio-accent);
	line-height: 1;
}

.bio-stat__l {
	display: block;
	max-width: 14ch;
	margin-top: 0.6rem;
	font-size: 1.3rem;
	line-height: 1.3;
	color: var(--bio-ink-soft);
}

/* ---------- narrative: subheaded biography, normal column width ---------- */

.bio-narrative section {
	padding-block: clamp(2.6rem, 4vw, 4rem);
	border-top: 1px solid var(--bio-rule);
}

.bio-narrative section:first-child {
	padding-top: 0;
	border-top: none;
}

.bio-narrative h3 {
	margin: 0 0 1.6rem;
	font-family: var(--bio-display);
	font-weight: 500;
	font-size: 1.4rem;
	letter-spacing: 0.09em;
	color: var(--bio-accent);
}

.bio-narrative p {
	margin: 0 0 1.8rem;
	font-family: var(--bio-serif);
	font-size: 1.8rem;
	line-height: 1.7;
	color: var(--bio-ink);
}

.bio-narrative p:last-child {
	margin-bottom: 0;
}

.bio-narrative a {
	color: var(--bio-ink);
	text-decoration-color: var(--bio-accent);
	text-decoration-thickness: 2px;
}

.bio-narrative a:focus-visible {
	outline: 2px solid var(--bio-accent);
	outline-offset: 2px;
}

/* ---------- recognition ---------- */

.bio-recognition {
	padding-block: clamp(2.6rem, 4vw, 4rem);
	border-top: 1px solid var(--bio-rule);
}

.bio-recognition h3 {
	margin: 0 0 2rem;
	font-family: var(--bio-display);
	font-weight: 500;
	font-size: 1.4rem;
	letter-spacing: 0.09em;
	color: var(--bio-accent);
}

.bio-recognition__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bio-recognition__row {
	display: grid;
	grid-template-columns: minmax(16rem, 22rem) 1fr;
	gap: 1.6rem;
	padding: 1.2rem 0;
	border-top: 1px solid var(--bio-rule);
}

.bio-recognition__row:first-child {
	border-top: none;
	padding-top: 0;
}

.bio-recognition__ceremony {
	font-family: var(--bio-display);
	font-size: 1.3rem;
	letter-spacing: 0.03em;
	color: var(--bio-ink-soft);
}

.bio-recognition__upcoming {
	display: inline-block;
	margin-left: 0.6rem;
	padding: 0.2rem 0.7rem;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	color: var(--bio-accent);
	border: 1px solid var(--bio-accent);
}

.bio-recognition__albums {
	font-family: var(--bio-serif);
	font-size: 1.7rem;
	line-height: 1.5;
	color: var(--bio-ink);
}

.bio-recognition__albums a {
	color: var(--bio-ink);
	text-decoration-color: var(--bio-accent);
	text-decoration-thickness: 2px;
}

.bio-recognition__albums a:focus-visible {
	outline: 2px solid var(--bio-accent);
	outline-offset: 2px;
}

@media (max-width: 760px) {
	.bio-recognition__row {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}
}

/* ---------- filmstrip ---------- */

.bio-filmstrip-section {
	position: relative;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: var(--bio-stage);
	margin-top: clamp(2rem, 4vw, 4rem);
	padding-block: clamp(3.6rem, 5vw, 5.6rem);
}

.bio-filmstrip-head {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 3rem 2rem;
}

.bio-filmstrip-head h3 {
	margin: 0;
	font-family: var(--bio-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 2.6vw, 3rem);
	color: #fff;
}

.bio-filmstrip {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 3rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(15rem, 1fr);
	gap: 0.3rem;
	overflow-x: auto;
	scrollbar-width: thin;
}

.bio-filmstrip figure {
	margin: 0;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.bio-filmstrip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) brightness(0.92);
	transition: transform 0.35s ease, filter 0.35s ease;
}

.bio-filmstrip figure:hover img,
.bio-filmstrip figure:focus-within img {
	transform: scale(1.045);
	filter: saturate(1) brightness(1);
}

@media (prefers-reduced-motion: reduce) {
	.bio-filmstrip img {
		transition: none;
	}
}

/* ---------- follow ---------- */

.bio-follow {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: clamp(2.8rem, 4vw, 4rem);
	font-family: var(--bio-display);
	font-size: 1.3rem;
	letter-spacing: 0.05em;
}

.bio-follow a {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 1rem 1.8rem;
	color: var(--bio-ink);
	text-decoration: none;
	border: 1px solid var(--bio-rule);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.bio-follow a:hover,
.bio-follow a:focus-visible {
	border-color: var(--bio-accent);
	color: var(--bio-accent);
	outline: none;
}

.bio-follow svg {
	width: 1.6rem;
	height: 1.6rem;
	fill: currentColor;
}

/* ---------- mobile ---------- */

@media (max-width: 760px) {
	.bio-intro__inner {
		grid-template-columns: 1fr;
	}

	.bio-stats {
		flex-direction: column;
	}

	.bio-stat {
		padding: 1.4rem 0;
		margin-right: 0;
		border-right: none;
		border-bottom: 1px solid var(--bio-rule);
	}

	.bio-stat:last-child {
		border-bottom: none;
	}
}
