/*
 * Quill Quest Base CSS
 * Reset, document defaults, typography, and prose styling.
 */

/* 1. Box Sizing & Resets */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
	margin: 0;
}

ul[role='list'],
ol[role='list'] {
	list-style: none;
}

html:focus-within {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: var(--qq-prose-lh);
	font-family: var(--qq-c-font-sans);
	font-size: var(--qq-prose-fs);
	color: var(--qq-c-text);
	background-color: var(--qq-c-canvas);
	scroll-padding-top: var(--qq-scroll-pad);
}

a:not([class]) {
	text-decoration-skip-ink: auto;
}

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
