/* STORMHILL FIX v1.0 — Inner Altar Books: shared styles for book pages and the Books archive.
   1. Book header (text logo strip)  2. Reset inside book designs  3. Plain book layout  4. Archive frame */

/* 1. Book header: no header image (removed in PHP), text logo #121212 on white,
      .5em above and below, 1px #c4c4c4 line along the bottom of the header. */
body.ia-books-header .site-header {
	background: #fff;
	border-bottom: 1px solid #c4c4c4;
}
body.ia-books-header .custom-header {
	background: #fff;
}
body.ia-books-header .site-branding {
	padding: .5em 0;
	margin-bottom: 0;
}
body.ia-books-header .site-title,
body.ia-books-header .site-title a {
	color: #121212;
}
body.ia-books-header .site-description {
	display: none;
}
/* The header's own bottom line replaces the menu bar's. */
body.ia-books-header .navigation-top {
	border-bottom: 0;
}
/* Once the menu bar sticks to the top on scroll, give it the same line. */
body.ia-books-header .site-navigation-fixed.navigation-top {
	border-bottom: 1px solid #c4c4c4;
}

/* Book pages run edge to edge between the header and the footer. */
body.ia-book-single .site-content {
	padding-top: 0;
}

/* 2. Inside a book design, undo the theme's element styles so the design renders as it did on
      its own page (where it sat on browser defaults). SVG is left alone: its fills are attributes. */
.ia-book :where(:not(svg):not(svg *)) {
	all: revert;
}
.ia-book {
	display: block;
}
/* Theme rules the reset can't reach: .single .byline (more specific) and the .wrap clearfix
   pseudo-element (which would become an empty grid item in the designs' grid layouts). */
.ia-book .byline {
	display: block;
}
.ia-book .wrap::before,
.ia-book .wrap::after {
	content: none;
}
.ia-book .screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* 3. Plain layout (a book with no design chosen). */
.ia-book--plain {
	max-width: 1000px;
	margin: 0 auto;
	padding: 3em 1.5em 4em;
}
.ia-book--plain .ia-plain__head {
	display: grid;
	grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
	gap: 2.5em;
	align-items: center;
	margin-bottom: 3em;
}
.ia-book--plain .ia-plain__cover img {
	width: 100%;
	height: auto;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .25);
}
.ia-book--plain .ia-plain__title {
	font-size: 2.5rem;
	line-height: 1.1;
	margin: 0;
}
.ia-book--plain .ia-plain__subtitle {
	font-size: 1.25rem;
	margin: .5em 0 0;
}
.ia-book--plain .ia-plain__byline {
	color: #666;
	margin: .75em 0 0;
}
@media (max-width: 40em) {
	.ia-book--plain .ia-plain__head {
		grid-template-columns: minmax(0, 1fr);
	}
	.ia-book--plain .ia-plain__cover {
		max-width: 12rem;
	}
}

/* 4. Archive frame (cards are in books-cards.css). */
.ia-books-archive {
	display: block;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1em 1.5em 5em;
}
body.ia-books-listing .site-content {
	padding-top: 1.5em;
}
.ia-books-archive__head {
	text-align: center;
	margin: 0 auto 2.5em;
	max-width: 40em;
}
.ia-books-archive__title {
	font-size: 2rem;
	font-weight: 300;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #121212;
	margin: 0;
}
.ia-books-archive__intro {
	color: #555;
	margin-top: .75em;
}
.ia-books-archive__intro p:last-child {
	margin-bottom: 0;
}
