body {
	background-color: #d3b787;
	background-image: linear-gradient(rgba(211, 183, 135, 0.2), rgba(211, 183, 135, 0.2)), url("../assets/background.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}
body > .extracted-style-1 > img[src$="geometry-diagram.jpg"],
body > .extracted-style-1 > img[src$="sciathericum-microcosmicum.jpg"] {
	display: none;
}

html body > nav.hidden a[href="https://fallconi.com"]::before,
html body > nav.hidden a[href="journey.html#the-journey"]::before,
html body > nav.hidden a[href="path.html"]::before,
html body > nav.hidden a[href="the-codex.html"]::before,
html body > nav.hidden a[href="journal.html"]::before,
html body > nav.hidden a[href="destiny.html"]::before {
	content: "";
	display: block;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	filter: drop-shadow(0 1px 2px #24150c);
}

html body > nav.hidden a[href="https://fallconi.com"]::before {
	background-image: url("../assets/nav-home.svg");
}

html body > nav.hidden a[href="journey.html#the-journey"]::before {
	background-image: url("../assets/nav-journey.svg");
}

html body > nav.hidden a[href="path.html"]::before {
	background-image: url("../assets/nav-path.svg");
}

html body > nav.hidden a[href="the-codex.html"]::before {
	background-image: url("../assets/nav-codex.svg");
}

html body > nav.hidden a[href="journal.html"]::before {
	background-image: url("../assets/nav-journal.svg");
}

html body > nav.hidden a[href="destiny.html"]::before {
	background-image: url("../assets/nav-destiny.svg");
}

html body > nav.hidden a[href="https://fallconi.com"] > img,
html body > nav.hidden a[href="journey.html#the-journey"] > .material-symbols-outlined,
html body > nav.hidden a[href="path.html"] > .material-symbols-outlined,
html body > nav.hidden a[href="the-codex.html"] > .material-symbols-outlined,
html body > nav.hidden a[href="journal.html"] > .material-symbols-outlined,
html body > nav.hidden a[href="destiny.html"] > .material-symbols-outlined {
	display: none;
}

html body > nav.hidden + div footer > div:first-child > span:first-child { font-size: 14px; }
html body > nav.hidden + div footer > div:first-child > span:last-child { font-size: 13px; }
html body > nav.hidden + div footer > div:last-child > span { font-size: 12px; }

html body > nav.hidden,
html body > nav.hidden + div footer {
	background: transparent;
	border: 0;
}

html body > nav.hidden { backdrop-filter: none; }
html body > nav.hidden + div footer > div { color: #241a0f; }
html body > nav.hidden + div footer > div:last-child { border-top: 0; }
html body > nav.hidden + div footer > div:first-child > span:first-child,
html body > nav.hidden + div footer > div:last-child > span {
	color: #f3cf96;
	text-shadow: 0 1px 2px #24150c, 0 0 3px #24150c;
}

html body > nav.hidden a,
html body > nav.hidden a span,
html body > nav.hidden > div:last-child span {
	color: #f3cf96;
	text-shadow: 0 -1px 1px #342014, 0 1px 2px #24150c, 0 0 3px #24150c;
}

html body > nav.hidden a {
	border-bottom-color: transparent;
	opacity: 1;
	transition: color .25s ease, text-shadow .25s ease;
}

html body > nav.hidden a img {
	filter: brightness(0) saturate(100%) invert(84%) sepia(30%) saturate(600%) hue-rotate(335deg) brightness(102%) drop-shadow(0 1px 2px #24150c);
}

html body > nav.hidden a:hover span,
html body > nav.hidden a.active span,
html body > nav.hidden a[aria-current="page"] span {
	color: #ffe2ae;
	text-shadow: 0 -1px 1px #342014, 0 1px 3px #160d08, 0 0 4px #160d08;
}

html body > nav.hidden a.active span:last-child,
html body > nav.hidden a[aria-current="page"] span:last-child {
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body > nav.hidden a:focus-visible {
	outline: 2px solid #f3cf96;
	outline-offset: -2px;
}

@media (min-width: 768px) {
	body {
		background-position: left center;
		background-size: 100% 100%, max(100vw, 177.7vh, 1050px) auto;
	}

	html body > nav.hidden + div > header {
		background: transparent;
		border: 0;
	}

	html body > nav.hidden + div > header > div,
	html body > nav.hidden + div footer > div {
		padding-left: max(3rem, calc(max(9.3vw, 16.4vh) - 4.5rem));
	}

	html body > nav.hidden + div > header > div > a:first-child {
		color: #f3cf96;
		text-shadow: 0 1px 2px #24150c, 0 0 3px #24150c;
	}

	html body > nav.hidden {
		overflow-x: hidden;
		overflow-y: auto;
	}

	html body > nav.hidden a {
		flex-shrink: 0;
	}

	html body > nav.hidden a span:last-child {
		font-size: 12px;
		letter-spacing: 0.08em;
		white-space: nowrap;
	}

	html body > nav.hidden a .material-symbols-outlined {
		font-size: 28px;
	}

	html body > nav.hidden a img {
		width: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body > nav.hidden a { transition: none; }
}

@media (max-width: 767px) {
	html body > nav.hidden a[href="https://fallconi.com"]::before,
	html body > nav.hidden a[href="journey.html#the-journey"]::before,
	html body > nav.hidden a[href="path.html"]::before,
	html body > nav.hidden a[href="the-codex.html"]::before,
	html body > nav.hidden a[href="journal.html"]::before,
	html body > nav.hidden a[href="destiny.html"]::before {
		width: 20px;
		height: 20px;
	}

	html body > nav.hidden {
		position: fixed;
		inset: 0 0 auto;
		z-index: 50;
		display: flex;
		width: 100%;
		height: 64px;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		padding: 4px 8px;
		border-right: 0;
		border-bottom: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	html body > nav.hidden::-webkit-scrollbar { display: none; }

	html body > nav.hidden > div:first-child {
		display: flex;
		flex: 1 0 auto;
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		gap: 0;
		width: auto;
	}

	html body > nav.hidden > div:first-child > a {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		width: auto;
		padding: 5px;
		white-space: nowrap;
	}

	html body > nav.hidden > div:first-child > a > img { width: 20px; }
	html body > nav.hidden > div:first-child > a > span:last-child { font-size: 7px; letter-spacing: 0.04em; line-height: 1; }
	html body > nav.hidden .material-symbols-outlined { font-size: 17px; line-height: 1; }

	html body > nav.hidden > div:nth-child(2) {
		display: flex;
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		gap: 0;
		width: auto;
		margin: 0;
		padding: 0;
		border: 0;
	}

	html body > nav.hidden > div:nth-child(2) > a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; }
	html body > nav.hidden > div:nth-child(2) span:last-child { font-size: 7px; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
	html body > nav.hidden > div:last-child { display: none; }
	html body > nav.hidden + div { padding-top: 64px; }
	html body > nav.hidden + div > header { display: none; }
}

html body > nav.hidden > div:first-child,
html body > nav.hidden > div:nth-child(2) {
	display: contents;
}

html body > nav.hidden > div:first-child > a[href="https://fallconi.com"] { order: 1; }
html body > nav.hidden > div:first-child > a[href="journey.html#the-journey"] { order: 2; }
html body > nav.hidden > div:first-child > a[href="path.html"] { order: 3; }
html body > nav.hidden > div:nth-child(2) > a[href="the-codex.html"] { order: 4; }
html body > nav.hidden > div:first-child > a[href="journal.html"] { order: 5; }
html body > nav.hidden > div:first-child > a[href="destiny.html"] { order: 6; }
html body > nav.hidden > div:last-child { order: 7; margin-top: auto; }

@media (min-width: 768px) {
	html body > nav.hidden > div:nth-child(2) > a[href="the-codex.html"] {
		width: 100%;
		gap: 8px;
		padding: 16px 0;
	}
}
