/*
Theme Name: Letters of Note
Theme URI: https://github.com/a8cteam51/letters-of-note/
Author: WordPress.com Special Projects Team
Author URI: https://wpspecialprojects.wordpress.com
Description: A custom theme designed and built for Letters of Note
Requires at least: WordPress 5.0
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia-wpcom
Text Domain: letters-of-note
Tags: two-column, one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Letters of Note is a child theme of Varia which is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* Variables for common patterns and styles used on the site */

:root {

	/* Colors used on the site */
	--color-primary: #e95626;
	--color-blue: #2f64a1;
	--color-black: #0a0a0a;
	--color-cream: #f7f5ef;
	--color-white: #fff;
	--color-gray: #7a7870;

	/* Fonts */
	--font-primary: "adelle", serif;
	--font-secondary: "adelle-sans", sans-serif;

	/* Transition speed */
	--speed-default: 330ms;
	--speed-fast: 250ms;

	/* Max widths */
	--max-template-width: 1150px;
	--max-content-width: 730px;
}

body {
	color: #0a0a0a;
	color: var(--color-black);
	font-family: "adelle", serif;
	font-family: var(--font-primary);
}

/*** HEADERS ***/

h1,
.entry-content h2,
article h2,
.entry-content h3,
article h3,
.entry-content h4,
article h4,
.widgets h2,
.widgets h3 {
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	margin: 40px 0 20px;
}

h1,
.page-title,
.entry-title,
.home h2,
.archive h2 {
	font-size: 2.45em;
	font-weight: 300;
	line-height: 1.36;
}

h2 {
	font-size: 2em;
	font-weight: 300;
	line-height: 1.36;
}

h3,
.entry-content h3 {
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-size: 1.33em;
	font-weight: 600;
	line-height: 1.375;
}

h4 {
	font-size: 1em;
	font-style: italic;
	font-weight: 700;
	line-height: 1.33;
}

.entry-content p {
	margin: 1.75em auto;
}

.entry-content ul,
.entry-content ol {
	font-family: "adelle", serif;
	font-family: var(--font-primary);
}

.entry-content ul {
	list-style: none;
}

.entry-content li {
	padding: .75em .5em .75em 0;
}

.entry-content ul li {
	display: flex;
}

.entry-content ul li:before {
	content: "•";
	font-size: 1.25em;
	font-weight: 700;
	margin: -.25em .5em 0 -1em;
	color: #e95626;
	color: var(--color-primary);
}

/* Dropcaps */

.has-drop-cap:not(:focus):first-letter {
	font-size: 4em;
	font-weight: 300;
}

/* Blockquotes */

blockquote,
.wp-block-quote {
	border: 0;
	margin: 5rem 0 3rem;
	padding: 0;
	position: relative;
}

.wp-block-quote:before {
	background: #e95626;
	background: var(--color-primary);
	content: "";
	height: 5px;
	position: absolute;
	left: 0;
	top: -2rem;
	width: 25%;
}

.wp-block-quote p {
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-size: 1.33rem;
	line-height: 1.83;
}

.wp-block-quote cite {
	color: #0a0a0a;
	color: var(--color-black);
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-size: 1.17em;
	font-weight: 700;
}

/*** LINKS ***/

:focus {
	outline: solid 1px #e95626;
	outline: solid 1px var(--color-primary);
}

.entry-content a,
article a,
.site-footer a {
	color: #e95626;
	color: var(--color-primary);
	font-weight: 700;
	transition: color 330ms ease;
	transition: color var(--speed-default) ease;
}

.entry-content a:hover,
article a:hover {
	color: #0a0a0a;
	color: var(--color-black);
}

/*** BUTTONS ***/

button,
.button,
input[type="submit"],
.wp-block-button__link,
.wp-block-file__button,
.a8c-posts-list__view-all,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept {
	border-radius: 0;
	font-size: 1em;
	letter-spacing: .09em;
	text-transform: lowercase;
}

button:focus,
.button:focus,
input[type="submit"]:focus,
.wp-block-button__link:focus,
.wp-block-file__button:focus,
.a8c-posts-list__view-all:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus {
	outline: dotted 3px #0a0a0a;
	outline: dotted 3px var(--color-black);
}

