
:root {
	--bg-color: #eeeeee;
	--bg-color-paper: white;
	--bg-paper-overlay: linear-gradient(to right, #ffffffb8, var(--bg-color-paper) 2%, var(--bg-color-paper) 90%, #ffffff8a);
	--bg-color-fake-white: #fafafa;
	--bg-color-code: linear-gradient(to right, var(--bg-color-paper), var(--bg-color-paper) 20%, var(--bg-color));
	--bg-color-strip: linear-gradient(to right, var(--bg-color-paper), #ffffffde 80%, #fff0);
	--bg-color-identity: linear-gradient(to right, #eee0, #eee0, #eee0 54%, #eee), linear-gradient(#eee, #f8f8f8,#f8f8f8 84%, #eee);
	--border-color-box: var(--bg-color-paper);
	--color: #444444;
	--color-light: #555555;
	--color-lighter: #AEAEAE;
	--color-paper: var(--bg-color-paper);
	--color-primary: #3591b9;
	--color-secondary: #8bb6c8;
	--color-tertiary: #cbe1ea;
	--font-size-min: 13px;
	--heading-margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #444;
		--bg-color-paper: #222;
		--bg-paper-overlay: linear-gradient(to right, #111, var(--bg-color-paper) 2%, var(--bg-color-paper) 90%, #111);
		--bg-color-fake-white: #2a2a2a;
		--bg-color-code: linear-gradient(to right, var(--bg-color-paper), var(--bg-color-paper) 20%, var(--bg-color));
		--bg-color-strip: linear-gradient(to right, var(--bg-color-paper), #000000de 80%, #111);
		--bg-color-identity: linear-gradient(to right, #1110, #44444452, #4444440d 54%, #444), linear-gradient(#444, #393939,#393939 84%, #444);
		--border-color-box: var(--bg-color-paper);
		--color: #eeeeee;
		--color-light: #d3d3d3;
		--color-lighter: #AEAEAE;
		--color-paper: var(--bg-color-paper);
		--color-primary: #cbe1ea;
		--color-secondary: #8bb6c8;
		--color-tertiary: #3591b9;
	}
}
a.skip-main {
	z-index: -999;
	background-color: hsla(0,0%,100%,.9);
	font-family: 'Monoid';
	top: -20em;
	width: 100%;
	padding: .5rem;
	position: absolute;
	right: 0;
	text-align: center;
}
a.skip-main:focus, a.skip-main:active {
	left: auto;
	top: auto;
	z-index: 999;
}
body {
	margin: 0 40px;
	background-color: var(--bg-color);
	font-family: 'Jost';
	/* mini font size */
	font-size: var(--font-size-min);
}
p {
	font-size: 16px;
}
h1 {
	font-size: 42px;
	margin-bottom: var(--heading-margin-bottom);
}
h2 {
	font-size: 28px;
	margin-bottom: var(--heading-margin-bottom);
}
h3 {
	font-size: 18px;
	margin-bottom: var(--heading-margin-bottom);
}
h4 {
	font-weight: 200;
	font-size: 42px;
	margin-bottom: var(--heading-margin-bottom);
}
pre {
	font-family: 'Monoid';
	font-size: 12px;
	line-height: 22px;
	background-image: var(--bg-color-code);
	padding: 13px;
	border-radius: 8px;
	white-space: pre-wrap;
}

.page.post pre:first-child {
	font-family: 'Jost';
	text-align: right;
	float: right;
	margin-right: -138px;
	border-radius: 0;
	padding: 4px 8px;
	font-family: 'Jost';
	font-weight: 800;
	color: var(--color-light);
}

.sidebar {
	background-color: transparent !important;
	grid-area: sidebar;
	top: -30px;
	position: relative;
}

/* .sidebar2 {
	grid-area: sidebar2;
	background-color: #ccc;
	color: #444;
} */

.content {
	grid-area: content;
}

.header {
	grid-area: header;
}

.mobile {
	display: none !important;
}

.footer {
	grid-area: footer;
}

.wrapper {
	background-color: transparent;
	color: var(--color);
	display: grid;
	margin: 0 auto;
	grid-gap: 1em;
	grid-template-areas:
		'header'
		'sidebar'
		'content'
		'footer'
}
.content--wrapper {
	width: 100%;
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(1);
	grid-auto-rows: minmax(124px, auto);
}

@media only screen and (min-width: 800px)   {
	.wrapper {
		grid-gap: 20px;
		grid-template-columns: 178px auto;
		grid-template-areas:
			'top-left  header'
			'sidebar content'
			'footer  footer';
	}
	.content--wrapper {
		grid-template-columns: repeat(2, 50%);
	}
	.box.content.page {
		max-width: 75%;
		min-width: 788px;
	}
	#prime_nav {
		grid-template-columns: auto !important;
	}
}

@media only screen and (min-width: 1000px)   {
	.content--wrapper {
		grid-template-columns: repeat(4, calc(25% - 20px));
		grid-auto-rows: minmax(198px, auto);
	}
}

.box {
	background-color: var(--bg-color-fake-white);
	color: var(--color-paper);
	border-radius: 5px;
	padding: 10px;
	font-size: 20px;
}

.box.content {
	background-color: transparent;
	color: var(--color);
	box-shadow: inset 1px 0 0 var(--color-tertiary);
}

.box.content.page {
	background-image: var(--bg-paper-overlay);
	box-shadow: 1px 1px 2px 1px #00000021;
	padding: 32px 138px 32px 108px;
	box-sizing: border-box;
}

.box.content img {
	max-width: 500px;
}

.box.content.page img {
	max-width: 100%;
}

.content.page img.frmd {
	border-radius: 4px;
	box-shadow: 0 0 1px 0 var(--color-light), 0 0 1px 2px var(--bg-color);
}

.about .avatar {
	background-size: cover;
	border-radius: 0 0 50%;
	box-shadow: 2px 2px 0 2px var(--bg-color), 3px 3px 0 3px var(--color-tertiary);
	margin: 0;
	width: 128px;
}

.about h4 em {
	font-weight: 200;
	font-style: normal;
}
.about h4 em::after {
	content: ',';
}
.about h4:hover em {
	font-weight: 300;
	font-style: normal;
	background: var(--color-tertiary);
}
.about h4:hover em::after {
	content: '!';
}
.about h4:hover span {
	color: var(--color-lighter);
}
.about h4 span::after {
	content: '+';
	font-weight: 300;
	font-style: normal;
	text-decoration: none;
	position: relative;
	margin-left: -27px;
	color: var(--color-primary);
	left: -23px;
	background: var(--bg-color);
	box-shadow: 8px 0 1px 4px var(--bg-color), -8px 0 1px 4px var(--bg-color);
}
.box--card {
	background-size: cover;
	background-repeat: no-repeat;
	background-color: var(--bg-color-paper);
	background-position: center;
	border: 3px solid var(--border-color-box);
	box-shadow: none;
	padding: 0;
}

.box--card.post {
	border: none;
	border-top: 3px solid var(--border-color-box);
	max-height: 248px;
	overflow: hidden
}

.box--card:hover {
	box-shadow: -8px 8px 0 2px var(--color-tertiary);
	border-bottom-right-radius: 32px;
	border-color: var(--color-primary);
	transition: all 0.3s ease-in-out;
}

.box--card.post:hover {
	border-color: var(--color-primary);
	border-width: initial;
	box-shadow: none;
}

.box--card h2{
	font-size: 16px;
	background-image: var(--bg-color-strip);
	padding: 0 16px 0 4px;
	color: var(--color);
	position: absolute;
	bottom: 0;
}

.box--card:hover h2 {
	color: var(--color);
	background: var(--bg-color-paper);
}

.box--card.post h2{
	font-size: inherit;
	position: static;
	margin-top: 4px;
	padding: 0 4px;
}

.box--card.post:hover h2 {
	color: var(--color-primary);
}

.box--card.post a > span {
	display: block;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	border-bottom: 1px solid var(--bg-color);
	color: var(--color-light);
	padding-bottom: 4px;
	margin-bottom: 4px;
}

.box--card.post p {
	color: var(--color);
	font-size: 30px;
	font-weight: 300;
	padding-top: 0;
	margin-top: 0;
}

.box--card a {
	display: flex;
	flex-direction: column;
	justify-content: end;
	height: 100%;
	width: 100%;
	text-decoration: none;
	position: relative;
}

.box--card.post a {
	justify-content: start;
	height: 100%;
	color: var(--color-light);
}

.sections {
	display: flex;
	flex-wrap: wrap;
	gap: 3em;
	width: calc(var(--content-width) * 1.5);
	max-width: 100%;
	margin-inline: auto;
}

.section--card {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0;
	max-width: 100%;
	flex-grow: 1;
	width: 22rem;
	padding: 0.5em 1em;
}

.header,
.top-left,
.footer{
	background-color: transparent;
}

.header {
	border-radius: 0;
	overflow-x: scroll;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.header::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.header {
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

.header ul {
	display: grid;
	grid-auto-flow: column;
	grid-gap: 4%;
	grid-template-columns: 22% 22% 22% 22%;
	font-size: var(--font-size-min);
	color: var(--color-light);
	width: 100%;
	padding: 0;
}

.header li {
	color: var(--color-light);
	list-style: none;
}

.identity {
	display: block;
	float: none;
	margin: 0 auto;
	overflow: hidden;
	text-transform: uppercase;
	background-image: var(--bg-color-identity);
}

#site-title {
	margin: 0;
}

#site-title a {
	text-decoration: none;
	display: block;
	border-bottom: 3px solid var(--color);
	color: var(--color);
	font-size: 16px;
}

#site-description {
	color: var(--color-lighter);
	margin: 0.5em auto 0;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 80%;
	font-weight: 400;
	background-color: var(--bg-color);
}

#prime_nav {
	list-style: none;
	padding: 0;
	font-size: 16px;
}

#prime_nav li {
	margin-bottom: 18px;
}

@media only screen and ((max-width: 800px) or (max-device-width: 800px)) {
	#prime_nav {
		display: grid;
		grid-template-columns: auto auto auto;
		margin-top: 3em;
	}
	.sidebar {
		top: auto;
	}
	.header ul {
		font-size: 10px;
		display: grid;
		min-width: auto;
		grid-template-columns: auto auto;
	}
	.header li {
		text-align: left;
		list-style: none;
		margin-top: 8px;
	}
}

