/* Resume page: always light, matches the main site's type and pink accent */
:root {
	--bg: #f3f4f6;
	--paper: #ffffff;
	--text: #374151;
	--heading: #030712;
	--muted: #6b7280;
	--line: #e5e7eb;
	--pink: #db2777;
	--pink-text: #be185d;
	--sans: 'Inter', system-ui, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, monospace;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 15px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--heading);
	text-decoration: underline;
	text-decoration-color: var(--pink);
	text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
	color: var(--pink-text);
}

/* Toolbar (screen only) */

.toolbar {
	max-width: 8.5in;
	margin: 0 auto;
	padding: 1.25rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.back {
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.print {
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.55rem 1.2rem;
	border: none;
	border-radius: 999px;
	background: var(--heading);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.print:hover,
.print:focus-visible {
	background: var(--pink);
}

/* The page */

.page {
	max-width: 8.5in;
	margin: 0 auto 3rem;
	padding: 0.65in 0.7in;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.75rem;
}

.head {
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--pink);
}

h1 {
	font-size: 2.3rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: var(--heading);
	margin: 0;
}

.contact {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
}

.sep {
	color: var(--muted);
	margin: 0 0.35rem;
}

.summary {
	margin: 0.9rem 0 0;
}

section {
	margin-top: 1.5rem;
}

h2 {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--pink-text);
	margin: 0 0 0.6rem;
}

h3 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--heading);
	margin: 0;
}

.org {
	font-weight: 400;
	color: var(--muted);
}

.job + .job {
	margin-top: 0.95rem;
}

.job-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 1rem;
}

.when {
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--muted);
	margin: 0;
	white-space: nowrap;
}

.job ul {
	margin: 0.3rem 0 0;
	padding-left: 1.1rem;
}

.job li {
	padding-left: 0.15rem;
}

.job li::marker {
	color: var(--pink);
}

.edu p {
	margin: 0 0 0.3rem;
}

.edu .when {
	margin-left: 0.4rem;
}

.two-col {
	display: grid;
	grid-template-columns: 1fr 2.4fr;
	gap: 0 2rem;
}

.two-col p {
	margin: 0 0 0.3rem;
}

strong {
	font-weight: 600;
	color: var(--heading);
}

/* Small screens */

@media (max-width: 640px) {
	.page {
		padding: 1.5rem 1.25rem;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.two-col {
		grid-template-columns: 1fr;
	}

	.two-col > div + div {
		margin-top: 1.5rem;
	}
}

/* Printing / Save as PDF */

@page {
	size: letter;
	margin: 0.5in;
}

@media print {
	html {
		font-size: 10pt;
	}

	body {
		background: #ffffff;
		line-height: 1.45;
	}

	h1 {
		font-size: 2rem;
	}

	section {
		margin-top: 1.1rem;
	}

	.job + .job {
		margin-top: 0.7rem;
	}

	.toolbar {
		display: none;
	}

	.page {
		max-width: none;
		margin: 0;
		padding: 0;
		border: none;
		border-radius: 0;
	}

	a {
		text-decoration: none;
	}

	.job {
		break-inside: avoid;
	}
}
