/**
 * 02 · BASE
 * Reset + element styles. No layout or component rules live here.
 */

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

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: var(--leading-normal);
	color: var(--color-text-primary);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

img {
	font-style: italic;
}

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	color: var(--color-black);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 0;
}

blockquote {
	margin: 0 0 1em;
	padding-left: 1.25em;
	border-left: 3px solid var(--color-primary);
	color: var(--color-text-secondary);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	text-align: left;
	font-size: var(--text-body-small);
}

th {
	font-weight: 600;
	background: var(--color-off-white);
}

/* Focus visibility — visible everywhere, strong and consistent. */
:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

/* Skip link */
.viatrix-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-skip-link);
	padding: var(--space-3) var(--space-4);
	background: var(--color-black);
	color: var(--color-white);
	font-weight: 600;
	font-size: var(--text-body-small);
}

.viatrix-skip-link:focus {
	left: 0;
	top: 0;
	text-decoration: none;
}

::selection {
	background: var(--color-primary);
	color: var(--color-white);
}