@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Colors */
  --color-primary: #0056b3;
  --color-text: #212529;
  --color-text-light: #333;
  --color-text-muted: #666;
  --color-text-subtle: #6c757d;
  --color-background: #ffffff;
  --color-background-alt: #efefef;
  --color-background-code: #f6f8fa;
  --color-border: #dee2e6;
  --color-border-light: #f4f4f4;
  --color-selection: #0056b3;
  --color-selection-text: #ffffff;
  
  /* Typography */
  --font-family-base: "Libertinus Sans", sans-serif;
  --font-family-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
  --font-size-base: 18px;
  --line-height-base: 1.6;
  --line-height-heading: 1.3;
  
  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Layout */
  --max-width-content: 720px;
  --max-width-container: 800px;
  --max-width-wide: 1000px;
  --border-radius: 0.375rem;
}

body {
    font-family: var(--font-family-base);
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-word;
}

a:hover,
a:focus {
    border-bottom: 2px solid var(--color-primary);
    outline: none;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-bottom: none;
}

html, button, input, select, textarea {
    color: var(--color-text-light);
}

::-moz-selection {
    background: var(--color-selection);
    text-shadow: none;
    color: var(--color-selection-text);
}

::selection {
    background: var(--color-selection);
    text-shadow: none;
    color: var(--color-selection-text);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-md) 0;
    padding: 0;
}

img {
    margin: 10px auto 10px auto;
    max-width: 100%;
    display: block;
}

a img {
    border: none;
}

figure {
    margin: 0;
    text-align: center;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

table {
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
    background-color: transparent;
    margin-bottom: 1rem;
    overflow-x: auto;
    width: 100%;
}

table th,
table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem;
    vertical-align: top;
}

table thead th {
    border-bottom: 2px solid var(--color-border);
    vertical-align: bottom;
}

table tbody+tbody {
    border-top: 2px solid var(--color-border);
}


table th {
    background-color: var(--color-text);
    border-color: #32383e;
    color: var(--color-selection-text);
}

textarea {
    resize: vertical;
}

blockquote {
    margin-left: var(--space-md);
    font-style: italic;
    font-size: 1.1rem;
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-md);
}

blockquote cite {
    font-size: 70%;
    opacity: .8;
}

blockquote em {
    font-weight: 600;
}

blockquote code {
    font-size: 0.75rem;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base) !important;
    color: var(--color-text);
    font-weight: 700;
    line-height: var(--line-height-heading);
    margin: var(--space-xl) 0 var(--space-lg) 0;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .9rem;
}

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

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

ul {
    padding-left: 15px;
    list-style: disc inside;
}

ul.flat {
    margin: 0;
    padding: 0;
}

ul.flat li {
    display: block;
    list-style: none;
    margin-left: 0;
}

.prevent-collapse {
    min-height: .1rem
}

.smaller {
    font-size: 70%;
}


.post {
    max-width: var(--max-width-content);
}

.post ul li {
    margin-bottom: 10px;
}

.post ul li p {
    display: inline;
}

/* Code */
.highlight pre {
    margin-bottom: 0;
    margin-top: 0;
    padding: 5px;
    background: #ccc !important;
    padding-left: 20px;
    border-radius: 4px;
}

.highlight {
    font-size: 0.85em;
    max-width: 800px;
    overflow-x: auto;
}

pre {
    background: var(--color-background-alt);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    font-family: var(--font-family-mono);
    overflow-x: auto;
}

/* Hide line numbers in code blocks */
pre .line-number,
pre .ln,
.highlight .ln,
.highlight .line-number {
    display: none !important;
}

.wrapper {
    max-width: var(--max-width-container);
    margin: 0 auto;
}

.container {
    max-width: var(--max-width-container);
    margin-top: var(--space-2xl);
}

.container-wide {
    max-width: var(--max-width-wide);
    margin-top: var(--space-2xl);
}

.header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.header .avatar {
    float: left;
    margin: -25px 20px 0 0;
}

.header .avatar img {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 100%;
}

.header .site-title {
    margin: 0 0 10px 0;
    line-height: 0.2em;
}

.site-title a {
    color: var(--color-text-light);
    text-decoration: none !important;
}

.site-title a:hover,
.site-title a:focus {
    border-bottom-width: 3px;
}

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

.header nav {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.header nav ul,
.header nav li {
    margin: 0;
    padding: 0;
}

.header nav li {
    display: inline-block;
    list-style: none;
    margin: 0 30px 0 0;
}

.header nav.social a {
    color: var(--color-text-light);
}

.header nav.social a:hover,
.header nav.social a:focus {
    color: var(--color-primary);
}

.header .site-description nav {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 50px;
    margin-left: 15px;
}

.header .site-description nav ul svg {
    max-height: 15px;
}

.header .site-description .scheme-toggle {
    height: 100%;
}

.header .site-description .scheme-toggle a svg {
    max-height: 15px;
    fill: grey;
    color: black;
}

.section .section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
}

