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

html {
	font-size: 16px;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

body {
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		sans-serif;
	font-weight: 400;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #1a1a1a;
}

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

a:hover {
	text-decoration: underline;
}

.resume {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 2rem;
	background-color: #fff;
	position: relative;
}

.download-pdf {
	font-size: 0.75rem;
	position: absolute;
	right: 8px;
	top: 8px;
}

/* Header */

.header {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
}

.header-info {
	flex: 1;
	min-width: 0;
}

.header-name-image {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.header-photo {
	flex-shrink: 0;
}

.profile-photo {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	border-radius: 50%;
	border: 1px solid #e5e5e5;
	background-color: #f5f5f5;
}

.name {
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.title {
	margin-top: 0.25rem;
	font-size: 1rem;
	color: #666;
}

.contact {
	list-style: none;
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 0.875rem;
	color: #444;
}

.contact-label {
	color: #888;
	margin-right: 0.25rem;
}

.contact a {
	color: #1a1a1a;
}

/* Sections */

.section {
	margin-bottom: 2rem;
}

.section-title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #666;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 1rem;
}

.section-content p {
	margin-bottom: 0.75rem;
}

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

/* Entries (work, projects, education) */

.entry {
	margin-bottom: 1.5rem;
}

.entry:last-child {
	margin-bottom: 0;
}

.entry-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.entry-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.entry-title a {
	color: inherit;
}

.entry-subtitle {
	font-size: 0.875rem;
	color: #666;
	margin-top: 0.125rem;
}

.entry-date {
	font-size: 0.8125rem;
	color: #888;
	white-space: nowrap;
	flex-shrink: 0;
}

.entry-description {
	font-size: 0.9375rem;
	color: #333;
}

.entry-list {
	margin-top: 0.375rem;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	color: #333;
}

.entry-list li {
	margin-bottom: 0.25rem;
}

.entry-list li:last-child {
	margin-bottom: 0;
}

/* Skills */

.skill-group {
	margin-bottom: 1.25rem;
	padding-right: 1rem;
}

.skill-group:last-child {
	margin-bottom: 0;
}

.skill-group-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 0.5rem;
}

.skill-list {
	list-style: none;
}

.skill-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.375rem 0;
	font-size: 0.9375rem;
}

.skill-name {
	color: #333;
}

.skill-rating {
	display: flex;
	gap: 0.375rem;
}

.dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid #1a1a1a;
	background-color: transparent;
}

.dot.filled {
	background-color: #1a1a1a;
}

/* Other */

.other-list {
	list-style: none;
	font-size: 0.9375rem;
	color: #333;
}

.other-list li {
	margin-bottom: 0.5rem;
}

.other-list li:last-child {
	margin-bottom: 0;
}

.other-list strong {
	font-weight: 500;
	color: #444;
}

/* Print */

@media print {
	body {
		background-color: #fff;
	}

	.resume {
		max-width: none;
		padding: 0;
		margin: 0;
	}

	a {
		text-decoration: none;
	}

	.entry {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.dot.filled {
		background-color: #1a1a1a;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

@media (max-width: 480px) {
	.resume {
		padding: 2rem 1.25rem;
	}

	.header-inner {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
	}

	.contact {
		justify-content: center;
	}

	.name {
		font-size: 1.625rem;
	}

	.entry-header {
		flex-direction: column;
		gap: 0.25rem;
	}

	.entry-date {
		white-space: normal;
	}
}
