/*
Theme Name: Hello Elementor Child — Dylvadim
Theme URI: https://dylvadim.ru/
Description: Дочерняя тема Hello Elementor для персонального сайта-портфолио Вадима Дыля. Содержит локальные шрифты, дизайн-токены и стили посадочной страницы, собранной в Elementor.
Author: Vadim Dyl
Author URI: https://dylvadim.ru/
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: dylvadim-child
Tags: portfolio, one-page, elementor
*/

/* -------------------------------------------------------------------------
   Дизайн-токены
   off-black — не чистый чёрный, а глубокий графит с холодным подтоном;
   off-white — не чистый белый, а тёплый серовато-бумажный.
   ------------------------------------------------------------------------- */
:root {
	--dv-ink: #0e1317;
	--dv-ink-2: #131a20;
	--dv-ink-3: #1a232b;
	--dv-line: #2a353e;
	--dv-line-soft: rgba(255, 255, 255, 0.09);
	--dv-paper: #f1f2ee;
	--dv-paper-2: #e7e9e2;
	--dv-paper-3: #f8f9f5;
	--dv-text: #121a1f;
	--dv-muted: #8d9aa3;
	--dv-muted-dark: #5d6a72;
	--dv-accent: #c9f26b;
	--dv-accent-strong: #b4e34f;
	--dv-accent-soft: rgba(201, 242, 107, 0.14);
	--dv-radius: 22px;
	--dv-radius-sm: 14px;
	--dv-container: 1240px;
	--dv-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--dv-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--dv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   Шрифты (локальные, без внешних запросов)
   ------------------------------------------------------------------------- */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   База
   ------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--dv-paper);
	color: var(--dv-text);
	font-family: var(--dv-font);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 450;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--dv-accent);
	color: var(--dv-ink);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--dv-ease), opacity 0.25s var(--dv-ease);
}

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

:focus-visible {
	outline: 2px solid var(--dv-accent-strong);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Скроллбар — в тон палитре */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--dv-line) transparent;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--dv-line);
	border-radius: 20px;
	border: 3px solid var(--dv-ink);
}

/* -------------------------------------------------------------------------
   Типографика (мягкая нормализация под Elementor)
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: inherit;
	font-family: var(--dv-font);
	font-weight: 750;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Доступность и служебное
   ------------------------------------------------------------------------- */
.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;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--dv-accent);
	color: var(--dv-ink);
	border-radius: 10px;
}

/* Уважаем настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
