/*
 * Laptop scale. Every page is drawn on the 1920px Figma frame. Between the
 * tablet layout (up to 1279px) and that frame, the whole page is zoomed by
 * screen width / 1920, so a laptop shows the desktop design in the frame's
 * proportions instead of 20-25% too large. A 1536px laptop (a 1920px screen
 * at 125% Windows scaling) gets 0.8. The zoom never goes below 0.8, so text
 * stays readable on 1280-1535px screens, which then lay out at 1600-1919px.
 * Phones, tablets and screens of 1920px and wider keep zoom 1.
 *
 * Media queries still see the real screen width. Rules for "narrow desktop"
 * layouts should target what is narrow after zooming: 1280-1343px is a
 * 1600-1679px layout, 1280-1535px is anything under the 1920px frame.
 *
 * Loaded on the front end only; the block editor canvas keeps its own size.
 * Scripts that turn measured pixels into CSS pixels use window.azureZoom.
 */

/* Browsers without typed calc() division (Safari, Firefox) step instead. */
@media (min-width: 1280px) and (max-width: 1599px) {
	:root {
		--page-zoom: 0.8;
	}
}

@media (min-width: 1600px) and (max-width: 1727px) {
	:root {
		--page-zoom: 0.8333;
	}
}

@media (min-width: 1728px) and (max-width: 1823px) {
	:root {
		--page-zoom: 0.9;
	}
}

@media (min-width: 1824px) and (max-width: 1919px) {
	:root {
		--page-zoom: 0.95;
	}
}

@supports (zoom: calc(100vw / 1920px)) {
	@media (min-width: 1280px) and (max-width: 1919px) {
		:root {
			--page-zoom: clamp(0.8, calc(100vw / 1920px), 1);
		}
	}
}

html {
	zoom: var(--page-zoom);
}
