/*
Theme Name: Pletcher HDPE
Theme URI: https://timpletcher.com
Author: Tim Pletcher
Description: A clean, simple block theme for Tim Pletcher — HDPE, recycled plastic lumber and specialty profiles. Industrial look, easy to edit in the Site Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pletcher-hdpe
*/

/* Small refinements theme.json can't express. */

.wp-site-blocks { overflow-x: clip; }

/* Header stays visible while scrolling */
.ph-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(6px);
}
body.admin-bar .ph-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ph-header { top: 46px; } }

/* Monospace "spec label" eyebrow */
.ph-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--x-small);
}

/* Extruded-profile stripe used as a divider */
.wp-block-separator.ph-stripe {
	width: 100%;
	max-width: none;
	opacity: 1;
	height: 10px;
	background: repeating-linear-gradient(90deg,
		var(--wp--preset--color--accent) 0 64px,
		var(--wp--preset--color--ink) 64px 72px);
	border: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* Cards */
.ph-card {
	height: 100%;
	transition: transform .15s ease, box-shadow .15s ease;
}
.ph-card:hover {
	transform: translateY(-2px);
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
}
.ph-card .ph-num {
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

/* Hero image framing */
.ph-hero-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--ink);
	box-shadow: 10px 10px 0 var(--wp--preset--color--accent);
}

/* Checklist */
.ph-checks { list-style: none; padding-left: 0; }
.ph-checks li {
	padding: .55em 0 .55em 2em;
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: relative;
}
.ph-checks li::before {
	content: "";
	position: absolute;
	left: 0; top: .95em;
	width: .9em; height: .9em;
	background: var(--wp--preset--color--accent);
}

/* Post list rows */
.ph-postlist .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--30);
}

/* Readable content images */
.entry-content img { height: auto; max-width: 100%; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Plain link lists (footer) */
.ph-plainlist { list-style: none; padding-left: 0; line-height: 2; margin: 0; }

@media (max-width: 600px) {
	.ph-header .wp-block-buttons.ph-header-cta, .ph-header p.ph-eyebrow { display: none; }
}

/* Sections butt together; no root gap between header, main, bands and footer */
.wp-site-blocks > * { margin-block-start: 0; }
