*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: light;
	scroll-behavior: smooth;
	scroll-padding-top: var(--darbin-header-height);
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--darbin-surface-page);
	color: var(--darbin-color-text);
	font-family: var(--font-en);
	font-size: var(--darbin-type-body);
	font-weight: var(--darbin-font-weight-regular);
	line-height: var(--darbin-line-height-body);
	letter-spacing: 0;
}

body.darbin-mobile-menu-open {
	overflow: hidden;
}

html[dir="rtl"] body {
	font-family: var(--font-ar);
	font-size: var(--darbin-type-body-ar);
	line-height: var(--darbin-line-height-arabic);
	letter-spacing: normal;
}

html[dir="ltr"] body {
	direction: ltr;
}

html[dir="rtl"] body {
	direction: rtl;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
	cursor: pointer;
}

a {
	color: var(--darbin-color-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

:focus-visible {
	outline: 3px solid var(--darbin-color-focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 0.65em;
	color: inherit;
	font-weight: var(--darbin-font-weight-semibold);
	line-height: var(--darbin-line-height-heading);
}

h1 {
	font-size: var(--darbin-type-display);
}

h2 {
	font-size: var(--darbin-type-section);
}

h3 {
	font-size: var(--darbin-type-card);
}

p {
	margin-block: 0 1em;
}

ul,
ol {
	padding-inline-start: 1.25em;
}

code,
kbd,
samp,
.darbin-technical {
	font-family: var(--font-mono);
}

table {
	width: 100%;
	border-collapse: collapse;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.darbin-skip-link:focus {
	position: fixed;
	inset-block-start: var(--darbin-space-4);
	inset-inline-start: var(--darbin-space-4);
	z-index: var(--darbin-z-modal);
	width: auto;
	height: auto;
	padding: var(--darbin-space-3) var(--darbin-space-4);
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--darbin-white);
	color: var(--darbin-text-dark);
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
