/******* WEBKIT SCROLLBAR *******/
/* http://almaer.com/scrollbar/debug.html */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 10px;
}

::-webkit-scrollbar-button:vertical:increment {
    background-color: #fff;
}

::-webkit-scrollbar-track-piece {
    background-color: #eee;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-track-piece:window-inactive,
::-webkit-scrollbar-thumb:window-inactive {
	background-color: #fff;
}


/******* GLOBAL *******/

html {
	display: block;
	height: 100%;
	background-color: #fff;
	font-smoothing: antialiased;
		-webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; -o-font-smoothing: antialiased; -khtml-font-smoothing: antialiased;
	display: block;
}

body {
	display: block;
	min-height: 100%;
	background-color: #fff;
	color: #333;
	font: 100%/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
	top: 0;
	right: 6px;
	bottom: 0;
	left: 0;
}

h1 { font-size: 2.25em; }

h2 { font-size: 1.2em; }

h5 {
	text-transform: uppercase;
	font-size: .9em;
	letter-spacing: 2px;
}

strong {
	font-weight: bold;
	color: #fc9200;
}

a {
	color: #3366cc;
	text-decoration: none;
	border-bottom: 1px solid #3366cc;
}

a:visited { border-style: dotted; }

a:hover, a.hover {
	color: #222;
	border-color: #222;
}

a:active {
	position: relative;
	top: 1px;
}

input, textarea, button, select, option { font: 100%/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif; }

input, textarea, button {
	background-color: #fff;
		background: -webkit-gradient(linear, 0 0, 0 1, from(#f2f2f2), to(#fff)) !important;
		background: -moz-linear-gradient(top, #f2f2f2, #fff 1px) !important;
		background: -o-gradient(linear, 0 0, 0 1, from(#f2f2f2), to(#fff)) !important;
		background: -khtml-gradient(linear, 0 0, 0 1, from(#f2f2f2), to(#fff)) !important;
	display: block;
	width: 100%;
	margin-bottom: 10px;
	padding: 3px 2px;
	border: 1px solid #666;
	border-radius: 0;
		-webkit-border-radius: 0; -moz-border-radius: 0; -o-border-radius: 0; -khtml-border-radius: 0;
}

input:focus, textarea:focus, button:focus {
	border-color: #222;
}

select {
	padding: 3px 2px;
	color: #333;
}

input[type="file"] { border: 0; }

input[type="text"], input[type="password"] { height: auto; }

textarea { height: 40%; }

input[type="submit"], button {
	border: 1px solid #4c4c4c;
	background-color: #eaeaea;
		background: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#cfcfcf)) !important;
		background: -moz-linear-gradient(top, #fefefe, #cfcfcf) !important;
		background: -o-gradient(linear, left top, left bottom, from(#fefefe), to(#cfcfcf)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#fefefe), to(#cfcfcf)) !important;
		border-radius: 5px;
			-webkit-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; -khtml-border-radius: 5px;
}

input[type="submit"]:hover, button:hover {
	background-color: #f1f1f1;
		background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd)) !important;
		background: -moz-linear-gradient(top, #fff, #ddd) !important;
		background: -o-gradient(linear, left top, left bottom, from(#fff), to(#ddd)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#fff), to(#ddd)) !important;
}

input[type="submit"]:active, button:active {
	background-color: #868686;
		background: -webkit-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
		background: -moz-linear-gradient(top, #7c7c7c, #919191) !important;
		background: -o-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
}

input[type="submit"].delete, button.delete {
	background-color: #db0012;
		background: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#c00000)) !important;
		background: -moz-linear-gradient(top, #fefefe, #c00000) !important;
		background: -o-gradient(linear, left top, left bottom, from(#fefefe), to(#c00000)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#fefefe), to(#c00000)) !important;
	color: #fff;
}

input[type="submit"].delete:hover, button.delete:hover {
	background-color: #e16d6d;
		background: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#d00000)) !important;
		background: -moz-linear-gradient(top, #fefefe, #c00000) !important;
		background: -o-gradient(linear, left top, left bottom, from(#fefefe), to(#c00000)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#fefefe), to(#c00000)) !important;
}

input[type="submit"].delete:active, button.delete:active {
	background-color: #868686;
		background: -webkit-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
		background: -moz-linear-gradient(top, #7c7c7c, #919191) !important;
		background: -o-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
		background: -khtml-gradient(linear, left top, left bottom, from(#7c7c7c), to(#919191)) !important;
}

select { margin-bottom: 10px; display: block; width: 100%; }

img {
	border: 0;
	vertical-align: middle;
}

/******* TIDIOUS *******/

.goright { float: right; }

.goleft { float: left; }

.right { text-align: right; }

.left { text-align: left; }

.center { text-align: center; }

.bold { font-weight: bold; }


/******* LAYOUT *******/

#page {
	margin: 0 8% 64px;
	display: block;
}

	#page h2.header {
		display: block;
		position: fixed;
		top: 64px;
		width: 16%;
		text-align: right;
		text-transform: uppercase;
		letter-spacing: 2px;
		font-weight: bold;
		font-size: 1.2em;
		word-wrap: break-word;
	}
	
	#page section.voicebox {
		display: block;
		position: fixed;
		top: 304px;
		width: 16%;
		text-align: justify;
		font-size: .85em;
		color: #666;
	}
	
		#page section.voicebox a:hover {
			color: #666;
			border-color: #666;
		}


/******* HEADER *******/

#content header {
	display: block;
	padding-bottom: 4%;
	margin-bottom: 4%;
	border-bottom: 1px dotted #777;
}

	#content header h1 {
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-weight: normal;
		letter-spacing: 0px;
		line-height: 1.2;
		color: #ccc;
		font-size: 1.6em;
	}
	
		#content header h1 span {
			color: #333;
			display: block;
		}

/******* NAVIGATION *******/

#page nav {
	position: fixed;
	top: 162px;
	width: 16%;
}

	#page nav ul li {
		display: block;
		text-align: right;
		line-height: 1.2;
		cursor: pointer;
	}

		#page nav ul li a {
			font-variant: small-caps;
			letter-spacing: 2px;
			font-size: 1.1em;
			color: #222;
			text-decoration: none;
			display: block;
			padding: 2px 0;
			border: 0;
			word-wrap: break-word;
			cursor: pointer;
		}
		
		#page nav ul li.current a { font-weight: bold; }
		
		#page nav ul li a:hover {
			background-color: #222;
			color: #fff;
		}
		
		#journal nav ul li.journal a,
		#projects nav ul li.projects a,
		#about nav ul li.about a,
		#feeds nav ul li.feeds a,
		#administration nav ul li.administration,
		#post nav ul li.post a,
		#images nav ul li.images a { font-weight: bold; }


/******* CONTENT *******/

#content {
	display: block;
	margin: 64px 0 0 24%;
}

	#stap { font-weight: bold; }

	#content ul.adminPostListing {
		display: block;
	}

	 	#content ul.adminPostListing li {
			margin-bottom: 6px;
			border: 0;
			background-color: #e9e9e9;
			padding: 1px 3px;
			color: #000;
			display: box;
				display: -webkit-box; display: -moz-box; display: -o-box; display: -khtml-box;
			box-orient: horizontal;
				-webkit-box-orient: horizontal; -moz-box-orient: horizontal; -o-box-orient: horizontal; -khtml-box-orient: horizontal;
			box-align: stretch;
				-webkit-box-align: stretch; -moz-box-align: stretch; -o-box-align: stretch; -khtml-box-align: stretch;
			cursor: pointer;
		}

		#content ul.adminPostListing li:nth-child(odd) { background-color: #f1f1f1; }
		
		#content ul.adminPostListing li:hover { background-color: #fff; }

			#content ul.adminPostListing li > div {
				box-flex: 0;
					-webkit-box-flex: 0; -moz-box-flex: 0; -o-box-flex: 0; -khtml-box-flex: 0;
				display: block;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
					-webkit-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -o-text-overflow: ellipsis; -khtml-text-overflow: ellipsis;
			}

			#content ul.adminPostListing li > div:nth-child(1) {
				width: 192px;
			}

			#content ul.adminPostListing li > div:nth-child(2) {
				box-flex: 1;
					-webkit-box-flex: 1; -moz-box-flex: 1; -o-box-flex: 1; -khtml-box-flex: 1;
				padding-left: 16px;
				padding-right: 10px;
				font-size: .9em;
			}

			#content ul.adminPostListing li > div:nth-child(3) {
				width: 136px;
				font-size: .9em;
			}
			
	#content article.post {
		display: block;
		margin-left: 120px;
		position: relative;
	}
			
	#content article.post:not(:last-child) { margin-bottom: 64px; }
	
		#content article.post > .adMeta {
			font-size: .6em;
			text-transform: uppercase;
			display: inline-block;
			width: 104px;
			position: absolute;
			left: -120px;
			border-right: 1px dotted #ccc;
			padding-right: 16px;
			text-align: right;
		}
		
			#content article.post > .adMeta > .wordcount {
				display: block;
				font-weight: bold;
				color: #ccc;
			}
		
		#content article.post > h1 {
			text-transform: uppercase;
			letter-spacing: 2px;
			line-height: 1.2;
			margin-bottom: 6px;
		}
		
		#content article.post > h1.article { font-size: 1.5em; }
		
		#content article.post > h1.blurb {
			font-size: 1.2em;
			text-transform: none;
			font-variant: small-caps;
			margin-bottom: 19px;
			line-height: .8;
		}
		
			#content article.post > h1 > a {
				color: #333;
				border: 0;
				display: block;
			}
			
			#content article.post > h1.blurb > a {
				color: #000;
				padding-left: 20px;
				background: url(../images/blurb.png) left 4px no-repeat;
				min-height: 16px;
			}
			
			#content article.post > h1 > a:hover {
				color: #111;
				text-decoration: underline;
			}
				
		
		#content article.post > .meta {
			font-size: .6em;
			text-transform: uppercase;
			margin-bottom: 20px;
			letter-spacing: 1px;
		}
		
			#content article.post > .meta > a {
				color: #333;
				text-decoration: none;
				border: 0;
				cursor: pointer;
				margin-right: 10px;
				line-height: 1;
			}

			#content article.post > .meta > a:last-child { margin-right: 0; }

			#content article.post > .meta > a:hover { text-decoration: underline; }

			#content article.post > .meta > a.box {
				background-color: #ddd;
				border-radius: 8px;
					-webkit-border-radius: 8; -moz-border-radius: 8px; -o-border-radius: 8px; -khtml-border-radius: 8px;
				color: #666;
				font-weight: bold;
				display: inline-block;
				padding: 2px 8px;
				text-decoration: none;
				border: 0;
			}

			#content article.post > .meta > a.box:hover {
				background-color: #ccc;
				color: #555;
			}
			
		#content article.post > div.clearer { clear: both; }
			
	#adminPictureSlide img {
		display: inline-block;
		width: 18%;
		margin-left: 1%;
		margin-bottom: 1%;
		vertical-align: top;
	}
	
	#adminPictureSlide img:nth-child(5n+1) { margin-left: 0; }

	#adminLivePostShowcase article.post {
		border-top: 1px dotted #c2c2c2;
		background-color: #e9e9e9;
		margin: 20px 0 0;
		padding: 10px;
	}
	
	#content blockquote {
		border-left: 3px solid #ccc;
		padding-left: 16px;
		display: block;
		margin: 6px 19px -6px 0;
		font-size: .9em;
	}
	
	#content code {
		display: block;
		background-color: #e0eefd;
		white-space: normal;
		font-family: "Courier New", monospace;
		background: #e0eefd;
		padding: 1px 3px;
		font-weight: bold;
		font-smoothing: none;
			-webkit-font-smoothing: none; -moz-font-smoothing: none; -o-font-smoothing: 0; -khtml-font-smoothing: none;
		margin-top: .5em;
	}
	
	#content code.inline { display: inline-block; }
	
	#content article.post img {
		height: auto;
		max-width: 100%;
		margin-top: .5em;
	}
	
	#content article.post a.img,
	#content article.post img { border: 0; }
	
	#content article.post img.goright { margin-left: 8px; }
	
	#content article.post img.goleft { margin-right: 8px; }
	
	#content article.post h3 {
		margin-bottom: -20px;
		letter-spacing: 2px;
	}
	
	#content h2.gogrid {
		letter-spacing: 2px;
		font-size: 1em;
		text-transform: uppercase;
		margin-bottom: 8px;
	}
	
	#content ul.gogrid { margin-bottom: 32px; }
	
		#content ul.gogrid li {
			width: 31%;
			display: inline-block;
			margin-left: 3%;
			margin-bottom: 16px;
			vertical-align: top;
		}

		#content ul.gogrid li:nth-child(3n+1) { margin-left: 0; }

			#content ul.gogrid li > h4 { font-weight: normal; }


