* {
	margin: 0;
	padding: 0;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box; 
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
}
body {
	background: #efefef;
	font-size: 1.4rem;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans;
	color: #222;
}

a {
	color: #777;
	text-decoration: none;
}
	a:hover {
		color: #00f;
	}

h2, h3, h4, h5, h6 {
	font-weight: normal;
}

#logo {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: bold;
}


#top_navigation li {
	display: inline;
	list-style-type: none;
}

#home_projects h2 {
	text-transform: uppercase;
	font-weight: bold;
}

a, .animated {
	-webkit-transition-property: all;
	-webkit-transition-duration: 0.3s;
	-moz-transition-property: all;
	-moz-transition-duration: 0.3s;
	transition-property: all;
	transition-duration: 0.3s;
}

.single_project nav li {
	list-style-type: none;
}

/* narrow viewport -> one column */
@media screen and (max-width: 480px) {
	#wrapper {
		display: -webkit-box;
		-webkit-box-orient: vertical;

		display: -moz-box;
		-moz-box-orient: vertical;

		display: box;
		box-orient: vertical;
	}

	#logo {
		-moz-box-ordinal-group: 1;
		-webkit-box-ordinal-group: 1;
		box-ordinal-group: 1;
	}

	#top_navigation {
		-moz-box-ordinal-group: 3;
		-webkit-box-ordinal-group: 3;
		box-ordinal-group: 3;
	}
		
	#content {
		-moz-box-ordinal-group: 2;
		-webkit-box-ordinal-group: 2;
		box-ordinal-group: 2;
	}

	#wrapper {
		margin: 0.5rem;
	}

	#logo {
		font-size: 1.8rem;
		margin: 2rem 1rem 1.5rem 1rem;
		line-height: 2rem;
	}

	#top_navigation {
		padding: 4rem 1rem;
	}
		#top_navigation li {
			margin-right: 1rem;
		}
			#top_navigation li a {
				text-decoration: underline;
			}

	#content {
		margin: 2rem 0;
	}

	#home_projects {
	}

	#home_projects li {
	}

	#home_projects .project {
		padding: 1rem;
		margin-bottom: 1rem;
	}

	#home_projects h2 {
		font-size: 1.6rem;
	}

	#home_projects img {
		display: block;
		width: 27rem;
		height: auto;
		margin-bottom: 1rem;
	}

	#home_projects p {
		font-size: 1.2rem;
	}

	.single {
		display: -webkit-box;
		-webkit-box-orient: vertical;

		display: -moz-box;
		-moz-box-orient: vertical;

		display: box;
		box-orient: vertical;
	}

		.single nav {
			-moz-box-ordinal-group: 2;
			-webkit-box-ordinal-group: 2;
			box-ordinal-group: 2;
		}

		.single .description {
			-moz-box-ordinal-group: 1;
			-webkit-box-ordinal-group: 1;
			box-ordinal-group: 1;
		}


	.single {
		padding: 0 1rem;
	}

	.single nav {
		padding-top: 10rem;
		line-height: 1.6;
		font-size: 1rem;
		text-transform: uppercase;
	}

	.single nav#projects li:first-child:before {
		content: 'THE PROJECTS: ';
	}

	.single nav li {
		display: inline;
		float: left;
	}

	.single nav li + li:before {
		content: "/";
		margin: 0 0.25rem;
		display: inline;
	}

	.single nav li .selected {
		font-weight: bold;
	}

	.single nav img {
		display: none;
		visibility: hidden;
	}

	.single .description {
		margin-bottom: 2rem;
	}

	.single .description h2 {
		font-size: 2.2rem;
		font-weight: bold;
		margin-bottom: 1rem;
	}

	.single .description p {
		margin: 2rem 0;
		font-size: 1.2rem;
		line-height: 1.6;
	}

	.single .description img {
		max-width: 27rem;
		height: auto;
	}

	.single .description ul {
		margin: 1rem 0;
	}

	.single .description li {
		list-style-position: inside;
		font-size: 1.2rem;
		line-height: 1.6;
	}

	.single .description iframe {
		max-width: 27rem;
	}

	.single .description .collection {
		margin-top: 4rem;
	}

	.collection li {
		display: block;
		max-width: 27rem;
		margin-bottom: 4rem;
	}
		.collection h3 {
			font-weight: bold;
			font-size: 1.4rem;
		}

		.collection p {
			font-size: 1.2rem;
		}
	
	.single dt, .single dd {
		font-size: 1.2rem;
		line-height: 1.6;
	}
		.single dt:after {
			content: ':';
		}

	.blog > nav ul {
		margin-bottom: 3rem;
		display: block;
		float: none;
		clear: both;
	}

	#post_navigation li:first-child {
		display: none;
	}

	#post_navigation li:first-child + li:before {
		content: "";
	}
}

