/* Chloe resume page — shares the warm brand palette from assets/css/style.css */

:root {
	--cream: #faf5ee;
	--cream-2: #f2ead9;
	--rust: #c4623a;
	--rust-dark: #9c4b2b;
	--ink: #3a2e26;
	--muted: #82736a;
	--line: #e9ddcc;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream-2);
	color: var(--ink);
	font-family: "Nunito Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	line-height: 1.7;
	font-size: 16px;
}

a {
	color: var(--rust-dark);
}

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

img {
	max-width: 100%;
}

.serif {
	font-family: "Fraunces", "Noto Serif TC", serif;
}

/* Top bar (screen only) */

.resume-topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(250, 245, 238, .95);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}

.resume-topbar-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.resume-back {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.resume-back:hover {
	color: var(--rust);
}

.resume-print-btn {
	background: var(--rust);
	color: #fff;
	border: none;
	padding: 11px 24px;
	border-radius: 24px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.resume-print-btn:hover {
	background: var(--rust-dark);
}

/* Sheet layout */

.resume-page {
	padding: 40px 16px 80px;
}

.resume-sheet {
	max-width: 794px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px -30px rgba(58, 46, 38, .35);
	padding: 48px 56px;
}

/* Header */

.resume-header {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 2px solid var(--line);
}

.resume-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 4px solid var(--cream-2);
}

.resume-heading h1 {
	margin: 0 0 4px;
	font-size: 28px;
	font-weight: 600;
}

.resume-name-en {
	color: var(--rust-dark);
	font-size: 18px;
	font-weight: 600;
}

.resume-edu {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: var(--muted);
}

.resume-summary {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: var(--ink);
	max-width: 620px;
}

.resume-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: 13.5px;
}

.resume-contact li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.resume-contact i {
	color: var(--rust);
	width: 14px;
	text-align: center;
}

.resume-contact a {
	text-decoration: none;
}

.resume-contact a:hover {
	text-decoration: underline;
}

/* Sections */

.resume-sheet section {
	margin-bottom: 32px;
}

.resume-sheet section:last-child {
	margin-bottom: 0;
}

.resume-section-title {
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 18px;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.resume-section-title::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rust);
	flex-shrink: 0;
}

/* Work experience */

.resume-job {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

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

.resume-job:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.resume-job-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 4px;
}

.resume-job-head h3 {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--ink);
}

.resume-job-company {
	font-weight: 400;
	color: var(--muted);
}

.resume-date {
	margin: 0;
	font-size: 13px;
	color: var(--rust-dark);
	font-weight: 700;
	white-space: nowrap;
}

.resume-stack {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: var(--muted);
	font-style: italic;
}

.resume-bullets {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	color: var(--ink);
}

.resume-bullets li {
	margin-bottom: 4px;
}

.resume-bullets li:last-child {
	margin-bottom: 0;
}

/* Featured projects */

.resume-project {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

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

.resume-project:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.resume-project-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.resume-project-stack {
	font-weight: 400;
	font-size: 12.5px;
	color: var(--muted);
	font-style: italic;
}

.resume-project p {
	margin: 0;
	font-size: 14px;
	color: var(--ink);
}

/* Skills */

.resume-skills-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 32px;
}

.resume-skills-grid h3 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--rust-dark);
}

.resume-skills-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.resume-skills-grid li {
	background: var(--cream-2);
	color: var(--ink);
	font-size: 12.5px;
	padding: 4px 12px;
	border-radius: 14px;
}

.resume-skill-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--muted);
	font-style: italic;
}

/* Overseas experience */

.resume-overseas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.resume-overseas li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.resume-overseas li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.resume-overseas time {
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

/* Responsive (screen) */

@media screen and (max-width: 640px) {
	.resume-topbar-inner {
		padding: 14px 16px;
	}

	.resume-page {
		padding: 24px 0 56px;
	}

	.resume-sheet {
		border-radius: 0;
		padding: 32px 20px;
	}

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

	.resume-contact {
		justify-content: center;
	}

	.resume-job-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.resume-skills-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.resume-overseas li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
}

/* Print */

@media print {
	@page {
		size: A4;
		margin: 14mm 16mm;
	}

	.resume-topbar {
		display: none;
	}

	html, body {
		background: #fff;
	}

	.resume-page {
		padding: 0;
	}

	.resume-sheet {
		max-width: 100%;
		margin: 0;
		padding: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.resume-section-title::before {
		background: #000;
	}

	a {
		color: var(--ink);
		text-decoration: none;
	}

	.resume-header,
	.resume-job,
	.resume-project,
	.resume-skills-grid,
	.resume-overseas li {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.resume-job,
	.resume-project {
		border-bottom: none;
	}

	.resume-overseas li,
	section {
		border-bottom: none;
	}
}
