/* Higher Level */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #000;
    font-family: Helvetica, Arial;
}

.wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
}

.wrapper .content {
	margin-bottom: 40px;
	line-height: 1.6em;
}

.page {
	font-size: 1.1em;
	text-align: left;
}

.date::before {
    content: "Published on "
}


/* Header */

header {
	position: relative;
	background-color: #6667AB;
	color: #fff;
}

header .wrapper {
    padding-top: 60px;
    padding-bottom: 30px;
    text-align: center;
}

header a {
	display: inline-block;
    text-decoration: none;
}

header .site-name {
    font-size: 2.0em;
    color: #fff;
    font-weight: bold;
	margin-bottom: 20px;
}

header .site-description {
    font-size: 1.0em;
    color: #fff;
    font-weight: lighter;
	margin-bottom: 30px;
}

header nav {
    display: inline-block;
    background-color: #fff;
    border-radius: 10px;
    margin-top: 18px;
    overflow: hidden;
}

header nav li {
    display: inline-block;
}

header nav a {
    display: block;
    color: #6667AB;
    padding: 0 15px;
    line-height: 30px;
}

header nav a:hover, header nav li a.selected {
    color: #fff;
    background-color: #6667AB;
}

h1 {
    margin-bottom: 60px;
    font-size: 2em;
	line-height: 1.2em;
}

h2 {
	margin-top: 40px;
	margin-bottom: 30px;
}

p {
    margin-bottom: 20px;
	text-align: justify;
}

a {
    color: inherit;
}

.description {
    margin-bottom: 40px;
}

table {
	margin-top: 30px;
	margin-bottom: 30px;
	display: table;
	border-collapse: separate;
	-webkit-border-horizontal-spacing: 2px;
	-webkit-border-vertical-spacing: 2px;
	border-top-color: gray;
	border-right-color: gray;
	border-bottom-color: gray;
	border-left-color: gray;
}

/* Item List */

.item-list > li {
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: #eee;
    margin-bottom: 20px;
}

.item-list > li:last-child {
    margin-bottom: 0;
}

.item-list h1 {
	margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.item-list a {
	text-decoration: none;
}

.item-list p {
	text-align: justify;
    margin-bottom: 20px;
}

.item-list .date {
	color: #8a8a8a;
	text-align: right;
	margin-bottom: 20px;
}

.item-list .tag-list {
	margin-bottom: 5px;
}



/* Item Page, Content */

.item-page h1 {
	margin-bottom: 5px;
	font-size: 2em;
	font-weight: bold;
}

.item-page article h3 {
	margin-top: 30px;
    margin-bottom: 20px;
}

.item-page .tag-list {
    display: inline-block;
}

.item-page article {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px;
}

article p code {
	background-color: #e2e2e2;
	display: inline-block;
	padding: 0 5px;
	border-radius: 5px;
	font-size: 1em;
	margin: 1px;
	line-break: anywhere;
}

.item-page .date {
    display: block;
	color: #8a8a8a;
	text-align: right;
    margin-top: 10px;
    margin-bottom: 40px;
}

.content {
    display: block;
	margin-bottom: 50px;
	line-height: 1.5em;
}

.content a, .content a code {
	text-decoration: none;
	color: #6667AB;
}

.content h2 a, .content h2 a code {
	text-decoration: none;
}

.content ul {
	list-style-type: disc;
	margin-top: 20px;
	margin-bottom: 20px;
	padding-left: 40px;
}

.content ul li code {
	background-color: #e2e2e2;
	display: inline-block;
	padding: 0 5px;
	border-radius: 5px;
	font-size: 1em;
	margin: 1px;
	line-break: anywhere;
}

.content > ul {
	line-height: 1.2em;
}

.content ul li {
	margin-top: 10px;
}

.content ul ul {
	margin-top: 0;
}

.content ul.compact li {
	margin-top: 5px;
}

.content img {
	display: block;
	max-width: 100%;
	margin: 30px auto 30px auto;
}

.content img.compact {
	display: inline-block;
}

.rounded-images .content img {
	border-radius: 12px;
}

/* Footer */

footer {
	background-color: #eee;
	font-size: 0.8em;
	font-weight: lighter;
}

footer .wrapper {
	max-width: 900px;
	text-align: left;
}

footer div {
	text-align: left;
	margin: 10px 0 10px 0;
}

footer a {
	color: #6667AB;
	text-decoration: none;
}

/* Tag */

.tag-list {
	margin-bottom: 15px;
}

.tag-list li,
.tag {
	display: inline-block;
	background-color: #AC5253;
	color: #fff;
	padding: 5px 9px;
	border-radius: 5px;
	margin-right: 5px;
	font-weight: lighter;
}

.tag-list a,
.tag a {
	text-decoration: none;
}

.browse-all {
	display: block;
	margin-bottom: 30px;
}

.all-tags li {
	font-size: 1.4em;
	margin-right: 10px;
	padding: 6px 12px;
}


/* Darkmode */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
		color: #ddd;
    }

    .item-list > li {
        background-color: #333;
    }

	article p code {
		background-color: #191919;
		display: inline-block;
		padding: 0 5px;
		border-radius: 5px;
		font-size: 1em;
		margin: 1px;
		line-break: anywhere;
	}

	.content ul li code {
		background-color: #191919;
		display: inline-block;
		padding: 0 5px;
		border-radius: 5px;
		font-size: 1em;
		margin: 1px;
		line-break: anywhere;
	}

	footer {
		background-color: #333;
	}
}

@media(max-width: 600px) {
    .wrapper {
        padding: 40px 20px;
    }
}

/* Splash */

pre {
	margin-bottom: 1.5em;
	background-color: #1a1a1a;
	padding: 16px 0;
	border-radius: 16px;
}

pre code {
	font-family: monospace;
	display: block;
	padding: 0 20px;
	color: #a9bcbc;
	line-height: 1.4em;
	font-size: 1em;
	overflow-x: auto;
	white-space: pre;
	-webkit-overflow-scrolling: touch;
}

pre code .keyword {
	color: #e73289;
}

pre code .type {
	color: #8281ca;
}

pre code .call {
	color: #348fe5;
}

pre code .property {
	color: #21ab9d;
}

pre code .number {
	color: #db6f57;
}

pre code .string {
	color: #fa641e;
}

pre code .comment {
	color: #6b8a94;
}

pre code .dotAccess {
	color: #92b300;
}

pre code .preprocessing {
	color: #b68a00;
}