/* wider viewport */
@media screen and (min-width: 481px) {
	#wrapper {
		max-width: 82rem;
		padding: 1rem;
	}

	#logo {
		line-height: 3rem;
		font-size: 1.5rem;
		padding-left: 1rem;
	}

	#top_navigation {
		float: right;
		line-height: 3rem;
		margin-right: 1rem;
		padding-top: 1rem;
		font-size: 1.1rem;
	}

		#top_navigation li + li {
			margin-left: 1rem;
		}


	#content {
		margin: 1rem 0;
	}

	#home_projects {
		padding-top: 4rem;
	}
	
	#home_projects li {
		display: block;
		float: left;
		list-style-type: none;
		width: 20rem;
		height: 22rem;
	}
		#home_projects li:hover {
			background: #fff;
			box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);
			margin-top: -3px;
			margin-bottom: 3px;
		}
			#home_projects li:hover a {
				color: #00f;
			}

	#home_projects .project {
		padding: 1rem;
	}

	#home_projects img {
		width: 100%;
		height: auto;
		padding-bottom: 0.5rem;
	}

	#home_projects h2 {
		font-size: 1.3rem;
		margin-bottom: 0.5rem;
	}

	#home_projects p {
		font-size: 1.2rem;
	}


	.single {
		position: relative;
		padding-top: 3rem;
		height: 100%;
		height: -webkit-calc( 100% - 3rem);
		height: -moz-calc( 100% - 10rem);
	}

	.single nav {
		float: left;
		height: 100%;
		width: 20rem;
		margin-left: -1rem;
		margin-right: 2rem;
		padding-top: 6.5rem;
		padding-right: 1rem;
		padding-left: 1.5rem;
	}

		.single nav li {
			padding: 0.5rem;
			font-size: 1.1rem;
			text-transform: uppercase;
			list-style-type: none;
		}

		.single nav li:hover {
			opacity: inherit;
			background: #fff;
			box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);
		}

		.single li:hover a {
			color: #00f;
		}

		.single .selected {
			font-weight: bold;
		}
		

	.single .description {
		margin-left: 22rem;
		padding-bottom: 2rem;
	}

	.single .description h2 {
		font-weight: bold;
		color: #444;
	}

		.single .description h2 {
			margin: 5rem 0 2rem 0;
			font-size: 2rem;
		}
		
		.single .description h2:first-child {
			margin: 0 0 4rem 0;
			font-size: 2.5rem;
		}

	.single img {
		max-width: 100%;
		height: auto;
	}

	.single iframe {
		max-width: 100%;
	}

	.single .description p {
		line-height: 1.6;
		margin: 2rem 0;
	}

	.single li {
		list-style-position: inside;
		line-height: 1.6;
	}

	.single .description .collection li {
		display: block;
		float: left;
		margin: 0 1rem 1rem -1rem;
		padding: 1rem;
		width: 19rem;
		width: -moz-calc( 100% / 3);
		max-height: 24rem;
	}

	.single .description .collection li:hover {
		background: #fff;
		margin-bottom: 1.3rem;
		margin-top: -0.3rem;
		box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);
	}

	.single .description .collection h3 {
		font-size: 1.3rem;
		font-weight: bold;
		text-transform: uppercase;
	}

	.single .description .collection li p {
		margin: 0;
	}

	.single .description .collection li img {
		max-height: 18rem;
	}

	.blog nav strong {
		color: #999;
	}

	.blog > nav ul {
		margin-bottom: 3rem;
	}

}
