:root {
	--canvas: #fdfdfc;
	--surface: #fff;
	--surface-soft: #f6f5f4;
	--ink: #111;
	--ink-strong: rgb(0 0 0 / 85%);
	--ink-body: rgb(0 0 0 / 80%);
	--ink-secondary: rgb(0 0 0 / 65%);
	--ink-muted: rgb(0 0 0 / 60%);
	--ink-faint: rgb(0 0 0 / 54%);
	--hairline: rgb(0 0 0 / 8%);
	--hairline-soft: rgb(0 0 0 / 6%);
	--brand: #0047ab;
	--brand-hover: #003b8f;
	--brand-rgb: 0 71 171;
	--focus: var(--brand);
	--accent: var(--brand);
	--green: #22c55e;
	--font-body:
		"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Arial, sans-serif;
	--reading-column: 36rem;

	/* Three sizes only: small (labels, meta, descriptions), base (reading text, titles), large (h1). */
	--text-sm: 13px;
	--text-base: 16px;
	--text-lg: 32px;

	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;

	--tracking-tight: -0.01em;
	--tracking-wide: 0.03em;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--canvas);
}

body {
	margin: 0;
	color: var(--ink-body);
	background: var(--canvas);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-regular);
	line-height: 1.657;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

::selection {
	color: var(--ink);
	background: #ededed;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.page {
	width: min(100%, calc(var(--reading-column) + 48px));
	margin: 0 auto;
	padding: 60px 24px 48px;
}

h1 {
	margin: 0;
	color: var(--ink-strong);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	line-height: 1.15;
	letter-spacing: var(--tracking-tight);
}

.section {
	margin-top: 52px;
}

.section > h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: rgb(0 0 0 / 78%);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	line-height: 1.2;
}

.section > h2::after {
	content: "";
	height: 1px;
	flex: 1;
	background: var(--hairline);
}

@media (max-width: 640px) {
	.page {
		padding: 36px 18px 32px;
	}

	.section {
		margin-top: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}

.profile-hero {
	display: grid;
	gap: 28px;
}

.role {
	margin: 10px 0 0;
	color: var(--ink-secondary);
	font-size: var(--text-base);
	line-height: 1.45;
}

.role strong {
	color: var(--ink-strong);
	font-weight: var(--weight-medium);
}

.socials {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 18px;
}

.socials a {
	min-height: 34px;
	padding: 7px 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-secondary);
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 999px;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	transition:
		border-color 150ms ease,
		color 150ms ease,
		transform 150ms ease;
}

.list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ink-secondary);
	font-size: var(--text-sm);
	line-height: 1.5;
}

.list li + li {
	margin-top: 10px;
}

.list svg {
	margin-right: 6px;
	vertical-align: -1px;
}

.list a {
	margin-right: 6px;
	color: var(--ink-strong);
	font-weight: var(--weight-semibold);
}

@media (hover: hover) {
	.socials a:hover {
		color: var(--ink-body);
		border-color: var(--hairline);
		transform: translateY(-1px);
	}

	.list a:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

@media (max-width: 640px) {
	.profile-hero {
		gap: 18px;
	}

	.role {
		margin-top: 7px;
		font-size: var(--text-sm);
	}

	.socials {
		margin-top: 0;
	}
}

/* Hover link preview (filled by the script in index.html). */
.og {
	position: fixed;
	z-index: 100;
	width: 300px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
	pointer-events: none;
}

.og-img {
	display: block;
	width: 100%;
	aspect-ratio: 1.91;
	object-fit: cover;
	border-bottom: 1px solid var(--hairline-soft);
}

.og-text {
	display: grid;
	gap: 2px;
	padding: 10px 12px;
	color: var(--ink-secondary);
	font-size: var(--text-sm);
	line-height: 1.4;
}

.og-text b {
	color: var(--ink-strong);
	font-weight: var(--weight-semibold);
}

.og-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.og-host {
	color: var(--ink-faint);
}

.og-line {
	height: 10px;
	margin: 12px 12px 0;
	border-radius: 4px;
}

.og-line-short {
	width: 45%;
	margin-bottom: 12px;
}

.shimmer {
	background: linear-gradient(90deg, var(--surface-soft) 25%, #ebeae8 50%, var(--surface-soft) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shimmer {
		animation: none;
	}
}
