/* Reset
============================================================ */
*{margin:0;padding:0;font:inherit;font-family:inherit;font-size:inherit;font-style:normal;font-weight:inherit;vertical-align:baseline;-webkit-appearance:none;border-radius:0}
html{color:#000;background:#fff}body{font-size:100%;line-height:1em;-webkit-font-smoothing:subpixel-antialiased}
img,table{border:0}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}
blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
sup{vertical-align:text-top}sub{vertical-align:text-bottom}strong{font-weight:bold}em{font-style:italic}s{text-decoration:line-through}

/* Icon fonts - TODO: Only for projects page
============================================================ */
@font-face {
	font-family: 'matanich-icons';
	src: url('/fonts/matanich-icons/latest.eot');
	src: url('/fonts/matanich-icons/latest.eot?#iefix') format('embedded-opentype'),
		 url('/fonts/matanich-icons/latest.woff') format('woff'),
		 url('/fonts/matanich-icons/latest.ttf') format('truetype'),
		 url('/fonts/matanich-icons/latest.svg#matanich-icons') format('svg');
	font-weight: normal;
	font-style: normal;
}

.icon-star,
.icon-fork {
	font-family: 'matanich-icons';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1em;
	-webkit-font-smoothing: antialiased;
}

.icon-star:before {
	content: "\2605";
}

.icon-fork:before {
	content: "\1210"; /*TODO: BUG: Missing on Windows Phone 7.5 */
}

/* Body styles
============================================================ */

/* Setup base font styles */
body {
	line-height: 1em;
	font-family: 'Source Sans Pro', sans-serif;
	color: #222;
	-webkit-font-smoothing: subpixel-antialiased;
}

/* Create a centered layout */
.body {
	font-size: 112.5%;
	line-height: 1em;
	max-width: 44.444em; /* ~800px */
	margin: 0 auto 1em;
	padding: 0 1em;
	word-wrap: break-word;
	overflow: hidden;
}

/* Image
============================================================ */
img {
	max-width: 100%;
}

/* Text elements 
============================================================ */
/* Paragraph */
p {
	padding: 0.5em 0;
	line-height: 1.556em;
}

/* Quote */
blockquote {
	display: block;
	margin: 0.5em 0 1em;
	border-left: 8px solid #c4563a;
	padding: 0.5em 1em;
	line-height: 1.556em;
	background-color: #f7f7f7;
}

/* Hightlight */
mark {
	padding: 0 0.222em;
	background-color: #ffff00;
}

/* Strikethrough */
s {
	color: #7c0000;
}

/* Hyperlink 
------------------------------------------------------------ */
a {
	color: #3a97c4;
	text-decoration: none;
	border-bottom: 1px dotted #abbfc9;
	/*-webkit-transition: color 0.3s ease-in;
	-moz-transition: color 0.3s ease-in;
	-ms-transition: color 0.3s ease-in;
	-o-transition: color 0.3s ease-in;
	transition: color 0.3s ease-in;*/
}

a:hover,
a:focus,
h2 a:hover,
h2 a:focus,
h3 a:hover,
h3 a:focus,
h4 a:hover,
h4 a:focus,
h5 a:hover,
h5 a:focus,
h6 a:hover,
h6 a:focus,
nav.menu a:hover,
nav.menu a:focus {
	color: #2478a1;
	border-bottom: 1px dotted #3a97c4;
}

a.img-link {
	border-bottom: 0;
}

/* Button */
input[type="submit"],
.button,
a.read_more {
	background-color: #3a97c4;
	color: #fff;
	padding: 0.722em 0.889em;
	border: 0 !important;
	display: inline-block;
	cursor: pointer;
	-webkit-transition: background-color 0.3s ease-in, color 0.3s ease-in;
	-moz-transition: background-color 0.3s ease-in, color 0.3s ease-in;
	-ms-transition: background-color 0.3s ease-in, color 0.3s ease-in;
	-o-transition: background-color 0.3s ease-in, color 0.3s ease-in;
	transition: background-color 0.3s ease-in, color 0.3s ease-in;
}

input[type="submit"]:hover,
input[type="submit"]:focus,
.button:hover,
.button:focus,
a.read_more:hover,
a.read_more:focus {
	color: #fff;
	background-color: #2478a1;
}

