/** Colours **/
@wp-blue: #21759b;
@wp-orange: #d54e21;
@wp-gray: #464646;

@offwhite: #fcfcfc;
@ltblue: #2586AF;
@highlightorange: #FB462D;
@bordergrey: #7d7d7d;

@textcolour: #000;
@stickyyellow: #FFC;

/*

http://www.h3ostudio.com/services/
http://designm.ag/resources/layout-toolbox/
http://designshack.co.uk/articles/layouts/10-rock-solid-website-layout-examples/
http://vandelaydesign.com/blog/design/unique-website-layouts/
http://www.1stwebdesigner.com/tutorials/90-new-and-high-quality-photoshop-web-layout-tutorials/


http://vimeo.com/8893511
*/


body {
	background-color: @offwhite;
	color: @textcolour;
	margin: 0;
	font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	font-size: 15px;
	line-height: 1.63;
}

#wrapper {
	max-width: 960px;
	margin: auto;
}

header#header {
	width: 180px;
	position: fixed;
	padding-top: 5px;
	margin-top: 25px;
	h1, h2 {
		margin: 0;
		padding: 0;
		border: none;
		text-align: center;
		opacity: 0.6;
	}
	h1 {
		font-size: 1em;
		#logo {
			display: block;
			width: 100%;
			padding-top: 150px;
			background: url("images/splat-header.png") no-repeat top center;
		}
		&:hover span {
			opacity: 1.0;
			color: @highlightorange;
		}
	}
	h2 {
		font-size: 0.8em;
	}
}

#main {
	margin-left: 190px;
	border-left: 1px dotted @bordergrey;
	padding-left: 0.7em;
	padding-right: 0.7em;
	padding-top: 1em;
	position: relative;
	min-height: 720px;
	h1 {
		font-size: 0.5em;
		padding-top: 0;
		margin-top: 0;
		margin-left: 1em;
		padding-bottom: 0px;
		border: none;
	}
	h3 {
		margin-top: 0;
	}
	h1, h2, h3, h4, h5, h6 {
		margin-left: -0.5em;
	}
}

footer#footer {
	clear: both;
	margin: -10px;
	margin-left: 190px;
	margin-top: 0;
	padding: 10px;
	min-height: 3em;
	border-top: 1px dotted @bordergrey;
}

#ie6 {
	header {
		/* Position: Fixed no workie? */
		width: auto;
	}
	#main {
		margin: 0;
	}
}

/** END LAYOUT **/

/** START Standatisation **/
div {
	margin: 0;
	padding: 0;
}
p {
	margin: 0;
	padding: 0 5px 10px 5px;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0.5em 0;
	padding: 0 10px;
	a {
		color: inherit;
		&:hover {
			text-decoration: none;
		}
	}
}
ul, ol {
	margin-left: 1em;
	padding-left: 1em;
	ul, ol {
		margin-left: 0;
		padding-left: 1em;
	}
}
.clear {
	clear: both;
}

/** END Standatdisation **/

/** WordPress Standard required classes: **/

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.625em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.625em;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/** END WP Standard Required classes **/

/** START Styling **/
a {
	color: @highlightorange;
	text-decoration: none;
	&:hover {
		text-decoration: underline;
		
	}
}
nav {
	padding-left: 1em;
	padding-top: 2em;
	ul {
		list-style: none;
		margin: 0;
		padding: 0;
		li {
			padding-left: 5px;
		}
	}
	ul {

	}
	ul ul {
		margin-left: 0.7em;
	}
	a {
		color: @ltblue;
		font-weight: bold;
		border-bottom: 1px solid transparent;
		&:hover {
			text-decoration: none;
			border-bottom-color: lighten(@ltblue, 20%);
		}
	}
	li.current_page_item > a {
		color: @highlightorange;
		&:hover {
			border-bottom-color: lighten(@highlightorange, 20%);
		}
	}
}

#main {
	padding-bottom: 1em;
	header {
		h2, h3 {
			margin-left: -0.2em;
			padding-left: 0.4em;
			color: @ltblue;
			a {
				color: inherit;
			}
			&:hover {
				text-decoration: none;
			}
		}
		h2 {
			font-size: 2.5em;
		}
		h3 {
			font-size: 1.5em;
		}
		div.sub-h2 {
			line-height: 0.9em;
			margin-left: 3em;
			margin-top: -1em;
			margin-bottom: 1.5em;
		}
		div.sub-h3 {
			line-height: 0.9em;
			margin-left: 1.5em;
			margin-top: -0.5em;
			margin-bottom: 1.5em;
		}
	}
	header.archive {
		h2 a:hover {
			text-decoration: underline;
		}
	}
	article {
		margin-bottom: 2em;
		&:last-child {
			margin-bottom: 0.5em;
		}
	}
	article.comment {
		margin-bottom: 0; //Reset it for comments.
	}
	img.full-width {
		width: 100%;
		max-height: 320px;
	}
	iframe.vimeo {
		width: 100%;
		height: 428px;
	}
	.meta {
		color: @bordergrey;
	}
	
	nav#pagination {
		text-align: center;
		ul {
			list-style: none;
			li {
				display: inline-block;
				line-height: 2.5em;
				a {
					padding: 0.4em 0.6em;
					border-radius: 5px;
					background-color: lighten(@bordergrey, 20%);
					&:hover, &.current {
						background-color: lighen(@bordergrey, 5%);
						color: @highlightorange;
					}
				}
			}
		}
	}
}

