:root {
	--tone-50: hsl(132 76% 97%);
	--tone-100: hsl(132 76% 93%);
	--tone-200: hsl(132 70% 85%);
	--tone-300: hsl(132 50% 70%);
	--tone-600: hsl(132 76% 24%);
	--tone-700: hsl(132 76% 18%);
	--tone-800: hsl(132 76% 12%);
	--tone-900: hsl(132 76% 7%);
	--tone-muted: hsl(132 28% 28%);
	--accent: hsl(342 76% 42%);
	--accent-light: hsl(342 76% 82%);
	--radius-small: 10px;
	--radius: 12px;
	--radius-large: 16px;
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Mulish", "Segoe UI", Arial, sans-serif;
	--page-width: 72rem;
}

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

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

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

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

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.12;
	color: var(--tone-800);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--tone-600);
	text-underline-offset: 3px;
}

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

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

.page-width {
	width: min(100% - 2.5rem, var(--page-width));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 20;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-small);
	background: var(--tone-800);
	color: var(--tone-50);
}

.skip-link:focus {
	top: 0.5rem;
	color: var(--tone-50);
}

.slim-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--tone-50);
	border-bottom: 1px solid var(--tone-200);
}

.slim-bar-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem;
	min-height: 3.25rem;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--tone-800);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.brand-mark img {
	width: 2.1rem;
	height: 2.1rem;
}

.section-links {
	display: flex;
	justify-content: flex-end;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.section-links::-webkit-scrollbar {
	display: none;
}

.section-links a {
	display: block;
	padding: 0.25rem 0;
	color: var(--tone-700);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.section-links a:hover {
	color: var(--accent);
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	margin: 0;
	padding-left: 1rem;
	border-left: 1px solid var(--tone-200);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.lang-switch a {
	padding: 0.15rem 0.45rem;
	border-radius: var(--radius-small);
	color: var(--tone-muted);
	text-decoration: none;
}

.lang-switch a[aria-current="page"] {
	background: var(--tone-600);
	color: var(--tone-50);
}

.lang-divider {
	color: var(--tone-300);
}

.site-footer {
	padding: 3.5rem 0 2.25rem;
	background: var(--tone-900);
	color: var(--tone-100);
	text-align: center;
}

.footer-contacts {
	display: grid;
	justify-items: center;
	gap: 0.35rem;
}

.footer-contacts img {
	width: 3.5rem;
	height: 3.5rem;
}

.footer-name {
	margin: 0.75rem 0 0.25rem;
	color: var(--tone-50);
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 700;
}

.footer-contacts address {
	font-style: normal;
}

.footer-contacts p {
	margin: 0;
}

.footer-role {
	color: var(--tone-300);
}

.site-footer a {
	color: var(--tone-200);
	overflow-wrap: anywhere;
}

.site-footer a:hover {
	color: var(--tone-50);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid hsl(132 45% 20%);
	color: var(--tone-300);
	font-size: 0.875rem;
}

.footer-legal p {
	margin: 0;
}

@media (max-width: 900px) {
	.slim-bar-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand lang"
			"links links";
		gap: 0 1rem;
		padding-block: 0.4rem 0.2rem;
	}

	.brand-mark {
		grid-area: brand;
	}

	.lang-switch {
		grid-area: lang;
	}

	.section-links {
		grid-area: links;
		justify-content: flex-start;
		padding-top: 0.2rem;
	}
}
