/*
Theme Name: FormaCraft Greenlight
Theme URI: https://formacraft.studio/
Author: FormaCraft Studio
Description: Child of Greenlight. Dark by default. Design tokens live in theme.json, small fc-* utilities live here.
Template: greenlight
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: formacraft-greenlight
*/

:root {
	color-scheme: dark;
}

::selection {
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--text-strong);
}

/* Точка-акцент после слова */
.fc-dot {
	display: inline-block;
	width: 0.2em;
	height: 0.2em;
	margin-inline-start: 0.08em;
	border-radius: var(--wp--custom--radius--round);
	background: var(--wp--preset--color--accent);
	vertical-align: baseline;
}

/* Display: крупные слова секций */
.fc-display {
	margin: 0;
	font-size: var(--wp--preset--font-size--d3);
	font-weight: 300;
	line-height: 0.84;
	letter-spacing: -0.04em;
}

/* Кикер / микро-подпись */
.fc-micro {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.fc-hand {
	font-family: var(--wp--preset--font-family--hand);
	font-size: var(--wp--preset--font-size--hand);
}

.fc-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--7);
}

.wp-block-button__link {
	transition:
		box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

/* The Single Focus Ring Rule */
:where(a, button, textarea, select, input, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.fc-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--4);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--wp--custom--motion--fast: 0s;
		--wp--custom--motion--base: 0s;
		--wp--custom--motion--slow: 0s;
	}
	*, *::before, *::after {
		scroll-behavior: auto !important;
	}
}
