/* Purpose: Self-hosted @font-face, CSS reset, and base element defaults. */

/* ---- Fonts: Neue Haas Display (heading) ---- */
@font-face {
	font-family: 'Neue Haas Display';
	src: url('../fonts/NeueHaasDisplay-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Neue Haas Display';
	src: url('../fonts/NeueHaasDisplay-Roman.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Neue Haas Display';
	src: url('../fonts/NeueHaasDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Neue Haas Display';
	src: url('../fonts/NeueHaasDisplay-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---- Fonts: Aeonik Pro (body) ---- */
@font-face {
	font-family: 'Aeonik Pro';
	src: url('../fonts/AeonikPro-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Aeonik Pro';
	src: url('../fonts/AeonikPro-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Aeonik Pro';
	src: url('../fonts/AeonikPro-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

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

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

@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;
	}
}

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-regular);
	line-height: var(--leading-loose);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	color: var(--color-text);
	text-wrap: balance;
}

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

/* ---- Forms ---- */
input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

/* ---- Links ---- */
a {
	color: inherit;
	text-decoration: none;
	transition: color var(--duration-base) var(--ease-out);
}

/* ---- Lists ---- */
ul, ol { list-style: none; padding: 0; }

/* ---- Selection ---- */
::selection {
	background: var(--color-primary);
	color: var(--color-text-strong);
}

/* ---- A11y: skip link + focus ---- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-toast);
	padding: var(--space-3) var(--space-5);
	background: var(--color-primary);
	color: var(--color-text-strong);
	border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

/* ---- Shared accent (inline highlight) ---- */
.accent { color: var(--color-primary); }
