:root {
	--background: rgb(255, 255, 255);
	--background-block: rgb(245, 245, 247);

	--text-primary: rgb(0, 0, 0);
	--text-secondary: rgb(119, 119, 119);

	--link-color: rgb(0, 102, 204);
	--link-visited-color: rgb(175, 82, 222);
	--title-color: rgb(48, 209, 88);
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: rgb(0, 0, 0);
		--background-block: rgb(50, 50, 50);

		--text-primary: rgb(245, 245, 247);
		--text-secondary: rgb(154, 154, 158);

		--link-color: rgb(41, 151, 255);
		--link-visited-color: rgb(191, 90, 242);
		--title-color: rgb(48, 209, 88);
	}
}

* {
	box-sizing: border-box;
}

h1 {
	color: var(--title-color);
}

html,
body {
	padding: 0;
	margin: 0;
	margin-left: auto;
	margin-right: auto;
	max-width: 42rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol';
	line-height: 1.4em;
	-webkit-font-smoothing: antialiased;
	color: var(--text-primary);
	background-color: var(--background);
}

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

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

header,
main {
	padding-left: 1em;
	padding-right: 1em;
}

header {
	margin-bottom: 2em;
}

article {
	margin-bottom: 3em;
}

.comment-body {
	padding: 1em;
	margin-top: 1em;
	background-color: var(--background-block);
	border-radius: 15px;
	overflow-wrap: break-word;
}

.root .root {
	margin-left: 4em;
}

h2 {
	line-height: 1.4em;
	margin-bottom: 0;
}

.highlight {
	margin-top: 1em;
}

blockquote,
.highlight {
	padding-left: 1em;
	border-left: 3px solid #dbdbdb;
	font-style: italic;
}

blockquote {
	margin-left: 0;
}

.small {
	font-size: 80%;
}

.date {
	color: var(--text-secondary) !important;
	text-decoration: none;
}

.hidden-link {
	color: inherit !important;
	text-decoration: none;
}

details {
	display: inline-block;
}

.dropdown-handle {
	border-bottom: 1px dashed;
	color: var(--text-secondary);
	cursor: pointer;
}

.dropdown {
	position: absolute;
	background-color: var(--background);
	border: 1px solid var(--text-secondary);
	padding: 1em 2em;
	line-height: 1.5em;
	margin-top: 0.5em;
}

.tag {
	float: right;
	margin-left: 0.5em;
	color: var(--text-secondary);
	text-decoration: none;
}

/* Mobile */

@media (min-width: 375px) {
	.root .root {
		margin-left: 1.5em !important;
	}
}
