/* MrHost Forge Base: reset and typography. Values come from --mhf-* tokens. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--mhf-space-md);
	font-family: var(--mhf-font-family-heading);
	font-weight: var(--mhf-font-weight-bold);
	line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p,
ul,
ol,
figure,
blockquote {
	margin: 0 0 var(--mhf-space-md);
}

a {
	color: var(--mhf-color-primary);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

blockquote {
	padding-inline-start: var(--mhf-space-md);
	border-inline-start: 4px solid var(--mhf-color-border);
	color: var(--mhf-color-text-muted);
}

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

th,
td {
	padding: var(--mhf-space-sm) var(--mhf-space-md);
	border-bottom: 1px solid var(--mhf-color-border);
	text-align: start;
}

:focus-visible {
	outline: 3px solid var(--mhf-color-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	inset-block-start: var(--mhf-space-sm);
	inset-inline-start: var(--mhf-space-sm);
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--mhf-space-sm) var(--mhf-space-md);
	clip-path: none;
	background: var(--mhf-color-background);
	color: var(--mhf-color-primary);
	box-shadow: var(--mhf-shadow-md);
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
