/*
Theme Name: Archivist
Theme URI: https://themeshaper.com/archivist/
Author: Automattic
Author URI: https://automattic.com
Description: The Archivist is a typewriter-inspired theme designed for meticulous storytellers and memory-keepers of all kinds. Its subtle design emphasizes structure and clarity, making it ideal for collections of letters, field notes, or essays.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: archivist
Tags: blog, two-columns, full-site-editing, wide-blocks, rtl-language-support, style-variations, threaded-comments, translation-ready

/* Progresive enhancement to reduce widows and orphans.
/* https://github.com/WordPress/gutenberg/issues/55190
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}
.jetpack-subscription-modal {
	visibility: hidden;
	position: fixed;
	z-index: 50000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	opacity: 0;
	transition: visibility 0s, opacity 0.5s ease;
	display: flex;
	justify-content: space-evenly;
	align-content: center;
	flex-wrap: wrap;
}

.jetpack-subscription-modal.open {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.3);
	visibility: visible;
}

.jetpack-subscription-modal__modal-content {
	text-align: center;
	background-color: #fefefe;
	width: 100%;
	max-width: 650px;
	box-sizing: border-box;
	transition: visibility 0s, opacity 0.3s linear;
	opacity: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
}

.jetpack-subscription-modal.open .jetpack-subscription-modal__modal-content {
	opacity: 1;
	top: 0;
	visibility: visible;
}

/* Hide the modal content when iframe is present */
.jetpack-subscription-modal.has-iframe .jetpack-subscription-modal__modal-content {
	background: transparent;
}

.jetpack-subscription-modal.has-iframe .jetpack-subscription-modal__modal-content-form {
	visibility: hidden;
	opacity: 0;
}

/*
 * These text-wrap properties still have limited browser
 * support, but based on feedback still adding them for when
 * they are supported.
 */
.jetpack-subscription-modal__modal-content p {
	text-wrap: pretty;
}

@media screen and (max-width: 640px) {

	.jetpack-subscription-modal__modal-content {
		width: 94%;
	}
}
