/* ==========================================================================
   Resume page. Same type, colour and component language as the rest of the
   blog (tokens.css, site.css): white page, hairline rules, pill buttons,
   eyebrow section labels. The text itself lives in build/resume-page.html.
   ========================================================================== */

.wrap--resume {
	max-width: calc(780px + 2 * var(--gutter));
	padding-top: var(--s-7);
}

.resume {
	font-size: 0.9375rem;
	line-height: 1.65;
	letter-spacing: 0;
}

.resume p {
	margin: 0 0 var(--s-3);
	text-wrap: pretty;
}

.resume a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--subject, var(--purple));
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dur-fast) ease;
}

.resume a:hover {
	text-decoration-color: var(--ink);
}

.resume a.btn {
	color: #fff;
	text-decoration: none;
}

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

.resume-head {
	display: grid;
	gap: var(--s-4);
	justify-items: start;
	padding-bottom: var(--s-6);
	border-bottom: 1px solid var(--line);
}

.resume-head h1 {
	margin: 0;
	font-size: var(--fs-h1);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.resume .role {
	margin: 0;
	font-size: var(--fs-lead);
	line-height: 1.45;
	color: var(--ink-2);
}

.resume .contact {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.resume .contact li {
	margin: 0;
}

.resume .contact a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: var(--r-sm);
	background: var(--surface);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background var(--dur-fast) ease;
}

.resume .contact a:hover {
	background: var(--surface-2);
}

.resume .web-note {
	margin: 0;
	font-size: var(--fs-small);
	color: var(--ink-3);
}

.resume-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
}

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

.resume section {
	padding-top: var(--s-7);
}

.resume h2 {
	margin: 0 0 var(--s-4);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--subject-ink, var(--purple-ink));
}

.resume ul {
	margin: 0;
	padding-left: 1.2em;
}

.resume li {
	margin: 0 0 var(--s-2);
	text-wrap: pretty;
}

.resume li::marker {
	color: var(--ink-3);
}

.resume .small {
	font-size: var(--fs-small);
}

/* ---- Skills: labelled rows on a soft panel ------------------------------------ */

.resume .skills {
	padding: var(--s-2) var(--s-5);
	border-radius: var(--r);
	background: var(--surface);
}

.resume .skills p {
	margin: 0;
	padding-block: var(--s-3);
	border-top: 1px solid var(--line);
	font-size: var(--fs-small);
	line-height: 1.6;
	color: var(--ink-2);
}

.resume .skills p:first-child {
	border-top: 0;
}

.resume .skills b {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--ink);
}

/* ---- Experience ----------------------------------------------------------------- */

.resume .job {
	margin: 0;
	padding-block: var(--s-6);
	border-top: 1px solid var(--line);
}

.resume .job:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.resume .job-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--s-1) var(--s-4);
	margin-bottom: var(--s-2);
}

.resume .job-head h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.resume .job-head h3 span {
	font-weight: 500;
	color: var(--ink-2);
}

.resume .when {
	font-size: var(--fs-xs);
	font-variant-numeric: tabular-nums;
	color: var(--ink-3);
	white-space: nowrap;
}

.resume .scope {
	margin-bottom: var(--s-3);
	color: var(--ink-2);
}

.resume .group {
	margin: var(--s-4) 0 var(--s-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--ink-3);
}

/* "More on ..." disclosure. */
.resume details.more {
	margin: var(--s-3) 0 0;
	padding: var(--s-3) var(--s-4);
	border-radius: var(--r);
	background: var(--surface);
}

.resume details.more summary {
	cursor: pointer;
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--ink);
}

.resume details.more[open] summary {
	margin-bottom: var(--s-3);
}

.resume details.more p {
	font-size: var(--fs-small);
	color: var(--ink-2);
}

.resume details.more p:last-child {
	margin-bottom: 0;
}

@media (min-width: 720px) {
	.resume {
		font-size: 1rem;
	}

	.resume .job-head h3 {
		font-size: 1.25rem;
	}
}

@media print {
	.site-header,
	.sheet,
	.site-footer,
	.skip,
	.resume-actions {
		display: none;
	}

	.wrap--resume {
		padding-top: 0;
	}
}
