@import url("http://fonts.googleapis.com/css?family=Open+Sans:600,800");
@import url("http://fonts.googleapis.com/css?family=Inconsolata");

html {
	height: 100%;
}

body {
	height: 100%;
	font-family: "Georgia", serif;
	font-size: 120%;
	line-height: 1.62em;
	color: #333333;
}

td input {
	font-family: "Georgia", serif;
	font-size: 100%;
	line-height: 1.62em;
	color: #333333;
	margin-left: 2ex;
}

a {
	color: #597bbb;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

code {
	font-family: "Inconsolata", monospace;
}

em {
	font-style: italic;
}

/* color brightness: -6 steps on a 256 step scale */

mark {
	background-color: #ffff66;
	color: #000000;
}

mark a {
	color: #334c7c;
}

strong {
	font-weight: bold;
}

h1, h2, h3 {
	font-family: "Open Sans", sans-serif;
}

h1 {
	margin-top: 3.24em;
	margin-bottom: 2.43em;
	font-size: larger;
	font-weight: bold;
}

h2 {
	margin-top: 3.24em;
	margin-bottom: 1.62em;
	font-weight: bold;
}

h3 {
	margin-top: 1.62em;
	margin-bottom: 0.62em;
}

p {
	margin-bottom: 1.62em;
}

p code {
	background-color: #eeeeee;
	padding: 1px 5px 1px 5px;
}

pre {
	margin-bottom: 1.62em;
	background-color: #eeeeee;
	padding: 1px 5px 1px 5px;
	font-size: smaller;
	line-height: 1.62em;
	white-space: pre-wrap;
}

ul {
	margin-bottom: 1.62em;
	list-style-type: circle;
}

ul li {
	margin-top: .5em;
}

/* The following is adapted from:
 *
 * http://pixelsvsbytes.com/blog/2011/09/sticky-css-footers-the-flexible-way/
 *
 * The only difference is in setting the height of the expand class to 100%
 * rather than auto. (See the second comment by Fraxtil on 2012-12-20.)
 */

.layout-frame {
	display: table;
	height: 100%;
	width: 100%;
}

.layout-row {
	display: table-row;
}

.layout-row.expand {
	height: 100%;
}

.column {
	margin-left: auto;
	margin-right: auto;
	max-width: 36em;
	padding-left: 1em;
	padding-right: 1em;
}

header, footer {
	font-family: "Open Sans", sans-serif;
}

header {
	background-color: #597bbb;
	color: #ffffff;
	position: fixed;
	width: 100%;
}

footer {
	background-color: #333333;
	color: #ffffff;
	width: 100%;
}

header a {
	color: inherit;
}

footer a {
	color: inherit;
}

nav ul li {
	display: inline;
}

nav ul li:before {
	content: "| ";
}

nav ul li:first-child:before {
	content: "";
}

nav ul .active {
	color: #333333;
}

.social {
	margin-top: 3.24em;
}

.social ul {
	display: inline;
}

.social ul li {
	display: inline;
	margin-right: 1em;
}

.g-plusone {
	display: inline;
}

.blog-navigation {
	margin-top: 3.24em;
}

#header-content {
	margin-top: 1em;
	height: 1.62em;
	margin-bottom: 1em;
}

#footer-content {
	margin-top: 1.62em;
	margin-bottom: 3.24em;
}

#main-content {
	margin-top: 6.86em;
	margin-bottom: 3.24em;
}

@media (max-device-width: 480px) {
	body {
		font-size: 100%;
	}
	.social {
		margin-top: 1.62em;
	}
	.blog-navigation {
		margin-top: 1.62em;
	}
	h1 {
		margin-top: 1.62em;
		margin-bottom: 1.62em;
	}
	h2 {
		margin-top: 1.62em;
		margin-bottom: 1em;
	}
	h3 {
		margin-top: 1.62em;
		margin-bottom: 1em;
	}
	p {
		margin-bottom: 1em;
	}
	ul {
		margin-bottom: 1em;
	}
	#main-content {
		margin-top: 5.24em;
		margin-bottom: 1.62em;
	}
	#footer-content {
		margin-top: 1em;
		margin-bottom: 1em;
	}
}