/* override Varia parent theme's :before and :after on button */

button:before,
.button:before,
input[type="submit"]:before,
.wp-block-button__link:before,
.wp-block-file__button:before,
.a8c-posts-list__view-all:before,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:before,
button:after,
.button:after,
input[type="submit"]:after,
.wp-block-button__link:after,
.wp-block-file__button:after,
.a8c-posts-list__view-all:after,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:after {
	display: none;
}

.post-thumbnail img {
	width: 100%;
}

/*** Figcaption ***/

figcaption,
.wp-block-image figcaption {
	color: #0a0a0a;
	color: var(--color-black);
	font-size: .89rem;
	font-style: italic;
}

.site-header,
.site-main,
.site-footer,
.widgets {
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	max-width: 1150px;
	max-width: var(--max-template-width);
}

@media (min-width: 1200px) {

	.site-header,
	.site-main,
	.site-footer,
	.widgets {
		padding-left: 0;
		padding-right: 0;
	}
}

/*** SITE HEADER ***/

.site-header {
	align-items: center;
	border-bottom: 5px solid #0a0a0a;
	border-bottom: 5px solid var(--color-black);
	display: flex;
	margin-bottom: 42px;
	padding-bottom: 28px;
	position: relative;
}

.site-branding {
	margin: 0;
	max-width: 300px;
	padding: 0 14px;
}

/* Home override */

.home .site-title,
.home .site-description {
	display: none;
}

.home .entry-content {
	position: relative;
}

/* Main navigation */

.main-navigation {
	display: flex;
	margin: 0 0 0 auto;
}

.main-navigation > div {
	display: flex;
}

.main-navigation a {
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-weight: 600;
	text-decoration: none;
}

body:not(.fse-enabled) .main-navigation a {
	font-size: 1rem;
	padding: 1em;
}

.main-navigation > div > ul > li:first-of-type > a {
	padding-left: 1em;
}

.main-navigation a:link,
.main-navigation a:visited {
	color: #0a0a0a;
	color: var(--color-black);
}

.main-navigation a:hover {
	color: #e95626;
	color: var(--color-primary);
}

.main-navigation .current_page_item a,
.main-navigation .current_page_item:visited {
	color: #e95626;
	color: var(--color-primary);
}

.main-navigation > div > ul,
.main-navigation > div > ul li {
	position: static;
}

.main-navigation > div > ul > li:last-of-type > a {
	padding-right: 16px;
}

/* Tool nav (search) */

.tool-nav {
	align-items: center;
	display: flex;
	list-style: none;
	padding: 0;
}

.site-logo,
.site-logo a {
	display: flex;
}

.site-logo svg {
	width: 100%;
	max-width: 261px;
}

.header-search-button {
	background: transparent;
	padding: 12px 16px 6px;
	width: 60px;
}

body:not(.fse-enabled) .header-search-button {
	font-size: .9rem;
}

.header-search-button:hover,
.header-search-button:focus {
	background: transparent;
}

.header-search-button:hover svg path,
.header-search-button:focus svg path {
	fill: #e95626;
	fill: var(--color-primary);
}

/* Search form */

.header-search-button[aria-expanded="true"] + .search-form {
	display: flex;
}

.search-form {
	background: #2f64a1;
	background: var(--color-blue);
	justify-content: center;
	padding: 2rem;
	position: absolute;
	left: 0;
	top: calc(100% + 5px);
	width: 100%;
}

.error-404 .search-form {
	display: flex;
	position: relative;
}

.search-form label {
	align-items: center;
	color: #fff;
	color: var(--color-white);
	display: flex;
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	letter-spacing: .2em;
	padding: 0;
	text-transform: uppercase;
	width: -webkit-max-content;
	width: max-content;
}

@media (max-width: 500px) {

	.search-form,
	.search-form label {
		align-items: center;
		flex-direction: column;
	}

	.search-form label {
		width: 100%;
	}

	.search-field {
		margin: 1rem 0;
		width: 100%;
	}
}

label input {
	font-style: italic;
	margin-left: 1rem;
	text-transform: none;
}

.search-form .search-field {
	border-radius: 0;
}

