/* Light mode */
:root {
	--text: #444444;
	--link: #283837;
	--link_visited: #283837;
	--accent1: #333333;
	--accent2: #666666;
	--background: #FAF9F3;
	--code: #e3e3e3;
	--button-text: #ffffff;
	--blockquote: #fffee0;
	--field: #fffee0;
	--note: #FEF770;
	--mark: #FFFF99;
}

/* Font stacks */
:root {
	--font_system_ui: system-ui, sans-serif;
	--font_transitional: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
	--font_old_style: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
	--font_humanist: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
	--font_geometric_humanist: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
	--font_classical_humanist: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;
	--font_neo_grotesque: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
	--font_monospace_slap_serif: 'Nimbus Mono PS', 'Courier New', monospace;
	--font_monospace_code: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	--font_industrial: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
	--font_rounded_sans: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
	--font_slab_serif: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;
	--font_antique: Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif;
	--font_didone: Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif;
	--font_handwritten: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive;
}

body {
	max-width: 40em;
	margin: 2em auto;
	font-family: var(--font_system_ui);
	font-size: 17px;
	padding: 0 1em;
	line-height: 1.6;
	background-color: var(--background);
	color: var(--text);
	letter-spacing: 0.3px;
}

header {
	margin-bottom: 2em;
}

.post-header {
	margin-bottom: 0;
}

header h1 a,
header h1 a:visited {
	text-decoration: none;
	color: var(--text);
}

header h1 a:hover {
	color: var(--accent1);
	text-decoration: none;
}

header p {
	margin-top: 0;
}

a {
	color: var(--link);
}

/* a:hover {
	text-decoration: none;
} */

a:visited {
	color: var(--link_visited)
}

a.post-date {
	font-size: 0.8em;
	color: var(--link);
	text-decoration: none;
}

span.post-date {
	font-size: 0.8em;
}

a.post-date:hover {
	text-decoration: none;
}

.e-content {
	margin-bottom: 2em;
	overflow-wrap: anywhere;
}

.e-content p:first-of-type,
article p:first-of-type {
	margin-top: 0;
}

img.profile_photo {
	border-radius: 80px;
}

nav ul,
ul.reply-buttons {
	list-style-type: none;
	padding: 0;
}

nav ul li,
ul.reply-buttons li {
	display: inline;
	margin-right: 0.2em;
	line-height: 2.15em;
	white-space: nowrap;
}

nav a,
nav a:visited,
nav a:hover,
a.conversation-on-mb,
a.reply-on-mastodon,
a.reply-by-email, a.read-more {
	text-decoration: none;
	padding: 5px 10px;
	border: 1px solid var(--link);
	color: var(--link);
	border-radius: 5px;
	font-size: 0.9em;
}

nav a:hover,
a.conversation-on-mb:hover,
a.reply-on-mastodon:hover,
a.reply-by-email:hover, a.read-more:hover {
	background: var(--link);
	color: var(--button-text);
}

button {
	cursor: pointer;
}

.reply-to {
	background: var(--code);
	border-radius: 5px;
	padding: 0 .333em;
	display: inline-block;
	font-size: 0.8em;
}

