
* {
	margin: 0;
	padding: 0;
}

a {
	color: red;
	text-decoration: none;
}

a:hover, a:focus {
	font-weight: bold;
	text-shadow: 0px 0px 0.75rem rgba(255, 0, 0, 1);
}

body {
	min-width: 100vw;
	min-height: 100vh;
	color: whitesmoke;
	background-color: black;
	font-family: monospace;
}

img {
	max-width: 100%;
	max-height: 100%;
}

time {
	filter: brightness(50%);
}

#container {
	margin: 0 auto;
	padding: 0 1rem;
	max-width: 800px;
}


header nav {
	display: flex;
	justify-content: center;
	overflow: hidden;
}

header nav ul {
	display: flex;
	align-items: center;
	height: 3rem;
	list-style: none;
}

header nav a {
	padding: 0.5rem 1rem;
	font-size: large;
	text-wrap: nowrap;
}


main {
	margin: 5rem 0 0;
}

.breadcrumbs {
	margin-bottom: 0.5rem;
}




.list .month {
	margin: 1rem 0 2rem 0;
}

.list .post {
	margin: 1rem 0 0 0.5rem;
}

.list .post h3 {
	margin: 0.25rem 0;
}

.list .tag {
	margin: 0.5rem 0;
}


.single h1 {
	margin: 2rem 0 1rem 0;
}

.single ul {
	list-style: none;
}

.single ul li {
	margin: 0 0 0 1rem;
}

.single ul li:before {
	content: "- ";
}

.single #metadata {
	text-align: center;
	margin: 0 0 2.5rem;
}

.single #toc {
	margin: 1rem 0;
	padding: 0.5rem;
	border: 2px solid whitesmoke;
	font-size: 10pt;
	counter-reset: toc-section;
}

.single #TableOfContents ul li {
	padding: 0.5rem 0 0;
}

.single #TableOfContents>ul>li {
	counter-reset: toc-subsection;
}

.single #TableOfContents ul li:before {
	content: counter(toc-section) " ";
	counter-increment: toc-section;
}

.single #TableOfContents ul li ul li:before {
	content: counter(toc-section) "." counter(toc-subsection) " ";
	counter-increment: toc-subsection;
}

.single #content {
	padding: 2.5rem 0;
	counter-reset: section;
}

.single #content h2 {
	counter-reset: subsection;
}

.single #content h2:before {
	content: counter(section) " ";
	counter-increment: section;

}

.single #content h3:before {
	content: counter(section) "." counter(subsection) " ";
	counter-increment: subsection;
}

.single #content h2,
.single #content h3,
.single #content h4 {
	margin: 2rem 0 1rem;
}

.single #content p {
	margin: 0.5rem 0;
	text-align: justify;
	line-height: 175%;
	font-size: 11pt;
}

.single #content img {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 400px;
	border: 2px solid whitesmoke;
}

a.footnote-ref::before {
	content: '[';
}

a.footnote-ref::after {
	content: ']';
}

.footnotes {
	margin: 3rem 0 0;
}

.footnotes ol {
	margin: 0 0 0 1rem;
}


#index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-template-rows: repeat(auto-fill, 1fr);
	row-gap: 4rem;
	column-gap: 1rem;
	max-width: calc(2 * 300px + 1rem);
	margin: 0 auto;
}

#image {
	text-align: center;
}

#heading h1 {
	margin: 0 0 1rem 0;
}

#recent-posts {
	margin: 0 0 1rem;
	grid-column: 1 / -1;
	text-align: right;
}

#recent-posts h2 {
	margin: 0 0 0.5rem;
}

#recent-posts ul {
	list-style: none;
}

#recent-posts ul li {
	margin: 0.25rem 0;
}


@media only screen and (orientation: portrait) {

	
	main {
		margin: 2rem 0 0;
	}

	
	#image {
		grid-row: 2;
	}

	#heading {
		grid-row: 1;
		text-align: center;
	}

	#recent-posts {
		text-align: left;
	}
}
