/*
Theme Name: MeerkatRelay
Theme URI: https://meerkatrelay.com
Author: MeerkatRelay
Author URI: https://meerkatrelay.com
Description: Lean custom block theme for the MeerkatRelay marketing site. Fast, no page-builder bloat, earthy meerkat/burrow palette (light browns to near-black). Built as a block theme so content stays editable in the WordPress editor. WCAG 2.1 AA focused: skip link, visible keyboard focus, AA color contrast, responsive.
Version: 0.2.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meerkatrelay-site
*/

/* Most styling lives in theme.json. Accessibility + responsive touches below. */

:root { scroll-behavior: smooth; }

/* --- Skip link (visible only on keyboard focus) --- */
.mr-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: .75rem 1.25rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: 0 0 8px 0;
	text-decoration: none;
	font-weight: 600;
}
.mr-skip-link:focus {
	left: 0;
}

/* --- Visible keyboard focus on ALL interactive elements (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item a:focus-visible {
	outline: 3px solid var(--wp--preset--color--caramel);
	outline-offset: 2px;
	border-radius: 4px;
}
/* Fallback for browsers without :focus-visible */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
	outline: 3px solid var(--wp--preset--color--caramel);
	outline-offset: 2px;
}

/* --- Header --- */
.mr-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Fully opaque so nav text never washes out over the hero behind it. */
	background: var(--wp--preset--color--cream);
}
/* Nav links: dark, high-contrast on the cream header (AA). */
.mr-header .wp-block-navigation-item__content,
.mr-header .wp-block-navigation a {
	color: var(--wp--preset--color--espresso);
	font-weight: 500;
}
.mr-header .wp-block-navigation a:hover,
.mr-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--bark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Buttons --- */
.wp-block-button__link { transition: transform .12s ease, filter .12s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* --- In-content links distinguishable by more than color (WCAG 1.4.1) --- */
.wp-block-post-content a,
.entry-content a,
.mr-body-link {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Hero media frame --- */
.mr-hero-media { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(20,17,15,.45); }
.mr-hero-media img, .mr-hero-media video { display: block; width: 100%; he