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

@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;
}

figcaption {
	text-align: center;
	font-style: italic;
	font-weight: bolder;
}

p, .description, ol, ul:not(.pagination, .posts, .tags), table, blockquote, figcaption {
	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;
	}
}

/* Callouts read like body text. `.callout p` is listed too because the
   theme's `.callout p` (asking for 'IBM Plex Mono') outranks plain `p`. */
.callout, .callout p {
	font-family: serif;
}

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;
	text-align: center;
}

figure img {
	max-height: 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;
}

table {
	margin: auto;
}

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.body ul > li::before {
	float: left;
	width: 2ch;
}

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;
}

footer .footer-info {
	padding-top: 0.2rem;
}

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;
}

/* The "Author" label isso adds after my name (see
   data-isso-page-author-hashes in layouts/partials/comments.html). isso's
   default colour is a fixed dark grey that vanishes in dark mode. */
#isso-thread .isso-page-author-suffix {
	color: var(--maincolor);
}
	
section.isso-auth-section {
	display: flex;
	justify-content: space-between;
}

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

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

a.soc {
	text-decoration: none;
	font-size: larger;
}

/* Footer icons are inline SVGs (see layouts/partials/footer.html). Size them
   like the icon-font glyphs they replace, rather than the theme's 15px cap. */
a.soc svg {
	width: 1em;
	height: 1em;
	max-height: none;
}
