/**
 * Author archive.
 *
 * Loaded for /author/<slug>/ only, after afrobeatswire.css and brand.css.
 * Everything is namespaced `afw-` or scoped to `body.author`, and it reuses
 * the theme's own tokens (--space-*, --font-*, --grid-*, --afw-purple) rather
 * than inventing a second scale.
 */

/* ------------------------------------------------------------------ *
 * Corrections to inherited rules
 * ------------------------------------------------------------------ */

/*
 * Every card on this page is by the writer named at the top of it, so the
 * byline on each one is the single fact the reader already has. Removing it
 * also takes the boxed pill out of the tagline row, which lets the category
 * tag sit on its own where it belongs.
 */
body.author .c-card__byline {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Masthead
 * ------------------------------------------------------------------ */

.afw-desk {
	/* .c-section's 64px top margin is meant for a section landing under other
	   sections. This is the first thing on the page. */
	margin-top: var(--space-36, 36px);
}

.afw-desk__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-32, 32px);
	align-items: start;
	padding: var(--space-32, 32px);
	border-radius: var(--border-radius, 4px);
	background: rgba(255, 255, 255, .04);
}

.afw-desk__portrait {
	position: relative;
	flex: 0 0 auto;
}

.afw-desk__avatar {
	display: block;
	width: 132px;
	height: 132px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--afw-purple, #7C5CFC);
}

.afw-desk__ident {
	min-width: 0;
}

.afw-desk__kicker {
	margin: 0 0 var(--space-8, 8px);
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-0, 12px);
	letter-spacing: var(--font-letter-spacing-small, 1.2px);
	text-transform: uppercase;
	color: var(--afw-purple, #7C5CFC);
}

.afw-desk__name {
	margin: 0;
	font-family: var(--font-family-serif);
	font-weight: 400;
	font-size: clamp(32px, 4.4vw, 46px);
	line-height: 1.1;
	letter-spacing: var(--font-letter-spacing-negative, -.5px);
}

.afw-desk__bio {
	/*
	 * Was rendering inside .c-content, which centres its text — so the bio was
	 * centred under a left-aligned name. Stated explicitly here because the
	 * alignment of this line is the fault this template was written to fix.
	 */
	text-align: left;
	margin: var(--space-16, 16px) 0 0;
	max-width: 62ch;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-3, 18px);
	line-height: 1.55;
	opacity: .82;
}

/* ---- beats ---- */

.afw-desk__beats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8, 8px) var(--space-12, 12px);
	/* This row now sits directly under the bio, so it carries the rule that
	   used to divide the bio from the stat strip above it. */
	margin-top: var(--space-24, 24px);
	padding-top: var(--space-24, 24px);
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.afw-desk__beatsLabel {
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-0, 12px);
	letter-spacing: var(--font-letter-spacing-small, 1.2px);
	text-transform: uppercase;
	opacity: .5;
}

.afw-desk__beatList {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.afw-desk__beatList a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8, 8px);
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-1, 14px);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}

.afw-desk__beatList a:is(:hover, :focus-visible) {
	border-color: var(--afw-purple, #7C5CFC);
	background: rgba(124, 92, 252, .14);
}

.afw-desk__beatCount {
	font-variant-numeric: tabular-nums;
	font-size: var(--font-size-scale-0, 12px);
	opacity: .55;
}

.afw-desk__follow {
	margin: var(--space-20, 20px) 0 0;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-1, 14px);
}

.afw-desk__follow a {
	color: var(--afw-purple, #7C5CFC);
	text-decoration: none;
}

.afw-desk__follow a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.afw-desk__empty {
	margin: var(--space-40, 40px) 0;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-3, 18px);
	opacity: .7;
}

.afw-desk__sectionHead {
	margin-top: var(--space-48, 48px);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* ------------------------------------------------------------------ *
 * Lead story
 * ------------------------------------------------------------------ */

.afw-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--space-32, 32px);
	align-items: center;
	margin-bottom: var(--space-48, 48px);
}

