:root {
	--background: #f9fafb;
	--borders: #94a3b8;
	--text: #1e293b;
	--accent: #3b82f6;
	--hover-bg: #94a3b8;
	--hover-text: #f9fafb;
}

*::-webkit-scrollbar {
	display: none;
}
* {
	-ms-overflow-style: none;
	scrollbar-width: none;
	font-size: 1em;
}

a {
	color: var(--text);
}
a:visited {
	color: var(--text);
}

body {
	background-color: var(--background);
	color: var(--text);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1em;
	margin: 0 0 28px 0;
	display: flex;
	flex-direction: row;
	min-height: calc(100vh - 28px);
	height: calc(100vh - 28px);
	gap: 18px;
}

main {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
	padding: 0 0 1em 0;
	border-right: solid;
	border-left: solid;
	border-width: 4px;
	border-color: var(--borders);
	overflow: scroll;
}

aside {
	gap: 18px;
	display: flex;
	flex-direction: column;
	font-size: 0.9em;
	min-width: 145px;
	width: calc(120px + 18vw);
	max-width: 295px;
}

#pfp {
	border-right: solid;
	border-bottom: solid;
	border-width: 4px;
	border-color: var(--borders);
	border-radius: 0 0 12px 0;
}

article {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 10px;
}

article.main {
	border-top: none;
	border-width: 4px;
	border-color: var(--borders);
}

article.main:nth-child(1) {
	border-top: none;
}

article.sub {
	border-radius: 0 12px 0 0;
	border-right: solid;
	border-top: solid;
	border-width: 4px;
	border-color: var(--borders);
	overflow: scroll;
}

section {
	font-size: 1em;
	line-height: 135%;
	border-top: solid;
	border-width: 2px;
	border-color: var(--borders);
}
section:nth-child(1) {
	border-top: none;
}

#gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
}

#gallery figure {
	margin: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#gallery img {
	height: 200px;
	border-radius: 8px;
}

#gallery figcaption {
	display: flex;
}

p {
	margin: 0.7em 1em 0 1em;
}

pre {
	font-family: "IBM Plex Mono", monospace;
	margin: 0.7em 1em 0 1em;
}

#sep {
	border-top: solid;
	border-width: 4px;
	border-color: var(--borders);
}

#sep-nav {
	margin-top: 0px;
	border-top: solid;
	border-width: 2px;
	border-color: var(--borders);
}

nav {
	display: flex;
}

nav.sub {
	flex-direction: row;
	flex-wrap: wrap;
	margin: -2px 0 0 -2px;
}

nav.main {
	flex-direction: column;
	border-left: solid;
	border-width: 4px;
	border-color: var(--borders);
	min-width: 120px;
	width: calc(120px + 14vw);
	max-width: 210px;
	overflow: auto;
}

nav a {
	display: flex;
	flex-basis: 28px;
	height: 28px;
	min-height: 28px;
	text-decoration: none;
	align-items: center;
	padding: 2px 1em;
	font-weight: bold;
	transition: background-color 0.2s ease, color 0.2s ease;
}

nav.sub a {
	flex-grow: 1;
	justify-content: center;
	border-radius: 0;
	border-left: solid;
	border-top: solid;
	border-width: 2px;
	border-color: var(--borders);
}
/*
nav.sub a:nth-child(1) {
	border-left: none;
}
*/
nav.main a {
	flex-grow: 0;
	border-bottom: solid;
	border-width: 2px;
	border-color: var(--borders);
}

nav a:hover {
	background-color: var(--hover-bg);
	color: var(--hover-text);
}

footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 24px;
	padding: 0 0.6em;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 0;
	border-top: solid;
	border-width: 4px;
	border-color: var(--borders);
	background-color: var(--background);
	font-size: 0.9em;
}

footer p {
	margin: 0;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100..700;1,100..700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

@media (max-height: 500px) {
	#pfp {
		display: none;
	}
	article.sub {
		border-radius: 0 0 0 0;
		border-right: solid;
		border-top: unset;
		border-width: 4px;
		border-color: var(--borders);
		overflow: scroll;
	}
}
@media (max-width: 599px) {
	aside {
		display: none;
	}
}