/* Titles 
------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: #333;
	line-height: 1em;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	border-bottom: 0;
}

h1,
h2 {
	font-size: 1.444em;
	padding: 0 0 0.502em;
	font-family: 'Roboto Slab', serif;
}
.hfeed h1 {
	padding-bottom: 1.502em;
}

.hfeed header h1,
.hfeed header h2 {
	padding-top: 0;
	padding-bottom: 0.502em;
}

h3 {
	font-size: 1.222em;
	padding: 0.695em 0 0.417em;
	font-family: 'Roboto Slab', serif;
}

h4 {
	padding: 1.212em 0 0.606em;
	text-transform: uppercase;
	font-size: 1.111em;
	font-weight: bold;
}

h5 {
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1em;
}

h5,
h6 {
	padding: 1.167em 0 0.611em;
}

h6 {
	font-family: 'Roboto Slab', serif;
	font-size: 0.889em;
}

/* Code 
------------------------------------------------------------ */
code {
	font-size: 0.778em;
	font-family: Consolas, monospace, sans-serif;
	background-color: #f7f7f7;
	color: #444;
	padding: 0.286em 0.428em;
	white-space: pre;
	word-wrap: normal;
}

pre code {
	display: block;
	border-left: 8px solid #3a97c4;
	padding: 0.5em 1em;
	overflow: auto;
	line-height: 1.5em;
	word-wrap: normal;
}

/* Figure & caption 
------------------------------------------------------------ */
figure {
	padding: 0.5em 0 1em;
}

figcaption {
	font-size: 0.778em;
	color: #888;
	padding-top: 0.5em;
	line-height: 1em;
}

/* Lists 
------------------------------------------------------------ */
.entry-content ul,
.entry-content ol {
	padding-bottom: 0.5em;
	font-size: 0.889em;
}

.entry-content ul {
	list-style: square outside none;
}

.entry-content ol {
	list-style-type: decimal;
}

.entry-content li {
	margin-left: 1.5em;
	padding-left: 0.312em;
	line-height: 1.812em;
}

/* Site header 
============================================================ */
header.header-main {
	padding: 1em 0 0.722em;
	margin-bottom: 1.944em;
	border-bottom: 1px solid #dfdfdf;
	text-align: center;
	font-family: 'Roboto Slab', serif;
}

#site-title {
	font-size: 1.278em;
	margin-bottom: 0.478em;
	padding: 0;
	line-height: 1em;
}

#site-title a,
#site-title a:hover,
#site-title a:focus {
	color: #333;
	border-bottom: 0;
}

@media all and (min-width: 32.5em) { /* ~520px */
	#site-title  {
		float: left;
	}
}

/* Clear fix hack */
header.header-main:before,
header.header-main:after {
	content: "";
	display: table;
}
header.header-main:after {
	clear: both;
}
header.header-main {
	zoom: 1;
}

/* Navigation menu 
------------------------------------------------------------ */
nav.menu {
	font-size: 1.167em;
	margin-top: 1em;
}

@media all and (min-width: 32.5em) { /* ~520px */
	nav.menu {
		margin-top: 0;
		float: right;
		clear: right;
	}
}

nav.menu li {
	list-style: none;
	margin-bottom: 0.524em;
}

@media all and (min-width: 18.5em) { /* ~296px */
	nav.menu li {
		display: inline-block;
	}
}

nav.menu a {
	text-decoration: none;
	margin: 0.19em 0.381em 0.095em;
	color: #3a97c4;
	border-bottom: 0;
}

.left {
	float: left;
	margin-right: 1em;
	padding: 0.5em 0;
}

.clear {
	clear: both;
}

/* Home feed
============================================================ */
.home-feed article + article,
.pagination  {
	margin-top: 1.444em;
	border-top: 1px solid #ebebeb;
	padding-top: 1em;
}

a.read_more {
	line-height: 1.556em;
}

.pagination {
	padding-top: 1.5em;
}

.pagination li {
	list-style: none;
	display: inline-block;
	margin-right: 0.778em;
}

.pagination li + li {
	border-left: 1px solid #ebebeb;
	padding-left: 0.778em;
}

.pagination a {
	font-size: 1.111em;
	font-family: 'Roboto Slab', serif;
	border: 0;
}

