/**
 * Vawell Power global base styles.
 *
 * These rules establish consistent defaults while leaving page and component
 * styling to their own modular files.
 *
 * @package Vawell_Power
 */

html {
	scroll-behavior: smooth;
	background-color: var(--vp-color-white);
}

body,
#page,
.site,
.site-main,
.content-area {
	background-color: var(--vp-color-white) !important;
	color: var(--vp-color-text);
	font-family: var(--vp-font-body);
	font-size: var(--vp-font-size-body);
	line-height: var(--vp-line-height-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--vp-font-heading);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: var(--vp-line-height-heading);
}

a,
button,
input,
select,
textarea {
	transition:
		color var(--vp-duration-fast) var(--vp-ease-standard),
		background-color var(--vp-duration-fast) var(--vp-ease-standard),
		border-color var(--vp-duration-fast) var(--vp-ease-standard),
		box-shadow var(--vp-duration-fast) var(--vp-ease-standard),
		transform var(--vp-duration-fast) var(--vp-ease-standard);
}

:focus-visible {
	outline: 3px solid var(--vp-color-focus);
	outline-offset: 4px;
}

::selection {
	background: var(--vp-color-red);
	color: var(--vp-color-white);
}

@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;
		scroll-behavior: auto !important;
	}
}
