/* Base */

:root {
	--page-background: #191919;
	
	--text-color: #fff;
	--text-shadow-color: #1414141a;
	--text-color-faded: #9C9C9C;
	--text-color-date-permalink: var(--text-color-faded);
	
	--blockquote-background-color: #333;
	--blockquote-leading-color: var(--link-color);	
	
	--hr-border-color: #ffffff10;
	
	--link-color: #FFD60A;
	--link-decoration-color: #ffd60a3f;
	--link-hover-color: #fbffc8ff;
	--link-color-active: #ffa221;
	--link-transition-time: 0.20s;
	--link-transition-mode: cubic-bezier(0.36, 0.61, 0.18, 0.94);
}

/* Query */

@media (prefers-color-scheme: light) {}
@media (prefers-color-scheme: dark) {}

@media screen and (max-width: 550px) {
	header nav {
		display: none;		
	}
	
	footer nav {
		display: block !important;
	}
}

/* Page */

* {
	margin: 0;
	padding: 0;
}

html {
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	scroll-behavior: smooth;
}

body {
	padding: 0 1.5em;
	margin: auto;
	
	max-width: 34em;	
	text-shadow: -0.03em 0.1em 0.1em var(--text-shadow-color);
	
	background: var(--page-background);	
	color: var(--text-color);
	
	font-family: mencken-std-text, sans-serif, system-ui, sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 1.2em;
	
	line-height: 1.6em;	
}

/* Elements */

a {
	color: var(--link-color);
	text-decoration-color: var(--link-decoration-color);
	text-underline-offset: 0.125em;
	text-decoration-thickness: 0.05em;
	transition: 
		text-decoration-color var(--link-transition-time) var(--link-transition-mode),
		color var(--link-transition-time) var(--link-transition-mode);
}

a:hover {
	color: var(--link-hover-color);
	text-decoration-color: var(--link-hover-color);
}

a:active {
	color: var(--link-color-active);
	text-decoration-color: var(--link-color-active);
}

hr {
	border: none;
	border-top: 1px solid var(--hr-border-color);
}

/* Header & Footer */

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2.5em;
	margin-bottom: 2em;
}

header nav a {
	margin-left: 1.2em;
}

header #header-div {
	display: inline-flex;
	align-items: center;
}

header #header-image {
	width: 1.5em;
	height: 1.5em;
	object-fit: cover;
	border-radius: 0.25em;
}

header #header-div a, header #header-div a:hover {
	text-decoration: none;
	color: var(--text-color);
}

header #header-title {
	font-family: "new-spirit-condensed", serif;
	font-weight: 500;
	font-style: normal;
	font-size: 1.5em;
	
	color: var(--text-color);	
	margin-left: 0.5em;
}

footer {
	margin-top: 2em;
	margin-bottom: 2em;
	color: var(--text-color-faded);
}

footer p#copyright {	
	text-align: center;
}

footer nav {
	margin-bottom: 1em;
	text-align: center;
	display: none;
}

footer nav a:not(:first-of-type) {
	margin-left: 1.4em;
}

/* Article & Content */

article {
	margin: 0;
	padding: 1em 0;
}

article:first-of-type {
	padding-top: 2em;
}

article:last-of-type {
	padding-bottom: 2em;
}

article:only-of-type {
	padding: 2em 0;
}

article p, section.content p {
	padding: 0.75em 0;	
}

article h1, section.content h1 {
	line-height: 1.4em;	
}

article h2, section.content h2 {	
	padding-top: 0.5em;
	font-family: new-spirit-condensed, serif;
	font-weight: 800;
	font-style: normal;
	font-size: 1.3em;
}

article h3, section.content h3 {
	font-size: 1.1em;
}

section.content {
	margin: 0;	 
	padding: 2em 0;
}

section.content p {
	padding: 0.75em 0;	
}

section.content h1 {
	font-size: 1.6em;
	line-height: 1.4em;	
}

section.content h2 {	
	padding-top: 1.25em;
	font-family: new-spirit-condensed, serif;
	font-weight: 800;
	font-style: normal;
	font-size: 1.3em;
}

section.content h3 {
	font-size: 1.1em;
}

section.content span.publish-date {
	margin-bottom: 0em;
	color: var(--text-color-date-permalink);
	display: flex;
	align-items: center;
}

section.content span.publish-date a, article span.publish-date a:hover {
	text-decoration: none;	
	color: var(--text-color-date-permalink);
	display: flex;
	align-items: center;
}

section.content span.publish-date a.post::before {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	background-color: var(--text-color-date-permalink);
	margin-right: 0.5em;
	flex-shrink: 0;
}

section.content ul, section.content li {
	margin: 0;
	padding: 0.2em 0;
	list-style-position: inside;
	list-style-type: none;
}

section.content ul.contact-ul, section.content li.contact-li {
	margin: 0 0.5em;
	padding: 0.2em 0;
	list-style-position: outside;
	list-style-type: square;
	color: var(--text-color);
}

section.content span.publish-date a.link::before {
	-webkit-mask: url('/link.png');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask: url('/link.png');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

section.content span.publish-date a.note::before {
	-webkit-mask: url('/note.png');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask: url('/note.png');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

article span.publish-date {
	margin-bottom: 0em;
	color: var(--text-color-date-permalink);
	display: flex;
	align-items: center;
}

article span.publish-date a, article span.publish-date a:hover {
	text-decoration: none;	
	color: var(--text-color-date-permalink);
	display: flex;
	align-items: center;
}

article span.publish-date a.post::before {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	background-color: var(--text-color-date-permalink);
	margin-right: 0.5em;
	flex-shrink: 0;
}

article span.publish-date a.link::before {
	-webkit-mask: url('/link.png');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask: url('/link.png');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

article span.publish-date a.note::before {
	-webkit-mask: url('/note.png');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask: url('/note.png');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

article img {
  margin: 0.5em auto;
  width: 100%;
  height: auto;
  border-radius: 0.55em;
}

article aside {
	padding-left: 2em;
	padding-right: 2em;
	margin-bottom: 1em;
	font-size: 0.8em;
	color: var(--text-color-faded);
	text-align: center;
	line-height: 1.6em;	
}

article blockquote {
	background-color: var(--blockquote-background-color);
	border-left: 0.25em solid var(--blockquote-leading-color);
	margin: 1em 0;
	padding: 1.5em 2em;
}
