/*!
 * normalize.css v3.0.3
 * github.com/necolas/normalize.css
 */

*,
*:after,
*:before {
	box-sizing: border-box;
}

@-ms-viewport {
	width: device-width;
}

body {
	background-color: $white;
	background-image: none;
	color: $black-text-solid;
	font-family: $font-fam;
	font-size: $font-size;
	font-weight: $font-weight-normal;
	line-height: $line-height;
	margin: 0;
	padding: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: subpixel-antialiased;
}

html {
	font-family: sans-serif;
	font-size: 100%;
	min-height: 100%;
	position: relative;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-text-size-adjust: 100%;
	    -ms-text-size-adjust: 100%;
}

// form
	button,
	input,
	optgroup,
	select,
	textarea {
		color: inherit;
		font: inherit;
		margin: 0;
	}

	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"] {
		cursor: pointer;
		-webkit-appearance: button;
	}

	button,
	select {
		text-transform: none;
	}

	button {
		overflow: visible;
	}

	button[disabled],
	input[disabled] {
		cursor: default;
	}

	button::-moz-focus-inner,
	input::-moz-focus-inner {
		border: 0;
		padding: 0;
	}

	fieldset {
		border: 0;
		margin: 0;
		min-width: 0;
		padding: 0;
		& ~ fieldset {
			margin-top: $margin-md;
		}
	}

	input {
		line-height: normal;
	}

	input[type="checkbox"],
	input[type="radio"] {
		line-height: normal;
		margin: 4px 0 0;
		padding: 0;
	}

	input[type="color"] {
		min-width: $line-height;
		width: auto;
	}

	input[type="date"],
	input[type="datetime-local"],
	input[type="month"],
	input[type="time"] {
		line-height: $line-height;
		line-height: 1 #{\0};
	}

	input[type="file"] {
		display: block;
		height: auto;
		line-height: 1;
		min-height: $input-height;
		padding-top: (($input-height - $line-height) / 2);
		padding-bottom: (($input-height - $line-height) / 2);
	}

	input[type="number"]::-webkit-inner-spin-button,
	input[type="number"]::-webkit-outer-spin-button {
		height: auto;
	}

	input[type="range"] {
		display: block;
		height: $input-height;
		width: 100%;
	}

	input[type="search"] {
		box-sizing: border-box;
		-webkit-appearance: none;
	}

	input[type="search"]::-webkit-search-cancel-button,
	input[type="search"]::-webkit-search-decoration {
		-webkit-appearance: none;
	}

	label {
		display: inline-block;
		font-weight: $font-weight-medium;
		margin: 0;
		max-width: 100%;
	}

	legend {
		border: 0;
		color: $black-text-solid;
		display: block;
		font-size: $font-size-h3;
		font-weight: $font-weight-normal;
		line-height: $line-height-h3;
		margin: 0 0 $margin-sm;
		padding: 0;
		width: 100%;
	}

	optgroup {
		font-weight: $font-weight-medium;
	}

	select[multiple],
	select[size] {
		height: auto;
	}

	textarea {
		overflow: auto;
	}

// list
	dd,
	dt,
	li {
		line-height: $line-height;
	}

	dd {
		margin: 0;
	}

	dl {
		margin: $margin-sm 0;
	}

	dt {
		font-weight: $font-weight-medium;
	}

	ol,
	ul {
		margin: $margin-sm 0;
		padding: 0 0 0 ($grid-gutter * 2);
		ol,
		ul {
			margin-top: 0;
			margin-bottom: 0;
		}
	}

// table
	table {
		border-collapse: collapse;
		border-spacing: 0;
	}

	td,
	th {
		padding: 0;
	}

	th {
		text-align: left;
	}

// typography
	a {
		background-color: transparent;
		background-image: none;
		color: $link-color;
		text-decoration: none;
		&:focus,
		&:hover {
			color: $link-color-hover;
			outline: 0;
			text-decoration: underline;
		}
	}

	abbr[title] {
		border-bottom: 1px dashed $black-divider;
		cursor: help;
	}

	b,
	strong {
		font-weight: $font-weight-medium;
	}

	dfn {
		font-style: italic;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	.h1,
	.h2,
	.h3,
	.h4,
	.h5,
	.h6 {
		color: inherit;
		font-family: $font-fam;
		font-weight: $font-weight-normal;
		margin-top: $margin-lg;
		margin-bottom: $margin-sm;
	}

	h1,
	.h1 {
		font-size: $font-size-h1;
		line-height: $line-height-h1;
	}

	h2,
	.h2 {
		font-size: $font-size-h2;
		line-height: $line-height-h2;
	}

	h3,
	.h3 {
		font-size: $font-size-h3;
		line-height: $line-height-h3;
	}

	h4,
	.h4 {
		font-size: $font-size-h4;
		line-height: $line-height-h4;
	}

	h5,
	.h5 {
		font-size: $font-size-h5;
		line-height: $line-height-h5;
	}

	h6,
	.h6 {
		font-size: $font-size-h6;
		line-height: $line-height-h6;
	}

	h1,
	h2,
	h3,
	h4,
	.h1,
	.h2,
	.h3,
	.h4 {
		small {
			font-size: $font-size;
		}
	}

	p {
		margin: $margin-sm 0;
	}

	small {
		font-size: 75%;
		line-height: 1;
	}

	sub,
	sup {
		font-size: 80%;
		line-height: 0;
		position: relative;
		vertical-align: baseline;
	}

	sub {
		// position
			bottom: -0.25em;
	}

	sup {
		// position
			top: -0.5em;
	}

// utilities
	address {
		font-size: $font-size;
		font-style: normal;
		font-weight: $font-weight-normal;
		line-height: $line-height;
		margin: $margin-sm 0;
	}

	article,
	aside,
	details,
	figcaption,
	figure,
	footer,
	header,
	hgroup,
	main,
	menu,
	nav,
	section,
	summary {
		display: block;
	}

	audio,
	canvas,
	progress,
	video {
		display: inline-block;
		max-width: 100%;
		vertical-align: baseline;
	}

	audio:not([controls]) {
		display: none;
		height: 0;
	}

	blockquote,
	q {
		font-size: $font-size-h4;
		font-style: italic;
		font-weight: $font-weight-light;
		line-height: $line-height-h4;
		margin: $margin-md 0;
		padding-right: ($grid-gutter * 2);
		padding-left: ($grid-gutter * 2);
		position: relative;
	}

	figure {
		margin: 1em 40px;
	}

	hr,
	.hr {
		border: 0;
		border-top: 1px solid $black-divider;
		box-sizing: content-box;
		display: block;
		height: 0;
		margin-top: $margin-md;
		margin-bottom: $margin-md;
	}

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

	svg:not(:root) {
		overflow: hidden;
	}

	template,
	[hidden] {
		display: none;
	}
