/**
 * Fonts, reset and base typography.
 */

/* ---------------------------------------------------------------- Fonts -- */
/* Variable font: one file spans the 200–800 axis, so 400 and 500 share a source. */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

/* ---------------------------------------------------------------- Reset -- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/*
	 * `clip` rather than `hidden`: hidden makes the element a scroll container,
	 * which iOS Safari will still let you pan, and which also re-bases sticky
	 * positioning. clip cannot be panned at all. hidden stays first as the
	 * fallback for engines without clip.
	 */
	overflow-x: hidden;
	overflow-x: clip;
}

@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 {
	margin: 0;
	background: var(--dkx-bg);
	color: var(--dkx-fg);
	font-family: var(--dkx-font);
	font-size: var(--dkx-fs-base);
	font-weight: var(--dkx-fw-regular);
	line-height: var(--dkx-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	overflow-x: clip;
}

body.dkx-no-scroll {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
	margin: 0;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ----------------------------------------------------------- Typography -- */

.dkx-h1,
.dkx-h2 {
	font-size: var(--dkx-fs-4xl);
	font-weight: var(--dkx-fw-medium);
	line-height: var(--dkx-lh-tight);
	text-transform: uppercase;
	letter-spacing: 0;
}

.dkx-h3 {
	font-size: var(--dkx-fs-3xl);
	font-weight: var(--dkx-fw-medium);
	line-height: var(--dkx-lh-tight);
}

.dkx-lead {
	font-size: var(--dkx-fs-lg);
	line-height: var(--dkx-lh-body);
}

.dkx-body {
	font-size: var(--dkx-fs-base);
	line-height: var(--dkx-lh-body);
}

.dkx-muted {
	color: var(--dkx-muted);
}

/* ------------------------------------------------------------- Utility --- */

.dkx-container {
	width: 100%;
	max-width: var(--dkx-canvas);
	margin-inline: auto;
	padding-inline: var(--dkx-gutter);
}

.dkx-section {
	padding-block: var(--dkx-section-y);
}

.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:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 20px;
	background: var(--dkx-black-900);
	color: var(--dkx-white);
	white-space: nowrap;
}

:focus-visible {
	outline: var(--dkx-focus);
	outline-offset: var(--dkx-focus-offset);
}

/* Ratio-locked image wrapper — every design image slot uses this so swapping
   a photo never changes layout. */
.dkx-media {
	position: relative;
	overflow: hidden;
	background: var(--dkx-surface);
}

.dkx-media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Height follows the photo rather than a fixed crop box. */
.dkx-media--natural {
	position: static;
}

.dkx-media--natural > img {
	position: static;
	width: 100%;
	height: auto;
	object-fit: fill;
}

.dkx-media--placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--dkx-grey-100);
}
