/*
Theme Name: Borderland
Description: A subdued, editorial block theme for security and regional analysis. Dark slate ground, serif headlines, a single rust accent, and full-width "statement + map" sections.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: borderland
Tags: block-patterns, full-site-editing, editor-style, wide-blocks, one-column, custom-colors, style-variations
*/

/* Eyebrow: small caps label with an accent rule */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.is-style-eyebrow::before {
	content: "";
	flex: 0 0 2.5rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

/* Lead: the body paragraph under a statement headline */
.is-style-lead {
	color: var(--wp--preset--color--soft);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	max-width: 40rem;
}

/* Kicker: the closing serif line of a statement */
.is-style-kicker {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
}
.is-style-kicker em,
.is-style-kicker strong {
	color: var(--wp--preset--color--accent);
}

/* Label: small accent caps above a list */
.is-style-label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* Plain list: no bullets, generous line height */
.wp-block-list.is-style-plain {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.7;
	font-size: var(--wp--preset--font-size--small);
}

/* Accent words inside headlines */
.wp-block-heading em {
	color: var(--wp--preset--color--accent);
}

/* Principle rows */
.borderland-principle {
	align-items: baseline;
}
.borderland-principle .wp-block-heading,
.borderland-principle p {
	margin: 0;
}
.borderland-principle p {
	color: var(--wp--preset--color--soft);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

/* Statement sections: text beside a map that runs to the edge */
.borderland-statement {
	overflow: hidden;
}
.borderland-statement .wp-block-columns {
	margin-block: 0;
}
.borderland-statement .borderland-map {
	align-self: stretch;
	background: var(--wp--preset--color--deep);
}
.borderland-statement .borderland-map .wp-block-image {
	margin: 0;
	height: 100%;
}
.borderland-statement .borderland-map img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.borderland-points p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

/* Post cards */
.borderland-card {
	height: 100%;
}
.borderland-card .wp-block-post-title a {
	text-decoration: none;
}
.borderland-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* Focus visibility on the dark ground */
:where(a, button, input, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

@media (max-width: 781px) {
	/* On phones every map follows its own text, so maps never stack back to back */
	.borderland-statement .borderland-map {
		order: 2;
	}
	.borderland-statement .borderland-map img {
		height: auto;
	}
}
