* {
	box-sizing: border-box;
}

html,
body {
	font-family: 'Exo 2', sans-serif;
	font-size: 16pt;
	font-weight: 300;
	background-color: #fff;
	color: #111;
	padding: 0;
	margin: 0;
	line-height: 1.4;
}

body {
	position: relative;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	padding-top: 96px;
	padding-bottom: 96px;
}

a {
	color: #369;
	text-decoration: none;
	transition: color .25s ease-out 0s;
}

a:hover {
	color: #147;
	text-decoration: underline;
}

code,
pre {
	font-family: 'Fira Mono';
	font-size: .9em;
	background-color: #eee;
	border-radius: 4px;
}

code {
	padding: 2px 6px;
	white-space: nowrap;
}

pre {
	padding: 24px 12px;
	overflow: hidden;
	overflow-x: auto;
}

blockquote {
	font-size: .75em;
}

nav {
	position: fixed;
	top: 0;
	width: 100%;
	font-weight: 400;
	padding: 32px 0;
	background-color: rgba(255, 255, 255, .95);
	border-bottom: 1px solid #eee;
	line-height: 32px;
	overflow: hidden;
	z-index: 1000;
}

.nav-brand {
	display: block;
	float: left;
	color: #333;
	font-weight: 700;
}

.nav-menu {
	display: block;
	float: right;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu li {
	display: block;
	float: left;
	margin: 0;
	padding: 0;
}

.nav-menu li:not(:last-child) {
	padding-right: 12px;
}

#content,
.container {
	display: block;
	position: relative;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 24px;
}

#content {
	flex: 1;
	padding-top: 24px;
	padding-bottom: 24px;
}

.year-posts {
	margin: 0;
	padding: 32px 0;
}

.year-posts__header {
	position: relative;
	text-align: center;
	margin: 0 0 24px 0;
}

.year-posts__header span {
	padding: 0 16px;
	position: relative;
	z-index: 10;
	background: #fff;
}

.year-posts__header:before {
	content: "";
	border-top: 2px solid #333;
	display: block;
	width: 100%;
	height: 1px;
	top: 50%;
	position: absolute;
}

.posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, auto));
	grid-column-gap: 12px;
	grid-row-gap: 12px;
	padding: 0;
	width: 100%;
}

.post {
	position: relative;
	border: 1px solid #eee;
	background-size: cover;
	background-position: 50%;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
}

.post p {
	display: block;
	position: absolute;
	top: 50%;
	width: 100%;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	padding: 12px;
	text-align: center;
	z-index: 100;
}

.post a {
	font-weight: 700;
	color: #fff;
	text-shadow: 0px 0px 3px #000,
	             0px 0px 12px #000;
	transition: color .25s ease-out 0s,
	            text-shadow .25s ease-out 0s;
}

.post a:hover {
	text-decoration: none;
}

.post:before {
	content: "";
	display: block;
	padding-top: 100%;
}

.post:after {
	content: "";
	display: block;
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 8px;
	right: 8px;
	background-color: rgba(255, 255, 255, 0);
	border-radius: 4px;
	z-index: 10;
	transition: background-color .25s ease-out 0s;
}

.post:hover a {
	color: #111;
	text-shadow: none;
}

.post:hover:after {
	background-color: rgba(255, 255, 255, 1);
}

.comments {
    font-size: .75em;
    display: flex;
    justify-content: center;
	align-items: center;
    margin: 64px 0 32px 0;
    padding: 12px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ava-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 24px 0 12px;
    border: 3px solid #ddd;
}

footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	font-weight: 400;
	line-height: 32px;
	padding: 32px 0;
	background-color: #444;
	color: #fff;
	border-top: 1px solid #ddd;
	overflow: hidden;
}

.footer-copy {
	display: block;
	float: left;
}

.footer-links {
	display: block;
	float: right;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	display: block;
	float: left;
    margin-left: 4px;
}

.footer-links li a {
	display: block;
	background-color: #666;
	color: #999;
	height: 32px;
	width: 32px;
	border-radius: 3px;
	transition: color .25s ease-out 0s,
	            background-color .25s ease-out 0s;
	text-align: center;
}

.footer-links li a:hover {
	background-color: #aaa;
	text-decoration: none;
	color: #000;
}

.footer-link-icon {
    padding: 6px;
    width: 32px;
    height: 32px;
}

.ublog-post-item {
	color: #ddd;
	margin-bottom: .75em;
}

.ublog-post-item__date {
	font-size: .75em;
	color: #aaa;
}

#disqus_thread {
	margin-top: 64px;
}

@media screen and (max-width: 960px) {
	body {
		padding: 128px 0;
	}

	#nav {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
	}
}

@media screen and (max-width: 500px) {
	.nav-brand,
	.nav-menu,
    .footer-copy,
	.footer-links {
		display: flex;
		justify-content: center;
		width: 100%;
		clear: both;
	}

    .comments {
        flex-direction: column;
    }

    .ava-image {
        margin: 24px 0 12px 0;
    }
}
