* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--dark-bg: #111;
	--light-bg: #333;
	--dim-bg: #222;
	--shadow: #00000080;
	--normal-txt: #f4f4f4;
	--link-normal: #f44;
	--link-hover: #f66;
	--link-active: #faa;
}

body {
	background-color: var(--dark-bg);
	color: var(--normal-txt);
	font-family: "Trebuchet MS", Helvetica, sans-serif;
	text-align: justify;
}

main {
	width: 95%;
	max-width: 960px;
	margin: auto;
}

section, .text-block {
	background-color: var(--light-bg);
	padding: 0.63em 1.56em;
	margin-bottom: 1em;
	border-radius: 1em;
	box-shadow: 3px 3px var(--shadow);
}

header {
	margin: 0.67em 0;
}
header, footer {
	text-align: center;
}
footer {
	margin-bottom: 0.5em;
}

section header {
	text-align: left;
	font-size:1.2rem;
}

p {
	margin: 1em 0;
}

a {
	text-decoration: none;
	color: var(--link-normal);
}
a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}
a:active {
	color: var(--link-active);
}

ul {
	padding-left: 40px;
}

h1 {
	font-style: italic;
}

h2, h3, h4 {
	text-align: left;
}

.article-date {
	display: block;
	margin-bottom: 18px;
}
.article-date span {
	background-color: var(--shadow);
	padding: 10px;
	border-radius: 16px;
}

figure {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 720px;
	margin: 1em auto;
	gap: 1em;
}

figure img {
	min-width: 0;
	max-width: 300px;
}

/* Mobile fix */
@media only screen and (max-width: 768px) {
	figure {
		flex-direction: column;
	}
}
