/**
 * Front-end styles for the STRATUSstaff Handbook theme.
 *
 * Color, type, and content-width tokens come from theme.json
 * via --wp--preset-* custom properties.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--wp--preset--color--background, #f4f3f0);
	color: var(--wp--preset--color--text, #1a1a1a);
	font-family: var(--wp--preset--font-family--system-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	line-height: 1.6;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--wp--preset--color--accent, #1e3a5f);
}

a:hover,
a:focus-visible {
	text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-weight: 600;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -3rem;
	z-index: 100;
	padding: 0.4rem 0.7rem;
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--text, #1a1a1a);
}

.skip-link:focus {
	top: 0.75rem;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.content-width {
	width: min(100% - 2rem, var(--wp--style--global--content-size, 42rem));
	margin-inline: auto;
}

.site-header,
.site-footer {
	padding-block: 1rem;
}

.site-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--wp--preset--color--muted, #5a5a5a);
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus-visible {
	text-decoration: underline;
}

.site-main {
	flex: 1;
	padding-block: 2.5rem 4rem;
}

.site-main h1 {
	font-size: var(--wp--preset--font-size--x-large, 1.75rem);
}

.site-main > .content-width > p,
article > p {
	color: var(--wp--preset--color--muted, #5a5a5a);
}

@media (min-width: 48rem) {
	.content-width {
		width: min(100% - 3rem, var(--wp--style--global--content-size, 42rem));
	}

	.site-main {
		padding-block: 3.5rem 5rem;
	}
}
