/* Reset, tokens, typography, global utilities */

:root {
	--color-brand: #058cd1;
	--color-brand-dark: #0470a8;
	--color-text: #1f2933;
	--color-muted: #52606d;
	--color-bg: #f4f7f6;
	--color-surface: #ffffff;
	--color-table-header: #058cd1;
	--color-table-row: #dbe6de;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
	--radius: 10px;
	--header-h: 4.25rem;
	--font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--container: min(1120px, calc(100% - 2rem));
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-brand-dark);
}

.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;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.5rem 1rem;
	background: var(--color-brand);
	color: #fff;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
	flex: 1;
}
