@font-face {
	font-family: Fanwood;
	src: url('fonts/fanwood-webfont.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: Fanwood Italic;
	src: url('fonts/fanwood_italic-webfont.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: Fanwood Text;
	src: url('fonts/fanwood_text-webfont.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: Fanwood Text Italic;
	src: url('fonts/fanwood_text_italic-webfont.woff') format('woff');
	font-display: swap;
}

header {
	margin: 0.8em 0;
	font-size: 1.6em;
}

footer {
	margin: 0.8em 0;
	font-size: 1.3em;
	line-height:1.4em;
}

nav {
	float: right;
}

nav a {
	padding-left: 15px;
}

body {
	margin: 0 auto;
	padding: 0em 1.5em;
	max-width: 46em;
	background-color: #fdf6e3;
	color: #657b83;
	font-family: Fanwood Text;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
   flex: 1;
   background-color: #fffef6;
   padding: 4em;
   border-radius: 10px;
   box-shadow: 0 0 10px #6f6d641a;
}

h1, h2, h3 {
	font-family: Fanwood;
	margin: 0px;
}

h1 em, h2 em, h3 em {
	font-family: Fanwood Italic;
}

h1 {
	font-size: 2.8em;
}

h2 {
	font-size: 2.2em;
}

h3 {
	font-size: 1.8em;
}

p, ul, ol, time {
	font-size: 1.3em;
	line-height:1.5;
	text-align: justify;
}

li {
	margin-bottom: 0.4em;
}

p em {
	font-family: Fanwood Text Italic;
}

a {
	color: #268bd2;
	text-decoration-thickness: 3px;
}

blockquote {
	padding-left: 30px;
	border-left: 10px solid #cb4b16;
	font-family: Fanwood Text Italic;
}

img {
	width: 100%;
}

figcaption {
	font-family: monospace;
	font-size: 1.1em;
	line-height: 1.2em;
	padding-top: 2px;
	text-align: center;
}

.large {
	position: relative;
	width: 70vw;
	min-width: 100%;
	max-width: 1400px;
	transform: translate(-50%);
	left: 50%;
	border: 15px solid #fffef6;
	border-radius: 10px;
	box-shadow: 0 0 10px #6f6d641a;
}

.webbuttons {
	float: right;
	margin-top: 5px;
}
.webbuttons img {
	image-rendering: pixelated;
	width: 88px;
	height: 31px;
}

@media only screen and (max-width: 1145px) {

	.large {
		border: none;
		border-radius: 0;
		box-shadow: none;
	}
}

@media only screen and (max-width: 700px) {

	header {
		margin-top: 0.6em;
		font-size: 1.4em;
	}

	body {
		padding: 0em 0.5em;
	}

	main {
		padding: 1.5em;
	}

	h1 {
		font-size: 2.4em;
	}

	h2 {
		font-size: 1.8em;
	}

	p, ul, ol {
		font-size: 1em;
	}

	ul, ol {
		text-align: left;
	}

	li {
		margin-bottom: 0.4em;
	}

	blockquote {
		margin-left: 20px;
	}

	figure {
		margin: 10px;
	}

}