/*
Theme Name: Pack Mule Dad
Theme URI: https://thepackmuledad.com
Author: Joe
Description: Lightweight block theme for The Pack Mule Dad: camping and backpacking with kids. Forest, cream and rust palette from the channel branding, Alfa Slab One + Barlow Condensed type, photo- and YouTube-friendly layouts, no JavaScript.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pack-mule-dad
*/

/* Most styling lives in theme.json. Only what theme.json cannot express is here. */

/* No gap between header, hero, main and footer */
.wp-site-blocks > * + * { margin-block-start: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.pmd-header { border-bottom: 6px solid var(--wp--preset--color--rust); }
.pmd-logo img { border-radius: 50%; display: block; }

/* Dashed "trail" divider, echoing the banner */
.pmd-trail {
	height: 0;
	border: 0;
	border-top: 4px dashed var(--wp--preset--color--sand);
	background: none;
	opacity: 1;
	max-width: 100%;
}

/* Hero: the brand banner scene (text-free) behind live heading text. ~20 KB WebP. */
.pmd-hero {
	background: var(--wp--preset--color--cream) url("assets/images/hero-2000.webp") center center / cover no-repeat;
	min-height: clamp(34rem, 40vw, 50rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
@media (max-width: 700px) {
	.pmd-hero { background-image: url("assets/images/hero-1100.webp"); min-height: 30rem; }
}

/* Post cards */
.pmd-card { background: #fff; border: 2px solid var(--wp--preset--color--sand); border-radius: 12px; overflow: hidden; height: 100%; }
.pmd-card .wp-block-post-featured-image { margin: 0; }
.pmd-card .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pmd-card:hover { border-color: var(--wp--preset--color--rust); }

/* Uppercase "kicker" labels over titles */
.pmd-kicker a { text-decoration: none; color: var(--wp--preset--color--rust-dark); }

/* Embedded YouTube: keep 16:9 and rounded */
.wp-block-embed.is-type-video .wp-block-embed__wrapper { border-radius: 10px; overflow: hidden; }

/* Footer */
.pmd-footer a { color: var(--wp--preset--color--cream); }
.pmd-footer a:hover { color: var(--wp--preset--color--sand); }

/* Visible keyboard focus everywhere */
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--rust); outline-offset: 2px; }
