:root {
	color-scheme: light;
	--ink: #172d31;
	--muted: #4e625d;
	--paper: #f6f3eb;
	--white: #fffcf7;
	--green: #164d3e;
	--leaf: #d9e7c8;
	--rule: #d9d7cb;
	--display: Georgia, 'Times New Roman', serif;
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		sans-serif;
	color: var(--ink);
	background: var(--paper);
}

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

body {
	margin: 0;
}
img {
	display: block;
	max-width: 100%;
}
a {
	color: var(--green);
	text-underline-offset: 0.22em;
}
a:hover {
	text-decoration-thickness: 2px;
}
a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
h1,
h2,
p,
figure,
dl,
dd {
	margin: 0;
}
li,
dd,
p,
h1,
h2 {
	overflow-wrap: anywhere;
}

.frame {
	width: min(calc(100% - 80px), 1192px);
	margin-inline: auto;
}

.skip {
	position: absolute;
	z-index: 2;
	top: 0.5rem;
	left: 0.5rem;
	transform: translateY(-160%);
	padding: 0.5rem 0.8rem;
	background: var(--white);
}

.skip:focus {
	transform: none;
}

.masthead {
	border-bottom: 1px solid var(--rule);
}
.masthead-inner,
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1.5rem;
	min-height: 65px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}
.brand img {
	object-fit: contain;
}
.brand .wordmark {
	filter: brightness(0) saturate(100%) invert(13%) sepia(11%) saturate(1943%) hue-rotate(140deg) brightness(98%)
		contrast(89%);
}

.languages,
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.languages {
	font-size: 0.85rem;
}
.languages a,
.languages span {
	display: block;
	padding-block: 0.45rem;
}
.languages span {
	font-weight: 750;
}
.languages a {
	color: var(--muted);
	text-decoration: none;
}
.languages a:hover {
	text-decoration: underline;
}
.breadcrumbs {
	padding-block: 1rem;
	color: var(--muted);
	font-size: 0.84rem;
}
.breadcrumbs ol {
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 0.65rem;
}
.breadcrumbs li:first-child {
	flex-shrink: 0;
}
.breadcrumbs li + li {
	display: flex;
	gap: 0.65rem;
}
.breadcrumbs li + li::before {
	content: '›';
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(2rem, 5.8vw, 5.5rem);
	padding: clamp(1.8rem, 4.2vw, 4.1rem) 0 clamp(2.45rem, 5.8vw, 5.6rem);
	border-bottom: 1px solid var(--rule);
}

.reviewed {
	color: var(--muted);
	font-size: 0.83rem;
	font-weight: 560;
}
.reviewed time {
	margin-inline-start: 0.35rem;
}
h1,
h2 {
	font-family: var(--display);
	font-weight: 500;
}
h1 {
	margin-top: 0.78rem;
	font-size: clamp(2.45rem, 5vw, 4.8rem);
	line-height: 0.99;
	letter-spacing: -0.045em;
}
.intro {
	max-width: 54ch;
	margin-top: 1.25rem;
	color: var(--muted);
	font-size: clamp(1rem, 1.45vw, 1.18rem);
	line-height: 1.63;
}

.cta {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	min-height: 48px;
	width: fit-content;
	padding: 0.72rem 1.16rem;
	background: var(--green);
	border: 1px solid transparent;
	border-radius: 100px;
	color: var(--white);
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.3;
	text-decoration: none;
}

.cta span {
	font-size: 1.11em;
}
.cta:hover {
	background: var(--ink);
}
.cta:focus-visible {
	outline-color: var(--green);
}
.hero .cta {
	margin-top: 1.55rem;
}

.hero-image {
	position: relative;
	isolation: isolate;
	padding: 0 0 14px 14px;
}

.hero-image::before {
	content: '';
	position: absolute;
	inset: 18px 18px 0 0;
	z-index: -1;
	border-radius: 3px 60px 3px 3px;
	background: var(--leaf);
}