.search-form .search-submit,
.search-form .search-submit:focus {
	background: #0a0a0a;
	background: var(--color-black);
}

.search-form .search-submit:hover {
	background: #e95626;
	background: var(--color-primary);
}

/* Subscribe */

.button.subscribe {
	background: #e95626;
	background: var(--color-primary);
	font-size: 1rem;
	margin: 0 0 4px 16px;
	padding: 12px 16px;
}

.button.subscribe:link,
.button.subscribe:visited {
	color: #fff;
	color: var(--color-white);
}

.button.subscribe:hover {
	background: #2f64a1;
	background: var(--color-blue);
}

@media (max-width: 900px) {

	.site-header {
		display: block;
	}

	.site-branding {
		max-width: 250px;
	}

	.main-navigation #toggle-menu {
		display: block;
		background: #e95626;
		background: var(--color-primary);
		position: absolute;
		top: 55px;
		right: 0;
		transition: background 330ms ease;
		transition: background var(--speed-default) ease;
	}

	.main-navigation #toggle-menu:hover,
	.main-navigation #toggle:checked + #toggle-menu {
		background: #2f64a1;
		background: var(--color-blue);
	}


	.main-navigation > .menu-menu-container {
		border-top: 5px solid #0a0a0a;
		border-top: 5px solid var(--color-black);
		display: none;
		flex-direction: column;
		margin-top: 1.9rem;
		width: 100%;
	}

	#toggle:checked ~ .menu-menu-container {
		display: block;
	}

	.main-menu {
		display: flex;
		flex-direction: column;
	}

	.main-navigation > .menu-menu-container > .main-menu {
		width: 100%;
	}

	.tool-nav {
		flex-direction: column;
	}

	.main-menu,
	.tool-nav {
		align-items: stretch;
	}

	.main-menu li,
	.tool-nav li {
		border-bottom: 1px solid #0a0a0a;
		border-bottom: 1px solid var(--color-black);
		flex-direction: column;
		text-align: center;
	}

	.main-navigation .main-menu li a {
		display: block;
		font-size: 1.25rem;
		padding: 1rem;
		width: 100%;
	}

	.tool-nav li > button {
		margin: 0 auto;
		padding: 1rem 1rem .75rem;
	}

	.tool-nav li > a.subscribe {
		margin: 1rem auto;
		max-width: -webkit-max-content;
		max-width: max-content;
	}

	.search-form {
		position: static;
	}
}

/*** SITE MAIN ***/

.site-main {
	padding-top: 0;
}

/*** SITE FOOTER ***/

.site-footer {
	border-top: 5px solid #0a0a0a;
	border-top: 5px solid var(--color-black);
	max-width: 1150px;
	max-width: var(--max-template-width);
	padding-top: 1rem;
	padding-bottom: 0;
}

.footer-navigation {
	align-self: flex-start;
	flex: auto;
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	order: inherit;
}

.footer-navigation .footer-menu {
	justify-content: flex-start;
}

.footer-navigation .footer-menu li {
	display: inline-block;
}

body:not(.fse-enabled) .footer-navigation .footer-menu a {
	color: #2f64a1;
	color: var(--color-blue);
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-size: 1.16rem;
	text-decoration: none;
}

body:not(.fse-enabled) .footer-navigation .footer-menu a:link,
body:not(.fse-enabled) .footer-navigation .footer-menu a:visited {
	color: #2f64a1;
	color: var(--color-blue);
}

body:not(.fse-enabled) .footer-navigation .footer-menu a:hover {
	color: #0a0a0a;
	color: var(--color-black);
	text-decoration: underline;
}

@media (max-width: 550px) {

	body:not(.fse-enabled) .footer-navigation .footer-menu a {
		font-size: .9rem;
		padding: 1rem .5rem;
	}
}

.social-navigation {
	margin: 0 auto;
}

.social-navigation a {
	align-items: center;
	background: #2f64a1;
	background: var(--color-blue);
	border-radius: 50%;
	color: #fff;
	color: var(--color-white);
	display: flex;
	height: 57px;
	margin-left: 1rem;
	padding: 0;
	width: 57px;
	transition: background 330ms ease;
	transition: background var(--speed-default) ease;
}

