html {
	line-height: 1.5;
	font-size: 100%;
	font-family: 'Noto Serif', serif;
}

img { max-width: 100%; }

.chunk {
	margin: 1rem auto;
	padding: 1rem;
	border-radius: 2rem;
	display: block;
}

a.chunk {
	border: solid thin;
}

h1, figure, .flexy .chunk {
	text-align: center;
}

h1, h2 {
	line-height: 1;
}

h1:first-child, img+h2 {
	margin-top: 0;
}
h1:last-child, h2:last-child {
	margin-bottom: 0;
}

.flexy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: .5rem;
}

.flexy .chunk {
	flex: 0 1 15rem;
}

.flexy img {
	max-height: 15rem;
}

.flextable {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: .5rem;
}

.flextable figure {
	flex: 0 1 7rem;
	margin: 0;
}

article {
	max-width: 40rem;
}

.pxl { 
	image-rendering: optimizeSpeed;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* Color section */

html {
	color: black;
	background-color: #39f;
	background-image: url("img/bkg_sunrise.svg");
	background-attachment:fixed;
	background-size: 100vh;
	background-repeat: no-repeat;
	background-position: top center;
}
.chunk { background-color: rgba(255,239,239,.5)}
a {color: #00f;}
a:visited {color: #609;}
a:active {color: #f00;}

@media (prefers-color-scheme: dark) { 
	html {
		color: white;
		background-color: #11161a;
	background-image: url("img/bkg_moon_corona.svg");
	background-attachment:fixed;
	background-size: 100vh;
	background-repeat: no-repeat;
	background-position: center;
	}
	.chunk { background-color: rgba(31,31,47,.5)}
	a {color: #6af;}
	a:visited {color: #c9f;}
	a:active {color: #f66;}
}