/**
 * Base reset & typography — grok.org.ru dark theme
 */

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

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

body {
	margin: 0;
	font-family: var(--teya-font-body);
	font-size: var(--teya-text-body-md);
	line-height: 1.6;
	color: var(--teya-color-on-background);
	background: var(--teya-color-background);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--teya-color-outline-focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--teya-font-display);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 var(--teya-space-md);
}

p {
	margin: 0 0 var(--teya-space-md);
}

ul,
ol {
	margin: 0 0 var(--teya-space-md);
	padding-left: var(--teya-space-lg);
}

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

.skip-link:focus {
	position: fixed;
	top: var(--teya-space-md);
	left: var(--teya-space-md);
	z-index: 1000;
	width: auto;
	height: auto;
	padding: var(--teya-space-sm) var(--teya-space-md);
	clip: auto;
	background: var(--teya-color-surface-high);
	color: var(--teya-color-on-background);
	text-decoration: none;
	border-radius: var(--teya-radius-md);
}

.teya-text-balance {
	text-wrap: balance;
}

.teya-text-pretty {
	text-wrap: pretty;
}

.teya-i18n-safe {
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}
