@font-face {
	font-family: "Monaspace Krypton", monospace;
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	font-feature-settings: "calt", "liga", "ss01", "ss02", "ss03", "ss05", "ss07", "ss09";
	src: url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-krypton@latest/latin-800-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-krypton@latest/latin-800-normal.woff) format('woff');
}

* {
	margin: 0;
}

:root {
	font-family: "Monaspace Krypton", ui-monospace, monospace;
	font-weight: 800;
	color: white;
	color-scheme: dark;
}

body {
	min-height: 100svh;
	place-content: center;
	text-align: center;
	background: black;
}

header {
	position: fixed;
	top: 1rem;
	left: 1rem;
}

footer {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
}

/* ──── Path ───────────────────────────────────────── */

.path {
	text-align: left;
}

.path:has(input:checked) {
	border: solid 2px white;
	padding: 4px;
	margin: -6px;
}

.path:has(input:checked:hover)::first-line {
	text-decoration: underline;
}

.path>input,
.path>ul {
	position: absolute;
}

.path input {
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 3;
	cursor: pointer;
	opacity: 0;
}

ul.path__item-list {
	background-color: transparent;
	list-style: none;
	padding: 4px;
	top: -4px;
	left: -7px;
	transform: translate(-100%, 0);
	width: 100%;
	z-index: 1;
	text-align: left;
}

ul.path__item-list li {
	padding: 0.25rem 0;
	transition: color 0.2s ease;
}

ul.path__item-list a {
	text-decoration: none;
	color: inherit;
}

ul.path__item-list a:hover {
	text-decoration: underline;
}

input:checked~.path__item-list {
	position: relative;
	inset: auto;
	transform: none;
	z-index: 4;
	padding: 0;
}
