/*
 * GARAGE 11 — base.css
 * Сброс, фон, типографика, доступность. Токены — в theme.json.
 */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp--custom--header-height) + 12px);
}

body {
	margin: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--text);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Мягкое неоновое свечение за контентом. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60% 45% at 80% 0%, rgba(23, 195, 232, 0.14), transparent 70%),
		radial-gradient(45% 40% at 0% 100%, rgba(242, 163, 60, 0.08), transparent 70%),
		linear-gradient(180deg, #0a0b0f 0%, #0b0e14 100%);
}

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

a {
	transition: color 0.2s ease;
}

p {
	margin: 0 0 1em;
}

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

.wp-block-heading {
	text-wrap: balance;
}

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

::selection {
	background: var(--wp--preset--color--accent);
	color: #04131a;
}

/* Доступность: скрытый текст и skip-link. */
.g11-visually-hidden,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--wp--preset--color--accent);
	color: #05121a;
	font-weight: 700;
	border-radius: 8px;
}

/* Надзаголовок секций. */
.g11-eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	margin-bottom: 14px;
}

@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;
	}
}
