* {
	box-sizing: border-box;
}

body {
	font-size: 18px;
	background-color: #eeeeee;
	color: #444;
	max-width: 1000px;
	margin: 60px auto;
	padding: 0 20px;
}

h1 {
	margin: 0 0 8px 0;
	font-size: 2em;
}

h2 {
	margin: 0 0 10px 0;
	font-size: 1.2em;
}

h3 {
	margin: 6px 0 4px 0;
	font-size: 1em;
}

p {
	margin: 0 0 8px 0;
	line-height: 1.4;
}

a {
	line-height: 1.4;
	text-decoration: none;
}

/* ── Header: headshot left, about right ── */
#header {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 28px;
	margin-bottom: 20px;
}

#headshot {
	flex-shrink: 0;
	width: auto;
	height: 260px;
	object-fit: cover;
}

#about {
	flex: 1;
}

#projects {
	margin-bottom: 24px;
}

#project-cards {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
}

.card {
	flex: 1 1 0;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.3s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card:hover {
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.card-img-icon {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #eeeeee;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-img-icon img {
	width: 50%;
}

.card .container {
	padding: 6px 12px 10px;
	flex: 1;
}

#links {
	display: flex;
	align-items: center;
	gap: 4px;
}

#links h2 {
	margin-right: 16px;
	margin-bottom: 0;
}

.icon {
	vertical-align: middle;
}