/* Projects list 
============================================================ */
.projects > li {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.projects > li + li {
	margin-top: 0.5em;
	border-top: 1px solid #ebebeb;
}

@media all and (min-width: 28.375em) { /* ~454px */
	.projects > li {
		position: relative;
	}

	.projects .stats {
		position: absolute;
		top: 1.25em;
		right: 0;
	}
}

.projects .stats {
	color: #888;
}

.projects .stats li {
	list-style: none;
	margin-right: 1em;
	margin-left: 0;
	padding-left: 0;
	display: inline-block;
}

.stats .stars {
	min-width: 3.187em;
	text-align: center;
}

.stats .forks {
	min-width: 0.125em;
}

.stats .icon-star:before,
.stats .icon-fork:before {
	padding-right: 0.312em;
}

/* Social nav 
============================================================ */
.social-nav {
	margin-top: 0.812em;
}

.social-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media all and (min-width: 25em) { /* ~400px */
	.social-nav li {
		display: inline-block;
	}
}

.social-nav a {
	border: 0;
}

.social-nav .icon-link {
	display: inline-block;
	min-height: 30px;
	font-size: 1em;
	line-height: 1em;
	margin: 0.187em 0.625em 0.187em 0;
}

.social-nav .icon-link:hover {
	text-decoration: none;
	background-color: #eee;
}

.social-nav .icon-link img {
	width: 30px;
	height: 30px;
	margin: 0;
	vertical-align: middle;
	max-width: 30px;
}

.social-nav .icon-link span {
	padding: 0 0.5em;
	display: inline-block;
}

/* Table
============================================================ */
.table-wrap {
	/* Scroll table when viewport is small */
	overflow: auto;
}

.entry-content table {
	text-align: left;
}

.entry-content table td,
.entry-content table th {
	border: 1px solid #5c5c5c;
	padding: 0.278em 0.389em;
	vertical-align: top;
}

.entry-content thead th {
	background-color: #5c5c5c;
	border-color: #949494;
	color: #fff;
	text-align: left;
}

.entry-content td.cell-wrong {
	background-color: #fcecec;
	color: #e40000;
	font-wieght: bold;
}

.entry-content td.cell-correct {
	background-color: #f0ffec;
	color: #084e02;
	font-wieght: bold;
}

.entry-content td.cell-na {
	background-color: #eee;
	color: #666;
}

/* Comments 
============================================================ */
.comments {
	margin-top: 2.444em;
}

.js #comments,
.js #respond {
	display: none;
}

.comment-author img {
	border-radius: 50%;
	float: left;
	margin-right: 1em;
}

.comment-author cite {
	margin-bottom: 0.5em;
	display: block;
	font-family: 'Roboto Slab', serif;
}

.comment-author cite a {
	border: 0;
}

.comment-meta {
	color: #8a8a8a;
}

#comments ol > li {
	margin-top: 1em;
	border-top: 1px solid #ebebeb;
	padding-top: 1em;
}

#comments ol {
	margin-bottom: 1em;
	border-bottom: 1px solid #ebebeb;
	padding-bottom: 1em;
}

#comments ul li {
	padding-left: 2.278em;
	margin-top: 1em;
	border-top: 1px dotted #ebebeb;
	padding-top: 1em;
}

@media all and (min-width: 33.125em) { /* ~530px */
	#comments ul li {
		padding-left: 3.389em;
	}
}

/* Comment form 
------------------------------------------------------------ */
input[type="text"],
textarea {
	border: 1px solid #b3b3b3;
}

#commentform label {
	display: block;
}

#commentform input[type="text"],
#commentform textarea {
	width: 99.8%;
}

@media all and (min-width: 25em) { /* ~400px */
	#commentform label {
		display: inline;
	}

	#commentform input[type="text"] {
		width: 13.889em; /* ~250px */
		float: left;
		margin-right: 1em;
	}
}

#commentform .comment-form-comment label {
	display: none;
}

.required {
	color: #f00;
}

/* Search form 
------------------------------------------------------------ */
#searchform #s {
	padding: 0.5em;
	width: 40%;
	vertical-align: bottom;
}

/* Hidden - TODO: Remove elements
============================================================ */
#access,
.form-allowed-tags,
.comment-notes,
.content-footer,
.pingback,
.screen-reader-text,
.home-feed article footer {
	display: none !important;
}