/*
Theme Name: PlantRun
Description: Lightweight custom theme for plantrun.co.uk, a faithful port of the Joomla site's look. Block editor based, no page builder required.
Author: Tascomp
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: plantrun
*/

/* ---------- Base (values taken from the Joomla template settings) ---------- */
:root {
	--pr-blue: #4990ba;
	--pr-blue-dark: #2d6b94;
	--pr-navy: #0d5175;
	--pr-dark: #2a363f;
	--pr-text: #3f485d;
	--pr-heading: #1c1c1c;
	--pr-bg: #f8f9fa;
	--pr-container: 1320px;
	--pr-gutter: 15px;
	--pr-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--pr-font-heading: Montserrat, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--pr-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--pr-text);
	background: var(--pr-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden; /* as the Joomla template (body overflow-x hidden): nudged blocks never cause a sideways scrollbar */
}
img { max-width: 100%; height: auto; }
a { color: var(--pr-blue); text-decoration: none; }
a:hover { color: var(--pr-blue); text-decoration: underline; }
/* Heading and paragraph spacing comes from the UIkit base (as on the Joomla site). */
h1, h2, h3, h4, h5, h6 { font-family: var(--pr-font-heading); font-weight: 800; color: var(--pr-heading); line-height: 1.3; }
/* Heading sizes - the one place they are set (R-024). Same sizes as the old site, which got them from two
   sources (template typography + site custom CSS). The phone h1 sizes keep !important as before: they also
   override sizes set inside hand-written HTML sections. Headings align left unless a block says otherwise. */
h1 { font-size: 4.25rem; line-height: 1.2; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h2, h3, h4, h5, h6 { text-align: left; }
@media (min-width: 768px) and (max-width: 991.98px) { h1 { font-size: 2.8rem; } }
@media (max-width: 768px) { h1 { font-size: 2.25rem !important; } }
@media (max-width: 767.98px) { h2 { font-size: 2.3rem; } }
@media (max-width: 480px) { h1 { font-size: 1.85rem !important; } }
.pr-container { max-width: var(--pr-container); margin: 0 auto; padding: 0 var(--pr-gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

