:root {
	--base: hsl(5, 55%, 38%);
	--baseDeep: hsl(5, 45%, 22%);
	--accent: hsl(335, 55%, 40%);
	--accentLight: hsl(335, 60%, 74%);
	--accentPale: hsl(335, 45%, 95%);
	--night: hsl(5, 28%, 13%);
	--nightLine: hsl(5, 18%, 24%);
	--paper: hsl(5, 24%, 97%);
	--card: hsl(0, 0%, 100%);
	--ink: hsl(5, 22%, 13%);
	--inkSoft: hsl(5, 10%, 34%);
	--rule: hsl(5, 16%, 86%);
	--onDark: hsl(5, 25%, 95%);
	--onDarkSoft: hsl(5, 14%, 76%);
	--sideWidth: 15.5rem;
	--fontHead: "Trebuchet MS", sans-serif;
	--fontBody: "Trebuchet MS", sans-serif;
}

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

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

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

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

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

a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--accentLight);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--fontHead);
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: var(--ink);
}

p {
	margin: 0 0 1em;
}

.skipLink {
	position: absolute;
	top: 0;
	left: -999px;
	z-index: 60;
	padding: 0.5rem 1rem;
	background: var(--card);
	color: var(--ink);
}

.skipLink:focus {
	left: 1rem;
}

.sideBar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	width: var(--sideWidth);
	padding: 1.6rem 1.3rem;
	overflow-y: auto;
	background: var(--night);
	color: var(--onDark);
	border-right: 4px solid var(--base);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--onDark);
	text-decoration: none;
}

.brandMark {
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
}

.brandText {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.brandTop {
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--onDark);
}

.brandSub {
	margin-top: 0.25rem;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	color: var(--onDarkSoft);
}

.langSwitch {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
}

.langSwitch a {
	padding: 0.15rem 0.4rem;
	color: var(--onDarkSoft);
	text-decoration: none;
	border: 1px solid var(--nightLine);
}

.langSwitch a:hover {
	color: var(--onDark);
	border-color: var(--onDarkSoft);
}

.langSwitch .langActive {
	font-weight: 700;
	color: var(--night);
	background: var(--onDark);
	border-color: var(--onDark);
}

.langDot {
	color: var(--onDarkSoft);
}

.menuBox {
	position: relative;
}

.menuButton {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.9rem;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--onDark);
	border: 1px solid var(--onDarkSoft);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.menuButton::-webkit-details-marker {
	display: none;
}

.menuButton:hover,
.menuBox[open] .menuButton {
	background: var(--base);
	border-color: var(--base);
	color: var(--onDark);
}

.menuBars {
	display: block;
	width: 1rem;
	height: 2px;
	margin: 5px 0;
	background: currentColor;
	box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menuList {
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--nightLine);
}

.menuList a {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	padding: 0.55rem 0;
	font-size: 0.95rem;
	color: var(--onDark);
	text-decoration: none;
	border-bottom: 1px solid var(--nightLine);
}

.menuList a:hover {
	color: var(--accentLight);
}

.menuList a[aria-current="page"] {
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--accentLight);
	padding-left: 0.7rem;
}

.menuNum {
	font-size: 0.72rem;
	color: var(--accentLight);
	font-variant-numeric: tabular-nums;
}

.sideNote {
	margin: auto 0 0;
	font-size: 0.8rem;
	color: var(--onDarkSoft);
}

.sideNote a {
	color: var(--onDark);
	font-weight: 700;
}

.contentCol {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin-left: var(--sideWidth);
}

.contentCol main {
	flex: 1;
}

.wrap {
	width: 100%;
	max-width: 62rem;
	margin: 0 auto;
	padding: 0 2.5rem;
}

.siteFoot {
	padding: 3rem 0 1.5rem;
	background: var(--night);
	color: var(--onDark);
	border-top: 4px solid var(--base);
}

.footGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
}

.footName {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--onDark);
}

.siteFoot h2 {
	margin-bottom: 0.5rem;
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accentLight);
}

.siteFoot address,
.siteFoot p {
	font-style: normal;
	color: var(--onDarkSoft);
}

.siteFoot a {
	color: var(--onDark);
	overflow-wrap: anywhere;
}

.siteFoot .footBase {
	margin: 2rem 0 0;
	padding-top: 1rem;
	font-size: 0.82rem;
	color: var(--onDarkSoft);
	border-top: 1px solid var(--nightLine);
}

@media (max-width: 860px) {
	.sideBar {
		position: sticky;
		bottom: auto;
		flex-direction: row;
		align-items: center;
		gap: 0.6rem;
		width: auto;
		padding: 0.65rem 1rem;
		overflow: visible;
		border-right: 0;
		border-bottom: 4px solid var(--base);
	}

	.brand {
		flex: 1;
		min-width: 0;
	}

	.brandMark {
		width: 2.2rem;
		height: 2.2rem;
	}

	.brandTop {
		font-size: 0.9rem;
	}

	.brandSub {
		font-size: 0.62rem;
		letter-spacing: 0.14em;
	}

	.menuList {
		position: absolute;
		top: calc(100% + 0.75rem);
		right: -1rem;
		width: min(18rem, 100vw);
		margin: 0;
		padding: 0.3rem 1rem 0.6rem;
		background: var(--night);
		border-top: 4px solid var(--base);
		box-shadow: 0 12px 24px hsl(5, 30%, 8%, 0.35);
	}

	.sideNote {
		display: none;
	}

	.contentCol {
		margin-left: 0;
	}

	.wrap {
		padding: 0 1.25rem;
	}
}

@media (max-width: 480px) {
	.menuLabel {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.menuButton {
		padding: 0.5rem 0.6rem;
	}

	.langSwitch {
		gap: 0.15rem;
	}
}
