/*
Theme Name: AIT Theme
Theme URI: https://ait.by/
Author: AITInc
Author URI: https://ait.by/
Description: Custom block theme for the AIT website.
Version: 0.1.0
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: ait-theme
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-wrap: anywhere;
}

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

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

a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 3px;
}

.wp-element-button,
.wp-block-button__link {
    transition: background-color var(--wp--custom--transition--fast),
        border-color var(--wp--custom--transition--fast),
        color var(--wp--custom--transition--fast),
        transform var(--wp--custom--transition--fast);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--accent-dark);
    color: var(--wp--preset--color--background);
    transform: translateY(-1px);
}

.wp-element-button:active,
.wp-block-button__link:active {
    transform: none;
}

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

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