*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #fff;
	color: #4a5568;
	font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: #2b6cb0;
}

h1,
h2,
h3 {
	color: #1a202c;
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
}

h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-top: 0;
}

h2 {
	font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

h3 {
	font-size: 1.25rem;
}

p,
ul {
	margin: 0 0 1.25rem;
}

.site-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #1a202c;
}

.site-title {
	color: #1a202c;
	font-size: 1.625rem;
	font-weight: 700;
	text-decoration: none;
}

.site-nav ul {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: #4a5568;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
	color: #1a202c;
}

.hero {
	margin: 0;
}

.hero-img {
	width: 100%;
	height: clamp(280px, 50vw, 760px);
	object-fit: cover;
}

.container {
	max-width: 76rem;
	margin: 0 auto;
	padding: 3.5rem 1.5rem 4rem;
}

.content {
	max-width: 52rem;
}

main.container.content,
.container.content {
	max-width: 52rem;
}

.section-image {
	float: right;
	width: min(40%, 22rem);
	margin: 0.5rem 0 1rem 2rem;
}

.latest {
	clear: both;
	padding-top: 1rem;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 2rem;
}

.card img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 4px;
}

.card h2,
.card h3 {
	margin: 1rem 0 0.25rem;
	font-size: 1.2rem;
}

.card h2 a,
.card h3 a {
	color: #1a202c;
	text-decoration: none;
}

.card-meta {
	color: #718096;
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
}

.with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 4rem;
}

.featured {
	margin: 1.5rem 0 2rem;
}

.content figure {
	margin: 1.5rem 0;
}

.sidebar h2 {
	margin-top: 0;
	font-size: 1.15rem;
	text-transform: uppercase;
}

.sidebar ul {
	padding: 0;
	list-style: none;
}

.sidebar li {
	margin-bottom: 0.75rem;
	line-height: 1.5;
}

.sidebar a {
	color: #2d3748;
	text-decoration: none;
}

.sidebar a[aria-current="page"] {
	font-weight: 600;
}

.site-footer {
	padding: 2rem 1.5rem;
	border-top: 1px solid #e2e8f0;
	color: #718096;
	font-size: 0.875rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 47.99em) {
	.site-header {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0.5rem;
	}

	.section-image {
		float: none;
		width: 100%;
		margin: 1rem 0;
	}

	.with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.container {
		padding: 2rem 1rem 3rem;
	}
}
