/*
Theme Name: Pulitzer-Child
Template: pulitzer
Text Domain: pulitzer
Version: 1.0.4
Description: Pulitzer is a minimal blog theme designed for writers, with special consideration for newsletters. It features a reading time indicator, four different archive layouts to choose from, complete page patterns for your resume, newsletter, contact page, and archive, like and share buttons on single posts, and a newsletter subscribe form in the footer. The like/share buttons and subscribe form require the Jetpack plugin to be active and the Subscription feature to be enabled. Demo: https://pulitzer.andersnoren.se
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, portfolio, news
Author: Anders Norén
Author URI: https://andersnoren.se
Theme URI: https://andersnoren.se/teman/pulitzer-wordpress-theme/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 7.1
*/

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

:root :where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a, .wp-element-button {
	transition: color .1s linear, background-color .1s linear, border-color .1s linear, opacity .1s linear;
}


/*
- Helper classes
 */

.hide-empty:not(:has(*)) {
	display: none !important;
}


/*
- Inputs
 */

::placeholder {
	color: var( --wp--preset--color--contrast-2 );
}

label {
	font-family: var( --wp--preset--font-family--system-sans-serif );
	font-size: var(--wp--preset--font-size--x-small);
}

:where(input, textarea, select) {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-4);
	border-radius: 4px;
	color: inherit;
	font-family: var(--wp--preset--font-family--system-sans-serif);
	font-size: var( --wp--preset--font-size--small );
	line-height: 1.5;
	margin: 0;
	padding: .75em 1em;
}

textarea {
	height: 5lh;
}


/*
- Template Part: Footer
 */

footer.wp-block-template-part a[href="https://andersnoren.se"] {
	text-decoration: none;
}

footer.wp-block-template-part a[href="https://andersnoren.se"]:hover {
	text-decoration: underline;
}


/*
- Block binding: Comment count link.
 */

.pulitzer-comment-count-link {
	text-decoration: none;
}

@supports( mask-image: url() ) {

	.pulitzer-comment-count-link {
		padding-left: 1.5714285714em;
		position: relative;
	}

	.pulitzer-comment-count-link:before {
		background: currentColor;
		content: "";
		display: block;
		height: 1.1428571429em;
		margin: 0 auto var( --wp--preset--spacing--30 ) auto;
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.99554 13.1943C6.25588 13.9238 7.73847 14.1699 9.16691 13.887C10.5953 13.604 11.8721 12.8112 12.7592 11.6564C13.6463 10.5016 14.0831 9.06361 13.9883 7.61051C13.8934 6.15741 13.2734 4.78839 12.2437 3.75871C11.214 2.72902 9.84497 2.10895 8.39187 2.01409C6.93876 1.91924 5.50076 2.35607 4.34595 3.24316C3.19114 4.13024 2.39835 5.40703 2.11539 6.83547C1.83243 8.26391 2.07862 9.7465 2.80804 11.0068L2.02617 13.3412C1.99679 13.4293 1.99253 13.5238 2.01386 13.6142C2.03519 13.7046 2.08127 13.7873 2.14694 13.8529C2.2126 13.9186 2.29526 13.9647 2.38565 13.986C2.47603 14.0074 2.57057 14.0031 2.65867 13.9737L4.99554 13.1943Z' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.99554 13.1943C6.25588 13.9238 7.73847 14.1699 9.16691 13.887C10.5953 13.604 11.8721 12.8112 12.7592 11.6564C13.6463 10.5016 14.0831 9.06361 13.9883 7.61051C13.8934 6.15741 13.2734 4.78839 12.2437 3.75871C11.214 2.72902 9.84497 2.10895 8.39187 2.01409C6.93876 1.91924 5.50076 2.35607 4.34595 3.24316C3.19114 4.13024 2.39835 5.40703 2.11539 6.83547C1.83243 8.26391 2.07862 9.7465 2.80804 11.0068L2.02617 13.3412C1.99679 13.4293 1.99253 13.5238 2.01386 13.6142C2.03519 13.7046 2.08127 13.7873 2.14694 13.8529C2.2126 13.9186 2.29526 13.9647 2.38565 13.986C2.47603 14.0074 2.57057 14.0031 2.65867 13.9737L4.99554 13.1943Z' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY( -50% );
		width: 1.1428571429em;
	}

	.pulitzer-comment-count-link:hover:before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.99554 13.1943C6.25588 13.9238 7.73847 14.1699 9.16691 13.887C10.5953 13.604 11.8721 12.8112 12.7592 11.6564C13.6463 10.5016 14.0831 9.06361 13.9883 7.61051C13.8934 6.15741 13.2734 4.78839 12.2437 3.75871C11.214 2.72902 9.84497 2.10895 8.39187 2.01409C6.93876 1.91924 5.50076 2.35607 4.34595 3.24316C3.19114 4.13024 2.39835 5.40703 2.11539 6.83547C1.83243 8.26391 2.07862 9.7465 2.80804 11.0068L2.02617 13.3412C1.99679 13.4293 1.99253 13.5238 2.01386 13.6142C2.03519 13.7046 2.08127 13.7873 2.14694 13.8529C2.2126 13.9186 2.29526 13.9647 2.38565 13.986C2.47603 14.0074 2.57057 14.0031 2.65867 13.9737L4.99554 13.1943Z' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.99554 13.1943C6.25588 13.9238 7.73847 14.1699 9.16691 13.887C10.5953 13.604 11.8721 12.8112 12.7592 11.6564C13.6463 10.5016 14.0831 9.06361 13.9883 7.61051C13.8934 6.15741 13.2734 4.78839 12.2437 3.75871C11.214 2.72902 9.84497 2.10895 8.39187 2.01409C6.93876 1.91924 5.50076 2.35607 4.34595 3.24316C3.19114 4.13024 2.39835 5.40703 2.11539 6.83547C1.83243 8.26391 2.07862 9.7465 2.80804 11.0068L2.02617 13.3412C1.99679 13.4293 1.99253 13.5238 2.01386 13.6142C2.03519 13.7046 2.08127 13.7873 2.14694 13.8529C2.2126 13.9186 2.29526 13.9647 2.38565 13.986C2.47603 14.0074 2.57057 14.0031 2.65867 13.9737L4.99554 13.1943Z' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}

}


