:root {
    --primary: #222;
    --secondary, : #FF4A29;
    --light-text: #888;
}

html {
	font-size: 62.5%;
}

/* ------------------- RESETS */
h1,h2,h3,h4,h5,h6,p {
	margin: 0;
}
p {
	font-size: 1.6rem;
}
a {
	color: inherit;
	text-decoration: none;
}
body {
	margin: 0;
	padding: 0;
	color: var(--primary, #222);
	width: 100%;
	font-family: 'Open Sans', sans-serif;
	box-sizing: border-box;
}
li {
	list-style: none;
	margin: 5px 0;
}
/* ------------------- HEADER */
header {
	display: flex;
	justify-content: space-between;
	
	top: 0;
	left: 0;
	width: 100%;
	padding: 16px 20px;
	box-sizing: border-box;
	background: #FFF;
	z-index: 100;
}
.book-header {
	color: var(--primary);
}

/* ------------------- CHAPTER NAVIGATION */
nav {
	display: flex;
	flex-wrap: wrap;
	z-index: 110;
}
nav a {
	line-height: 2em;
	text-decoration: none;
	color: var(--primary, #222);
	margin: 0 10px;
	font-size: 1.6rem;
}
nav a.active_tab {
	color: var(--secondary, #FF4A29);
}
.chapter {
	font-size: 166px;
	margin-bottom: 10px;
}
/* ------------------- */
main {
	margin: 20px auto;
	width: 90%;
	max-width: 600px;
}
main.photo-essay {
	width: 80%;
	max-width: 600px;
}
/* ------------------- */
.img-container {
	width: 100%;
	margin: 30px auto;
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}
img {
	padding: 10px;
	box-sizing: border-box;
	max-height: 90vh;
	max-width: 100%;
}
img.two {
	max-width: 50%;
}
img.three {
	max-width: 33%;
}
/* ------------------- TEXT */
p {
	line-height: 2em;
	text-indent: 3em;
	color: var(--primary, #222);
	font-weight: 400;
	margin: 30px 0;
}
p span {
	font-weight: 300;
}
.italicized {
	font-style: italic;
}
blockquote {
	font-weight: 300;
	font-size: .9em;
	text-indent: 0;
	margin: 1em 4em;
	line-height: 2em;
	color: var(--light-text, #888);
}
blockquote > span {
	font-style: italic;
}
.p-list {
	margin: 30px 0 30px 4em; 
}
.p-list > p {
	margin: 0 5px;
	text-indent: 0;
}

/* ------------------- NEXT CHAPTER */
.next-chapter {
	text-align: center;
	margin: 50px;
	transition: .2s all;
}
.next-chapter a {
	text-decoration: underline;
}
.next-chapter:hover {
	color: var(--secondary, #FF4A29);
}

/* ------------------- HOME PAGE */
/*------ BOOK INTRO */
.book-intro {
	margin: 100px auto 20px;
	max-width: 600px;
	width: 90%;
}
.book-intro p {
	font-weight: 300;
	font-size: 14px;
	text-indent: 0;
}
.essay-links {
	display: flex;
	flex-flow: column;
	width: 90%;
	max-width: 600px;
	margin: 20px auto;
}
.essay-links > section {
	position: relative;
	margin-bottom: 16px;
}
.essay-links > section a {
	font-weight: bolder;
}
.essay-links span {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0px;
	background: #FFF;
	vertical-align: middle;
	padding: 0px 10px;
	font-size: 30px;
	line-height: 40px;
	border-bottom: 1px solid #aaa;
}
.img-strip {
	height: 40px;
	width: 100%;
}
.essay-links > section:hover {
	opacity: .5;
}

.home-1 {
	background: url('images/home_1.jpg');
}
.home-2 {
	background: url('images/home_2.jpg');
}
.home-3 {
	background: url('images/home_3.jpg');
}
.home-4 {
	background: url('images/home_4.jpg');
}
.home-5 {
	background: url('images/home_5.jpg');
}
.home-6 {
	background: url('images/home_6.jpg');
}
.home-7 {
	background: url('images/home_7.jpg');
}


/* ------------------- RESPONSIVE STYLING */
@media only screen and (min-width: 450px) {
	nav a {
		margin: 0 15px;
	}
}
@media only screen and (min-width: 1035px) {
	header {
		flex-direction: column;
		flex-wrap: wrap;
		background: transparent;
		width: 300px;
		position: fixed;
	}
	header nav {
		margin-top: 20px;
		width: 100px;
	}
	header nav a {
		margin-bottom: 20px;
	}
}
@media only screen and (min-width: 1200px) {
	header nav {
		width: 100%;
	}
	nav a:nth-child(1) {
		margin-left: 0;
	}
}