/*
Theme Name: Quennell
Theme URI: https://themeshaper.com/quennell/
Author: Automattic
Author URI: https://automattic.com/
Description: Quennell is a contemporary portfolio theme for art directors and designers. It features 29 section patterns and 4 page patterns, so you can easily put together your portfolio and showcase your work. With 15 color variations and 6 typesets, Quennell is versatile and offers plenty of options for creating an impactful online presence.
Requires at least: 7.1
Tested up to: 7.1
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: quennell
Tags: one-column, featured-images, full-site-editing, block-patterns, rtl-language-support, threaded-comments, translation-ready, block-styles, editor-style, style-variations, blog, portfolio
*/

/* Crossfade page transition */

@view-transition {
	navigation: auto;
}

/*
 * Keep italics true: fonts without an italic stay upright instead of a slanted fake.
 */
body {
	font-synthesis-style: none;
}

/* Font smoothing */
body {
	text-rendering: geometricprecision;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.1em
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/*
 * Tighten margin when a heading follows another heading in post content.
 * The doubled top-margin in theme.json signals a section break above; when
 * two headings are adjacent the subordinate one should sit closer to its
 * parent rather than read as a new section. The class is unwrapped from
 * :where() so we beat the theme.json-generated `:root :where(...)` rule
 * (which is 0,1,0 specificity from :root).
 */
.wp-block-post-content :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
	margin-top: var(--wp--style--block-gap);
}

/*
 * Make sure footers have no margin.
 * https://github.com/WordPress/gutenberg/issues/47637
 */
footer.wp-block-template-part {
	margin-block-start: 0 !important;
}

/*
 * Hover invert: rows flip to black, the row title link covers the whole row.
 * Not possible with block supports alone.
 */
.is-style-hover-invert {
	position: relative;
	transition: background-color 0.2s, color 0.2s;
}

.is-style-hover-invert:hover {
	background-color: var(--wp--preset--color--theme-2);
	color: var(--wp--preset--color--theme-1);
}

.is-style-hover-invert :is(h1, h2, h3, h4) a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.is-style-hover-invert .wp-block-post-terms a {
	position: relative;
	z-index: 1;
}

/*
 * Halftone: a dot screen over the image, keeps the original colours.
 * Works with any image, so a replaced image keeps the effect.
 */
.is-style-halftone {
	overflow: hidden;
	position: relative;
}

.is-style-halftone img {
	filter: contrast(1.18) saturate(1.35);
}

.is-style-halftone::after {
	background-image: radial-gradient(circle, var(--wp--preset--color--theme-1) 0 38%, transparent 44%);
	background-size: 4px 4px;
	content: "";
	inset: 0;
	opacity: 0.7;
	pointer-events: none;
	position: absolute;
}

.wp-block-post-featured-image img,
.wp-block-image a img {
	display: block;
	transition: opacity 0.2s;
}

.wp-block-post-featured-image a,
.wp-block-image a {
	background-color: var(--wp--preset--color--theme-1);
	display: block;
	height: auto;
	position: relative;
	z-index: 1;
}

.wp-block-post-featured-image a:hover img,
.wp-block-image a:hover img {
	opacity: 0.7;
}

/*
 * Jetpack Sharing Buttons: give the text styles the Button colors, so they
 * read on the dark style variations. Icon-only buttons keep their brand colors.
 * https://github.com/Automattic/jetpack/issues/55253
 */
.jetpack-sharing-button__button:not(.style-icon) {
	background-color: var(--wp--preset--color--theme-2);
	color: var(--wp--preset--color--theme-1);
}