/******* ///FLEXIBLE TYPOGRAPHY/// *******/

@media screen and (min-width: 1024px) {
	body { font-size: 105%; }
}

@media screen and (max-width: 800px) {
	body { font-size: 95%; }
	
	#page h2.header { font-size: .95em; }
	
	#content ul.gogrid li {
		width: 48%;
		margin-left: 3%;
	}
	
	#content ul.gogrid li:nth-child(3n+1) { margin-left: 3%; }
	
	#content ul.gogrid li:nth-child(odd) { margin-left: 0; }
}


/******* /// FLEXIBLE LAYOUT /// *******/

/* wide by not tall browsers */
@media screen and (max-device-height: 400px), screen and (max-height: 520px) {
	#page section.voicebox {
		position: static;
		width: auto;
		border-top: 1px dotted #777;
		margin-top: 60px;
		margin-left: 24%;
		padding-top: 16px;
	}
}

/* layouts for small devices, e.g. mobiles */
@media screen and (max-device-width: 480px), screen and (max-width: 600px) {
	#page {
		margin-left: 3%;
		margin-right: 3%;
	}
	
		#page h2.header {
			font-size: 1.4em;
			position: static;
			width: auto;
			text-align: center;
			margin: 24px 0 8px;
		}
	
		#page nav {
			position: static;
			width: auto;
		}
	
			#page nav ul { text-align: center; }
	
				#page nav ul li {
					display: inline-block;
					margin-right: 16px;
				}
			
				#page nav ul li:last-child { margin-right: 0; }
			
					#page nav ul li a { font-size: 1em; }
	
	#content {
		margin: 16px 0 0;
	}
		
		#content > header {
			padding-bottom: 6%;
			margin-bottom: 6%;
		}
	
			#content header h1 { font-size: 1.3em; }
		
		#content ul.adminPostListing li { display: block; }
		
			#content ul.adminPostListing li > div:nth-child(1) {
				width: auto;
				font-weight: bold;
			}

			#content ul.adminPostListing li > div:nth-child(2) { padding: 0; }

			#content ul.adminPostListing li > div:nth-child(3) {
				width: auto;
				text-align: right;
			}
		
		#content article.post {
			margin-left: 0;
		}
		
			#content article.post > .adMeta {
				position: static;
				width: auto;
				border: 0;
				display: block;
			}
			
			#content article.post > .adMeta.solo { margin-bottom: 6px; }
			
				#content article.post > .adMeta > .wordcount {
					display: inline;
					margin-left: 10px;
				}
				
			#content article.post > .meta > a { margin-right: 2px; }
			
			#content article.post > .meta > a:last-child { margin-right: 0; }
			
			
			#content ul.gogrid li {
				display: block;
				margin-left: 0;
				width: auto;
			}
			
			#content ul.gogrid li:nth-child(3n+1),
			#content ul.gogrid li:nth-child(odd) { margin-left: 0; }
	
	#page section.voicebox {
		position: static;
		width: auto;
		border-top: 1px dotted #777;
		margin-top: 60px;
		margin-left: 0;
		padding-top: 16px;
	}
}



/* hide block that shows message to IE versions lower than 8 */

#toooldforyou {
	display: none;
}