.social-navigation li:first-child a {
	margin-left: 0;
}

.social-navigation a:hover {
	background: #e95626;
	background: var(--color-primary);
	color: #fff;
	color: var(--color-white);
}

.social-navigation a svg {
	height: auto;
	margin: 0 auto;
	padding: 0;
	width: 35px;
}

.site-info {
	flex: 100%;
	margin: 1rem 0;
	order: 0;
}

.stripes {
	display: flex;
	flex: 100%;
	margin-top: 0;
}

.stripes svg {
	width: 100%;
}

@media (max-width: 850px) {

	.footer-navigation,
	.social-navigation {
		flex: 100%;
		margin: 1rem 0;
	}
}

/*** SHARE ICON BAR ***/

#main .sd-block {
	align-items: center;
	display: flex;
	justify-content: center;
}

#main div.sharedaddy h3.sd-title {
	font-size: 1.33rem;
	letter-spacing: .1em;
	margin: 0;
	padding: 0;
}

#main div.sharedaddy h3.sd-title:before {
	display: none;
}

#main .sd-content ul {
	margin: 0 !important;
}

#main .sd-content ul li {
	margin: 0 0 0 1.5rem;
}

#main .sd-content ul li:before {
	display: none;
}

#main .sd-social-icon .sd-content ul li[class*="share-"] a.sd-button {
	background: #2f64a1 !important;
	background: var(--color-blue) !important;
	color: #fff !important;
	color: var(--color-white) !important;
	padding: 6px;
}

#main .sd-content ul li a.sd-button:before {
	font-size: 1.25rem;
}

#main .sd-social-icon .sd-content ul li[class*="share-"] a,
#main .sd-social-icon .sd-content ul li[class*="share-"] a:hover,
#main .sd-social-icon .sd-content ul li[class*="share-"] div.option a {
	padding: 6px;
	top: 0;
}

@media (max-width: 600px) {

	#main .sd-content ul li {
		margin-left: .75rem;
	}
}

/*** PAGINATION ***/

.pagination {
	grid-column: -1 / 1;
}

#pagination,
.pagination {
	border: 1px solid #0a0a0a;
	border: 1px solid var(--color-black);
	border-width: 1px 0;
	display: flex;
	flex-wrap: wrap;
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-weight: 700;
	justify-content: center;
	margin: 3rem 0;
	padding: .5em;
	text-transform: uppercase;
	width: 100%;
	max-width: 100%;
}

.pagination .nav-links {
	justify-content: center;
}

#pagination > *,
.pagination .nav-links > * {
	border-right: 2px solid #7a7870;
	border-right: 2px solid var(--color-gray);
	color: #e95626;
	color: var(--color-primary);
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-size: 1rem;
	letter-spacing: .25em;
	line-height: 1;
	margin: .6rem;
	padding: 0 1em 0 0;
	text-decoration: none;
}

#pagination .current,
.pagination .nav-links .current {
	color: #2f64a1;
	color: var(--color-blue);
}

#pagination > *:last-child,
.pagination .nav-links > *:last-child {
	border: none;
}

/* Post navigation */

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.nav-links a {
	border: none;
	color: #e95626;
	color: var(--color-primary);
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-weight: 600;
	letter-spacing: .1em;
	padding: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 330ms ease;
	transition: color var(--speed-default) ease;
}

.post-navigation .meta-nav {
	font-size: 1em;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	margin: 0;
}

.nav-previous a:before {
	content: "< ";
}

.nav-next a:after {
	content: " >";
}

.nav-links a:hover {
	color: #2f64a1;
	color: var(--color-blue);
}

/*** BREADCRUMBS ***/

.entry-breadcrumbs {
	text-transform: lowercase;
}

.entry-breadcrumbs > span:not(:last-child):after {
	content: " / ";
}

.entry-breadcrumbs span a {
	text-decoration: none;
}

/*** MENU HOME ***/

.menu-home-container {
	margin: 2rem 0 0;
	position: absolute;
	right: 0;
}

.menu-home-container ul {
	display: flex;
	list-style: none;
}

