/* ===== Theme: Subtle Professional Pink ===== */
:root {
	--bg: #ffffff;
	--surface: #fff7fa; /* soft rose surface */
	--surface-2: #fdf1f6; /* lighter panel */
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* gray-500 */
	--primary: #c86686; /* muted rose */
	--primary-weak: #f5e3ea; /* pale pink */
	--ring: 0 0 0 3px rgba(200, 102, 134, 0.18);
	--radius: 16px;
	--shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
	--maxw: 1100px;
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial,
		sans-serif;
}
img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}
a {
	color: var(--primary);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0.2rem 0 1.2rem;
}
h1 {
	font-size: clamp(1.9rem, 2.5vw, 2.6rem);
}
h2 {
	font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}
h3 {
	font-size: 1.1rem;
}
p {
	margin: 0.25rem 0 0.9rem;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}
.cv-header .cv-title {
    font-weight: 600;
    font-size: 1.08em;
}
.cv-header .cv-date {
    color: var(--muted);
    font-size: 0.98em;
    white-space: nowrap;
}

.artifact {
    color: black;
}

.citation {
    font-size: 0.98rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 2rem;
    border-left: 3px solid #efd7e0;
    padding-left: 1em;
    background: #fdf1f6;
    display: block;
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 22px;
}
.section {
	padding: 48px 12px;
}
.card {
	background: var(--surface);
	border: 1px solid #efd7e0;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
}
.card.soft {
	background: var(--surface-2);
}
.muted {
	color: var(--muted);
}
.divider {
	height: 1px;
	background: #f0e3e8;
	margin: 28px 0;
}

/* ===== Nav ===== */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	border-bottom: 1px solid #f0e3e8;
}
.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.2px;
}
.brand .dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--primary);
	box-shadow: 0 0 0 6px var(--primary-weak);
}
.nav-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.nav-links a {
	color: var(--text);
	font-weight: 600;
}
.nav-links a:hover {
	color: var(--primary);
}
/* mobile stack */
@media (max-width: 900px) {
	.nav-wrap {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===== Collapsible Nav Styles ===== */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nav-toggle .bar {
	width: 24px;
	height: 3px;
	background: var(--primary);
	border-radius: 2px;
	transition: 0.3s;
}

/* animate hamburger into "X" */
.nav-toggle.open .bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* collapsed state */
.nav-collapsed {
	display: flex;
}

/* >>> Mobile behavior <<< */
@media (max-width: 1000px) {
	/* KEEP HEADER HORIZONTAL */
	.nav-wrap {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	/* show hamburger */
	.nav-toggle {
		display: flex;
	}

	/* dropdown menu styling */
	.nav-links {
		position: absolute;
		top: 58px;
		right: 0;
		width: 100%;
		padding: 8px 0;
		flex-direction: column;
		align-items: flex-start;
		background: var(--bg);
		border-bottom: 1px solid #efd7e0;
		gap: 18px;
		padding-left: 24px;
		box-shadow: var(--shadow);
	}

	/* hide menu when collapsed */
	.nav-links.nav-collapsed {
		display: none;
	}
}

/* ===== Hero (used only on Home) ===== */
.hero {
	padding: 72px 12px;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr;
	gap: 28px;
	align-items: center;
}
@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}
.kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.45rem;
}
.lead {
	font-size: 1.08rem;
	color: var(--muted);
}
.actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.95rem;
	border-radius: 12px;
	border: 1px solid #e7cdd7;
	background: #fff;
	transition: 0.18s all ease;
}
.btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}
.btn.primary {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}
.btn.primary:hover {
	box-shadow: 0 10px 22px rgba(200, 102, 134, 0.25);
}

/* ===== Layout helpers ===== */
.grid {
	display: grid;
	gap: 16px;
}
.grid.two {
	grid-template-columns: repeat(2, 1fr);
}
.grid.three {
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
	.grid.two,
	.grid.three {
		grid-template-columns: 1fr;
	}
}

/* ===== Lists / Pills ===== */
.pill {
	display: inline-block;
	font-size: 0.78rem;
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	background: var(--primary-weak);
	color: var(--primary);
	border: 1px solid #e7cdd7;
}

/* ===== Footer ===== */
footer {
	padding: 36px 0 60px;
	text-align: center;
	color: var(--muted);
}
/* focus ring */
.focus-ring:focus {
	outline: none;
	box-shadow: var(--ring);
}
/* print */
@media print {
	.nav,
	.actions .btn {
		display: none !important;
	}
	.card {
		box-shadow: none;
		border-color: #ddd;
	}
}

.pdf-embed-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
}
.pdf-embed-wrap embed {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 900px;
}
@media (max-width: 700px) {
    .pdf-embed-wrap embed {
        min-height: 320px;
    }
}
