/* reset - basic eric meyer */


/* Webfonts
---------------------------------------------------------------------- */
/* Generated by Font Squirrel (https://www.fontsquirrel.com) on May 17, 2017 */

@font-face {
    font-family: 'cooper_hewittbook';
    src: url('../webfonts/cooperhewitt-book-webfont.woff2') format('woff2'),
         url('../webfonts/cooperhewitt-book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cooper_hewittbook_italic';
    src: url('../webfonts/cooperhewitt-bookitalic-webfont.woff2') format('woff2'),
         url('../webfonts/cooperhewitt-bookitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cooper_hewittmedium';
    src: url('../webfonts/cooperhewitt-medium-webfont.woff2') format('woff2'),
         url('../webfonts/cooperhewitt-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cooper_hewittmedium_italic';
    src: url('../webfonts/cooperhewitt-mediumitalic-webfont.woff2') format('woff2'),
         url('../webfonts/cooperhewitt-mediumitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Basics
---------------------------------------------------------------------- */

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

body {
	background-color: #23170d;
	color: #f6f6f6;
	font-family: 'cooper_hewittbook', sans-serif;
	margin: 0;
	padding: 0; /* was 1em but looked too much on mobile */
	line-height: 1.5;
	font-size: 1em;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

em {
	font-family: 'cooper_hewittbook_italic';
}

a {
	color: #cc6600;
	text-decoration: none;
}

.item a {
	color: #f6f6f6;
}

.item a:focus {
	outline: 2px solid #f6f6f6;
}

header,
footer {
	margin: 1em;
	margin-bottom: 1em;
}

header {
	margin-top: 1.25em;
}

footer {
	opacity: 0.5;
}

.layout-generic footer{
	margin-top: 1.5em; /* was 2em but felt too much on mobile */
}

header span.first {
	color: #f6f6f6;
}

header a.logo {
	font-size: 1.8em; /* Some tweener fallback that doesn't look awful */ 
	font-size: 5vw;
	text-transform: uppercase;
	letter-spacing: 0.07em; /* 0.05 to 0.12 equiv 5-12% */
	line-height: 1.3;
	width: 100%;
	display: block;
	font-family: 'cooper_hewittmedium';
}

nav,
.layout-generic section {
	border-top: 1px solid rgba(204, 102, 0, 0.5);
}

nav {
	padding: 1em 0 0 0;
	margin: 1em;
}
	
nav.secondary {
	padding-bottom: 0;
	color: #cc6600;
	margin-bottom: 0;
}

nav ul {
	margin: 0;
	padding: 0;
}

nav li {
	list-style-type: none;
	display: inline-block;
	cursor: pointer;
	font-family: 'cooper_hewittmedium';
}

nav li::after {
	content: "/";
	margin-right: 0.5em;
	margin-left: 0.7em;
	color: #cc6600;
	opacity: 0.5;
}

nav li:last-child:after {
	content: none;
}

nav .selected {
	color: #f6f6f6;
}

h1 {
	line-height: 1.3;
	margin-top: 0;
	font-size: 1.3em;
	font-family: 'cooper_hewittmedium';
}

/* Homepage-specific
---------------------------------------------------------------------- */
	
.items {
	overflow: hidden;
}

.item {
	float: left;
	width: 100%;
	
}

.item p:last-child{
	margin-bottom: 0;
}

.item-content {
	display: block;
	background-color: #ccc;
	padding: 1.25em;
	margin: 1em;
	margin-bottom: 0;
}

.item .adjust-bottom span{
	margin-bottom: 1em;
}

.item span{
	display: block;/* NOTE: now we've reached this point, span possibly not best element to have chosen.... Nevermind. */
}

img {
	width: 100%;
	display: block;
}
/*
img{
	transition: padding 0.5s;
}
*/
/* Applied dynamically in jQuery to help determine optimium heights */
.hidden{
	display:block !important;
	visibility:hidden;
}


/* Generic
---------------------------------------------------------------------- */

.layout-generic section {
	margin: 1em;
	padding-top: 1.5em; /* was 2em but felt too much on mobile */
}

.layout-generic p {
	margin-top: 0;
}

.layout-generic img {
	margin-top: 1.5em; /* was 1em but felt too small on mobile */
}

footer p:last-child {
	margin-bottom: 0;
}

/* Media queries
---------------------------------------------------------------------- */

/* 375px / 16px = 23.4375em */
@media only screen and (min-width: 23.4375em) {
	.item-content {
		padding: 1.5em;
    }  
}

/* 414px / 16px = 25.875em */
@media only screen and (min-width: 25.875em) {
    nav li {
    	font-size: 1.1em;
    }
    nav,
	.layout-generic section {
		border-top: 2px solid rgba(204, 102, 0, 0.5);
	}
    .item-content {
    	overflow: hidden;
    }
    .item-content span {
    	display: block;
    	float: left;
    	width: 50%;
    	padding-right: 0.75em;
    }
    .item-content img {
    	float: right;
        width: 50%;
        padding-left: 0.75em;
    }  
}

/* 600px / 16px = 37.5em */
@media only screen and (min-width: 37.5em) {
	body {
		padding: 1em;
    }
    header {
		margin-top: 1em;
	}
    nav.secondary {
    	margin-bottom: 1em;
    }
    nav li {
    	font-size: 1.2em;
    }
    .item {
        width: 50%;
    }
    .item-content {
    	margin-bottom: 1em;
    }
    .item-content span {
    	float: none;
    	width: 100%;
    	padding-right: 0;
    }
    .item-content img {
    	float: none;
        width: 100%;
        padding-left: 0;
    }  
    .layout-generic section {
		position: relative;
	}
	.layout-generic section span {
		display: block;
		max-width: 500px;
	}
	.layout-generic img {
		z-index: -1;
		position: absolute;
		top: 0;
		margin-top: 0;
	}
	.layout-generic footer.fixed {
		position: fixed;
		bottom: 1em;
	}	
}

/* 768px / 16px = 48em */
@media only screen and (min-width: 48em) {
	header span{
		display: inline-block;
		
	}
	header a.logo {
		font-family: 'cooper_hewittbook';
		line-height: 1.1;
	}
	nav li {
    	font-size: 1.3em;
    }	
	.item {
        width: 33.333333%;
        width: calc(100%/ 3);
    }
}

/* 900px / 16px = 56.25em */
@media only screen and (min-width: 56.25em) {
	.item {
        width: 50%;
    }
	.item-content span {
    	display: block;
    	float: left;
    	width: 50%;
    	padding-right: 0.75em;
    }
    .item-content img {
    	float: right;
        width: 50%;
        padding-left: 0.75em;
    }  
}

/* 1000px / 16px = 62.5em */
@media only screen and (min-width: 62.5em) {
    
    body {
		font-size: 1.1em;
    }
    .item-content span {
    	display: block;
    	float: left;
    	width: 50%;
    	padding-right: 0.75em;
    }
    .item-content img {
    	float: right;
        width: 50%;
        padding-left: 0.75em;
    }
    nav li {
    	font-size: 1.4em;
    }
    nav,
	.layout-generic section {
		border-top: 3px solid rgba(204, 102, 0, 0.5);
	}
}

/* 1068px / 16px = 66.75em */
@media only screen and (min-width: 66.75em) {
	.layout-generic section {
		font-size: 1.1em;
    }
    .item {
        width: 25%;
    }
    .item-content span {
    	float: none;
    	width: 100%;
    	padding-right: 0;
    }
    .item-content img {
    	float: none;
        width: 100%;
        padding-left: 0;
    }
}



/* 1400px / 16px = 87.5em */
@media only screen and (min-width: 87.5em) {
   .layout-generic section {
		font-size: 1.2em;
    }
    .item {
        width: 33.333333%;
        width: calc(100%/ 3);
    }
    .item-content span {
    	display: block;
    	float: left;
    	width: 50%;
    	padding-right: 0.75em;
    }
    .item-content img {
    	float: right;
        width: 50%;
        padding-left: 0.75em;
    }   
    nav li {
    	font-size: 1.5em;
    }
    
}

/* 1600px / 16px = 100em */
@media only screen and (min-width: 100em) {
	.layout-generic section {
		font-size: 1.3em;
    }
    .item-content {
    	padding: 1.75em;
    }
    nav li {
    	font-size: 1.6em;
    }
   
}

/* 1800px / 16px = 112.5em */
@media only screen and (min-width: 112.5em) {
	.item {
        width: 25%;
    }
     nav,
	.layout-generic section {
		border-top: 4px solid rgba(204, 102, 0, 0.5);
	}
}