.menu-home-container ul li {
	border-right: 1px solid #0a0a0a;
	border-right: 1px solid var(--color-black);
	line-height: 1;
	padding: 0 1em;
}

.menu-home-container ul li:before {
	display: none;
}

.menu-home-container ul li:last-child {
	border: none;
	padding-right: 0;
}

/*** SINGLE ***/

.page:not(.home) #page .site-main > .entry,
.single #page .site-main > .entry,
.blog #page .site-main > .entry,
.error404 #page .site-main > article {
	margin: 0 auto;
	max-width: 730px;
	max-width: var(--max-content-width);
}

#main .entry-content > * {
	max-width: 1150px;
	max-width: var(--max-template-width);
}

/*** SECTION ALIGNMENTS ***/

.letters > div,
.display-two-up,
.home .widgets,
.archive .widgets {
	display: grid;
	grid-gap: 2rem;
	grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
}

@media (max-width: 500px) {

	.letters > div,
	.display-two-up,
	.home .widgets,
	.archive .widgets {
		display: block;
	}
}

/*** CARDS ***/

.card {
	--card-margin: 3rem;
	border-top: 5px solid #0a0a0a;
	border-top: 5px solid var(--color-black);
	transition: background-color 330ms ease;
	transition: background-color var(--speed-default) ease;
}

@media (max-width: 800px) {

	.card {
		--card-margin: 1rem;
	}
}

.card > * {
	margin-left: var(--card-margin);
	margin-right: var(--card-margin);
}

.card .entry-header {
	margin: 0;
}

.card .entry-date {
	border-bottom: 2px solid #0a0a0a;
	border-bottom: 2px solid var(--color-black);
	display: block;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	padding: 1em 0;
	text-align: center;
}

.card .entry-title {
	color: #e95626;
	color: var(--color-primary);
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-size: 2rem;
	font-weight: 600;
	margin: 1em 0;
	padding: 0 1rem;
	text-align: center;
}

.card .entry-title a {
	color: #e95626;
	color: var(--color-primary);
	display: inline-block;
	font-weight: inherit;
	text-decoration: none;
	transition: color 330ms ease;
	transition: color var(--speed-default) ease;
}

.card.hero .entry-title a {
	color: #fff;
	color: var(--color-white);
}

.card .post-thumbnail {
	display: block;
	width: calc(100% - calc(var(--card-margin) * 2));
}

.card .post-thumbnail img {
	width: 100%;
}

.card .button,
.type-book .button {
	background-color: #e95626;
	background-color: var(--color-primary);
	color: #fff;
	color: var(--color-white);
	display: block;
	margin: var(--card-margin) auto calc(var(--card-margin) / 2);
	padding: 1.15em 1.75em 1em;
	text-decoration: none;
	transition: background-color 330ms ease;
	transition: background-color var(--speed-default) ease;
	width: -webkit-max-content;
	width: max-content;
}

.type-book .button {
	margin: 0 .5em;
	padding-right: .75em;
	padding-left: .75em;
	text-transform: none;
}

.hero .button {
	margin: calc(var(--card-margin) / 2) 1rem 0 0;
}

.purchase-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.hero .purchase-buttons {
	justify-content: flex-start;
}

.card .button:hover,
.type-book .button:hover {
	color: #fff;
	color: var(--color-white);
}

/* Card no thumbnail */

.card:not(.has-post-thumbnail) .entry-header {
	margin-bottom: 2rem;
	position: relative;
}

.card:not(.has-post-thumbnail) .entry-header:after {
	background: #0a0a0a;
	background: var(--color-black);
	content: "";
	display: block;
	height: 4px;
	margin: 0 var(--card-margin);
}

/* Card hover */

.card:not(.hero):not(.type-event):not(.type-book):hover {
	background-color: #f7f5ef;
	background-color: var(--color-cream);
	cursor: pointer;
}

.card:not(.hero):not(.type-event):not(.type-book):hover .entry-title a,
.card .entry-title a:hover {
	color: #0a0a0a;
	color: var(--color-black);
}

.card:not(.hero):not(.type-event):not(.type-book):hover .button,
.single-book .button:hover,
.card .button:hover {
	background-color: #2f64a1;
	background-color: var(--color-blue);
}

