/*
 * Bageecha Child — site-wide base styles.
 * Values come from the --bageecha-* tokens generated by Bageecha Settings
 * (fallbacks keep the theme readable if the plugin is inactive).
 */

html { scroll-padding-top: var(--bgc-scroll-offset, calc(var(--bageecha-header-height, 166px) + var(--wp-admin--admin-bar--height, 0px) + 12px)); }

body {
	background: var(--bageecha-cream, #ffffff);
	color: var(--bageecha-text, #2e3a2e);
	font-family: var(--bageecha-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
	font-size: var(--bageecha-body-size, 16px);
	font-weight: var(--bageecha-body-weight, 400);
	line-height: var(--bageecha-body-lh, 1.65);
	letter-spacing: var(--bageecha-body-ls, 0);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--bageecha-heading, #2e3a2e);
	font-family: var(--bageecha-font-heading, inherit);
	font-weight: var(--bageecha-heading-weight, 600);
	line-height: var(--bageecha-heading-lh, 1.15);
	letter-spacing: var(--bageecha-heading-ls, 0);
}
h1 { font-size: var(--bageecha-h1, 2.5rem); }
h2 { font-size: var(--bageecha-h2, 2rem); }
h3 { color: var(--bageecha-h3-color, #2e3a2e); font-size: var(--bageecha-h3, 1.5rem); }
h4 { font-size: var(--bageecha-h4, 1.25rem); }
h5 { font-size: var(--bageecha-h5, 1.125rem); }
h6 { font-size: var(--bageecha-h6, 1rem); }

a { color: var(--bageecha-forest, #4b6048); }
a:hover, a:active { color: var(--bageecha-primary, #61795d); }

::selection { background: var(--bageecha-beige, #efe3cf); color: var(--bageecha-text, #2e3a2e); }

.bgc-site-content:focus { outline: none; }

/* Skip link: visible on focus. */
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto !important;
	border-radius: 10px;
	background: #fff;
	color: var(--bageecha-forest, #4b6048);
	font-weight: 700;
	box-shadow: 0 0 0 3px var(--bageecha-primary, #61795d);
}

/* Regular (non-Elementor) pages and posts: comfortable reading column. */
.site-main {
	max-width: calc(860px + 2 * var(--bageecha-gutter, 24px));
	margin-inline: auto;
	padding: clamp(32px, 5vw, 64px) var(--bageecha-gutter, 24px);
}
.site-main .page-header .entry-title { margin-top: 0; font-size: var(--bageecha-h1, 2.5rem); }

/* Elementor full-width pages: no stray theme spacing. */
.elementor-page .site-main { max-width: none; padding: 0; }