.afw-lead__media {
	display: block;
	overflow: hidden;
	border-radius: var(--border-radius, 4px);
	/*
	 * Feature images on this site are whatever the source published: 16:9
	 * banners, square artwork, portrait phone shots. A fixed ratio plus cover
	 * is what stops the lead block changing height per story.
	 */
	aspect-ratio: 16 / 10;
	background: rgba(255, 255, 255, .05);
}

.afw-lead__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.afw-lead:hover .afw-lead__image {
	transform: scale(1.03);
}

.afw-lead__tagline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-12, 12px);
	margin-bottom: var(--space-12, 12px);
}

.afw-lead__headline {
	margin: 0;
	font-family: var(--font-family-serif);
	font-weight: 400;
	font-size: clamp(26px, 3.2vw, 38px);
	line-height: 1.14;
	letter-spacing: var(--font-letter-spacing-negative, -.5px);
	text-wrap: balance;
}

.afw-lead__headline a {
	color: inherit;
	text-decoration: none;
}

.afw-lead__headline a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.afw-lead__standfirst {
	margin: var(--space-16, 16px) 0 0;
	max-width: 52ch;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-2, 16px);
	line-height: 1.55;
	opacity: .78;
}

.afw-lead__read {
	margin: var(--space-16, 16px) 0 0;
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-0, 12px);
	letter-spacing: var(--font-letter-spacing-small, 1.2px);
	text-transform: uppercase;
	opacity: .5;
}

/* ------------------------------------------------------------------ *
 * The rest of the newsroom
 * ------------------------------------------------------------------ */

.afw-newsroom__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-16, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.afw-newsroom__link {
	display: flex;
	align-items: center;
	gap: var(--space-16, 16px);
	height: 100%;
	padding: var(--space-16, 16px);
	border-radius: var(--border-radius, 4px);
	background: rgba(255, 255, 255, .04);
	color: inherit;
	text-decoration: none;
	transition: background-color .15s ease;
}

.afw-newsroom__link:is(:hover, :focus-visible) {
	background: rgba(255, 255, 255, .08);
}

.afw-newsroom__avatar {
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: var(--afw-purple, #7C5CFC);
}

.afw-newsroom__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.afw-newsroom__name {
	font-family: var(--font-family-serif);
	font-size: var(--font-size-scale-3, 18px);
	line-height: 1.25;
}

.afw-newsroom__role {
	font-family: var(--font-family-sansSerif);
	font-size: var(--font-size-scale-0, 12px);
	letter-spacing: var(--font-letter-spacing-small, 1.2px);
	text-transform: uppercase;
	opacity: .5;
}

/* ------------------------------------------------------------------ *
 * Newsletter band
 * ------------------------------------------------------------------ */

.afw-desk__cta {
	margin-top: var(--space-64, 64px);
}

/* ------------------------------------------------------------------ *
 * Narrow
 * ------------------------------------------------------------------ */

@media (max-width: 61.24em) {
	.afw-lead {
		/* The picture goes back above the text. Side by side below ~980px the
		   headline has fewer than 30 characters a line. */
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-20, 20px);
	}
}

@media (max-width: 46.24em) {
	.afw-desk__head {
		/*
		 * Portrait over name, both centred, because a 132px circle beside a
		 * 40-character measure leaves the bio about 18 characters wide.
		 */
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
		gap: var(--space-20, 20px);
		padding: var(--space-24, 24px) var(--space-20, 20px);
	}

	.afw-desk__avatar {
		width: 104px;
		height: 104px;
	}

	.afw-desk__bio {
		/* Overrides the left alignment set above; on this width the whole
		   block is centred, so the bio follows the name rather than fighting
		   it. This is the one case where centring is deliberate. */
		text-align: center;
	}

	.afw-desk__beats {
		justify-content: center;
	}

	.afw-lead__media {
		aspect-ratio: 3 / 2;
	}
}
