/* === MEDIA QUERIES AND RESET === */

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

html, body {
	height: 100%;
}

/* === MOBILE LAYOUT === */
/* Mobile first: will be inherited by all other layouts */

#wrapper {
	background: #000;
	width: 100%;
	padding: 20px;
}

header, nav, section, article, aside {
	margin-bottom: 20px;
}

section {
	width: 100%;
	float: none;
}

article {
	width: 100%;
	float: none;
}

aside {
	width: 100%;
	float: none;
}

/* === TABLET LAYOUT === */
/* 481px to 768px. Inherits styles from: Mobile Layout. */

@media only screen and (min-width: 481px) {
	#wrapper {
		width: 96%;
		margin: 0 auto;
	}

	section {
		width: 50%;
		float: left;
	}

	article {
		clear: both;
	}
}

/* === DESKTOP LAYOUT === */
/* Desktop Layout: 769px to a max of 1200px. Inherits styles from: Mobile Layout and Tablet Layout. */

@media only screen and (min-width: 769px) {

	#wrapper {
		width: 90%;
		max-width: 1200px;
	}

	section {
		width: 25%;
	}

	article {
		float: left;
		width: 75%;
		padding-right: 20px;
	}

	aside {
		float: right;
		width: 25%;
		padding-left: 20px;
	}

	footer {
		clear: both;
	}

}