header h1 {
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

h1,
h2,
h3 {
	line-height: 1.2em;
}

h2 {
	margin-top: 0;
}

.post-nav {
	margin-top: 2.5em;
	margin-bottom: 2.5em;
	text-align: center;
}

.post-nav span {
	padding: 0 5px;
}

.post-nav a:visited {
	color: var(--link);
}

.post-meta {
	color: var(--accent2);
}

article img,
.e-content img,
.p-summary img {
	width: 100%;
	height: auto;
	border-radius: 5px;
}

ul.post-tags li {
	display: inline;
	font-size: 0.8em;
}

ul.post-tags,
ul.post-list {
	padding-left: 0;
}

ul.post-list {
	list-style-type: none;
}

ul.post-list a.u-url {
	text-decoration: none;
}

blockquote {
	padding: 1em;
	background: var(--blockquote);
	border-radius: 5px;
	font-size: 0.9em;
	margin: 1em;
}

blockquote p:last-of-type {
	margin-bottom: 0;
}

blockquote p:first-of-type {
	margin-top: 0;
}

div.highlight div {
	border-radius: 5px;
}

hr {
	margin: 2em 0;
	border: none;
	text-align: center;
}

hr::before {
	content: "•••••";
	display: block;
	color: var(--link);
}

sup a {
	text-decoration: none;
}

.footnote-backref {
	text-decoration: none;
}

.microblog_conversation {
	margin-top: 2em;
	margin-bottom: 2em;
}

.microblog_post {
	margin-bottom: 2em;
	padding: 1em;
	border: 1px solid var(--code);
	border-radius: 5px;
}

.microblog_user {
	font-weight: bold;
}

.microblog_user img {
	vertical-align: middle;
	width: 40px;
	height: auto;
	border-radius: 40px;
	max-width: 40px !important;
}

.microblog_text img {
	max-width: 100%;
}

.microblog_time a,
.microblog_time a:visited {
	color: var(--accent2);
	font-size: 0.8em;
	text-decoration: none;
}

footer {
	margin-top: 2em;
	text-align: center;
}

footer .custom_footer {
	font-size: 0.75em;
	color: var(--accent2);
}

footer .attribution {
	display: none;
}

.full-archives {
	overflow-wrap: anywhere;
}

p.note {
	background: var(--note);
	border-radius: 5px;
	font-weight: bold;
	padding: 5px 10px;
}

p > code, li > code, span.tinylytics_hits, span.tinylytics_uptime {
	background: var(--code);
	padding: 2px 4px;
	font-size: 0.9em;
	border-radius: 5px;
	font-family: var(--font_monospace_code);
}

mark {
	background: var(--mark);
	color: var();
}

.tiny-img {
	max-width: 25em;
}

.tiny-text {
	font-size: 0.6em;
}

/* IF USING THE TINY THEME ADD ON FOR SUMMARY POSTS */

.p-summary {
	margin-bottom: 2em;
}

/* MAKES VIDEO EMBEDS THAT DON'T USE IFRAME RESPONSIVE. DOES NOT WORK WITH YOUTUBE. */
video {
	width: 100% !important;
	height: auto !important;
}

/* Styling specific to Tinylytics Plugin */

.did_select {
	background: var(--link);
	color: var(--button-text);
	opacity: 0.8;
	cursor: not-allowed;
}
.tinylytics_webring {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 3px;
	justify-content: center;
}
a.tinylytics_webring {
	text-decoration: none;
}

.tinylytics_webring_avatar {
	width: auto;
	height: 1.75em;
	border-radius: 100%;
}

/* STYLING TO TWEAK CODE BLOCKS (SYNTAX HIGHLIGHTING) */

.highlight {
	font-size: 0.9em;
}
pre {
	overflow: auto;
	padding: 1em;
}

/* OVERRIDING DEFAULT MICROBLOG AND PLUGIN CSS. Using !important isn't ideal, but it's the most effective for these things. */

.photos-grid-container {
	grid-column-gap: 5px !important;
}

input[type=text],
input[type=search],
input[type=email] {
	padding: 10px;
	font-size: 0.9em;
	border: 1px solid var(--link) !important;
	border-radius: 5px !important;
	color: var(--text);
	display: block;
	height: auto;
	background: var(--field);
	margin: 5px 0;
}

input[type=submit],
button {
	vertical-align: baseline;
	padding: 5px 10px;
	font-size: 0.9em;
	border-radius: 5px;
	border: 1px solid var(--link);
	background: none;
	color: var(--link);
	-webkit-appearance: none;
	margin-top: 5px;
	font-weight: normal;
	cursor: pointer;
}

input[type=submit]:hover,
button:hover {
	background: var(--link);
	color: var(--button-text);
}

label {
	font-weight: bold;
}

form p {
	margin-bottom: 0;
}

#search-space-info {
	font-size: 0.9em;
	font-style: italic;
}

.bookshelf_book {
	margin-bottom: 2em;
}

.bookshelf_title {
	font-weight: bold;
}

.bigfoot-footnote__content {
	color: #000;
}
