@import "syntax.css" (prefers-color-scheme: light);
@import "syntax-dark.css" (prefers-color-scheme: dark);

html {
	font-family: sans-serif;
	font-size: revert;
}

@media (prefers-color-scheme: light) {
	body {
		color: black;
		background-color: whitesmoke;
	}
}

@media (prefers-color-scheme: dark) {
	body code {
		color: whitesmoke;
	}
	
	img.darkInvertable {
		filter: invert(1);
	}
}

.content {
	max-width: 77ch;
	padding: 0 2ch;
}

p, .description, ol, ul:not(.pagination, .posts, .tags), table, blockquote  {
	font-family: serif;
	line-height: revert;
}

blockquote {
	color: revert;
}

p.tagline {
	font-style: italic;
	margin-left: 1.5em;
	margin-right: 1.5em;
}

.description {
	margin-top: 1em;
	margin-bottom: 1em;
}

sup {
	line-height: 0;
}

a { 
	border-bottom: revert;
	text-decoration: revert;
	text-decoration-line: revert;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.075em;
	text-decoration-color: var(--maincolor);
}

.tags a {
	border-bottom: revert;
}


@media (prefers-color-scheme: light) {
	pre, code, samp, p {
		--montgomerie-code-background-color: #ececec;
	}
}

@media (prefers-color-scheme: dark) {
	pre, code, samp, p {
		--montgomerie-code-background-color: #272822;
	}
}

pre, code, samp {
	font-family: monospace;
	font-size: revert;
	padding: revert;
	background-color: var(--montgomerie-code-background-color);
}

pre code,
div.habari-old > code,
div.habari-old p > code:only-child
{
	display: block;
	font-size: revert;
	line-height: revert;
	background-color: var(--montgomerie-code-background-color);
	overflow-x: auto;
	padding: 1em;
	white-space: pre-wrap;
}

figure {
	all: revert
}

img {
	border: revert;
	height: auto;
}

p > img:only-child, .framedImage {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

.framedImage {
	margin: 1em auto;
}

.framedImage[align='left'] {
	padding-right: 1em;
}

.framedImage[align='right'] {
	padding-left: 1em;
}

header .main {
	font-weight: 600;
}

article .title {
	margin-bottom: revert;
}

.tags li::before {
	content: "tag: ";
}

.draft-label {
	display: inline-block;
	font-size: 80%;
	font-weight: bold;
	vertical-align: top;
	line-height: 1;
	margin-top: 0.25em;
	padding: 3px 4px 2px 4px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
}

section {
	margin-top: 1em;
}

section.footnotes {
	margin-top: 2rem;
}

section.post {
	margin-bottom: 3rem;
}

nav {
	justify: right;
}

footer {
	font-size: 75%;
	border-top-width: 4px;
	border-color: var(--maincolor);
	padding-top: 1rem;
}

hr {
	border: 0;
	border-top: 4px dotted var(--maincolor);
	margin: 1em 0;
}

article {
	margin-bottom: 2rem
}

#isso-thread  {
	border-top: 4px dotted var(--maincolor);
}

#isso-thread > h4 {
	margin-top: 2rem;
	color: revert;
	margin-bottom: 1em;
}

#isso-thread > h4::before {
	content: '## ';
}

#isso-thread label {
	font-family: sans-serif;
	font-size: revert;
	font-weight: 600;
}

#isso-thread textarea {
	font-size: 16px
}

#isso-thread textarea,
#isso-thread input {
	font-family: serif;
}

#isso-thread button {
	font-family: sans-serif;
	font-weight: 500;
}

#isso-thread section {
	margin-top: revert;
}
	
section.isso-auth-section {
	display: flex;
	justify-content: space-between;
}

.isso-input-wrapper {
	width: 25%;
}

.isso-input-wrapper > input {
	display: block;
	width:100%;
}
