html[theme='dark-mode'] {
  filter: invert(1) hue-rotate(180deg);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #404040;
    line-height: 1.4;
    background-color: #fffff8;
    margin: 0 auto;
    width: 800px;
}

sup {
    vertical-align: top;
    font-size: 0.7em;
}

main {
    width: 100%;
    margin-top: 2rem;
}

article {

}

a {
  text-decoration: none;
  color: #5badf0;
}

a:hover {
  color: #0366d6;
}

img.icon {
    display: inline;
    max-height: 1.6em;
    vertical-align: middle;
}

/* markdown content styles */
blockquote {
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 1em;
  margin-left: 0px;
  border-left: 3px solid #eee;
  color: #757575;
}

hr {
  display: block;
  border: none;
  height: 2px;
  margin: 40px auto;
  background: #eee;
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  line-height: 1.5em;
}

th, td {
  text-align: left;
  padding-right: 20px;
  vertical-align: top;
}

table td, td {
  border-spacing: none;
  border-style: solid;
  padding: 10px 15px;
  border-width: 1px 0 0 0;
}
thead th, th {
  text-align: left;
  padding: 10px 15px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  cursor: default;
  white-space: nowrap;
  border: 1px solid #dadadc;
}

tr>td {
  border: 1px solid #dadadc;
}

tr:nth-child(odd)>td {
  background: #fcfcfc;
}

h1,
h2,
h3 {
  font-weight: 400;
}
p {
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
}
p,
pre {
  word-break: normal;
  overflow-wrap: anywhere;
}
.markdown-image img {
  max-width: 100%;
}

figure {
    width: 95%;
    margin: 0 auto;
}

figure img{
    width: 100%;
}

.bookmark {
    max-width: 100%;
    margin: 0 auto;
}


/* Credit: https://gomakethings.com/how-to-break-an-image-out-of-its-parent-container-with-css/ */
.full-width img {
    left: 50%;
    margin-left: -49vw;
    margin-right: -49vw;
    max-width: 100vw;
    position: relative;
    right: 50%;
    width: 98vw;
}

figcaption {
    text-align: center;
    color: #757575;
    margin-top: 0.25rem;
}

figcaption h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 300;
}

figcaption p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.anchor { 
  font-size: 100%; 
  visibility: hidden; 
  color:silver;
}

h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a { 
  visibility: visible
}
.highlight pre {
  padding: 7px;
  overflow-x: auto;
}

.highlight {
  max-width: 100%;
  overflow-x: auto;
}
p code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  font-size: inherit;
  background-color: rgba(0, 0, 0, 0.06);
  padding: 0 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px 2px;
  line-height: inherit;
  word-wrap: break-word;
  text-indent: 0;
}
pre code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  font-size: 1rem;
}


/* navigation */

nav.site-nav {
    width: fit-content;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    border-top: 2px solid #404040;
    border-bottom: 2px solid #404040;
}

nav.site-nav a {
    font-style: italic;
    padding: 0 0.8rem;
    color: #757575;
}

/* toc */
.toc {
    display: inline-block;
  margin: auto;
  background: #f8f8f8;
  border-radius: 0;
  padding: 10px 7px;
  margin-top: 36px;
}
.toc details summary {
  cursor: zoom-in;
  margin-inline-start: 14px;
  font-weight: 500;
}
.toc details[open] summary {
  cursor: zoom-out;
}
.toc #TableOfContents {
  margin-left: 10px;
}
.toc ul {
  padding-inline-start: 24px;
}

.site-header {
    text-align: center;
    letter-spacing: -1px;
    padding: 0.5rem 0;
    margin: 0;
    line-height: 1;
}

.site-title {
    margin-bottom: 0;
}

h1.site-title a{
    font-size: 1.5rem;
    text-decoration: none;
    color: #404040;
}

h2.site-bio {
    font-size: 1.25rem;
    color: #757575;
    margin-top: 0;
}

.site-footer {
    color: #bbb;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

header.pageheader {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;

}

.page-icon {
    width: 64px;
}

.page-image {
    margin: 1.5rem;
}
img.page-image {
    max-height: 300px;
}

h1.page-title {
    margin-top: 0;
    margin-bottom: 0;
}

h1.page-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

h2.page-subtitle {
    margin: 0 0;
    color: #757575;
    font-style: italic;
}

h2.page-subtitle:last-of-type {
    margin-bottom: 1.5rem;
}

header.page-header {
    text-align: center;
}

h1.page-title {
    font-size: 2rem;
    text-align: center;
}

.tip {
    color: #757575;
}

.tip .split {
    margin: 0 4px;
}

.tags a {
    background: #f2f2f2;
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 0.9rem;
    color: #404040;
}

.tags a:hover {
    color: #0366d6;
}

.item {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.item .item-title {
    color: #404040;
    display: inline;
    padding-right: 1rem;
}

.item-extra {
    color: #757575;
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 1rem;
}

.item-image {
    max-height: 150px;
    display: inline-block;
    float: left;
}

.item-category {
    color: #757575;
}

.item .item-date {
    float: right;
    color: #bbb;
}

.item .item-title a:hover {
    color: #0366d6;
}

.summary {
    color: #757575;
    margin-top: 12px;
}

.value .tags {
    display: inline;
}

aside.marginnote {
    float: right;
    clear: right;
    margin-right: -55%;
    margin-bottom: 4px;
    transform: translateY(-50%);
    width: 300px;
    position: relative;
    color: #757575;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

img.media-cover {
    max-height: 400px;
    max-width: 540px;
}

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

ul.post-list li {
}

ul.post-list h3 {
    color: #404040;
    margin-bottom: 0.25em;
}

ul.post-list h4 {
    color: #757575;
    font-weight: normal;
    margin-top: 0em;
    margin-bottom: 0.25em;
    font-size: 1.1em;
}

ul.post-list p {
    color: #757575;
    margin-top: 0em;
}

ul.post-list time {
    float: right;
    color: #757575;
}

section.footnotes {
    color: #757575;
}

@media (max-width: 1400px) {
    aside.marginnote {
        margin-right: -30%;
        transform: none;
    }
}

@media (max-width: 1024px) {
    aside.marginnote {
        display: block;
        position: relative;
        float: none;
        transform: none;
        width: auto;
        margin: 0 0 0 1rem;
        padding: 4px;
        border-radius: 2px;
    }
}


@media (max-width: 880px) {
    body {
        width: 90%
    }

    .item {
        margin-left: 1rem;
    }

    .item .item-title {
        margin-top: 0;
        margin-bottom: 0;
        display: block;
    }

    .item .item-date {
        float: none;
        margin-bottom: 0;
    }

}

