
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);
}
	
/* Mirrored mentions (see assets/js/mentions.js and docs/MENTIONS-PLAN.md).
   Mastodon replies and announcements are isso comments marked #mirrored;
   links from other sites (and quote posts) are shown as compact lines. */

/* Cached avatars in place of identicons. The theme frames every img with a
   light border; match isso's identicons instead. */
#isso-thread .isso-avatar img.mention-avatar {
	display: block;
	width: 48px;
	max-width: 100%;
	height: auto;
	border: none;
	border-radius: 3px;
}
#isso-thread .isso-avatar.mention-has-avatar svg {
	display: none;
}

/* Keep names' text direction to themselves: a display name containing a
   right-to-left character would otherwise reverse what follows it. */
#isso-thread .isso-author,
#isso-thread .mention-title {
	unicode-bidi: isolate;
}

/* "via Mastodon · @handle" and "in reply to …" in the header, quieter
   than the name. */
#isso-thread .mention-via,
#isso-thread .mention-reply-to {
	opacity: 0.8;
}

/* Mirrored posts and links are replied to where they were posted, not
   here. mentions.js marks them with classes (and strips the #mirrored and
   #webmention markers from their links); the markers are matched too, so
   this holds even if it doesn't run. */
#isso-thread .isso-comment:has(> .isso-text-wrapper > .isso-comment-header > a.isso-author:is([href$="#mirrored"], [href$="#webmention"])) > .isso-text-wrapper > .isso-comment-footer .isso-reply,
#isso-thread .mention-mirrored > .isso-text-wrapper > .isso-comment-footer .isso-reply,
#isso-thread .mention-compact > .isso-text-wrapper > .isso-comment-footer {
	display: none;
}

/* "(archived)" for links that now point at a Wayback capture: in isso's
   header, and in the compact line mentions.js makes. */
#isso-thread a.isso-author[href^="https://web.archive.org/web/"] + .isso-spacer::before,
#isso-thread a.mention-title[href^="https://web.archive.org/web/"] + .mention-note::before {
	opacity: 0.7;
	font-size: 0.9em;
}
#isso-thread a.isso-author[href^="https://web.archive.org/web/"] + .isso-spacer::before {
	content: "(archived) ";
}
#isso-thread a.mention-title[href^="https://web.archive.org/web/"] + .mention-note::before {
	content: " (archived)";
}

/* ★/⟳ counts on announcements. */
#isso-thread .mention-counts {
	color: inherit;
	opacity: 0.8;
	font-weight: 600;
}
#isso-thread .mention-counts > span + span {
	margin-left: 1ch;
}

/* Links from other sites: one line, plus a short excerpt. */
#isso-thread .mention-compact > .isso-avatar,
#isso-thread .mention-compact > .isso-text-wrapper > .isso-comment-header,
#isso-thread .mention-compact > .isso-text-wrapper > .isso-text {
	display: none;
}
#isso-thread .mention-compact > .isso-text-wrapper {
	padding-top: 0.4em;
	padding-bottom: 0.4em;
}
#isso-thread .mention-line {
	font-size: 0.9em;
}
/* The link icon: Feather's "link" (the theme's icon set), as a mask so it
   takes the theme's accent colour. */
#isso-thread {
	--mention-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}
#isso-thread .mention-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.15em;
	margin-right: 0.4em;
	background-color: var(--maincolor);
	-webkit-mask: var(--mention-link-icon) center / contain no-repeat;
	mask: var(--mention-link-icon) center / contain no-repeat;
}
#isso-thread .mention-line .isso-permalink {
	border-bottom: none; /* as in isso's own headers */
	text-decoration: none;
}
#isso-thread .mention-site {
	font-weight: 600;
}
#isso-thread .mention-excerpt {
	font-size: 0.85em;
	margin: 0.2em 0 0 2.5ch;
	opacity: 0.8;
}
@media (prefers-color-scheme: dark) {
	#isso-thread .mention-icon {
		background-color: var(--darkMaincolor);
	}
}

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