.type-event {
	--card-margin: 30px;
	border: none;
	display: grid;
	grid-template-areas:
		"header"
		"content"
		"image";
	margin-bottom: calc(var(--card-margin) * 2);
}

.type-event:last-of-type {
	margin-bottom: 0;
}

@media (min-width: 560px) {

	.type-event {
		grid-template:
			"image header"
			"image content"
			/40% 1fr;
	}

	.type-event .post-thumbnail {
		max-width: 445px;
	}
}

.type-event .entry-header {
	grid-area: header;
	margin-left: var(--card-margin);
}

.type-event .entry-date {
	border: none;
	margin-bottom: 0;
	padding: .25em 0 .5em;
	text-align: left;
}

.type-event .entry-date span {
	color: #e95626;
	color: var(--color-primary);
}

.type-event .entry-title {
	margin: 0 0 .5em;
	padding-left: 0;
	text-align: left;
}

.type-event .entry-content {
	grid-area: content;
	margin-top: 0;
	margin-bottom: 0;
}

.type-event .post-thumbnail {
	align-self: flex-start;
	grid-area: image;
	margin: 0;
	width: 100%;
}

.type-event .button {
	margin-left: 0 !important;
}

/*** HERO ***/

.hero {
	border: none;
}

.hero .entry-header {
	grid-area: header;
	padding: calc(var(--card-margin) * 2) var(--card-margin) var(--card-margin);
}

.hero,
.hero .entry-title {
	color: #fff;
	color: var(--color-white);
	margin: 0;
}

.hero .entry-title {
	font-weight: 300;
	padding: 0;
	text-align: left;
}

.hero .entry-date {
	border: none;
	padding-bottom: 0;
	text-align: left;
}

.book-publish-date {
	font-style: italic;
	font-weight: 700;
}

.hero .entry-content {
	grid-area: descr;
	line-height: 1.5;
	margin: 0 var(--card-margin);
}

.hero .button {
	background: #0a0a0a;
	background: var(--color-black);
}

.hero .button:hover {
	background: #2f64a1;
	background: var(--color-blue);
}

.hero .post-thumbnail {
	align-self: flex-start;
	border: none;
	box-shadow: .25em .25em .75em rgba(0, 0, 0, .5);
	grid-area: image;
}

@media (min-width: 800px) {

	.hero {
		display: grid;
		grid-template:
			"header image"
			"descr image"
			"button image"
			". image"/1fr 36%;
	}

	#content .hero .button {
		margin: calc(var(--card-margin) / 2) 1em 0 0;
	}

	.hero .post-thumbnail {
		margin-top: var(--card-margin);
	}

	.hero .entry-header {
		padding: var(--card-margin) var(--card-margin) 0;
	}

	.hero .entry-title {
		font-size: 2.45rem;
		margin: .25em 0 .5em;
	}

	.hero .entry-content {
		font-size: 1.167em;
		line-height: 1.33;
		margin-right: 0;
	}
}

.hero:not(.has-post-thumbnail) {
	display: block;
	min-height: 450px;
}

@media (max-width: 900px) {

	.hero:not(.has-post-thumbnail) {
		background: #e95626;
		background: var(--color-primary);
		min-height: auto;
	}
}

/*** WIDGETS ***/

.widgets {
	margin-bottom: 3rem;
}

/* Mailchimp and Twitter */

.widget_mailchimp_subscription_widget,
.widget_twitter_timeline {
	background: #f7f5ef;
	background: var(--color-cream);
	padding: 2rem 1.5rem 1.5rem;
}

.widget_mailchimp_subscription_widget p {
	margin: 2em 0;
}

.widget_mailchimp_subscription_widget h2,
.widget_twitter_timeline h2 {
	margin-top: 0;
}

.widget_mailchimp_subscription_widget h2 + p {
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-weight: 600;
	letter-spacing: .15em;
	margin-bottom: 1em;
	text-transform: uppercase;
}

.widget_mailchimp_subscription_widget label {
	display: block;
	flex: 100%;
	letter-spacing: .2em;
	text-transform: uppercase;
	width: 100%;
}

.text-input-submit-wrap {
	display: flex;
	flex-wrap: wrap;
}

