/**
 * Site frame: dark around the page, white page content (max 1406 px).
 * From 768 px wide there is always a dark strip of at least 70 px on the left,
 * where the menu button sits (see menu-overlay.css).
 */

:root {
	--ehl-frame: 1406px;
	--ehl-rail: 70px;
	--ehl-frame-start: 0px; /* left edge of the white page */
}

@media (min-width: 768px) {
	:root {
		/* Centred when there is room, but never closer than 70 px to the left edge. */
		--ehl-frame-start: max(var(--ehl-rail), (100vw - var(--ehl-frame)) / 2);
	}
}

body {
	background-color: var(--wp--preset--color--dark);
}

.wp-site-blocks {
	max-width: var(--ehl-frame);
	margin-left: var(--ehl-frame-start);
	margin-right: auto;
	background-color: var(--wp--preset--color--white);
}
