*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--text: #1a1a1a;
	--text-2: #555;
	--text-3: #888;
	--accent: #14b8a6;
	--accent-hover: #0d9488;
	--bg: #fafafa;
	--border: #e5e5e5;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family:
		"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	color: var(--text);
	background: var(--bg);
	line-height: 1.65;
}

main {
	max-width: 640px;
	margin: 0 auto;
	padding: 5rem 1.5rem 6rem;
}

a {
	color: var(--text);
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--accent-hover);
}

/* ---- Header ---- */

.header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid var(--border);
	transition: border-color 0.2s ease;
	flex-shrink: 0;
}

.avatar:hover {
	border-color: var(--accent);
}

h1 {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.tagline {
	color: var(--text-2);
	font-size: 0.9rem;
	margin-top: 0.2rem;
}

/* ---- Sections ---- */

section {
	margin-bottom: 3rem;
}

.section-title {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-3);
	margin-bottom: 1.25rem;
}

/* ---- Intro ---- */

.intro {
	margin-bottom: 3rem;
}

.intro p {
	color: var(--text-2);
	margin-bottom: 0.75rem;
}

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

/* ---- Shared: projects + repos ---- */

.stars {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.75rem;
	color: var(--text-3);
	font-weight: 500;
	vertical-align: middle;
	margin-left: 0.25rem;
}

.stars::before {
	content: "\2605";
	color: #e3b341;
	font-size: 0.8rem;
}

/* ---- Projects (featured) ---- */

.projects {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.projects li {
	line-height: 1.55;
}

.projects a {
	font-weight: 500;
}

.projects .desc {
	color: var(--text-3);
}

.projects .desc::before {
	content: " \2014  ";
}

/* ---- Repos (open source) ---- */

.repos {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.repos li {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: wrap;
	line-height: 1.5;
}

.repos a {
	font-weight: 500;
}

.repos .desc {
	color: var(--text-3);
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repos .desc::before {
	content: " \2014  ";
}

.repos .lang {
	font-size: 0.7rem;
	color: var(--text-3);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 0.1rem 0.4rem;
	white-space: nowrap;
}

/* ---- Timeline ---- */

.timeline {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.timeline li {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.role {
	font-weight: 500;
}

.at {
	color: var(--text-2);
}

.at::before {
	content: "at ";
}

.period {
	color: var(--text-3);
	font-size: 0.8rem;
	margin-left: auto;
}

.throughline {
	margin-top: 1.5rem;
	color: var(--text-2);
	font-style: italic;
}

/* ---- Footer / Social ---- */

footer {
	margin-top: 3rem;
}

.links {
	display: flex;
	gap: 1.5rem;
}

.links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	color: var(--text-2);
	text-decoration: none;
	transition: color 0.15s ease;
}

.links a:hover {
	color: var(--accent-hover);
}

/* ---- 404 ---- */

.error-page {
	text-align: center;
	padding-top: 8rem;
}

.error-page h1 {
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
}

.error-page p {
	color: var(--text-2);
}

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

@media (max-width: 480px) {
	main {
		padding: 3rem 1.25rem 4rem;
	}

	.header {
		gap: 1rem;
	}

	.avatar {
		width: 56px;
		height: 56px;
	}

	h1 {
		font-size: 1.2rem;
	}

	.period {
		margin-left: 0;
		width: 100%;
	}
}
