body {
	background: hsl( 133 2% 87%);
	font-size: 18px;
	--main-width: 800px;
	--constrained-width: max( 18px, calc( (100vw - var(--main-width)) / 2 ) );
	--linkColor: hsl(196 100% 31%);

	padding: 0;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
	interpolate-size: allow-keywords;
	scroll-behavior: smooth;
	@media (prefers-reduced-motion: reduce) {
		scroll-behavior: auto;
	}
	@media(prefers-color-scheme: dark) {
		background: hsl( 133 2% 13% );
		--linkColor: hsl(196 100% 61%);
	}
}

* {
	box-sizing: border-box;
}

.contain {
	padding-inline: var(--constrained-width);
}

a {
	color: var(--linkColor);
}

h1 {
	font-size: 1.7em;
	font-weight: 200;
}
h2 {
	font-size: 1.2em;
	font-weight: 600;
	margin-block: 1em .3em;
}

p {
	margin-block: .25em 1em;
	line-height: 1.4;
	color: hsl( 0 0% 25% );
	font-weight: 300;
}

ul {
	li::marker {
		color: hsl( from currentColor h s l / .25 );
	}
	li {
		padding-block: .25em;
	}
}


header {
	background: #881124;
	padding: 1em 0;
	text-align: center;

	img {
		width: 125px;
		height: auto;
	}
}

main {
	margin-top: 2em;
	background: white;
	padding: 1em;
	border: 3px solid #707170;
	@media(prefers-color-scheme: dark) {
		background: black;
	}
}

.button {
	background: #881124;
	color: white;
	padding: .8em 1.25em;
	border-radius: 3px;
	text-decoration: none;
	transition: all 150ms;
	outline-offset: 0;
	outline: 1px transparent solid;
	display: inline-block;
	font-weight: 500;

	&:hover, &:focus {
		outline-offset: 2px;
		outline: 3px #881124 solid;
	}
	&:active {
		outline-offset: 6px;
		outline-width: 1px;
		transform: scale(.85);
	}
}

aside {
	background: hsl( 234 20% 96% );
	margin: 0 -1em -1em;
	padding: 1em;
	@media(prefers-color-scheme: dark) {
		filter: invert(1);

		a {
			/* unset */
			filter: invert(1);
		}
	}
}

footer {
	font-size: 14px;
	color: gray;
	text-align: center;
	padding: 1em;

	a {
		color: inherit;
	}
}

details {
	margin-block: 1.2em;
}

details summary  {
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: hsl( from currentColor h s l / .15 );
	color: hsl( from var(--linkColor) h s calc( l - 8 ) );
	font-size: 1.1em;
	font-weight: 500;

	&::marker {
		color: hsl( from currentColor h s l / .5 );
	}

	@media(prefers-color-scheme: dark){
		filter: invert(1);
	}
}

.question {
	margin-top: 2em;

	h2:first-child {
		margin-top: 0;
	}
}

.question:has( + .question ) {
	border-bottom: dashed hsl( 0 10% 84% ) 1px;
}
