/**
 * Base reset and element defaults.
 *
 * A conservative modern reset plus base typography, both driven entirely
 * by assets/css/tokens.css custom properties — no raw color/size values
 * here. Kept deliberately light: this is a foundation for base HTML
 * elements, not a competing CSS framework.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 var(--space-4);
	color: var(--color-heading);
	font-family: var(--font-family-heading);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

h1 {
	font-size: var(--font-size-4xl);
}

h2 {
	font-size: var(--font-size-3xl);
}

h3 {
	font-size: var(--font-size-2xl);
}

h4 {
	font-size: var(--font-size-xl);
}

h5 {
	font-size: var(--font-size-lg);
}

h6 {
	font-size: var(--font-size-md);
}

p {
	margin-block: 0 var(--space-4);
}

a {
	color: var(--color-link);
	text-decoration-thickness: max(1px, 0.0625em);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-link-hover);
}

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

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

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

hr {
	border: 0;
	border-block-start: 1px solid var(--color-border);
	margin-block: var(--space-6);
}
