body {
	background-color: red;
	color: black;
	font-family: monospace;
	font-size: 8pt;
}

body *::selection {
	color: red;
	background-color: black;
}

main *::selection {
	color: black;
	background-color: red;
}

body > * {
	background-color: black;
	max-width: 58em;
}

header {
	padding: 1em;
	height: 48px;
	background-color: transparent;
	position: relative;
}

header::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 9px;
	content: "";
	background-image: url("header-left.png");
}

header::after {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 9px;
	content: "";
	background-image: url("header-right.png");
}

.title {
	color: transparent;
}

nav {
	padding: 1em;
	background-color: red;
	border: 1px solid black;
	margin-top: 1px;
	margin-bottom: 1px;
}

nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

nav li {
	display: inline;
}

nav li:not(:last-of-type)::after {
	content: " /";
}

nav a {
	color: black !important;
}

main {
	color: white;
	padding: 1em;
}

footer {
	padding: 28px;
	padding-top: 56px;
	background-color: transparent;
	position: relative;
	text-align: center;
}

footer::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 71px;
	content: "";
	background-image: url("footer-left.png");
	background-repeat: no-repeat;
}

footer::after {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 71px;
	content: "";
	background-image: url("footer-right.png");
	background-repeat: no-repeat;
}

footer a {
	color: black;
}

@media screen and (min-width: 50em) {
       body {
               margin-left: 10%;
       }
}

@media screen and (max-width: 294px) {
	header::before {
		right: 0;
	}
	header::after {
		display: none;
	}
}

@media screen and (max-width: 344px) {
	footer::before {
		background-image: url("footer-left-squeezed.png");
	}
}

h1 {
	font-size: 1.4em;
}

h2 {
	font-size: 1.2em;
}

h3 {
	font-size: 1em;
}

h4 {
	font-style: italic;
	font-weight: normal;
	margin-left: 1em;
}

a {
	color: red;
}

a:visited {
	color: blueviolet;
}

* {
	box-sizing: border-box;
}

*:first-child {
	margin-top: 0;
}

*:last-child {
	margin-bottom: 0;
}
