/* ==========================================================================
   RESET — мінімальний сучасний скид стилів
   ========================================================================== */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	-webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
	html:focus-within {
		scroll-behavior: smooth;
	}
}

body {
	min-height: 100vh;
	min-height: 100svh;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.2;
	text-wrap: balance;
}

p, li, figcaption {
	text-wrap: pretty;
}

/*
	Довге слово з CMS не має розпирати блок.
	Саме `anywhere`, а не `break-word`: лише воно впливає на min-content ширину,
	тож елемент у flex/grid коректно стискається замість того, щоб вилізти за контейнер.
*/
h1, h2, h3, h4, h5, h6,
p, li, dd, dt, figcaption, td, th {
	overflow-wrap: anywhere;
}

ul, ol, menu {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

img, video {
	height: auto;
}

input, button, textarea, select {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	background: none;
	border: 0;
	border-radius: 0;
}

button,
[role="button"] {
	cursor: pointer;
	text-align: inherit;
}

textarea {
	resize: vertical;
}

:disabled {
	cursor: default;
}

table {
	border-collapse: collapse;
	text-indent: 0;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}
