/**
 * PU.nl — author profile preview.
 *
 * Scoped to .pu-author. Colours come from the theme's HSL tokens, so the light
 * and dark palettes are both covered without a second set of rules.
 */

.pu-author {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

/* Profile head ------------------------------------------------------------ */

.pu-author__head {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: start;
	padding: 1.75rem;
	border: 1px solid hsl(var(--accent));
	border-radius: 0.75rem;
	background: hsl(var(--background-light, var(--accent)) / 0.35);
}

.pu-author__avatar {
	width: 160px;
	height: 160px;
	overflow: hidden;
	border-radius: 0.75rem;
	background: hsl(var(--accent));
	border: 2px solid hsl(var(--link));
}

.pu-author__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pu-author__intro {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}

.pu-author__role {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--link));
}

.pu-author__name {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.pu-author__bio {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: hsl(var(--foreground) / 0.9);
}

.pu-author__bio-long {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: hsl(var(--foreground) / 0.75);
}

.pu-author__bio-long p {
	margin: 0 0 0.75rem;
}

.pu-author__bio-long p:last-child {
	margin-bottom: 0;
}

/* Socials ----------------------------------------------------------------- */

.pu-author__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.pu-author__socials a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 1px solid hsl(var(--link));
	border-radius: 999px;
	color: hsl(var(--link));
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pu-author__socials a:hover {
	background: hsl(var(--link));
	color: hsl(var(--primary-foreground));
	text-decoration: none;
}

/* Stats ------------------------------------------------------------------- */

.pu-author__stats {
	display: flex;
	gap: 1.75rem;
	margin: 0;
}

.pu-author__stats div {
	text-align: right;
}

.pu-author__stats dt {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: hsl(var(--link));
	font-variant-numeric: tabular-nums;
}

.pu-author__stats dd {
	margin: 0.25rem 0 0;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: hsl(var(--foreground) / 0.65);
}

/* Expertise / education --------------------------------------------------- */

.pu-author__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.pu-author__fact {
	padding: 1.25rem 1.5rem;
	border: 1px solid hsl(var(--accent));
	border-left: 3px solid hsl(var(--link));
	border-radius: 0.5rem;
}

.pu-author__fact-title {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.7);
}

.pu-author__fact-body {
	font-size: 0.9375rem;
	line-height: 1.65;
}

.pu-author__fact-body p {
	margin: 0 0 0.5rem;
}

.pu-author__fact-body p:last-child {
	margin-bottom: 0;
}

/* Rubrieken --------------------------------------------------------------- */

.pu-author-rubriek__sub {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	color: hsl(var(--foreground) / 0.65);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1023px) {
	.pu-author__head {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.pu-author__avatar {
		width: 120px;
		height: 120px;
	}

	.pu-author__stats {
		grid-column: 1 / -1;
		justify-content: flex-start;
		padding-top: 1rem;
		border-top: 1px solid hsl(var(--accent));
	}

	.pu-author__stats div {
		text-align: left;
	}
}

@media (max-width: 639px) {
	.pu-author__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
		padding: 1.25rem;
	}

	.pu-author__stats {
		gap: 1.25rem;
	}

	.pu-author__stats dt {
		font-size: 1.375rem;
	}
}
