* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.6;
	color: #1f1f1f;
	background: #f7f5f0;
}

main {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 48px;
	align-items: start;
}

h1,
h2 {
	line-height: 1.25;
	margin: 0 0 16px;
}

h1 {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	margin-bottom: 24px;
}

h2 {
	font-size: 1.3rem;
	margin-top: 32px;
}

p,
ul {
	margin: 0 0 14px;
}

ul {
	padding-left: 20px;
}

a {
	color: #0b4d7a;
	text-underline-offset: 2px;
}

a:hover {
	color: #083a5b;
}

.profile-figure {
	margin: 0;
	text-align: center;
	position: sticky;
	top: 32px;
}

.profile-figure img {
	width: 100%;
	border-radius: 6px;
	display: block;
}

.profile-figure figcaption {
	margin-top: 8px;
	font-style: italic;
	font-size: 0.9rem;
	color: #555;
}

/* iPad / tablet */
@media (max-width: 820px) {
	main {
		grid-template-columns: 1fr 180px;
		gap: 32px;
		padding: 36px 24px 56px;
	}

	.profile-figure {
		position: sticky;
		top: 24px;
	}

	h2 {
		font-size: 1.15rem;
	}
}

/* Mobile */
@media (max-width: 540px) {
	main {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 24px 16px 48px;
	}

	.profile-figure {
		position: static;
		max-width: 160px;
		margin: 0 auto;
		order: -1;
	}

	.profile-figure figcaption {
		font-size: 0.82rem;
	}

	h2 {
		font-size: 1.1rem;
		margin-top: 24px;
	}

	p, ul {
		font-size: 0.95rem;
	}
}
