:root {
	--paper: hsl(48 62% 96%);
	--card: hsl(48 62% 99%);
	--soft: hsl(48 62% 90%);
	--line: hsl(48 32% 80%);
	--ink: hsl(48 30% 13%);
	--muted: hsl(48 20% 32%);
	--accent: hsl(48 62% 30%);
	--accent-deep: hsl(48 62% 21%);
	--on-accent: hsl(48 62% 97%);
	--radius: 12px;
	--head: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--body: "Cabin", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root:lang(uk) {
	--head: Georgia, "PT Serif", "Noto Serif", "DejaVu Serif", "Times New Roman", serif;
	--body: system-ui, "Segoe UI", Roboto, "Noto Sans", "PT Sans", "DejaVu Sans", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
}

h1,
h2,
h3 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 0.75rem;
}

h1 {
	font-size: clamp(1.75rem, 5vw, 2.4rem);
}

h2 {
	font-size: clamp(1.35rem, 3.6vw, 1.7rem);
}

h3 {
	font-size: 1.1rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-deep);
}

a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

img,
svg {
	display: block;
	max-width: 100%;
}

.column {
	width: 100%;
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.masthead {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.masthead .column {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.05rem;
}

.brand svg {
	width: 40px;
	height: 40px;
	flex: none;
}

.masthead nav {
	flex: 1 1 auto;
}

.masthead nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.1rem;
}

.masthead nav a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 600;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
	color: var(--accent-deep);
	text-decoration: underline;
}

.trail {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-left: auto;
}

.langs {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
	white-space: nowrap;
}

.langs a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 600;
	padding: 0.15rem 0.3rem;
	border-radius: 6px;
}

.langs a[aria-current="page"] {
	color: var(--on-accent);
	background: var(--accent);
}

.pill {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	border: 2px solid var(--accent);
}

.pill:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: var(--on-accent);
}

.pill.quiet {
	background: transparent;
	color: var(--accent-deep);
}

.pill.quiet:hover {
	background: var(--soft);
	color: var(--accent-deep);
}

main section {
	padding: 3.5rem 0;
}

main section + section {
	border-top: 1px solid var(--line);
}

.lead {
	font-size: 1.15rem;
	color: var(--muted);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.tiles {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
}

.tiles li {
	background: var(--card);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.tiles img {
	width: 40px;
	height: 40px;
	margin-bottom: 0.75rem;
}

.tiles h3 {
	margin-bottom: 0.35rem;
}

.tiles p {
	margin: 0;
	color: var(--muted);
}

.steps {
	list-style: none;
	counter-reset: step;
	margin: 1.5rem 0 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 1.25rem 3.25rem;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--soft);
	color: var(--accent-deep);
	font-family: var(--head);
	font-weight: 700;
}

.steps h3 {
	margin-bottom: 0.2rem;
}

.steps p {
	margin: 0;
	color: var(--muted);
}

.callout {
	background: var(--accent);
	color: var(--on-accent);
	border-radius: 16px;
	padding: 2rem 1.5rem;
}

.callout h2,
.callout p {
	color: var(--on-accent);
}

.callout .pill {
	background: var(--on-accent);
	color: var(--accent-deep);
	border-color: var(--on-accent);
}

.callout .pill:hover {
	background: var(--soft);
	border-color: var(--soft);
	color: var(--accent-deep);
}

.callout .pill.quiet {
	background: transparent;
	color: var(--on-accent);
}

.callout .pill.quiet:hover {
	background: var(--accent-deep);
	color: var(--on-accent);
}

.prose h2 {
	margin-top: 2.25rem;
}

.prose ul {
	padding-left: 1.25rem;
	margin: 0 0 1rem;
}

.prose li {
	margin-bottom: 0.4rem;
}

.note {
	color: var(--muted);
	font-size: 0.95rem;
}

.sitefoot {
	background: var(--ink);
	color: hsl(48 45% 90%);
	margin-top: 2rem;
	padding: 2.75rem 0 1.5rem;
	font-size: 0.95rem;
}

.sitefoot .grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1.75rem;
}

.sitefoot h2 {
	font-size: 1rem;
	color: hsl(48 62% 80%);
	margin-bottom: 0.6rem;
}

.sitefoot p,
.sitefoot address,
.sitefoot li {
	color: hsl(48 45% 90%);
	font-style: normal;
	margin: 0 0 0.5rem;
}

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

.sitefoot a {
	color: hsl(48 62% 84%);
	overflow-wrap: anywhere;
}

.sitefoot a:hover {
	color: var(--on-accent);
}

.sitefoot a:focus-visible {
	outline-color: hsl(48 62% 70%);
}

.sitefoot .copy {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid hsl(48 20% 26%);
	color: hsl(48 30% 76%);
}

@media (max-width: 560px) {
	body {
		font-size: 1rem;
	}

	.masthead nav {
		order: 3;
		flex-basis: 100%;
	}

	.trail {
		gap: 0.6rem;
	}

	.trail .pill {
		padding: 0.45rem 0.8rem;
		font-size: 0.9rem;
	}

	main section {
		padding: 2.5rem 0;
	}

	.callout {
		padding: 1.5rem 1.15rem;
	}
}