body.archive #main {
	header {
		h2 {
			border-bottom: none;
		}
	}
	.post-thumbnail {
		float: left;
		background-color: lighten(@bordergrey, 20%);
		margin: 0 1em;
		img {
			margin: 5px;
		}
	}
	.post {
		clear: both;
	}
	.format-aside {
		color: lighten(@textcolour, 30%);
		p {
			padding-left: 2em;
		}
	}
}

body.blog {
	article.sticky {
		background-color: @stickyyellow;
		border: 1px solid darken(@stickyyellow, 50%);
	}
}

body.attachment #main {
	.image-holder {
		width: 100%;
		text-align: center;
		img {
			max-width: 100%;
			width: auto;
			height: auto;
		}
	}
	.image-alternates {
		vertical-align: middle;
		a {
			background-color:#000; //This is used to give a dimed look with the opacity on the img
			display: inline-block;
			line-height: 0.8;
			margin-top: 0.5em;
		}
		a:hover img, a.current img {
			opacity: 1.0;
		}
		text-align: center;
		img {
			max-height: 75px;
			max-width: 75px;
			opacity: 0.5;
			-webkit-transition: all 0.3s ease-out;
			-moz-transition: all 0.3s ease-out;
			-ms-transition: all 0.3s ease-out;
			-o-transition: all 0.3s ease-out;
			transition: all 0.3s ease-out;
		}
	}
}

#main article.format-aside,
#main article.format-status {
	header {
		h2,h3 {
			font-size: 0.75em;
			margin-bottom: 0;
		}
	}
	footer {
		font-size: 0.75em;
	}
}

#comments {
	h2 {
		color: @ltblue;
	}
	img.avatar {
		float: left;
		margin: 5px;
	}
	li.comment, #respond {
		max-width: 75%;
		li, #respond {
			max-width: 100%;
		}
	}

	article, #respond {
		clear: both;
		position: relative;
		margin-top: 1em;
		min-height: 78px;
		background-color: lighten(@bordergrey, 45%);
		border: 1px outset @bordergrey;
		-webkit-border-radius: 5px;
		-webkit-border-bottom-right-radius: 5px;
		-webkit-border-bottom-left-radius: 5px;
		-moz-border-radius: 5px;
		-moz-border-radius-bottomright: 5px;
		-moz-border-radius-bottomleft: 5px;
		border-radius: 5px;
		border-bottom-right-radius: 5px;
		border-bottom-left-radius: 5px;
	}
	li.has-children > article {
		border-bottom-right-radius: 0;
	}
	.children article, .commentlist #respond {
		border-top-right-radius: 0;
		border-top-left-radius: 0;
		margin-top: 0;
		border-top: none;
	}
	ul,ol {
		list-style: none;
	}
	.reply a, a#cancel-comment-reply-link {
		position: absolute;
		top: 0;
		right: 0;
		background-color: lighten(@bordergrey, 40%);
		-webkit-border-bottom-left-radius: 7px;
		-moz-border-radius-bottomleft: 7px;
		border-bottom-left-radius: 7px;

		color: @textcolour;
		display: block;
		padding: 5px;
		&:hover {
			text-decoration: none;
		}
	}
	a#cancel-comment-reply-link {
		font-weight: normal;
		font-size: 1em;
	}
	.comment-author .date {
		font-size: 0.7em;
		margin-top: -0.3em;
	}
	.commentlist #respond {
		margin-left: 15px;
	}
}

#respond {
	textarea, input[type="text"] {
		width: 99%;
		position: relative;
	}
	p {
		position: relative;
	}
	p.form-allowed-tags {
		display: none;
	}
	span.required {
		display: none;
	}
	.comment-form-comment label,
	.comment-form-author label,
	.comment-form-email label,
	.comment-form-url label {
		background-color: lighten(@bordergrey, 40%);
		-webkit-border-bottom-right-radius: 7px;
		-moz-border-radius-bottomright: 7px;
		border-bottom-right-radius: 7px;
		padding: 2px 5px;
		position: absolute;
		left: 5px;
		top: 0;
		z-index: 1;
	}
	textarea:focus, input[type="text"]:focus,
	textarea.has-data, input[type="text"].has-data {
		z-index: 2;
	}
	input[type="text"] {
		line-height: 2em;
		height: 2em;
	}
}


// Start the Media Queries.
@media screen and (max-width: 700px) {
	header#header {
		width: 100%;
		max-height: 160px;
		margin-top: 15px;
		position: relative;
		overflow: hidden;
		h1 #logo {
			width: 180px;
			float: left;
			height: 160px;
		}
		div, ul {
			max-width: 180px;
			float: left;
			max-height: 160px;
			overflow:hidden;
			ul {
				float: none;
				overflow: auto;
			}
		}
		nav {
			padding-top: 0;
		}
	}
	#main {
		margin-left: 0;
		border-left: none;
		position: inherit;
		clear: both;
		header {
			h1 {
				position: absolute;
				top: 0;
			}
			div.sub-h2 {
				line-height: 0.9em;
				margin-left: 0.8em;
				margin-top: -1.2em;
				margin-bottom: 1em;
			}
		}
	}
	footer {
		margin: 0;
	}
	h1, h2, h3, h4, h5, h6 {
		font-size: 0.7em;
		margin: 0.2em 0;
		border-bottom: none;
	}
}
@media screen and (max-width: 520px) {
	header#header {
		// Divs: Sidebar widgets
		div {
			display: none;
		}
		// Ul: Nav links
		ul {
			float: none;
		}
	}
}
@media screen and (max-width: 360px) {
	header#header {
		h1 #logo {
			height: auto;
			width: auto;
			background: none;
			display: inline;
			float: none;
			text-indent: inherit;
		}
	}
	#main h1 {
		display: none;
	}
}
