/*
Theme Name: Mighty Forces
Theme URI: https://mightyforcesbooks.com/
Author: Adam J. Blust
Description: Mighty Forces Books child theme for Ollie. Book-cover red, paper and ink, Montserrat ExtraBold headlines, a classic serif for reading, and typewriter accents.
Template: ollie
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: mighty-forces
*/

/* Most styling lives in theme.json. These few rules cover what theme.json can't. */

/* Stacked "book cover" headlines: tight lines, no orphaned breathing room. */
.is-style-mf-stacked {
	text-transform: uppercase;
	line-height: 0.95 !important;
	letter-spacing: -0.015em;
}

/* Typewriter eyebrow label above section headings. */
.is-style-mf-eyebrow {
	font-family: var(--wp--preset--font-family--typewriter);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary);
}
.has-primary-background-color .is-style-mf-eyebrow,
.has-main-background-color .is-style-mf-eyebrow {
	color: inherit;
	opacity: 0.85;
}

/* Book covers: add class "mf-book" to an Image block for a lifted, physical-book look. */
.mf-book img {
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
	max-width: min(100%, 380px);
}
.mf-book.aligncenter img {
	margin-inline: auto;
}

/* Text selection in brand red. */
::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* On red or black bands, buttons flip so they stay visible. */
.has-primary-background-color .wp-element-button:not(.has-background),
.has-primary-background-color .wp-block-button__link:not(.has-background) {
	background-color: var(--wp--preset--color--main);
	color: var(--wp--preset--color--base);
}
.has-main-background-color .wp-element-button:not(.has-background),
.has-main-background-color .wp-block-button__link:not(.has-background) {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.has-primary-background-color a:not(.wp-element-button),
.has-main-background-color a:not(.wp-element-button) {
	color: inherit;
}
