@layer reset
{
	
	/* Remove default margin */

	*:not(dialog)
	{
		margin: 0;
	}

	/* A more-intuitive box-sizing model */

	*,
	*::before,
	*::after
	{
		box-sizing: border-box;
		min-width: 0;
		transition: opacity 500ms ease;
		transition: color 500ms ease;
		transition: background-color 500ms ease;
		transition: box-shadow 500ms ease;
		transition: transform 500ms ease;
		animation-duration: 500ms;
		animation-iteration-count: 1 !important;
		transition-duration: 500ms;
	}

	html, body, div, span, applet, object, iframe,
	h1, h2, h3, h4, h5, h6, p, blockquote, pre,
	a, abbr, acronym, address, big, cite, code,
	del, dfn, em, img, ins, kbd, q, s, samp,
	small, strike, strong, sub, sup, tt, var,
	b, u, i, center,
	dl, dt, dd, ol, ul, li,
	fieldset, form, label, legend,
	table, caption, tbody, tfoot, thead, tr, th, td,
	article, aside, canvas, details, embed, 
	figure, figcaption, footer, header, hgroup, 
	menu, nav, output, ruby, section, summary,
	time, mark, audio, video
	{
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline;
	}
	
	html
	{
		-webkit-text-size-adjust: 100%;
		block-size: 100%;
		text-size-adjust: 100%;
		scroll-behavior: smooth;
	}

	body
	{
		min-block-size: 100vh;
		min-block-size: 100dvh;
		min-height: 100vh;
		min-height: 100dvh;
		margin: 0;
		-webkit-font-smoothing: antialiased;
	}

	/* HTML5 display-role reset for older browsers */

	article,
	aside,
	details,
	figcaption,
	figure, 
	footer,
	header,
	hgroup,
	menu,
	nav,
	section
	{
		display: block;
	}
	
	ol,
	ol[role="list"],
	ul,
	ul[role="list"]
	{
		list-style: none;
	}

	blockquote,
	q
	{
		quotes: none;
	}

	blockquote:before,
	blockquote:after,
	q:before,
	q:after
	{
		content: '';
		content: none;
	}
	
	table
	{
		border-collapse: collapse;
		border-spacing: 0;
	}

	/* Improved media defaults */

	img,
	picture,
	iframe,
	video,
	canvas,
	svg
	{
		display: block;
		height: auto;
		max-width: 100%;
		max-inline-size: 100%;
		block-size: auto;
	}
	
	/* Inherit fonts for form controls */

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

	textarea
	{
		resize: vertical;
	}

	/* 8. Avoid text overflows */

	p,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6
	{
		overflow-wrap: break-word;
	}

	/* Improved line wrapping */

	p
	{
		text-wrap: pretty;
	}
	
	h1,
	h2,
	h3,
	h4,
	h5,
	h6
	{
		text-wrap: balance;
		text-box: trim-both cap text;
	}
	
	b,
	strong
	{
		font-weight: bold;
	}

	i
	{
		font-style: italic;
	}

	a
	{
		font-optical-sizing: auto;
		text-decoration-skip-ink: auto;
		cursor: pointer;
	}

	a:not([class])
	{
		color: #333;
		text-decoration-skip-ink: auto;
		text-underline-offset: 0.12em;
	}

	a:not([class]):hover
	{
		text-decoration-thickness: 0.12em;
	}	

	a,
	p,
	li,
	label
	{
		text-wrap: pretty;
		text-box: trim-both cap text;
	}

	/* Enable keyword animations */
/*
	@media (prefers-reduced-motion: reduce)
	{
		html
		{
			scroll-behavior: auto;
		}

		*,
		*::before,
		*::after
		{
			animation-duration: 0 !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0s !important;
		}
	}

	/* Applies styles when the user has made no preference known */
/*
	@media screen and (prefers-reduced-motion: no-preference)
	{
		html
		{
			scroll-behavior: smooth;
			interpolate-size: allow-keywords;
		}

		*,
		*::before,
		*::after
		{
			animation-duration: 1500ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 1500ms !important;
		}
	}
*/
}


