/* Self-hosted Poppins. Files live in assets/fonts/. */
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/*
 * Base layer. Layout primitives and CLS-prevention only.
 * Your existing Datahikes visual design gets ported in on top of this,
 * section by section, during Phase 4.
 */

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

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

body {
	margin: 0;
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}

/* Reserve space before images decode, so nothing jumps. */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

img[width][height] { height: auto; }

a { color: inherit; }

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

h1, h2, h3, h4 {
	line-height: 1.2;
	text-wrap: balance;
}


.dh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	padding: 0.75rem 1rem;
	background: #0a0a0a;
	color: #fff;
	z-index: 999;
}

.dh-skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Header holds its height from first paint. Adjust once the real header
   is ported, and keep these values in sync with the design. */
.dh-header {
	min-height: 80px;
}

@media (max-width: 768px) {
	.dh-header { min-height: 64px; }
}

.dh-main {
	display: block;
}

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