/*---------------------------------------------------------
 2. Scaffolding (_scaffolding.scss)
-------------------------------------------------------- */
html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 93.75%; //15px

	@include media(600px) {
		font-size: 100%;
	}

	// @include media(max-width 599px) {
	// 	font-size: 90%;
	// }
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #333;
	line-height: 1.55;
	background-color: $bg-light;
	text-rendering: optimizeLegibility;
}
a {
	color: $accent;
	text-decoration: none;
	&:hover {
		color: $detail-black;
	}
}
.inside {
	@extend %inside;
}

/*---------------------------------------------------------
 Header (_scaffolding.scss)
-------------------------------------------------------- */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 4;
	overflow: hidden;
	color: #fff;
	padding: 30px;
	a {
		color: inherit;
	}

	.header-normal &,
	.search-no-results & {
		position: relative;
		color: #333;
		.archive-header {
			color: white;
		}
	}
}
.site-title {
	@include rem('font-size', 50px);
	margin: 0;
	line-height: 1;
}

.site-title,
.custom-logo {
	display: inline-block;
	vertical-align: middle;
}

.site-description {
	color: white;
	@include media(max-width $grid-breakpoint) {
		display: none;
	}
}

.site-branding {
	display: inline-block;
	vertical-align: top;
}

.site-navigation-toggle {
	@extend %vertical-align;
	position: absolute;
	right: 30px;
	@include rem('font-size', 30px);
}

/*---------------------------------------------------------
 Navigation (_scaffolding.scss)
-------------------------------------------------------- */
.navigation {
	list-style: none;
}

.main-navigation {
	li {
		@include rem('margin-bottom', 15px);
		&:last-child {
			margin-bottom: 0;
		}
	}
}

.site-nav {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	outline: 0;
	background-color: #f9f9f9;
	max-width: $menu-width;

	&--scrollable-container {
		display: none;
		overflow: auto;
		@include rem('padding', 30px);
		width: $menu-width;
		-webkit-overflow-scrolling: touch;
		height: 100%;
		position: relative;
		.site-nav-transition & {
			display: block;
		}
	}

	&__section {
		border-bottom: 2px solid #333;
		position: relative;
		@include rem('padding', 40px 0);
		&:last-of-type {
			border: none;
			padding-bottom: 0;
		}
	}

	a {
		color: #333;
		&:hover {
			color: #000;
		}
	}

	.widgettitle {
		@include rem('font-size', 18px);
		@include rem('margin-bottom', 24px);
	}

	.close-nav {
		position: absolute;
		top: 65px;
		right: 30px;
		font-size: 30px;
		cursor: pointer;
		z-index: 50;
	}

	.sub-menu {
		margin-top: 10px;
		margin-left: 20px;
	}
}

.site-nav-overlay {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 600;
}

.site-nav-drawer-open .site-nav-overlay,
.site-nav:focus ~ .site-nav-overlay {
	display: block;
	right: $menu-width;
	z-index: 900;
}

#page {
	.site-nav-transition & {
		left: 0;
		position: fixed;
		overflow: hidden;
		width: 100%;
		height: 100%;
		z-index: 800;
	}
	.site-nav-drawer-open & {
		@include transform(translate(-$menu-width,0,0));
		@include transform(translate3d(-$menu-width,0,0));
	}
}

/*---------------------------------------------------------
 Content Area (_scaffolding.scss)
-------------------------------------------------------- */
.site-main {
	@extend %cf;
	display: block;
}

/*---------------------------------------------------------
 Select (_scaffolding.scss)
-------------------------------------------------------- */
::-moz-selection {
	background-color: $bg-lightgray;
	color: $detail-black;
	text-shadow: none; //reset
}
::-webkit-selection {
	background-color: $bg-lightgray;
	color: $detail-black;
	text-shadow: none; //reset
}
::selection {
	background-color: $bg-lightgray;
	color: $detail-black;
	text-shadow: none; //reset
}
img::selection {
	background-color: transparent;
}
img::-moz-selection {
	background-color: transparent;
}

/*---------------------------------------------------------
 Footer (_scaffolding.scss)
-------------------------------------------------------- */
body:not(.header-over) .site-footer{
	@include rem('margin-top', 50px);
}

.page-template-widgetized-php {
	.site-footer {
		margin-top: 0 !important;
	}
	.footer-widgets-container {
		border: none;
	}
}

.stag-custom-widget-area + .site-footer {
	border-top: 2px solid #000;
}

.footer-widgets-container {
	border-top: 2px solid #000;
	@include rem('padding-bottom', 50px);
	.widget {
		@include rem('margin-top', 50px);
	}
	.widgettitle {
		@include rem('font-size', 18px);
		@include rem('margin-bottom', 50px);
	}
	.entry-subtitle {
		display: none;
	}
}
.copyright {
	border-top: 2px solid #000;
	@include rem('padding', 30px 0);
	@include rem('font-size', 13px);
}

