/*
Theme Name: Lovecraft (PP)
Theme URI: https://pixelpalace.de/
Description: Lovecraft (PP) is a child theme of Lovecraft by Anders Norén. It inherits the original two-column responsive layout, typography, Block Editor support, full-width header and featured images, custom colors and logo, editor styles, recent-post and recent-comment widgets with thumbnails, and the full-width page template. Original theme: https://wordpress.org/themes/lovecraft/
Author: Georg Nahde
Author URI: https://nahde.de/
Template: lovecraft
Version: 2026.11.5
Requires at least: 7.0
Tested up to: 7.1.5
Requires PHP: 8.4
Text Domain: lovecraft-pp
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Tags: blog, two-columns, right-sidebar, custom-colors, custom-header, custom-menu, editor-style, featured-images, footer-widgets, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* Keep the parent theme's header height and crop while exposing a real image. */
.header-image.lovecraft-pp-responsive-header {
	position: relative;
}

.lovecraft-pp-responsive-header::before {
	content: "";
	display: block;
	width: 100%;
	max-width: var(--lovecraft-pp-header-width);
	aspect-ratio: var(--lovecraft-pp-header-ratio);
}

.header-image.lovecraft-pp-responsive-header img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	visibility: visible;
}

/* Keep an Escape-dismissed submenu closed until hover ends or focus reopens it. */
.main-menu li.lovecraft-pp-submenu-dismissed:not(.focus) > ul {
	visibility: hidden;
}

/* Improve contrast for dates and category counts in the light sidebar. */
.sidebar .widget .meta,
.sidebar .widget_categories .cat-item {
	color: #737373;
}

/* Keep the previous and next post labels legible on the light background. */
.post-navigation p {
	color: #595959;
}

/* Keep public search and archive fields readable when focused on mobile. */
@media (max-width: 1000px) {
	.search-form .search-field,
	.widget_archive select {
		font-size: 16px;
		font-size: max(16px, 1rem);
	}
}
