@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Theme colors (swapped by JS) --- */

:root {
	--accent: #3b6b8a;
	--accent-hover: #1e4d6b;
	--bg: #f0f2f5;
	--pill-bg: #f0f4f8;
	--pill-border: #dce4ec;
	--divider: #e5eaef;
	--icon-bg: #f0f4f8;
}

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

body {
	padding: 40px 16px;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #374151;
	background: var(--bg);
	transition: background 0.4s;
}

.page {
	background-color: #fff;
	margin: auto;
	max-width: 820px;
	padding: 48px 56px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* --- Name & subtitle --- */

h1 {
	font-size: 2.2rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}

h2 {
	font-size: 0.95rem;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 32px;
	letter-spacing: 0.01em;
}

/* --- Section headings --- */

h3 {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--divider);
	transition: color 0.4s, border-color 0.4s;
}

/* --- Sections --- */

section {
	margin-bottom: 32px;
}

section:last-child {
	margin-bottom: 0;
}

/* --- Profile --- */

section p {
	margin: 0;
	color: #4b5563;
}

/* --- Links --- */

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.3s;
}

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

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

/* --- Experience --- */

.experience {
	margin-top: 20px;
	display: block;
}

.experience:first-child {
	margin-top: 0;
}

section .title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #111827;
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

section .title a {
	font-weight: 600;
	color: #111827;
}

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

section .title span {
	margin-left: auto;
	font-weight: 400;
	font-size: 0.82rem;
	color: #9ca3af;
	white-space: nowrap;
}

.experience p {
	font-size: 0.9rem;
	line-height: 1.65;
	color: #4b5563;
}

.experience p + p {
	margin-top: 8px;
}

.experience p strong {
	color: #374151;
}

.experience p strong a {
	color: #374151;
	font-weight: 600;
}

.experience p strong a:hover {
	color: var(--accent);
}

/* --- Education --- */

section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

section ul li {
	padding: 4px 0;
	font-size: 0.9rem;
	color: #4b5563;
}

/* --- Skills (pill tags) --- */

.skills ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.skills li {
	display: inline-block;
	background: var(--pill-bg);
	color: var(--accent);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 500;
	border: 1px solid var(--pill-border);
	margin: 0;
	transition: background 0.4s, color 0.4s, border-color 0.4s;
}

/* --- Projects & Interests --- */

section ul li a {
	font-weight: 500;
}

/* --- Connect --- */

section:last-child {
	text-align: center;
	padding-top: 8px;
}

section:last-child h3 {
	border-bottom: none;
	text-align: center;
}

section:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--icon-bg);
	color: var(--accent);
	font-size: 1.15rem;
	margin: 0 6px;
	transition: background 0.3s, color 0.3s, transform 0.15s;
	text-decoration: none;
}

section:last-child a:hover {
	background: var(--accent);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

/* --- Print --- */

@media print {
	body {
		background: #fff;
		padding: 0;
		font-size: 11pt;
		line-height: 1.4;
		color: #000;
	}

	.page {
		box-shadow: none;
		padding: 0;
		max-width: 100%;
	}

	h1 {
		font-size: 22pt;
	}

	h3 {
		color: #333;
		border-bottom-color: #ccc;
	}

	section:last-child {
		display: none;
	}

	a {
		color: #000;
	}

	.skills li {
		border-color: #ccc;
		background: #f5f5f5;
		color: #333;
	}
}

/* --- Responsive --- */

@media (max-width: 640px) {
	body {
		padding: 16px 8px;
	}

	.page {
		padding: 28px 24px;
	}

	h1 {
		font-size: 1.7rem;
	}

	section .title {
		flex-direction: column;
		gap: 2px;
	}

	section .title span {
		margin-left: 0;
	}
}
