:root {
	--bg: #0d1117;
	--surface: #161b22;
	--fg: #e6edf3;
	--accent: #22d3ee;
	--accent-hover: #67e8f9;
	--muted: #8b949e;
	--border: #21262d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
body {
	background: var(--bg);
	color: var(--fg);
	font-family: 'IBM Plex Sans', system-ui, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 48rem;
	margin: 0 auto;
	padding: 3rem 2rem;
}

/* ---------- home ---------- */
header.home { margin-bottom: 4rem; }
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 2rem;
}
.avatar {
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	border: 4px solid var(--accent);
	box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.35);
	margin-bottom: 1.5rem;
	background: var(--surface);
	object-fit: cover;
	display: block;
}
h1.name {
	font-family: 'Newsreader', serif;
	font-weight: 700;
	font-size: 3rem;
	margin: 0 0 0.5rem;
}
.tagline {
	font-size: 1.25rem;
	color: var(--muted);
	margin: 0;
}
nav.links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	max-width: 24rem;
	margin: 0 auto;
}
nav.links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 0.5rem;
	background: var(--surface);
	color: var(--fg);
	border: 1px solid var(--border);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
nav.links a:hover {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
nav.links svg { width: 1.125rem; height: 1.125rem; }
hr.divider {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 0 0 3rem;
}
.sections { display: flex; flex-direction: column; gap: 2rem; }
article.section-card h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.875rem;
	margin: 0 0 0.5rem;
}
article.section-card h2 a {
	color: var(--fg);
	text-decoration: none;
	transition: color 0.15s ease;
}
article.section-card h2 a:hover { color: var(--accent); }
article.section-card p {
	font-size: 1.0625rem;
	color: var(--muted);
	margin: 0;
}

/* ---------- sub-pages ---------- */
a.back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	text-decoration: none;
	transition: opacity 0.15s ease;
	margin-bottom: 2rem;
}
a.back:hover { opacity: 0.8; }
a.back svg { width: 1.125rem; height: 1.125rem; }
header.page { margin-bottom: 3rem; }
h1.page-title {
	font-family: 'Newsreader', serif;
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 1rem;
	color: var(--fg);
}
.meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: 0.875rem;
}
.meta svg { width: 1rem; height: 1rem; }
.prose p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fg);
	margin: 0 0 1.25rem;
}
.prose h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.5rem;
	color: var(--fg);
	margin: 2rem 0 0.75rem;
}
.prose ul {
	list-style: disc outside;
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}
.prose li {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fg);
	margin-bottom: 0.5rem;
}
.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.prose a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
p.empty { color: var(--muted); font-style: italic; }
.page-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}
.page-footer p {
	font-size: 0.875rem;
	font-style: italic;
	color: var(--muted);
	margin: 0;
}

/* ---------- video embeds ---------- */
.video-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
}
.video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.video-wrap-portrait {
	display: flex;
	justify-content: center;
}
.video-wrap-portrait iframe,
.video-wrap-portrait video {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
}
.video-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
p.video-caption {
	font-size: 0.9375rem;
	color: var(--muted);
	margin: 0;
}

/* ---------- site footer ---------- */
footer.site {
	padding: 2rem;
	border-top: 1px solid var(--border);
}
footer.site .inner {
	max-width: 48rem;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--muted);
}
footer.site nav { display: flex; gap: 1.5rem; }
footer.site a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
footer.site a:hover { color: var(--accent); }

@media (min-width: 768px) {
	main { padding: 4rem 2rem; }
	h1.name { font-size: 3.75rem; }
	.avatar { width: 9rem; height: 9rem; font-size: 3rem; }
	nav.links { display: flex; justify-content: center; max-width: none; }
	nav.links a { width: auto; }
	article.section-card h2 { font-size: 2.25rem; }
}
@media (max-width: 640px) {
	footer.site .inner { flex-direction: column; text-align: center; }
}
