/*
Theme Name: Milestone Money
Author: Milestone Money
Description: Hybrid theme for Milestone Money. Design tokens live in theme.json.
Version: 0.4.1
Requires at least: 6.1
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: milestonemoney
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--content-max: 1440px;
	/* Box width for content that sits in a full-width band: the content cap plus the site margin on each side. Used as max-width with margin-inline: auto, so the content centers once the viewport passes it. Backgrounds still run edge to edge. */
	--content-box: calc(var(--content-max) + 2 * var(--wp--custom--site--margin));
	/* Side padding for every section below the desktop layout. Mobile follows the 375 homepage design (16px, 343px content). */
	--page-pad: 32px;
	/* Vertical section spacing. Desktop uses the design tokens; tablet sits between desktop and mobile; mobile follows the 375 homepage design. */
	--sec-s: var(--wp--custom--section-space--small);
	--sec-m: var(--wp--custom--section-space--main);
	--sec-l: var(--wp--custom--section-space--large);
}

@media (max-width: 1024px) {
	:root {
		--sec-s: 64px;
		--sec-m: 88px;
		--sec-l: 128px;
	}
}

@media (max-width: 767px) {
	:root {
		--page-pad: 16px;
		--sec-s: 48px;
		--sec-m: 64px;
		--sec-l: 100px;
	}
}

#main {
	width: 100%;
	max-width: 2784px;
	margin-inline: auto;
	/* clip keeps the wide art inside the page without becoming a scroll box. hidden would stop the bio from sticking. */
	overflow-x: hidden;
	overflow-x: clip;
}

.alignfull {
	width: 100%;
	max-width: 100%;
}

.alignwide {
	width: min(100% - (2 * var(--wp--custom--site--margin)), var(--wp--style--global--wide-size));
	max-width: 100%;
	margin-inline: auto;
}

@media (max-width: 1024px) {
	.alignwide {
		width: min(100% - (2 * var(--page-pad)), var(--wp--style--global--wide-size));
	}
}

.site-footer {
	margin-block-start: 0;
}

.site-main > :first-child {
	margin-block-start: 0;
}

.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link.screen-reader-text:focus {
	left: 6px;
	top: 7px;
	width: auto;
	height: auto;
	z-index: 100000;
}
