/* Booknation type system
   Headings: Sansita italic 800
   Text, UI, buttons: Open Sans
   Font files are local so they load even when Google Fonts is removed.
*/

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sansita";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url("/assets/webfonts/sansita-italic-800-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sansita";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url("/assets/webfonts/sansita-italic-800-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Older stylesheets still name Roboto and Heebo. Same files, no second download. */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Heebo";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Heebo";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Heebo";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Heebo";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/webfonts/opensans-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bn-font-display: "Sansita", sans-serif;
	--bn-font-text: "Open Sans", sans-serif;
	--bn-text: #333333;
	--bn-ink: #3e4a64;
	--bn-coral: #bf5d54;
}

body {
	font-family: var(--bn-font-text);
	color: var(--bn-text);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .entry-title,
body .bn-related__heading,
body .bn-single__title,
body .bn-page__title,
body .bn-archive__title {
	font-family: var(--bn-font-display) !important;
	font-style: italic !important;
	font-weight: 800 !important;
	color: var(--bn-ink);
}

/* Column labels in the footer stay a UI face, not a display heading. */
.bn-site-footer h1,
.bn-site-footer h2,
.bn-site-footer h3,
.bn-site-footer h4,
.bn-site-footer h5,
.bn-site-footer h6,
.bn-site-footer__title {
	font-family: var(--bn-font-text) !important;
	font-style: normal !important;
	font-weight: 700 !important;
	color: inherit;
}

/* Long-form reading on custom theme content. */
.bn-single__content,
.bn-page__content,
.entry-content {
	font-family: var(--bn-font-text);
}

.bn-single__content p:not(.bn-book-meta):not(.bn-book-foot):not(.bn-author-stats):not(.bn-author-quote):not(.bn-author-links):not(blockquote *),
.bn-single__content li:not(.bn-pareri__list > li):not(.bn-toc__list > li):not(.bn-toc__index-list > li):not(.bn-toc__index > ol > li):not(.category-citate ol > li),
.bn-page__content > p,
.bn-page__content > li,
.entry-content > p,
.entry-content > li {
	font-family: var(--bn-font-text) !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 20px !important;
	line-height: 1.65 !important;
	letter-spacing: normal;
	color: var(--bn-text);
}

.bn-single__content > p,
.bn-page__content > p,
.entry-content > p {
	margin-bottom: 0.9em;
}

/* Image captions — smaller / quieter than body copy */
.bn-single__content figcaption,
.bn-page__content figcaption,
.entry-content figcaption,
.bn-single__content .wp-caption-text,
.bn-page__content .wp-caption-text,
.entry-content .wp-caption-text {
	font-family: var(--bn-font-text) !important;
	font-size: 0.8125rem !important; /* 13px */
	font-weight: 400 !important;
	font-style: italic !important;
	line-height: 1.4 !important;
	letter-spacing: 0.01em;
	color: #6d7585 !important;
	margin: 0.4em 0 1em;
	padding: 0;
	text-align: center;
}

.bn-single__content figure,
.bn-page__content figure,
.entry-content figure,
.bn-single__content .wp-caption,
.bn-page__content .wp-caption,
.entry-content .wp-caption {
	margin: 1em 0 1.15em;
}

.bn-single__content figure > figcaption,
.bn-page__content figure > figcaption,
.entry-content figure > figcaption {
	margin-bottom: 0;
}

.bn-single__content strong,
.bn-single__content b,
.bn-page__content strong,
.bn-page__content b,
.entry-content strong,
.entry-content b {
	font-weight: 700 !important;
}

.bn-single__content a,
.bn-page__content a,
.entry-content a {
	color: var(--bn-coral) !important;
	text-decoration: underline;
}

.bn-single__content a:hover,
.bn-page__content a:hover,
.entry-content a:hover {
	color: #a84f47 !important;
}

@media (max-width: 1023px) {
	.bn-single__content p:not(.bn-book-meta):not(.bn-book-foot):not(.bn-author-stats):not(.bn-author-quote):not(.bn-author-links):not(blockquote *),
	.bn-single__content li:not(.bn-pareri__list > li):not(.bn-toc__list > li):not(.bn-toc__index-list > li):not(.bn-toc__index > ol > li):not(.category-citate ol > li),
	.bn-page__content > p,
	.bn-page__content > li,
	.entry-content > p,
	.entry-content > li {
		font-size: 18px !important;
		line-height: 1.6 !important;
	}
}
