
/* Config --------------------------------------------------------------- */

:root {
	--body-font: "Montserrat", sans-serif;
	--light-gray-color: #9d9d9d;
	--gray-color: #D3D3D3;
	--dark-gray-color: #808080;
	--line-height: 1.5;
	--content-width: 1024px;
	--margin: 30px;
}

/* CSS Reset --------------------------------------------------------------- */

/* [1] tl;dr; All elements inherit some properties from their parent (recursive step) */
* {
	margin: 0;
	padding: 0;
	font-weight: normal;
	font-family: inherit;
	color: inherit;
	background: transparent;
	box-sizing: inherit;
	/* Add more properties here */
}

/* [2] tl;dr; Provide inheritable defaults (base case) */
html {
	box-sizing: border-box;
	font-size: 16px;
	font-family: var(--body-font);
	color: black;
	line-height: var(--line-height);
	/* provide defaults for properties in [1] (except margin & padding */
}

/* Core Styling --------------------------------------------------------------- */

a {
	border: none;
	text-decoration: none;
}

main a:not(:has(*)) {
	border-bottom: 1px dotted var(--color--lightest);
}

a:hover {
	color: #6190a2 !important;
	border-color: #6190a2 !important;
}

a.button {
	border: none;
	border-bottom: 5px solid var(--color--lightest);
	background: var(--color--darkest);
	color: var(--color--white);
	text-align: center;
	text-transform: uppercase;
	padding: 10px;
	box-sizing: border-box;
}

a.button.block-button {
	display: block;
	width: fit-content;
}

strong {
	font-weight: bold;
}

body > header > section {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}

p:not(:last-child) {
	margin-bottom: 1em;
}

hr {
	width: 200px;
	height: 1px;
	margin: var(--margin) auto;
	background: #9d9d9d;
	border: none;
}

footer {
	color: #9d9d9d;
	display: flex;
	flex-flow: column;
	text-align: center;
}

/* Core Layout --------------------------------------------------------------- */

body {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	min-height: 100vh;
}

body > main {
	flex: 1;
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
}

body > header {
	width: 100%;
	padding: 1rem;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-flow: row wrap;
	row-gap: calc(var(--margin) / 2);
}

section {
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
}

.collection {
	list-style: none;
	width: 100%;
	gap: 10px 10px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.collection > * {
	flex: 1;
}

body > header {
	align-items: flex-start;
}

/* Site Icon */
body > header img {
	height: 60px;
}

section,
footer {
	width: 100%;
}

main > section,
footer {
	position: relative;
}

.contentwidth,
section:not(.fullwidth) {
	padding: var(--margin) calc(var(--margin) + calc(max(0px, calc(100% - var(--content-width))) / 2));
}

main > section:has(+ * .separator),
main > section:last-child {
	padding-bottom: calc(var(--margin) + 50px); /* 50px is about half of the height of the separator swoosh */
}


/* 
 * widgets
 */

/* link cloud */

.link-cloud {
	list-style-type: none;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.link-cloud a {
	padding: 10px;
	box-sizing: border-box;
	display: block;
}

.link-cloud a > * {
	height: 2.5em;
}

