:root {
	--hue: 120;

	--colors-black: hsl(0, 0%, 4%);
	--colors-white: hsl(0, 0%, 100%);

	--colors-text: hsl(120, 5%, 72%);
	--colors-text-secondary: hsl(120, 5%, 75%);

	--colors-background: hsl(120, 5%, 15%);
	--colors-border: hsl(120, 2%, 30%);

	--colors-primary: hsl(120, 60%, 50%);
	--colors-secondary: hsl(190, 60%, 50%);
	--colors-accent: hsl(0, 60%, 50%);

	--font-family-normal: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
	--font-family-monospace: ui-monospace, 'Ubuntu Mono', 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

	--content-width: 1400px;
}

* {
	color: var(--colors-text);
	font-family: var(--font-family-normal);
	font-size: 1rem;
	text-decoration: none;
}

body {
	background-color: var(--colors-black);
	padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
	font-size: 1rem;
	margin: 0;
	padding: 0;
}

p {
	margin-bottom: 1rem;
}

.post-summary, .post {
	margin-bottom: 1rem;
	padding: 0.5rem;
}

.post-summary__content, .post__content {
	margin-top: 1rem;
}

.post-summary__footer {
	margin-top: 0.75rem;
}

.post-summary__footer > a {
	color: var(--colors-accent);
}

.post-summary__header, .post__header {
	display: flex;
	flex-direction: row;
	border-bottom: 1px solid var(--colors-border);
	align-items: center;
}

@media only screen and (max-width: 640px) {
	.post-summary__header, .post__header {
		display: flex;
		flex-direction: column;
		align-items: start;
		padding-bottom: 0.25rem;
	}
}

.post-summary__header > h2, .post__header > h2 {
	color: var(--colors-white);
	flex: 1;
	font-size: 1.75rem;
	font-weight: bold;
	line-height: 3rem;
}

@media only screen and (max-width: 640px) {
	.post-summary__header > h2, .post__header > h2 {
		font-size: 1.25rem;
		line-height: 1.625rem;
		order: 1;
	}
}

.post-summary__header > h2 > a {
	color: var(--colors-white);
	font-size: 1.75rem;
}

@media only screen and (max-width: 640px) {
	.post-summary__header > h2 > a {
		font-size: 1.25rem;
	}
}

.post-summary__header > p, .post__header > p {
	color: var(--colors-text-secondary);
	font-family: var(--font-family-monospace);
	margin: 0;
}

@media only screen and (max-width: 640px) {
	.post-summary__header > p, .post__header > p {
		font-size: 0.75rem;
		order: 0;
	}
}

.site-footer {
	margin-top: 2rem;
	text-align: center;
}

.site-header {
	padding: 2rem 1.5rem;
}

@media only screen and (max-width: 640px) {
	.site-header {
		padding: 1rem 0.5rem;
	}
}

.site-header__title {
	color: var(--colors-primary);
	font-family: var(--font-family-monospace);
	font-size: 3rem;
	font-weight: bold;
	margin: 0 auto;
	max-width: var(--content-width);
	text-align: left;
}

@media only screen and (max-width: 640px) {
	.site-header__title {
		font-size: 2rem;
	}
}

.site-main {
	background-color: var(--colors-background);
	padding: 0 1.5rem;
}

@media only screen and (max-width: 640px) {
	.site-main {
		padding: 0 0.25rem;
	}
}

.site-main__content {
	margin: 0 auto;
	max-width: var(--content-width);
}
