/**
 * Typography: @font-face declarations + type scale.
 */

/* --- Rajdhani (headings, prices, CTAs) --- */
@font-face {
	font-family: 'Rajdhani';
	src: url('../fonts/Rajdhani-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Rajdhani';
	src: url('../fonts/Rajdhani-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Rajdhani';
	src: url('../fonts/Rajdhani-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Rajdhani';
	src: url('../fonts/Rajdhani-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* --- Inter (body, interface) --- */
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* --- JetBrains Mono (specs, SKU, code) --- */
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ==================== Base typography ==================== */

body {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-body);
	background: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
	margin-bottom: 1em;
}

a:hover {
	color: var(--cyan);
}

/* Section title with underline accent */
.section-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.75rem;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-title::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background: var(--cyan);
	box-shadow: 0 0 8px var(--cyan-glow);
	margin-top: 8px;
}

/* Mono text */
.mono,
.spec-value,
.product-specs,
code,
pre {
	font-family: var(--font-mono);
}

/* Focus styles */
:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 2px;
}

/* Selection */
::selection {
	background: rgba(0, 240, 255, 0.2);
	color: var(--text-primary);
}
