/* =============================================================
   KirkeTjek — Base / reset & global element styling
   ============================================================= */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Offset anchored scroll targets so they clear the fixed header */
	scroll-padding-top: calc(var(--kt-header-h) + 1rem);
}

body {
	font-family: var(--kt-font-sans);
	font-size: var(--kt-fs-400);
	line-height: var(--kt-lh-base);
	color: var(--kt-ink);
	background-color: var(--kt-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
picture {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--kt-primary);
	text-decoration: none;
	transition: color var(--kt-dur-fast) var(--kt-ease);
}

a:hover {
	color: var(--kt-primary-strong);
}

button {
	font: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	line-height: var(--kt-lh-tight);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--kt-ink);
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

ul {
	list-style: none;
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--kt-primary-bright);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--kt-primary-container);
	color: var(--kt-on-primary-container);
}

/* Accessible skip link */
.skip-link {
	position: absolute;
	left: 0.5rem;
	top: -3rem;
	z-index: 1000;
	padding: 0.6rem 1rem;
	background: var(--kt-primary);
	color: var(--kt-on-primary);
	border-radius: var(--kt-radius-sm);
	transition: top var(--kt-dur-fast) var(--kt-ease);
}

.skip-link:focus {
	top: 0.5rem;
	color: var(--kt-on-primary);
}

/* Visually hidden but available to screen readers */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