#mc-embedded-subscribe {
	background: #e95626;
	background: var(--color-primary);
	height: 100%;
}

#mce-EMAIL {
	border-color: #2f64a1;
	border-color: var(--color-blue);
	border-width: 1px 0 1px 1px;
	border-radius: 0;
	font-style: italic;
	padding: 0 16px;
}

/*** PAGES / POSTS ***/

.page-title {
	margin-bottom: 3rem;
}

.single-post .site-main,
.single-book .site-main {
	position: relative;
}

.single-post .entry-header,
.single-book .entry-header {
	padding-top: 3rem;
	text-align: center;
}

.single-post .entry-date,
.single-book .book-publish-date {
	font-style: italic;
	font-weight: 700;
	margin: 0;
}

.single-post .entry-title,
.single-book .entry-title {
	margin: .5rem 0 1em;
}

.single-post .has-post-thumbnail .entry-header,
.single-book .has-post-thumbnail .entry-header {
	color: #fff;
	color: var(--color-white);
}

.single-post .site-main .has-post-thumbnail:before,
.single-book .site-main .has-post-thumbnail:before {
	background: linear-gradient(175deg, #e95626 0%, #e95626 500px, #fff 501px);
	background: linear-gradient(175deg, var(--color-primary) 0%, var(--color-primary) 500px, var(--color-white) 501px);
	content: "";
	height: 600px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
}

@media (max-width: 500px) {

	.single-post .site-main .has-post-thumbnail:before,
	.single-book .site-main .has-post-thumbnail:before {
		background: linear-gradient(175deg, #e95626 0%, #e95626 300px, #fff 301px);
		background: linear-gradient(175deg, var(--color-primary) 0%, var(--color-primary) 300px, var(--color-white) 301px);
	}
}

.single-post .entry-content {
	margin-top: 2rem;
}

.single-post .widgets {
	max-width: 730px;
	max-width: var(--max-content-width);
}

.single-book .post-thumbnail {
	width: 50%;
	max-width: 316px;
}

/*** LETTERS ***/

.wp-block-letters-of-note-letter header {
	box-shadow: none;
}

.wp-block-letters-of-note-letter .wp-block-verse {
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	line-height: 1.67;
}

/* Legacy letters */

.lon-legacy blockquote {
	background: #f7f5ef;
	background: var(--color-cream);
	border-top: 5px solid #0a0a0a;
	border-top: 5px solid var(--color-black);
	font-size: 1rem;
	padding: 2em;
}

.lon-legacy blockquote p {
	font-size: 1rem;
	line-height: 1.67;
}

/*** POST ARCHIVE BOOKS ***/

.post-type-archive-book .feature + .letters .page-header h1 {
	border-bottom: 5px solid #0a0a0a;
	border-bottom: 5px solid var(--color-black);
	margin-bottom: 3rem;
	padding-bottom: .5rem;
}

.post-type-archive-book .letters > div {
	grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
	grid-gap: 5rem 7vw;
}

@media (max-width: 600px) {

	.post-type-archive-book .letters > div {
		display: grid;
		grid-gap: 1rem;
		grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	}
}

.post-type-archive-book .letters .card {
	border: none;
}

.post-type-archive-book .letters .card > * {
	margin-left: 0;
	margin-right: 0;
}

.post-type-archive-book .letters .card .post-thumbnail {
	border: none;
	box-shadow: .25em .25em .75em rgba(0, 0, 0, .5);
	margin-top: 0;
	width: 100%;
}

.post-type-archive-book .letters .card .entry-title {
	font-size: 1.33rem;
	margin: 0 0 .5rem;
}

.post-type-archive-book .letters .card .entry-title a {
	text-decoration: underline;
}

.post-type-archive-book .letters .card .entry-content {
	margin-top: 0;
}

.post-type-archive-book .letters .card .book-publish-date,
.search .book-publish-date {
	text-align: center;
}

.post-type-archive-book .letters .card .button {
	margin-top: 1rem;
}

/* Archive terms */

.terms ul {
	list-style: none;
	padding: 0;
}

.terms li {
	display: inline-block;
	font-family: "adelle-sans", sans-serif;
	font-family: var(--font-secondary);
	font-weight: 600;
	margin: 0;
	padding-right: 1em;
}

.terms h3 {
	font-size: 2rem;
	margin: 2rem 0 1rem;
}

/*** RELATED POSTS ***/

.site-main #jp-relatedposts h3.jp-relatedposts-headline em {
	font-style: italic;
}

.site-main #jp-relatedposts h3.jp-relatedposts-headline {
	font-size: 1rem;
	margin: 2em 0;
	width: 100%;
	text-align: center;
}