/*
- Child Theme: Base, Column Measure & Typography
 */

html,
body,
.wp-site-blocks {
	background-color: #F9F4EA;
	color: #171717;
	font-family: "Crimson Pro", Georgia, Cambria, "Times New Roman", Times, serif;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background-color: #e5e5e5;
}

/* Constrain reading measure and scale on 2K / 4K displays */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	width: 100%;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 640px) {
	.wp-site-blocks > header,
	.wp-site-blocks > main,
	.wp-site-blocks > footer {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

@media (min-width: 1536px) {
	.wp-site-blocks > header,
	.wp-site-blocks > main,
	.wp-site-blocks > footer {
		max-width: 740px;
	}
}

@media (min-width: 2400px) {
	.wp-site-blocks > header,
	.wp-site-blocks > main,
	.wp-site-blocks > footer {
		max-width: 820px;
	}
}

/* Header & footer rules */
.pulitzer-header-rule {
	border-bottom: 1px solid rgba(229, 229, 229, 0.8);
}

.pulitzer-footer-rule {
	border-top: 1px solid rgba(229, 229, 229, 0.8);
}

.pulitzer-left-align,
.pulitzer-left-align * {
	text-align: left;
}


/*
- Child Theme: Index Posts & Spacing
 */

/* Spacing between post items on index */
.wp-block-post-template > li.wp-block-post + li.wp-block-post {
	margin-top: 2.5rem;
}

/* Strict 2-line excerpt clamp on Home */
.wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/*
- Child Theme: Breadcrumb Pagination
 */

/* Hide empty pagination wrapper on single-page feeds */
.pulitzer-pagination-crumbs:empty,
.pulitzer-pagination-crumbs:not(:has(a, .page-numbers)) {
	display: none;
}

/* Clear gap between posts and pagination breadcrumbs */
.pulitzer-pagination-crumbs {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(229, 229, 229, 0.8);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: baseline;
	gap: 0;
}

.pulitzer-pagination-crumbs .wp-block-query-pagination-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
}

.pulitzer-pagination-crumbs .page-numbers + .page-numbers::before,
.pulitzer-pagination-crumbs .wp-block-query-pagination-previous + .wp-block-query-pagination-numbers::before,
.pulitzer-pagination-crumbs .wp-block-query-pagination-numbers + .wp-block-query-pagination-next::before {
	content: "/";
	margin: 0 0.5rem;
	color: #a3a3a3;
}

.pulitzer-pagination-crumbs a {
	color: #525252;
	text-decoration: none;
}

.pulitzer-pagination-crumbs a:hover {
	color: #171717;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pulitzer-pagination-crumbs .page-numbers.current {
	color: #0a0a0a;
	font-weight: 600;
}
/*
- Child Theme: Minimal Comments
 */

.pulitzer-comments {
	border-top: 1px solid rgba(229, 229, 229, 0.8);
}

.pulitzer-comments ol.wp-block-comment-template {
	list-style: none;
	margin: 1.5rem 0 0 0;
	padding: 0;
}

.pulitzer-comments ol.children {
	list-style: none;
	margin-top: 1.25rem;
	padding-left: 1.25rem;
	border-left: 1px solid rgba(229, 229, 229, 0.8);
}

.pulitzer-comment-item {
	border-bottom: 1px solid rgba(229, 229, 229, 0.5);
}

.pulitzer-comments label,
.pulitzer-comments input[type="text"],
.pulitzer-comments input[type="email"],
.pulitzer-comments input[type="url"],
.pulitzer-comments textarea {
	font-family: "Crimson Pro", Georgia, Cambria, "Times New Roman", Times, serif;
	background-color: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(23, 23, 23, 0.18);
	border-radius: 2px;
	color: #171717;
}

.pulitzer-comments input:focus,
.pulitzer-comments textarea:focus {
	outline: none;
	border-color: #171717;
	background-color: rgba(255, 255, 255, 0.75);
}

.pulitzer-comments .form-submit input[type="submit"],
.pulitzer-comments .wp-block-button__link {
	font-family: "Crimson Pro", Georgia, Cambria, "Times New Roman", Times, serif;
	background-color: #171717;
	color: #F9F4EA;
	border: 1px solid #171717;
	border-radius: 2px;
	padding: 0.5rem 1.25rem;
	cursor: pointer;
}

.pulitzer-comments .form-submit input[type="submit"]:hover {
	opacity: 0.82;
}
/*
- Child Theme: Sticky Bottom Footer
 */

.wp-site-blocks {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

.wp-site-blocks > footer {
	margin-top: auto;
}
body.admin-bar .wp-site-blocks {
	min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks {
		min-height: calc(100vh - 46px);
	}
}