.hero-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1.38;
	object-fit: cover;
	border-radius: 3px 60px 3px 3px;
	background: #ccd8c8;
}

.body-grid {
	display: grid;
	grid-template-columns: minmax(160px, 0.33fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(2rem, 6vw, 5.25rem);
	max-width: 1000px;
	padding-block: clamp(2.1rem, 5vw, 4.7rem);
}

.table-of-contents {
	position: sticky;
	top: 1.5rem;
	padding: 1.25rem 0 1.3rem 1.1rem;
	border-left: 3px solid #9bb782;
}

.table-of-contents h2 {
	font:
		760 0.88rem / 1.4 system-ui,
		-apple-system,
		'Segoe UI',
		sans-serif;
}
.table-of-contents ol {
	display: grid;
	gap: 0.85rem;
	margin: 1rem 0 0;
	padding-inline-start: 1rem;
}
.table-of-contents li {
	padding-inline-start: 0.1rem;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.5;
}
.table-of-contents a {
	text-decoration: none;
}
.table-of-contents a:hover {
	text-decoration: underline;
}

.sections section {
	scroll-margin-top: 1rem;
}
.sections section + section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
}
.sections h2,
.next h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.55rem);
	line-height: 1.13;
	letter-spacing: -0.028em;
}
.sections p,
.sections dd,
.next p {
	margin-top: 0.9rem;
	font-size: 1rem;
	line-height: 1.72;
}
.sections dl {
	margin-top: 1.2rem;
	border-block: 1px solid var(--rule);
}
.sections dl div {
	display: grid;
	grid-template-columns: minmax(7rem, 0.29fr) minmax(0, 1fr);
	align-items: baseline;
	gap: 0.25rem 1.15rem;
	padding: 0.82rem 0;
}
.sections dl div + div {
	border-top: 1px solid var(--rule);
}
.sections dt {
	color: var(--green);
	font-weight: 730;
	font-size: 0.93rem;
}
.sections dd {
	margin-top: 0;
}

.sources {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.8rem;
	padding: 0;
	margin: 0.95rem 0 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.84rem;
	line-height: 1.55;
}
.sources li::before {
	content: '↗';
	margin-inline-end: 0.22rem;
}

.next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem 3rem;
	padding: clamp(1.2rem, 4vw, 2.75rem);
	background: var(--leaf);
	border-radius: 3px 32px 3px 3px;
}
.next p {
	max-width: 55ch;
}
.next .cta {
	flex-shrink: 0;
}
.related {
	margin-block: 1.35rem 3rem;
	color: var(--muted);
	font-size: 0.9rem;
}
.related a {
	display: inline-block;
	margin-inline-start: 0.45rem;
	font-weight: 700;
}
footer {
	border-top: 1px solid var(--rule);
}
.footer-inner {
	color: var(--muted);
	font-size: 0.83rem;
}

@media (max-width: 940px) {
	.frame {
		width: calc(100% - 52px);
	}
	.hero {
		gap: 2rem;
	}
	.hero-image img {
		aspect-ratio: 1.05;
	}
}

@media (max-width: 690px) {
	.frame {
		width: calc(100% - 36px);
	}
	.masthead-inner {
		gap: 0.65rem;
	}
	.languages {
		gap: 0.25rem 0.55rem;
		font-size: 0.8rem;
	}
	.hero,
	.body-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero {
		gap: 1.4rem;
		padding-top: 0.65rem;
	}
	.hero-image {
		max-width: 530px;
	}
	.hero-image img {
		aspect-ratio: 1.65;
		max-height: 320px;
	}
	.table-of-contents {
		position: static;
		padding-block: 0.4rem;
	}
	.table-of-contents ol {
		gap: 0.5rem;
		margin-top: 0.6rem;
	}
	.next {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 385px) {
	.languages {
		gap: 0.25rem 0.45rem;
		font-size: 0.76rem;
	}
	.brand .wordmark {
		width: 81px;
	}
	.sections dl div {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (forced-colors: active) {
	.cta {
		border-color: ButtonText;
	}
}
