/*==================================================
EVER THEME
Modern Reset
Version 2.0.0
==================================================*/

/* BOX SIZING
==================================================*/

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

/* DOCUMENT
==================================================*/

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ELEMENTS
==================================================*/

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

/* MEDIA
==================================================*/

img,
picture,
svg,
canvas,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

svg {
	overflow: visible;
}

/* FORMS
==================================================*/

input,
button,
textarea,
select {
	font: inherit;
}

button,
input,
textarea,
select {
	margin: 0;
}

button {
	border: 0;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

textarea {
	resize: vertical;
}

/* LINKS
==================================================*/

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* TABLES
==================================================*/

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* WORDPRESS / GUTENBERG
==================================================*/

.alignleft {
	float: left;
	margin-right: var(--space-6);
	margin-bottom: var(--space-5);
}

.alignright {
	float: right;
	margin-left: var(--space-6);
	margin-bottom: var(--space-5);
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin-top: var(--space-2);
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

/* ACCESSIBILITY
==================================================*/

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

.screen-reader-text:focus,
.skip-link:focus {
	top: var(--space-4);
	left: var(--space-4);
	z-index: 10000;

	width: auto;
	height: auto;
	padding: var(--space-3) var(--space-5);
	margin: 0;

	overflow: visible;
	clip: auto;
	white-space: normal;

	background: var(--color-primary-dark);
	color: var(--color-surface);

	border-radius: var(--radius-sm);
}

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

/* SELECTION
==================================================*/

::selection {
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
}

/* REDUCED MOTION
==================================================*/

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

	html {
		scroll-behavior: auto;
	}

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

}
