/*
 * VoltNiq — Base: fonts, reset, element defaults.
 */

/* --- Self-hosted fonts -----------------------------------------------
 * Assumption (stated): subset woff2 files live in /assets/fonts/.
 * font-display: swap so first paint never blocks; if a file is absent the
 * stack falls back to system fonts defined in tokens.css.
 */
@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/space-grotesk-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/space-grotesk-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

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

* {
	margin: 0;
}

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

body {
	background-color: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	font-weight: var(--fw-regular);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* --- Typography defaults --------------------------------------------- */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	color: var(--c-text);
	text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { line-height: var(--lh-base); }

a {
	color: var(--c-volt);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
a:hover,
a:focus-visible {
	color: var(--c-volt-deep);
}

/* Tabular figures for any numeric/spec context */
.tnum,
table {
	font-variant-numeric: tabular-nums;
}

/* --- Focus visibility ------------------------------------------------- */
:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-radius: var(--r-sm);
}

/* --- Accessibility helpers ------------------------------------------- */
.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 {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-overlay);
	background: var(--c-volt);
	color: var(--c-on-volt);
	padding: var(--sp-3) var(--sp-4);
	border-radius: 0 0 var(--r-sm) 0;
	font-weight: var(--fw-semibold);
}
.skip-link:focus {
	left: 0;
}

[hidden] {
	display: none !important;
}

/* --- Reduced motion --------------------------------------------------- */
@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;
	}
}