@media only screen and (max-width: 480px), only screen and (max-device-width: 480px) {
	#prime_nav {
		padding: 1em;
	}
	body {
		margin: 0;
	}
	.box.content.page {
		padding: 10px;
		font-size: 110%;
	}
	.sidebar {
		position: static;
	}
	.mobile-hidden {
		display: none !important;
	}
	.mobile {
		display: initial !important;
	}
	.mobile.d-flex {
		display: flex !important;
	}
	.section--card {
		width: auto;
	}
	pre {
		padding-inline-end: 0;
		margin-inline-start: 0;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
	}
	.page.post pre:first-child {
		margin-right: initial;
		clear: right;
		border-radius: 8px;
	}
	.box.content img {
		max-width: 100%;
	}
	.box--card {
		grid-column: span 2 !important;
		grid-row: span 2 !important;
	}
}

a {
	color: var(--color-primary);
	text-decoration-color: var(--color-secondary);
	text-decoration-style: solid;
}

/*A link which has a destination*/
a:link {
	text-decoration-color: var(--color-secondary);
}

/* A link when it has already been visited */
a:visited {
	text-decoration-color: var(--color-secondary);
}

a:focus {
	text-decoration-style: double;
}

a:hover {
	text-decoration-style: double;
}

/*A link when it is being activated (e.g. clicked on)*/
a:active, a.selected {
	text-decoration: none;
	background-color: var(--color-tertiary);
}
