/* 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;
}

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

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
#page-container .et_pb_section h1,
#page-container .et_pb_section h2,
#page-container .et_pb_section h3,
#page-container .et_pb_section h4,
#page-container .et_pb_section h5,
#page-container .et_pb_section h6,
#et-boc h1,
#et-boc h2,
#et-boc h3,
#et-boc h4,
#et-boc h5,
#et-boc h6,
body .et_pb_module_header,
body .et_pb_slide_title,
body .et_pb_toggle_title,
body .entry-title,
body .bn-related__heading {
	font-family: var(--bn-font-display) !important;
	font-style: italic !important;
	font-weight: 800 !important;
}

/* 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;
}

.et_pb_text_inner,
.et_pb_blurb_description,
.et_pb_toggle_content,
.et_pb_newsletter_description,
.et_pb_post_content,
.et_pb_button,
body .et_pb_button,
input.et_pb_button,
button.et_pb_button {
	font-family: var(--bn-font-text) !important;
	font-style: normal;
}

.et_pb_button:after,
body .et_pb_button:after {
	font-family: ETmodules !important;
}

/* Long-form reading: same size on articles and on Divi pages.
   Book and author cards are UI, not body copy. */
.single .et_pb_post_content p:not(.bn-book-meta):not(.bn-book-foot):not(.bn-author-stats):not(.bn-author-quote):not(.bn-author-links),
.single .et_pb_post_content li,
.page .et-l--post .et_pb_text_inner > p,
.page .et-l--post .et_pb_text_inner > 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);
}

.single .et_pb_post_content > p,
.page .et-l--post .et_pb_text_inner > p {
	margin-bottom: 0.9em;
}

.single .et_pb_post_content strong,
.single .et_pb_post_content b,
.page .et-l--post .et_pb_text_inner strong,
.page .et-l--post .et_pb_text_inner b {
	font-weight: 700 !important;
}

@media (max-width: 1023px) {
	.single .et_pb_post_content p:not(.bn-book-meta):not(.bn-book-foot):not(.bn-author-stats):not(.bn-author-quote):not(.bn-author-links),
	.single .et_pb_post_content li,
	.page .et-l--post .et_pb_text_inner > p,
	.page .et-l--post .et_pb_text_inner > li {
		font-size: 18px !important;
		line-height: 1.6 !important;
	}
}