.recent-posts .posts .post {
    margin-bottom: 45px;
}

.post-header {
    display: flex;
}

.post-header .meta .date {
    margin-right: 30px;
    width: 64px;
    text-align: center;
    margin-top: 1em;
}

.post-header .meta .date .day {
    line-height: 0.45em;
    font-size: 3em;
    display: block;
    margin-bottom: 20px;
}

.post-header .meta .date .rest {
    display: block;
    font-size: 0.75em;
}

.post-header h1.title {
    margin: -10px 0 0 0;
}

.post .title.small {
    margin: 0 0 10px 0;
}

.post .post-header {
    margin-bottom: 30px;
}

.post .draft-label {
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--space-xs);
    margin-left: var(--space-sm);
    background-color: #f9f2f4;
}

.post .tags a  {
    display: inline-block; 
    border: 1px solid var(--color-primary);
    border-radius: var(--space-xs);
    padding: 0 var(--space-sm);
    color: var(--color-primary);
    line-height: 1.25;
    font-size: 0.85em;
    text-decoration: none;
    margin: 0 var(--space-sm) 0 0;
}

.list .posts .post-header .meta {
    margin-bottom: 0;
    margin-left: 5px;
}

.footer {
    text-align: right;
    font-size: 0.75em;
    color: var(--color-text-subtle);
    border-top: 1px solid var(--color-border-light);
    margin-top: 2.5rem;
    padding: var(--space-md) 0;
}

.footer a {
    color: var(--color-text-muted);
}

.footer a:hover,
.footer a:focus {
    color: var(--color-primary);
}

.tag-cloud {
    margin-top: 20px;
}

.tag-cloud a {
    margin-right: 15px;
}

.pagination {
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination .page-prev {
    margin-right: 20px;
    padding-right: 20px;
}

.pagination .page-item.page-prev {
    text-align: left;
}

.pagination .page-item.page-next {
    text-align: right;
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    .container {
        margin-top: 10px;
    }

    .header .nav.social li {
        margin: 0;
    }

    .header .nav li {
        margin: 0 10px 0 0;
        font-size: 14px;
    }

    table {
        -ms-overflow-style: -ms-autohiding-scrollbar;
        -webkit-overflow-scrolling: touch;
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

.tag-li {
    display: inline !important;
}

.back {
    padding-top: 1em;
    font-size: 1em;
}


.inline-img {
    margin: 0 0 0 0 !important;
    max-width: 100%;
    display: inline-block !important;
}

.figcaption-img {
    margin-bottom: 0px;
}

figcaption {
    font-size: 0.9rem;
    display: block;
    text-align: center;
    color: gray;
}

code {
    font-family: var(--font-family-mono);
    font-size: 0.85rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    white-space: pre;
}

code:not(pre *) {
    white-space: normal;
    font-weight: 500;
}

.footer-separator {
    border-top: 0.1em dashed lightgray;
}
/* Table of contents */

.toc {
    line-height: normal;
}

.show-on-mobile {
    display: none !important;
}
@media screen and (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile {
        display: block !important;
    }
    .container-wide {
        max-width: 800px;
    }
  }

@media only screen and (min-width: 1025px) {
    .article-nav {
      display: grid;
      grid-template-columns: 1fr 15em;
      max-width: 100em;
      width: 100%;
      margin: 0 auto;
    }
  }

  nav {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
  
  .section-nav li.active > a {
    font-weight: 600;
    color: black;
  }
  
  .section-nav {
    font-size: smaller;
    padding-left: 0;
    border-left: 2px solid #efefef;
  }

  .section-nav a {
    text-decoration: none;
    display: block;
    color: #ccc;
    transition: all 150ms ease-in-out; 
  }

  .section-nav li::marker {
    color: #ccc;
  }

  .section-nav a:hover,
.section-nav a:focus {
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
}

  .depth-nested {
    display: none;
  }

  /* Static TOC */
  .toc a {
    text-decoration: none;
    display: block;
    color: #515151;
    transition: all 50ms ease-in-out; 
  }

  .toc li::marker {
    color: #515151;
  }

  .toc a:hover,
  .toc a:focus {
    border: none;
    color: #666;
    font-weight: 600;
  }
  

/* For https://github.com/martignoni/hugo-notice */
.notice {
    width: 85%;
}