/* ==========================================================================
   OwnServe — Base / Reset / Typography
   ========================================================================== */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--os-header-h) + 12px);
}

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

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

svg {
	height: auto;
}

a {
	color: var(--os-orange-700);
	text-decoration: none;
}

a:hover {
	color: var(--os-orange-600);
}

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

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

h1 {
	font-size: var(--os-fs-h1);
}

h2 {
	font-size: var(--os-fs-h2);
}

h3 {
	font-size: var(--os-fs-h3);
	letter-spacing: -0.01em;
	font-weight: 700;
}

p {
	text-wrap: pretty;
}

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

/* Accessibility helpers ---------------------------------------------------- */

.os-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.os-skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 200;
	background: var(--os-navy);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--os-radius-sm);
	transition: top var(--os-dur) var(--os-ease);
}

.os-skip-link:focus {
	top: 12px;
	color: #fff;
}

/* Visible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
	outline: none;
	box-shadow: var(--os-focus);
	border-radius: var(--os-radius-sm);
}

:target {
	scroll-margin-top: calc(var(--os-header-h) + 16px);
}
