/*
 * Dasar: hal yang tidak bisa diatur lewat theme.json.
 * Semua nilai warna, jarak, dan radius memakai token theme.json.
 */

/* Ukuran (min-height, width) menghitung padding dan tepi; spesifisitas nol lewat :where(). */
:where(*, *::before, *::after) {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

/* Fokus yang jelas: outline oranye 3 px (BRIEF 11). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--fokus--lebar) solid var(--wp--preset--color--oranye);
	outline-offset: var(--wp--custom--fokus--jarak);
	border-radius: 2px;
}

/* Tautan "Lewati ke konten" bawaan tema blok. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--putih);
	color: var(--wp--preset--color--ungu);
	font-weight: 700;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--pill);
	box-shadow: var(--wp--preset--shadow--menu);
	z-index: 100000;
}

/* Tombol: target sentuh minimal 44 px. */
.wp-element-button,
.wp-block-button__link {
	min-height: var(--wp--custom--tombol--tinggi-min);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

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

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