body {
	font-family: Georgia, serif;
	color: #332;
	background-color: #faf9f5;
	font-size: 1.5em;
	line-height: 1.4;
	width: 80%;
	margin: 0 auto;
	max-width: 900px;
	min-width: 500px;
	display: flex;
	box-orient: vertical;
	flex-direction: column;
}

html {
	height: 100%;
}

body {
	min-height: 100%;
}

.article {
	flex: 1 1 auto;
}

/**
 * Header Section
 */

#header {
	border-bottom: 2px solid #332;
}

#header h1 {
	font-size: 3em;
	margin-bottom: 0.3em;
	text-align: center;
}

#header a,
#header a:hover {
	color: #332;
	text-decoration: none !important;
}

/**
 * Nav section
 */
#nav {
	margin-top: 1em;
	margin-bottom: 2em;
	padding: 0.3em;
	border-top: 2px solid #332;
	border-bottom: 4px solid #332;
}

ul.menu {
	list-style-type: none;
	padding-left: 0;
	margin: 0;
}

ul.menu li {
	display: inline;
	display: inline-block;
	margin-right: 0.5em;
}

#nav ul.menu li:first-of-type {
	display: none;
}

#nav a {
	color: #332;
}

#nav .search {
	float: right;
}

#nav .search input {
	vertical-align: middle;
	font-size: 1em;
}

/**
 * Body Section
 */
.article {
	padding: 1.5em 0.5em 0;
	text-align: justify;
	border-top: 4px solid #332;
	margin-top: 0.1em;
}

.article h1 {
	font-size: 2.5em;
	margin-bottom: 0.5em;
	margin-top: 0;
	text-align: left;
}

.article h2 {
	margin-top: 1em;
	margin-bottom: 1em;
	font-size: 1em;
	font-family: Georgia, serif;
}

#about p:first-of-type {
	margin-top: 0;
}

/**
 * Tumblr type stuff
 */

.search-result-count {
	font-style: italic;
}

.post {
	margin-bottom: 5em;
}

.post::after {
	content: "\00a7";
	clear: both;
	font-size: 1.5em;
	position: relative;
	top: 1em;
	line-height: 1;
	font-style: italic;
}

.post h1 a {
	color: #332;
}

.photo img {
	float: none;
	margin: 0;
}

.link a.title {
	display: block;
	margin: 0.3em 0;
}

.link a.title::before {
	content: "[";
	color: #332;
}

.link a.title::after {
	content: "]";
	color: #332;
}

.post blockquote {
	margin-left: 0;
	padding-left: 1em;
	border-left: 5px solid #332;
}

.post .meta {
	margin-top: 0.5em;
	font-size: 0.8em;
}

.post .meta .tag::before {
	content: "#";
	color: #332;
}

.pagination {
	margin-top: 1em;
}

.pagination .next {
	float: left;
}

.pagination .previous {
	float: right;
}

/**
 * Footer section
 */

#footer {
	clear: both;
	padding-left: 0.3em;
	border-top: 1px solid #332;
	margin-top: 2em;
	font-size: 0.7em;
	padding-bottom: 1em;
	height: 5em;
}

#footer p,
#footer li {
	margin: 0;
}

#footer ul {
	margin-top: 1em;
	font-family: courier;
}

#footer ul:before {
	content: "Also on: ";
}

#footer ul a:before {
	content: ":";
}

/**
 * Global overrides
 */

a {
	color: #3050FF;
	text-decoration: none;
}

a:hover {
	text-decoration: underline !important;
}

img {
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

pre {
	overflow: auto;
	border: 1px solid #332;
	padding: 0.5em;
	background: #e5e4e0;
}

.clearfix {
	clear: both;
}

@media only screen and (max-width: 700px) {
	#footer {
		font-size: 1em;
		line-height: 1.8;
	}

	#footer ul {
		margin: 1em;
	}

	#footer li {
		display: block;
		margin-left: 1em;
		margin-top: 0.5em;
	}

	ul.menu {
		line-height: 1.8;
	}

	body {
		max-width: inherit;
		min-width: inherit;
		width: 100%;
	}

	#header {
		margin-left: 1em;
		margin-right: 1em;
	}

	#header h1 {
		font-size: 2.5em;
		margin-bottom: 0;
	}

	.article {
		margin-left: 1em;
		margin-right: 1em;
		padding-left: 0em;
		padding-right: 0em;
	}
}