.site-main #jp-relatedposts h3.jp-relatedposts-headline em:before {
	display: none;
}

.site-main #jp-relatedposts .jp-relatedposts-items-visual {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: .5rem;
	margin: 0;
}

@media (max-width: 500px) {

	.site-main #jp-relatedposts .jp-relatedposts-items-visual {
		grid-template-columns: 1fr;
	}
}

.site-main #jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post {
	display: flex;
	flex-direction: column;
	opacity: 1;
	padding: 0;
	width: 100%;
}

.site-main #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
	border-top: 5px solid #0a0a0a;
	border-top: 5px solid var(--color-black);
	border-bottom: 1px solid #0a0a0a;
	border-bottom: 1px solid var(--color-black);
	color: #0a0a0a;
	color: var(--color-black);
	font-style: italic;
	font-weight: 700;
	opacity: 1;
	order: 0;
	padding: 1em 0;
	text-align: center;
}

.site-main .jp-relatedposts-post-title {
	font-style: normal;
	order: 1;
	text-align: center;
}

.site-main #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-size: 1.33rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 1rem;
}

.site-main .jp-relatedposts-post-a {
	order: 2;
}

.site-main .jp-relatedposts-post-context {
	display: none;
}

.site-main .jp-relatedposts-post-excerpt {
	order: 3;
}

.site-main #jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img {
	width: 100%;
}

/*** POPULAR POSTS ***/

.site-main aside {
	position: absolute;
	width: calc(((1150px - 730px) / 2) - 1.5rem);
	width: calc(((var(--max-template-width) - var(--max-content-width)) / 2) - 1.5rem);
	top: 600px;
	right: 0;
}

.widget_top-posts .widget-title {
	border-top: 5px solid;
	border-bottom: 2px solid;
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-size: 1rem;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	padding: 1rem 0;
	text-align: center;
}

.widget_top-posts ul {
	list-style: none;
	margin: 2rem 0;
	padding: 0;
}

.widget_top-posts li {
	line-height: 1.5;
	margin: 1.25em 0;
}

.widget_top-posts li a {
	color: #e95626;
	color: var(--color-primary);
	display: inline-block;
	font-family: "adelle", serif;
	font-family: var(--font-primary);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 1200px) {

	.site-main aside {
		margin: 2rem auto;
		position: static;
		width: 100%;
		max-width: 730px;
		max-width: var(--max-content-width);
	}

	.widget_top-posts ul {
		column-count: 2;
	}

	.widget_top-posts li {
		margin: 0 0 1.25rem;
	}
}

@media (max-width: 600px) {

	.widget_top-posts ul {
		column-count: 1;
	}
}

.letters .loading,
#pagination .loading {
	filter: grayscale(100%);
	pointer-events: none;
	transition: filter 250ms ease-out;
	transition: filter var(--speed-fast) ease-out;
}

.primary-color-slice {
	background: linear-gradient(150deg, #e95626 0%, #e95626 65%, #fff 65.1%);
	background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary) 65%, var(--color-white) 65.1%);
}

.primary-color-slice *:focus {
	outline-color: #0a0a0a;
	outline-color: var(--color-black);
}

@media (min-width: 800px) {

	.primary-color-slice {
		background: linear-gradient(172deg, #e95626 0%, #e95626 72%, #fff 72.1%);
		background: linear-gradient(172deg, var(--color-primary) 0%, var(--color-primary) 72%, var(--color-white) 72.1%);
	}
}

.responsive-max-width {
	max-width: 1150px;
	max-width: var(--max-template-width);
}

.single .responsive-max-width {
	max-width: 730px;
	max-width: var(--max-content-width);
}
