@font-face {
	font-family: 'Instrument Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('InstrumentSerif-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Instrument Serif';
	font-style: italic;
	font-weight: 400; 
	font-display: swap;
	src: url('InstrumentSerif-Italic.ttf') format('truetype');
}

html {
	scrollbar-color: grey black;
	overflow-y: scroll;
}

body {
	background-color: black;
	color: white;
	max-width: 800px;
	margin: 0 auto;
	user-select: none;
}

::selection {
	color: white;
	background: red;
}

input[type="checkbox"] {
	accent-color: red;
	pointer-events: none;
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
}

#header {
	display: flex;
	align-items: center;
	flex-direction: row;
	padding: 10px;
	justify-content: center;
	margin-bottom: 15px;
}

#header-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: white;
}

#header-link.home-link {
	cursor: alias;
}

#header-link.subpage-link {
	cursor: pointer;
}

.bulletin-board {
	margin-top: 50px;
}

.title-and-subtitle {
	display: flex;
	flex-direction: column;
}

.title {
	font-family: sans-serif;
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: .3rem;
	overflow: hidden;
}

.subtitle {
	font-family: serif;
	font-size: 1.3rem;
}

.post {
	max-width: 100%;
	margin-bottom: 5rem;
	overflow: hidden;
}

.post-header {
	padding-bottom: 1.2rem;
	display: flex;
	flex-direction: row;
	border-bottom: 0;
	margin-bottom: 0;
}

.post-body {
	overflow: visible;
}

.image-left,
.image-right {
	width: 50%;
	display: block;
	margin-top: 0.7em;
	margin-bottom: 1.2rem;
}

.project-link .image-left,
.project-link .image-right,
.no-top-margin {
	margin-top: 0;
}

.image-left {
	float: left;
	margin-right: 2.5rem;
}

.image-right {
	float: right;
	margin-left: 2.5rem;
}

.post-text {
	box-sizing: border-box;
	padding-top: 0;
	font-size: 1.7rem;
	padding-bottom: 2.5rem;
	line-height: 1.5;
	font-family: Instrument Serif;
	user-select: text;
}

.post-text a {
	color: red;
}

.post-text p {
	padding-top: 4px;
}

.post-text p:first-child {
	margin-top: 0;
}

.post-text p:last-child {
	margin-bottom: 1.5rem;
}

#header h1 {
	padding-left: 35px;
	font-size: 80px;
	margin: 0;
}

#sigil {
	width: 85px;
}

#nav-links {
	padding-top: 3px;
	padding-bottom: 15px;
	font-family: sans-serif;
	font-size: 1.65rem;
	font-weight: 400;
	margin: 0px;
	transition: color .15s ease-in-out, opacity .15s ease-in-out;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-top: .9rem;
	user-select: none;
}

.nav-break {
	display: none;
	flex-basis: 100%;
	height: 0;
}

hr {
	color: white;
	max-width: 100%;
}

.card {
	width: 100%;
}

#nav-links>a {
	text-decoration: none;
	color: white;
	transition: color ease-in-out .15s;
	margin-bottom: 1rem;
}

#nav-links>a:hover {
	color: red;
	cursor: pointer;
}

#nav-links>#current-page {
	color: red;
	cursor: default;
}

.project-link {
	color: white;
	text-decoration: none;
	display: block;
	overflow: hidden;
}

.project-link h3 {
	margin-top: 0;
	margin-bottom: 0.4rem;
	font-family: Instrument Serif;
	font-size: 1.7rem;
	font-weight: normal;
}

.project-link p {
	margin-top: 0;
}

@media (max-width: 830px) {
	#nav-links, #header, .post {
		margin-left: 15px;
		margin-right: 15px;
	}
	body {
		max-width: 100%;
	}
}

@media (max-width: 690px) {
	.nav-break-1 {
		display: flex;
	}
	#nav-links {
		padding-bottom: 0px;
	}
	#header {
		margin-bottom: 11px;
		padding: 5px;
	}
	#header h1 {
		font-size: 60px;
		padding-left: 25px;
	}
	#sigil {
		width: 65px;
	}
	.post-text p {
		padding-top: 0;
	}
	.bulletin-board {
		margin-top: 45px;
	}
	.post {
		margin-bottom: 2.5rem;
	}
	.post-text {
		line-height: 1.38;
	}
}

@media (max-width: 540px) {
	#header {
		margin-bottom: 10px;
	}
	#header h1 {
		font-size: 46px;
		padding-left: 20px;
	}
	#sigil {
		width: 50px;
	}
}

@media (max-width: 540px) {
	#header {
		margin-bottom: 10px;
	}

	#header h1 {
		font-size: 40px;
		padding-left: 20px;
	}

	#sigil {
		width: 43px;
	}
}

@media (max-width: 400px) {
	#sigil {
		display: none;
	}
	#header h1 {
		padding-left: 0;
	}
}

@media (max-width: 350px) {
	.nav-break-1 {
		display: none;
	}
	.nav-break-2 {
		display: flex;
	}
	#header {
		display: none;
	}
	body > hr:first-of-type {
		display: none;
	}
}