/**
 * Nikolas X — Base / typography
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--nx-font-sans);
	font-size: var(--nx-fs-body);
	font-weight: var(--nx-fw-regular);
	line-height: var(--nx-lh-body);
	color: var(--nx-color-text);
	background: var(--nx-color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

img {
	height: auto;
}

a {
	color: var(--nx-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color var(--nx-duration-fast) var(--nx-ease);
}

a:hover {
	color: var(--nx-color-primary-hover);
}

a:focus-visible,
button:focus-visible,
.nx-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--nx-color-focus);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nx-h1,
.nx-h2,
.nx-h3,
.nx-h4 {
	margin: 0 0 var(--nx-space-4);
	font-weight: var(--nx-fw-bold);
	line-height: var(--nx-lh-tight);
	letter-spacing: var(--nx-tracking-tight);
	color: inherit;
}

h1,
.nx-h1 {
	font-size: var(--nx-fs-h1);
}

h2,
.nx-h2 {
	font-size: var(--nx-fs-h2);
}

h3,
.nx-h3 {
	font-size: var(--nx-fs-h3);
	line-height: var(--nx-lh-snug);
}

h4,
.nx-h4 {
	font-size: var(--nx-fs-h4);
	line-height: var(--nx-lh-snug);
	font-weight: var(--nx-fw-semibold);
}

.nx-display {
	font-size: var(--nx-fs-display);
	font-weight: var(--nx-fw-bold);
	line-height: var(--nx-lh-tight);
	letter-spacing: var(--nx-tracking-tight);
}

.nx-lead {
	font-size: var(--nx-fs-body-lg);
	line-height: var(--nx-lh-relaxed);
	color: var(--nx-color-muted);
}

.nx-eyebrow {
	display: inline-block;
	margin: 0 0 var(--nx-space-3);
	font-size: var(--nx-fs-meta);
	font-weight: var(--nx-fw-semibold);
	letter-spacing: var(--nx-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--nx-color-primary);
}

.nx-text-gradient {
	background: var(--nx-gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nx-meta,
.nx-label {
	font-size: var(--nx-fs-meta);
	font-weight: var(--nx-fw-medium);
	letter-spacing: var(--nx-tracking-wide);
	color: var(--nx-color-muted);
}

.nx-label {
	font-size: var(--nx-fs-label);
	text-transform: uppercase;
}

p {
	margin: 0 0 var(--nx-space-4);
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0 0 var(--nx-space-4);
	padding-left: var(--nx-space-5);
}

.screen-reader-text,
.nx-sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.nx-skip-link {
	position: absolute;
	left: -9999px;
	top: var(--nx-space-2);
	z-index: var(--nx-z-skip);
}

.nx-skip-link:focus {
	left: var(--nx-space-2);
	padding: var(--nx-space-3) var(--nx-space-4);
	border-radius: var(--nx-radius-sm);
	background: var(--nx-color-primary);
	color: var(--nx-color-white);
	text-decoration: none;
	font-weight: var(--nx-fw-semibold);
}
