@font-face {
	font-family:"Bookerly";
	src: url("/fonts/Bookerly-Regular.ttf") format("truetype");
}


@font-face {
	font-family:"Bookerly";
	src: url("/fonts/Bookerly-Bold.ttf") format("truetype");
	font-weight: bold;
}

@font-face {
	font-family:"Bookerly";
	src: url("/fonts/Bookerly-Italic.ttf") format("truetype");
	font-style: italic;
}


@font-face {
	font-family:"Bookerly";
	src: url("/fonts/Bookerly-BoldItalic.ttf") format("truetype");
	font-weight: bold;
	font-style: italic;
}

body {
	font-family: 'Bookerly', 'Courier New', serif;
	font-family: 'Literata', serif;
	font-weight: 300;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.more-important {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.toc, .toc-balancer, .toc .inner {
	width: 23em;
}


.toc .inner {
	padding-top: 4em;
	padding-bottom: 4em;
	height: 100vh;
	overflow: auto;
	position: fixed;
	font-weight: 500;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	flex-direction: column;
	transition: background 0.2s ease, backdrop-filter 0.2s ease, opacity 0.2s ease;
}

.toc.wrapped .inner {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.9);
	backdrop-filter: blur(7px);
	align-items: center;
}

.toc.wrapped.open .inner {
	display: flex;
	opacity: 1;
}

.toc.wrapped .inner {
	display: none;
	opacity: 0;
}

.toc .ribbon {
	display: none;
}
.toc.wrapped .ribbon {
	position: fixed;
	display: block;
	cursor: pointer;
	margin-top: -8px;
	z-index: 3;
	width: 40px;
}

.toc .inner a {
	text-decoration: none;
	color: #fffdf7;
	padding-left: 1em;
	padding-right: 1em;
}
.toc .wrapper {
	margin-bottom: 20vh;
}
.toc li {
	margin-bottom: 1em;
	text-indent: -1em;
	opacity: 0.5;
	transition: opacity 0.3s ease;
}


.toc.wrapped li {
	opacity: 0.7;
}

.toc li:hover {
	opacity: 0.9;
}


.toc li.in-view {
	opacity: 1;
}
.toc li.TITLE {
	list-style-type: none;
	font-weight: 800;
	text-shadow: rgba(250,224,180,0.68) 0px 0px 14px;
}
.toc .wrapper > ol > ol {
	list-style-type: lower-roman;
}
.toc .inner ol {
	margin-left: -1em;
}

.toc.wrapped {
	max-width: 43em;
	width: 100%;
}
.content > div {
	max-width: 43em;
	line-height: 2.1em;
	padding: 4em;
	padding-bottom: 20vh;
	background-image: url('dark-paper.jpg');
	margin-bottom: 1em;
	min-height: 70vh;
}

@media (max-width: 600px) {
	.content > div {
		padding: 2em;
	}
}

@media (max-width: 380px) {
	.content > div {
		padding: 1em;
	}
}


html {
	background-color: #000;
	color: #fffdf7;
}

.content p {
	text-indent: 2em;
}

.content > div > p:first-of-type {
	margin-top: 15vh;
}

.content > div > p:first-of-type::first-line {
	font-weight: bold;
	text-transform: uppercase;
	font-family: 'Crimson Text', serif;
}


.content > div > p:first-of-type::first-letter {
	font-size: 4rem;
	float: left;
	margin-right: -2rem;
	margin-top: -1rem;
	line-height: 1em;
	font-family: 'Crimson Text', serif;
}

em {
	color: #fff;
}

.content h1, .content h2 {
	text-align: center;
	font-family: 'Crimson Text', serif;
	font-size: 3em;
	color: #fff;
	margin-top: 3em;
	line-height: 1em;
}

.content h2 {
	font-size: 2.5em;
}

.content h1.title {
	margin-top: 30vh;
	font-weight: normal;
	line-height: 1.2em;
}

h4.subtitle {
	text-align: center;
	text-transform: uppercase;
	font-weight: 300;
	font-family: 'Crimson Text', serif;
}

hr {
	border: none;
	background-color: #fffdf7;
	max-width: 10em;
	margin-left: auto;
	margin-right: auto;
	margin-top: 6em;
	margin-bottom: 6em;
	height: 1px;
	opacity: 0.3;
}

a.marker {
	position: absolute;
	margin-top: -15vh;
}

.progress {
	width: 100%;
	position: fixed;
	bottom: 0;
	height: 3px;
	background-color: rgba(20,20,20, 1);
}
.progress.section {
	bottom: 3px;
	border-bottom: solid 1px #000;
}
.progress .inner {
	width: 10%;
	height: 100%;
	background-color: rgba(255, 253, 247, 0.5);
	border-right: solid 1px rgba(255, 253, 247, 0.8);
	transition: width 0.2s ease;
}

.content img {
	max-width: 100%;
	display: block;
	margin-left: auto;
	margin-right: auto;
	filter: grayscale(0.5);
}
.invert .content img {
	filter: grayscale(0.5) invert(1);
}