/* Markdown */
:root {
    --maincolor: #9b0000;
    --bordercl: rebeccapurple;
    --callouctcolor: dodgerblue;
    --hovercolor: navy;
    --darkMaincolor: #50fa7b;
}

html {
    color: #232333;
    font-family: "Neuton", serif;
    font-size: 19px;
    line-height: 1.6em;
}

body {
    font-family: "Neuton", serif;
    display: block;
    margin: 8px;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

p {
    font-family: "Neuton", serif;
    font-size: 20px;
    line-height: 1.5;
}

hr {
    border: 0;
    border-top: 3px dotted var(--bordercl);
    margin: 1em 0;
    color: rgb(228, 227, 227);
}

blockquote {
    border-left: 3px solid var(--bordercl);
    color: #737373;
    margin: 0;
    padding-left: 1em;
}

a {
    /* border-bottom: 1px solid var(--maincolor); */
    font-family: "Neuton", serif;
    /*text-decoration: none;*/
    /*color: #3700ff*/
}

a:hover {
    /* background-color: var(--hovercolor); */
    /* color: #fff; */
    text-decoration: underline;
}

ul {
    /*  list-style: none;*/
    padding-left: 3ch;
}

ul li {
    /*  text-indent: 2ch;*/
}

/* Images */
img {
    border: 0px solid #ececec;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    display: block;
}

figure {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    max-width: 100%;
    text-align: center;
}

figure img {
    max-height: 350px;
}

@media screen and (min-width: 600px) {
    figure {
        padding: 0 40px;
    }
}

figure h4 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 1em;
}

figure h4::before {
    content: '↳ ';
}

/* Code blocks */
code {
    background-color: #f1f1f1;
    font-family: "Monaco", "Consolas", "Courier", monospace;
    font-size: 0.8em;
    padding: .1em .2em;
}

pre {
    background-color: #ececec;
    line-height: 1.4;
    overflow-x: auto;
    padding: 1em;
}

.highlight pre ::selection {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

pre code {
    background-color: transparent;
    color: inherit;
    font-size: 0.8em;
    padding: 0;
}

/* Containers */
.content {
    /* margin-bottom: 4em; */
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    padding: 0 1ch;
    word-wrap: break-word;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2em 0;
}

header .main {
    font-size: 1.5rem;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.4rem;
    margin: 0;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1.05rem;
}

/* section h1::before { color: var(--maincolor); content: '# '; } */
/* section h2::before { color: var(--maincolor); content: '## '; } */
/* section h2::before { color: var(--maincolor); content: '## '; } */
/* section h3::before { color: var(--maincolor); content: '### '; } */
/* section h4::before { color: var(--maincolor); content: '#### '; } */
/* section h5::before { color: var(--maincolor); content: '##### '; } */
/* section h6::before { color: var(--maincolor); content: '###### '; } */

.meta {
    color: #999;
    letter-spacing: -0.5px;
}

/* Footer */
footer {
    margin-top: 1em;
    font-size: 0.9em;
}

/* Common */
.title h1 {
    /* margin-bottom: 0; */
}

time {
    color: grey;
}

/* Posts */
.page-title {
    font-size: 1.5em;
}

/* Callout */
.callout {
    background-color: var(--callouctcolor);
    color: #fff;
    padding: 1em;
}

.callout p {
    font-family: monospace;
    margin: 0;
}

.callout a {
    border-bottom: 3px solid #fff;
}

.callout a:hover {
    background-color: #fff;
    color: var(--callouctcolor);
}

.site-description {
    display: flex;
    justify-content: space-between;
}

svg:not(.mermaid svg) {
    max-height: 15px;
}

.soc:hover {
    /* color: white; */
    border-bottom: 1px;
}

.draft-label {
    color: var(--bordercl);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}

.highlight {
    font-size: 0.95em;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"] {
    -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"]::before {
    background: black;
    border-radius: 0 0 0.25rem 0.25rem;
    color: white;
    font-size: 14px;
    letter-spacing: 0.025rem;
    padding: 0.1rem 0.5rem;
    position: absolute;
    right: 1rem;
    text-align: right;
    text-transform: uppercase;
    top: 0;
}

.highlight pre code[class*="language-javaScript"]::before,
.highlight pre code[class*="language-js"]::before {
    content: "js";
    background: #f7df1e;
    color: black;
}

.highlight pre code[class*="language-typescript"]::before,
.highlight pre code[class*="language-ts"]::before {
    content: "ts";
    background: #3178c6;
    color: white;
}

.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
    content: 'yaml';
    background: #f71e6a;
    color: white;
}

.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
    content: 'shell';
    background: green;
    color: white
}

.highlight pre code[class*='language-json']::before {
    content: 'json';
    background: dodgerblue;
    color: #000000
}

.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
    content: 'py';
    background: blue;
    color: yellow;
}

.highlight pre code[class*='language-css']::before {
    content: 'css';
    background: cyan;
    color: black;
}

.highlight pre code[class*='language-go']::before {
    content: 'Go';
    background: cyan;
    color: royalblue;
}

.highlight pre code[class*='language-java']::before {
    content: 'Java';
    background: #f7df1e;
    color: black;
}

.highlight pre code[class*='language-cpp']::before {
    content: 'C++';
    background: #f7df1e;
    color: black;
}

.highlight pre code[class*='language-c']::before {
    content: 'Plain C';
    background: #f7df1e;
    color: black;
}

.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before {
    content: 'Markdown';
    background: royalblue;
    color: whitesmoke;
}

/* table */
table {
    border-spacing: 0;
    border-collapse: collapse;
}

table th {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
    font-size: large;
}

table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.1em;
}

article .post-header h1 {
    display: inline;
    margin: 0;
    font-size: 2.2rem;
}

article .post-header time {
    display: inline;
    font-size: 0.9em;
    margin: 0;
}

.post-tags {
    margin-bottom: 1em;
}

.tags {
    padding: 0;
    margin: 0;
    list-style: none;
}

.tags li {
    display: inline-block;
    margin-right: 1.5em;
    margin-bottom: 0.5em;
    white-space: nowrap;
}

.tags li::before {
    content: "#";
}

.posts {
    padding: 0;
    list-style: none;
}

.post {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75em 0;
    border-bottom: 1px dotted #eee;
}

.post a {
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.post a:hover {
    text-decoration: underline;
}

.post .meta {
    font-size: 0.9rem;
    color: #999;
}

.description p {
    margin-top: 0.2em;
    margin-bottom: 0.7em;
    font-size: 0.9em;
    color: #444;
}

.list-item {
    /*    padding-top: 15px;*/
}