/*
Theme Name: Quiet Place
Theme URI: https://ekaterinastancheva.wordpress.com/
Author: Ekaterina Nanovska
Description: A calm, bookish block theme imagined as a quiet place with rooms: the road, the library and the garden.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quiet-place
*/

/*
 * Only what theme.json and core block styles cannot express lives here.
 */

/* The leaf ornament: a separator block style. */
.wp-block-separator.is-style-leaf {
	border: 0;
	background: none !important;
	height: auto;
	width: auto;
	max-width: none;
	opacity: 1;
	text-align: center;
	color: var(--wp--preset--color--moss) !important;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 22px;
	line-height: 1.8;
	margin-block: var(--wp--preset--spacing--60) !important;
}
.wp-block-separator.is-style-leaf::before {
	content: "\2766";
	font-variant-emoji: text;
}

/* Drop capital on the first paragraph of a post. */
.is-drop-cap-first > p:first-of-type::first-letter,
.wp-block-post-content .has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 78px;
	font-weight: 400;
	font-style: normal;
	line-height: .82;
	color: var(--wp--preset--color--moss);
	padding: 8px 10px 0 0;
	margin: 0;
	text-transform: none;
}

/* Links in body text: a thin moss underline. */
.wp-block-post-content a:where(:not(.wp-element-button)) {
	text-decoration-color: var(--wp--preset--color--moss);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

/* Current room in the navigation. */
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--moss);
}

/* Two-line "Back to / Next" links at the foot of a post. */
.wp-block-post-terms__prefix,
.post-navigation-link__label {
	display: block;
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: var(--wp--preset--font-size--label);
	font-style: normal;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--soft);
	line-height: 1.8;
}
/* Pull quotes and photos get more air than paragraphs. */
.wp-block-post-content > .wp-block-pullquote,
.wp-block-post-content > .wp-block-image,
.wp-block-post-content > .alignwide {
	margin-block: 48px;
}

/* Breakout images return to the column on small screens. */
@media (max-width: 900px) {
	.wp-block-post-content > .alignwide {
		max-width: 100% !important;
	}
}