.site {
	overflow: hidden;
	z-index: 100;
	@include transition(transform 200ms cubic-bezier(0.2,0.3,0.25,0.9));
}

.footer-menu {
	list-style: none;
	@include media($grid-breakpoint) {
		text-align: right;
	}
	@include media(max-width $grid-breakpoint - 1) {
		margin-top: 15px;
	}
	li {
		display: inline-block;
		&:first-child {
			.divider {
				display: none;
			}
		}
	}

	a {
		color: #333;
		@include transition(color 150ms ease-in);
	}

	.divider {
		display: inline-block;
		margin: 0 7px 0 4px;
	}
}

/*---------------------------------------------------------
 Blog Layouts (_scaffolding.scss)
-------------------------------------------------------- */

.post-grid {
	height: 450px;
	position: relative;
	border-bottom: 2px solid;

	[data-layout="1-2-1-2"] & {
		@include media($grid-breakpoint) {
			display: inline-block;
			vertical-align: top;
			width: 50%;
			float: left;
		}
		&:nth-of-type(3n+1) {
			width: 100%;
			@include media($grid-breakpoint) {
				height: 700px;
				.entry-title {
					@include rem('font-size', 75px);
					@include rem('margin-bottom', 20px);
					line-height: 1.2;
				}
				.entry-subtitle {
					font-size: .36em;
					@include rem(margin, 20px 0);
					&::after {
						top: 30px;
					}
				}
			}
		}

		@include media(min-width $grid-breakpoint) {
			&:nth-of-type(3n+2) {
				border-right: 1px solid;
			}
			&:nth-of-type(3n+3) {
				border-left: 1px solid;
			}
		}

		.entry-subtitle {
			font-size: .7666666em;
			@include rem(margin, 10px 0);
			&::after {
				top: 20px;
			}
		}
	} // 1-2-1-2

	[data-layout="2-2-2-2"] & {
		@include media($grid-breakpoint) {
			display: inline-block;
			vertical-align: top;
			width: 50%;
			float: left;
		}

		@include media(min-width $grid-breakpoint) {
			&:nth-of-type(odd) {
				border-right: 1px solid;
			}
			&:nth-of-type(even) {
				border-left: 1px solid;
			}
		}
		.entry-subtitle {
			font-size: .7666666em;
			@include rem(margin, 10px 0);
			&::after {
				top: 20px;
			}
		}
	} // 2-2-2-2

	[data-layout="1-1-1-1"] & {
		@include media($grid-breakpoint) {
			height: 700px;
			.entry-title {
				@include rem('font-size', 75px);
				@include rem('margin-bottom', 20px);
				line-height: 1.2;
			}
		}
		@include media(max-width $grid-breakpoint) {
			.entry-subtitle {
				font-size: .7666666em;
				@include rem(margin, 10px 0);
				&::after {
					top: 20px;
				}
			}
		}
	} // 1-1-1-1

	[data-layout="1-2-2-2"] & {
		@include media($grid-breakpoint) {
			display: inline-block;
			vertical-align: top;
			width: 50%;
			float: left;
		}
		&:first-of-type {
			width: 100%;
			border-left: none !important;
			@include media($grid-breakpoint) {
				height: 700px;
				.entry-title {
					@include rem('font-size', 75px);
					@include rem('margin-bottom', 20px);
					line-height: 1.2;
				}
			}
			.entry-subtitle {
				font-size: .36em;
				@include rem(margin, 20px 0);
				&::after {
					top: 30px;
				}
			}
		}
		@include media(min-width $grid-breakpoint) {
			&:nth-of-type(odd) {
				border-left: 1px solid;
			}
			&:nth-of-type(even) {
				border-right: 1px solid;
			}
		}
		.entry-subtitle {
			font-size: .7666666em;
			@include rem(margin, 10px 0);
			&::after {
				top: 20px;
			}
		}

	} // 1-2-2-2

	@include media(max-width 480px) {
		.entry-title {
			line-height: 30px;
			margin-bottom: 15px;
		}
		.entry-meta {
			line-height: 20px;
		}
	}
}

.entry-subtitle {
	display: block;
	font-weight: normal;
	font-size: .36em;
	text-transform: none;
	@include rem(margin, 20px 0);
	@include rem(padding-bottom, 30px);
	&:after {
		content: '';
		background: #fff;
		position: relative;
		top: 30px;
		display: block;
		margin: 0 auto;
		width: 100%;
		height: 2px;
		max-width: 145px;
	}
}
