/* Booknation type system
   Headings: Sansita italic 800
   Text, UI, buttons: Open Sans
   Loaded on WordPress and on the custom pages (carti, autori, edituri, topuri, quiz).
*/

: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;
	}
}
