/* Base: reset, document, accessibility helpers. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--pm-header-h) + var(--pm-admin-bar));
}

body {
	margin: 0;
	background: var(--pm-bg);
	color: var(--pm-text-2);
	font-family: var(--pm-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.pm-menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--pm-text);
	font-family: var(--pm-font-display);
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--pm-accent);
	outline-offset: 3px;
}

.pm-main:focus {
	outline: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pm-skip-link {
	position: fixed;
	z-index: 1000;
	top: calc(8px + var(--pm-admin-bar));
	left: 8px;
	padding: 10px 16px;
	border-radius: var(--pm-radius-sm);
	background: var(--pm-accent);
	color: var(--pm-on-accent);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.pm-skip-link:focus {
	transform: none;
}

.pm-container {
	width: var(--pm-container);
	margin-inline: auto;
}

.pm-main--content {
	padding-block: calc(var(--pm-header-h) + var(--pm-section-y)) var(--pm-section-y);
}

.pm-prose {
	max-width: 760px;
}

.pm-prose h1 {
	margin-block-end: 24px;
	font-size: clamp(32px, 4vw, 48px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
