/* =========================================================
   Book typography
   Trial: Merriweather + Lato
   ========================================================= */

body {
    font-family: "Lato", Arial, sans-serif;
    color: #333;
}


/* ---------------------------------------------------------
   Book header
   --------------------------------------------------------- */

.book-header {
    font-family: "Lato", Arial, sans-serif;
}

.book-draft-notice {
    margin-top: 0.35rem;

    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #777;
}

.book-series-title {
    margin-top: 0.4rem;

    font-family: "Merriweather", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
}

.book-series-title a {
    color: inherit;
    text-decoration: none;
}

.book-series-title a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Chapter typography
   --------------------------------------------------------- */

.book-page {
    font-family: "Lato", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.72;
}

.book-page h1,
.book-page h2,
.book-page h3 {
    font-family: "Merriweather", Georgia, serif;
    color: #292929;
}

.book-page h1 {
    font-size: 2.3rem;
    line-height: 1.30;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.book-page h2 {
    font-size: 1.45rem;
    line-height: 1.35;

    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
}

.book-page h3 {
    font-size: 1.15rem;
    line-height: 1.4;

    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.book-page p {
    margin-top: 0;
    margin-bottom: 1.15rem;
}

.book-page blockquote {
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.65;
}/*
=========================================================
A LIFE BETWEEN THE LAYERS
Book stylesheet
=========================================================
*/


/* ------------------------------------------------------
   BASIC RESET
   ------------------------------------------------------ */

html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: #f6f6f4;
	color: #333;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.65;
}


/* ------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------ */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	color: #000;
	padding: 10px 15px;
	z-index: 1000;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}


/* ------------------------------------------------------
   LINKS
   ------------------------------------------------------ */

a {
	color: #285f91;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}


/* ------------------------------------------------------
   BOOK HEADER
   ------------------------------------------------------ */

.book-header {
	background: #fff;
	border-bottom: 1px solid #d8d8d8;
}

.book-header-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 18px 24px;
}

.book-site-link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	margin-bottom: 5px;
}

.book-site-link a {
	color: #666;
	font-weight: normal;
}

.book-series-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: bold;
}

.book-series-title a {
	color: #222;
	text-decoration: none;
}


/* ------------------------------------------------------
   OUTER BOOK CONTAINER
   ------------------------------------------------------ */

.book-shell {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px 50px 24px;
}


/* ------------------------------------------------------
   CHAPTER
   ------------------------------------------------------ */

.book-page {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	padding: 35px 55px 50px 55px;
}


/* ------------------------------------------------------
   CHAPTER TITLE WITH BOOK ICON
   ------------------------------------------------------ */

.book-page .chapter-title-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	margin: 0 0 35px 0;
	padding: 0;
}

.book-page .chapter-title-row h1 {
	margin: 0;
	padding: 0;
	flex: 0 1 auto;
}

.book-page .chapter-title-row .chapter-title-icon {
	width: 72px;
	height: 72px;
	max-width: 72px;
	margin: 0;
	padding: 0;
	display: block;
	object-fit: contain;
	flex: 0 0 72px;
	position: relative;
	top: -2px;
}


/* ------------------------------------------------------
   HEADINGS
   ------------------------------------------------------ */

.book-page h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.15rem;
	font-weight: normal;
	line-height: 1.2;
	color: #222;
	margin: 0 0 35px 0;
}

.book-page h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	line-height: 1.3;
	color: #333;
	margin: 45px 0 18px 0;
}

.book-page h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	line-height: 1.35;
	color: #444;
	margin: 35px 0 15px 0;
}


/* ------------------------------------------------------
   BODY TEXT
   ------------------------------------------------------ */

.book-page p {
	margin: 0 0 1.25em 0;
}

.book-page strong {
	font-weight: bold;
}

.book-page em {
	font-style: italic;
}


/* ------------------------------------------------------
   OPTIONAL INTRODUCTORY NOTE
   ------------------------------------------------------ */

.book-page .chapter-introduction {
	color: #666;
	font-size: 0.95em;
	font-style: italic;
	border-bottom: 1px solid #ddd;
	padding-bottom: 20px;
	margin-bottom: 35px;
}


/* ------------------------------------------------------
   LISTS
   ------------------------------------------------------ */

.book-page ul {
	list-style-type: disc;
	margin: 0 0 25px 30px;
	padding: 0;
}

.book-page ol {
	list-style-type: decimal;
	margin: 0 0 25px 30px;
	padding: 0;
}

.book-page li {
	float: none;
	display: list-item;
	margin: 0 0 10px 0;
	padding: 0;
}


/* ------------------------------------------------------
   QUOTATIONS
   ------------------------------------------------------ */

.book-page blockquote {
	margin: 30px 20px;
	padding: 5px 0 5px 24px;
	border-left: 3px solid #bbb;
	color: #555;
	font-style: italic;
}

