html {
	scroll-behavior: smooth;
	scroll-padding-top: 7rem;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
	font-stretch: 87.5%;
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

:where(a) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

:where(a, button, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
	border-radius: 2px;
}

:where(.wp-block-image, .wp-block-post-featured-image) img {
	outline: 1px solid rgb(0 0 0 / 0.1);
	outline-offset: -1px;
}

:where(.wp-element-button, .wp-block-button__link) {
	transition-property: background-color, color, scale;
	transition-duration: 0.15s;
	transition-timing-function: ease-out;
}

:where(.wp-element-button, .wp-block-button__link):active {
	scale: 0.96;
}

:where(time, .wp-block-post-date, .has-tabular-numbers) {
	font-variant-numeric: tabular-nums;
}

.is-style-accent:is(.wp-block-heading, .wp-block-query-title)::before {
	content: "";
	display: block;
	width: 3rem;
	height: 0.3rem;
	margin-bottom: 1rem;
	background-color: var(--wp--preset--color--primary);
}

.is-style-accent.has-text-align-center::before {
	margin-inline: auto;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

@media (max-width: 600px) {

	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

footer.wp-block-template-part a {
	padding-block: 0.35rem;
	text-decoration: none;
}

footer.wp-block-template-part a:hover {
	text-decoration: underline;
}

.wp-block-post-content :where(h2, h3, h4).wp-block-heading:not(:first-child) {
	margin-block-start: 1.75em;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

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