/**
 * Yodha Fuel — base styles.
 * Reset + element-level typography + typography-level utility classes +
 * focus states. Mobile-first: base rules are the small-screen defaults,
 * only min-width additions layer up.
 *
 * Phase 2: element rules now pull from the fuller token set in
 * variables.css, and utility classes are added for the typography levels
 * that don't map to a plain HTML element (labels, nav text) so the same
 * scale is available wherever it's needed later.
 */

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

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

body {
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	background-color: var(--color-bg);
}

/* ============================================================
   HEADING LEVELS — H1 / H2 / H3
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: var(--lh-heading);
	color: var(--color-heading);
	font-weight: var(--fw-heavy);
	margin: 0 0 var(--space-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4, h5, h6 { font-size: var(--fs-body); font-weight: var(--fw-bold); }

p {
	margin: 0 0 var(--space-md);
}

/* ============================================================
   BODY / SMALL TEXT
   ============================================================ */
.yf-text-body {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.yf-text-small {
	font-size: var(--fs-small);
	line-height: var(--lh-tight);
	color: var(--color-text-muted);
}

/* ============================================================
   LABELS — form labels, filter labels, eyebrows
   ============================================================ */
.yf-label {
	display: inline-block;
	font-size: var(--fs-label);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--ls-label);
	color: var(--color-text);
}

/* ============================================================
   NAVIGATION TEXT LEVEL — used by header/footer nav links
   ============================================================ */
.yf-text-nav {
	font-size: var(--fs-nav);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--ls-nav);
}

/* ============================================================
   LINKS
   ============================================================ */
a {
	color: var(--color-text-link);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover,
a:focus {
	color: var(--color-text-link-hover);
}

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

/* ============================================================
   ACCESSIBILITY — focus states
   Visible, high-contrast, on every interactive element. Never removed
   without a replacement, per the accessibility requirement.
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--yodha-orange);
	outline-offset: 2px;
}

/* On dark backgrounds (header/footer), the default orange outline still
   has enough contrast against Warrior Dark, so no override is needed —
   verified against WCAG contrast guidance for the two colors involved. */

/* Standard WordPress screen-reader-only utility (Storefront also defines
   this; kept here too so the class works even if base markup changes). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Respect reduced-motion preference site-wide. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
