/* Markdown */
:root {
   --maincolor: #A0522D; 
   --bordercl: #504945;  
   --callouctcolor: #bf616a;
   --hovercolor: #504945; 
   --darkMaincolor: navajowhite;
}

.callout {
    border: var(--maincolor);
    border-width: 1px;
    border-style: dashed;
    padding: 14px;
    background: bisque;
    font-size: 16px;
}

html {
   color: #504945;
   font-family: "Fira Sans Condensed", monospace;
   font-size: 18px;
   line-height: 1.6em;
}

body {
   display: block;
   background-color: #fff0e5;
   background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' width='3' height='3' patternTransform='rotate(45)' patternUnits='userSpaceOnUse'%3E%3Cpath fill='%23dbb069' d='M0-.5v1h2v-1z'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3C/svg%3E");
   background-size: 100%;
   margin: 8px;
}

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

::selection {
   background: var(--maincolor);
   color: floralwhite;
}

p {
   font-family: "Fira Sans", monospace;
   font-weight: 400;
   line-height: 1.5;
   font-size: 0.9rem;
}

hr {
   border: 0;
   border-top: 3px dotted var(--bordercl);
   margin: 1em 0;
}

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

nav {
   text-align: left;
   margin: 0;
   padding: 0;
}

nav a {
   margin-right: 10px;
}

a {
   border-bottom: none var(--maincolor);
   color: var(--maincolor);
   text-decoration: none;
   font-weight: 600;
}

a:hover {
   text-decoration: underline;
   text-shadow: none;
}

ol li {
   font-family: 'Fira Sans Condensed', sans-serif;
   font-size: 0.9rem;
}

ul {
   list-style: none;
   padding-left: 2ch;
}

ul li {
   text-indent: -2ch;
   font-family: 'Fira Sans Condensed', sans-serif;
   font-size: 0.9rem;
}

ul>li::before {
   content: '* ';
   font-weight: bold;
}

/* Images */
img {
   border: 3px solid #ececec;
   max-width: 100%;
}

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

figure img {
   max-height: 500px;
}

@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;
   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: 100%;
   padding: 0;
}

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

/* Header */
header {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   margin: 1em 0;
   line-height: 2.5em;
   border: 1px solid black;
   box-shadow: 5px 5px 0px 0px black;
   padding: 16px;
   background-color: floralwhite;
   overflow: hidden;
}

.page-title {
   border: 1px solid black;
   box-shadow: 5px 5px 0px 0px black;
   padding: 16px;
   background-color: floralwhite;
}

.posts {
   border: 1px solid black;
   box-shadow: 5px 5px 0px 0px black;
   padding: 16px;
   background-color: floralwhite;
}

.post {
   padding-top: 12px;
   padding-bottom: 18px;
   padding-left: 32px;
}

main {
   border: 1px solid black;
   box-shadow: 5px 5px 0px 0px black;
   padding-top: 6px;
   padding-bottom: 32px;
   padding-left: 32px;
   padding-right: 32px;
   background-color: floralwhite;
}

.main {
   font-size: 1.7rem;
   padding-left: 10px;
   min-width: 0;
   max-width: 100%;
   word-wrap: break-word;
   overflow-wrap: break-word;
}



h2,
h3,
h4,
h5,
h6 {
   font-size: 1rem;
   margin-top: 2em;
   margin-bottom: 0.2em;
}

h1::before {
   color: var(--maincolor);
   content: '# ';
}

h2::before {
   color: var(--maincolor);
   content: '## ';
}

h3::before {
   color: var(--maincolor);
   content: '### ';
}

h4::before {
   color: var(--maincolor);
   content: '#### ';
}

h5::before {
   color: var(--maincolor);
   content: '##### ';
}

h6::before {
   color: var(--maincolor);
   content: '###### ';
}

.meta {
   color: #666666;
   letter-spacing: -0.5px;
   font-family: "Fira Sans Condensed", monospace;
   font-style: italic;
   font-size: 16px;
}

.toc {
   color: #232333;
   padding: 10px;
   padding-bottom: 0;
   border-radius: 5px;
   display: inline-block;
}

/* Footer */
footer {
   display: flex;
   align-items: center;
   border-top: 0.4rem dotted var(--bordercl);
   padding: 2rem 0rem;
   margin-top: 2rem;
   border: 1px solid black;
   box-shadow: 5px 5px 0px 0px black;
   padding: 16px;
   background-color: floralwhite;
   font-size: 0.9rem;
}

.soc {
   display: flex;
   align-items: center;
   border-bottom: none;
}

.border {
   margin-left: 0.5rem;
   margin-right: 0.5rem;
   border: 1px solid;
}

.footer-info {
   padding: var(--footer-padding);
   font-family: 'Fira Sans', sans-serif;
}

h1 {
   font-size: 1.2rem;
   margin-top: 1.5em;
   margin-bottom: 0.2em;
}

/* Common */
.title h1 {
   margin-bottom: 0.2em;
   font-size: 20px
}

time {
   color: #666666;
   font-family: "Fira Sans Condensed", monospace;
   font-size: 16px;
   font-style: italic;
}

/* Posts */
article .title {
   margin-bottom: 0.2em;
   font-size: 20px;
}

.site-description {
   display: none;
   justify-content: space-between;
   margin-top: 20px;
}

svg {
   max-height: 15px;
}

.soc:hover {
   color: white;
}

.highlight {
   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: 12px;
   letter-spacing: 0.025rem;
   padding: 0.1rem 0.5rem;
   position: absolute;
   right: 1rem;
   text-align: right;
   text-transform: uppercase;
   top: 0;
}

.highlight {
   font-size: 14px;
   font-family: "Inconsolata", monospace;
}

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

@media only screen and (max-width: 400px) {
   nav a {
      font-size: 0.85rem;
      margin-right: 6px;
   }
   header {
      padding: 12px;
      gap: 8px;
   }
   .main {
      font-size: 1.3rem;
      padding-left: 0px;
      min-width: 0;
      flex-shrink: 0;
      flex-basis: 100%;
   }
   nav {
      flex-basis: 100%;
   }
}

@media only screen and (max-width: 896px) {
   .main {
      padding-left: 0px;
   }
   .site-description {
      display: none;
   }
   nav {
       display: flex;
       justify-content: flex-start;
       margin: 0;
   }
   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
      font-size: 1rem;
   }
   html {
      font-size: 16px;
   }
   h1 {
      font-size: 1.1rem;

   }
   .title h1 {
      font-size: 18px
   }
   time {
      font-size: 14px;

   }
   article .title {
      font-size: 18px;
   }
   .meta {
      font-size: 14px;
   }
}
