/**
 * Modern CSS Reset & Baseline Overrides
 *
 * @package TeknoTok_Soft
 */

/* 1. Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margins/padding */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0;
}

/* 3. Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.6;
	font-family: var(--font-primary);
	font-size: var(--font-size-md);
	color: var(--color-text-main);
	background-color: var(--color-bg-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 4. Remove list styles on ul, ol elements */
ul,
ol {
	list-style: none;
}

/* 5. A elements reset */
a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-accent-hover);
}

/* 6. Make images easier to work with */
img,
picture {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 7. Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* 8. HTML5 structural tags display */
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
	display: block;
}

/* 9. Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

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

/* 10. Screen reader helper */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg-body);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text-main);
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