.book-page blockquote p:last-child {
	margin-bottom: 0;
}


/* ------------------------------------------------------
   HORIZONTAL DIVIDERS
   ------------------------------------------------------ */

.book-page hr {
	border: 0;
	border-top: 1px solid #ccc;
	margin: 45px auto;
	width: 60%;
}


/* ------------------------------------------------------
   IMAGES
   ------------------------------------------------------ */

.book-page img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 30px auto;
}

.book-page figure {
	margin: 35px 0;
}

.book-page figcaption {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #666;
	text-align: center;
	margin-top: 8px;
}


/* ------------------------------------------------------
   TABLES
   ------------------------------------------------------ */

.book-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.9rem;
}

.book-page th,
.book-page td {
	border: 1px solid #ccc;
	padding: 9px;
	text-align: left;
	vertical-align: top;
}

.book-page th {
	background: #eee;
}


/* ------------------------------------------------------
   PREVIOUS / CONTENTS / NEXT NAVIGATION
   ------------------------------------------------------ */

.book-navigation {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 15px;
	align-items: center;
	margin: 22px auto;
	max-width: 760px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
}

.book-navigation a {
	font-weight: bold;
}

.book-nav-previous {
	text-align: left;
}

.book-nav-contents {
	text-align: center;
}

.book-nav-next {
	text-align: right;
}


/* ------------------------------------------------------
   FOOTER
   ------------------------------------------------------ */

.book-footer {
	max-width: 760px;
	margin: 35px auto 0 auto;
	padding-top: 25px;
	border-top: 1px solid #ccc;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #666;
}

.book-publication-details span {
	display: inline-block;
	margin: 0 8px 6px 8px;
}

.book-footer-title {
	margin: 12px 0 4px 0;
	font-weight: bold;
	color: #444;
}

.book-footer-site {
	margin: 0;
}


/* ------------------------------------------------------
   MOBILE
   ------------------------------------------------------ */

@media screen and (max-width: 700px) {

	body {
		font-size: 17px;
		line-height: 1.6;
	}

	.book-header-inner {
		padding: 15px 16px;
	}

	.book-shell {
		padding-left: 0;
		padding-right: 0;
	}

	.book-page {
		max-width: none;
		padding: 28px 20px 40px 20px;
	}

	.book-page h1 {
		font-size: 1.75rem;
		margin-bottom: 28px;
	}

	.book-page h2 {
		font-size: 1.3rem;
		margin-top: 38px;
	}

	.book-page .chapter-title-row {
		gap: 8px;
		margin-bottom: 28px;
	}

	.book-page .chapter-title-row h1 {
		font-size: 1.75rem;
		margin: 0;
	}

	.book-page .chapter-title-row .chapter-title-icon {
		width: 58px;
		height: 58px;
		max-width: 58px;
		flex-basis: 58px;
		top: -1px;
	}

	.book-navigation {
		grid-template-columns: 1fr auto 1fr;
		padding: 0 16px;
		margin-top: 18px;
		margin-bottom: 18px;
	}

	.book-nav-previous a,
	.book-nav-next a {
		font-size: 0;
	}

	.book-nav-previous a:after {
		content: "\2190 Previous";
		font-size: 0.85rem;
	}

	.book-nav-next a:after {
		content: "Next \2192";
		font-size: 0.85rem;
	}

	.book-page blockquote {
		margin-left: 5px;
		margin-right: 5px;
		padding-left: 18px;
	}

	.book-footer {
		margin-left: 16px;
		margin-right: 16px;
	}
}


/* ------------------------------------------------------
   VERY SMALL SCREENS
   ------------------------------------------------------ */

@media screen and (max-width: 420px) {

	body {
		font-size: 16px;
	}

	.book-page {
		padding-left: 16px;
		padding-right: 16px;
	}

	.book-page h1 {
		font-size: 1.6rem;
	}

	.book-page .chapter-title-row h1 {
		font-size: 1.6rem;
	}

	.book-page .chapter-title-row .chapter-title-icon {
		width: 50px;
		height: 50px;
		max-width: 50px;
		flex-basis: 50px;
	}

	.book-navigation {
		font-size: 0.78rem;
		gap: 8px;
		padding-left: 10px;
		padding-right: 10px;
	}
}


/* ------------------------------------------------------
   PRINT
   ------------------------------------------------------ */

@media print {

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	.book-header,
	.book-navigation,
	.book-footer,
	.skip-link {
		display: none;
	}

	.book-shell,
	.book-page {
		max-width: none;
		margin: 0;
		padding: 0;
		background: #fff;
	}

	.book-page h1,
	.book-page h2,
	.book-page h3 {
		color: #000;
	}

	.book-page .chapter-title-icon {
		display: none;
	}

	a {
		color: #000;
		text-decoration: none;
	}
}