/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}
@property --background-color {
  syntax: "<color>";
  inherits: true;
  initial-value: #c0ffee;
}


:root {
  --primary-color: black;
  --dark-color: black;
  --html-font-size: 1rem;
  --link-color-light: rgb(27, 117, 208);
  --font-family_1: "Merriweather",serif;
  --font-family_2: "Nunito",sans-serif;
  --background-color: light-dark(rgb(255, 255, 255), rgb(24, 25, 27));
  --background-color-secondary: light-dark(rgb(247, 247, 248), rgb(33, 36, 38));
  --border-color_1: #000;
  --text-color: light-dark(var(--dark-color), rgb(255, 255, 255));
  --color-link-normal: light-dark(var(--link-color-light),#a4cefe);
  --secondary-text-color: light-dark(#1e2123, rgb(179, 179, 179));
  --p-color: light-dark(rgba(0, 16, 36, .9), rgb(179, 179, 179));
  --label-bg: light-dark(rgb(247, 247, 248), rgb(33, 36, 38))
}[href^="http"]::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  background: url(../images/external-link.svg) no-repeat center / contain;
  color: var(--text-color);
}

[href^="http"] {
  /*color: #00449e;*/
}

::-moz-selection {
  background: #b4eeb4
}

::selection {
  background: #b4eeb4
}

body {
  font-family: var(--font-family_1);
  line-height: 1.5;
  font-size: var(--html-font-size);
  background: var(--background-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  font-family: var(--font-family_2), sans-serif;
  font-weight: 600;
  line-height: initial;
}

a {
  color: var(--color-link-normal);
}

a.label {
    font-family: "JetBrains Mono";
    background-color: var(--label-bg);
}

code {
  background-color: var(--background-color-secondary);
  padding: 3px;
  border-radius: 10%;
  font-family: JetBrains Mono;
}

.container {
  display: grid;
  grid-template-rows: 6rem 1fr 4em;
  grid-gap: 0 20px;
  grid-template-columns: [full-start] minmax(0, auto) [main-start] minmax(0, 1140px) [main-end] minmax(0, auto) [full-end];
}
header {
  grid-column: full;
  position: sticky;
  top: 0;
  background: var(--background-color);
  z-index: 1;
  height: 56px;
  border-block-end: 1px solid #e3e4f21f;
}
nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 1rem;
  font-family: var(--font-family_2);
  font-weight: 600;
  max-width: 1200px;
  margin: 0 auto;

  a {
    color: var(--secondary-text-color);
  }

  .nav-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 14px;

    li {
      margin-left: 1.5rem;
    }

    a {
      text-decoration: none;

      &:hover, &.active, &.ancestor {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: .3em;
      }
    }
  }

  .site-title {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;

    &:hover {
        text-decoration: underline;
    }
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    margin: 0;
  }
}

article p, article dl dd, article dl dt {
  line-height: 24px;
  text-underline-offset: 5px;
  margin-bottom: 1.5em;
}

article * {
  grid-column: article-center;
}

table.table {
  color: var(--secondary-text-color);

  tr > th:first-child, td:first-child {
    width: 11ch;
    font-family: Nunito, monospace;
  }

  a {
    color: var(--color-link-normal);
    text-decoration: none;
    outline: none;
  }

  a:hover {
    text-decoration: underline;
  }

  tr:last-of-type td {
    border-bottom: none;
  }
}

/* ======= MAIN ------- */
main {
  grid-column: main;
  display: grid;
  grid-gap: 10px 20px;
  grid-template-rows: auto 1fr;

  img, video, iframe, code{
    max-width: 100%;
  }

  .about-content {
    img {
      border-radius: 50%;
      border: 5px solid rgba(232,86,0,.2);
    }
  }
  .meta {
    font-size: .9em;
    font-family: var(--font-family_2), sans-serif;
    color: var(--p-color);
    text-transform: uppercase;
    line-height: 2em;
  }

  #subtitle {
    font-family: var(--font-family_2);
    font-size: 26px;
    font-weight: 600;
    grid-column: main-left / main-center;

    &::after {
      margin: 20px 0;
      content: "";
      display: block;
      height: 2px;
      width: 80px;
      background: rgba(0, 16, 36, .18);
    }
  }

  #subtitle.post-title {
    grid-column: 1 / span 2 !important;
  }

  #list {
    margin-bottom: 30px;
    grid-column: main-left/main-center;
    display: grid;
    grid-gap: 0 20px;

    &h2 {
      grid-column: list-left;
    }

    article {
      display: grid;
      grid-column: list-center;
      grid-template-columns: 1fr;
      text-underline-offset: .4em;
      position: relative;
      grid-gap: 0 20px;

      h3 a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
      }
    }

    article>* {
      grid-column: 1;
    }

    .paginator {
      padding-top: 1em;
      grid-column: list-center;
      font-family: var(--font-family_2), sans-serif;
      font-weight: 600;

      & span.previous-page {
        float: left;
      }

      & span.previous-page:before {
        content: "‹ ";
      }

      &  span.next-page {
        float: right;
      }

      & span.next-page:after {
        content: " ›";
      }
    }

    &::after{
      margin-top: 1em;
      content: "";
      display: block;
      height: 2px;
      width: 80px;
      background: rgba(0, 16, 36, .18);
    }
  }

  article {
    position: relative;
    display: grid;
    grid-gap: 0 20px;
    grid-column: main-left / main-right;
    text-align: justify;

    .meta {
      grid-column: article-left;
    }
  }

  .post-nav {
    font-family: var(--font-family_2), sans-serif;
    font-weight: 600;
    line-height: 1.5em;
    border-top: 2px solid rgba(0, 16, 36, .18);
    padding-top: 1em;
    grid-column: main-center;
    margin-bottom: 2em;

    .previous {
      float: left;
    }


  }
}
footer {
  text-align: center;
  font-family: var(--font-family_2);
  font-size: 1rem;
  grid-column: full;
}

/* ========== Smol Screen ============ */
@media (max-width: 720px) {
  :root {
    --html-font-size: 14px;
  }

  nav {
    .nav-toggle {
      display: block;
    }

    .nav-menu {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 4rem;
      right: 20px;
      left: auto;
      width: 125px;
      max-width: 80%;
      background-color: var(--background-color-secondary);
      padding: 20px;
      z-index: 999;
      border: 2px solid rgba(0, 16, 36, .18);
      box-shadow: 0 4px 6px rgba(0, 0, 0, .1);

      li {
        margin: .5rem 0;
      }
    }

    .nav-menu.active {
      display: flex;
    }
  }

  main {
    grid-template-columns:[main-left-start main-center-start main-right-start] 1fr [main-left-end main-center-end main-right-end];
    grid-gap: 0;

    #subtitle > h1 {
      font-size: 1.5rem;
    }

    .meta {
      display: grid;
      grid-template-columns: 1fr auto;

      p {
        grid-column: initial;
      }
    }

    article {
      grid-template-columns: [article-left-start article-center-start article-right-start] 1fr [article-left-end article-center-end article-right-end];
    }

    #list {
      grid-template-columns:[list-left-start list-left-end list-center-start] 1fr [list-left-end list-center-end];
    }
  }
}
@media (min-width: 720px) {
  main {
    grid-template-columns: [main-left-start] minmax(0, 240px) [main-left-end main-center-start] minmax(240px, 620px) [main-center-end main-right-start] minmax(0, 240px) [main-right-end];

    & #list {
      grid-template-columns: [list-left-start] minmax(0, 240px) [list-left-end list-center-start] minmax(240px, 620px) [list-center-end];
    }

    article {
      grid-template-columns: [article-left-start] minmax(0, 240px) [article-left-end article-center-start] minmax(240px, 620px) [article-center-end article-right-start] minmax(0, 240px) [article-right-end];
    }


  }

  footer {
    font-size: .8rem;
  }
}

@media (min-width: 900px) {
  .post-nav .next {
    float: right;
  }

  .post-nav .previous:before {
    content: "‹ ";
  }

  .post-nav .next:after {
    content: " ›";
  }
}

@media (max-width: 900px) {
  .post-nav .previous:before {
    content: "Previous: ";
    font-weight: normal;
  }

  .post-nav .next, .post-nav .previous {
    float: left;
    display: block;
    width: 100%;
  }

  .post-nav .next:before {
    content: "Next: ";
    font-weight: normal;
  }
}
div.highlight {
    overflow-x: scroll;
    max-width: 95vw;
}/* Combined chroma syntax theme (light + dark) */
/* Source: emacs (light) + monokai (dark) */

/* Background */
.bg {
  background-color: light-dark(#f8f8f8, #272822);
  color: light-dark(#000000, #f8f8f2);
}

/* PreWrapper */
.chroma {
  background-color: light-dark(#f8f8f8, #272822);
  color: light-dark(#000000, #f8f8f2);
  border: 1px solid;
  border-color: light-dark(oklch(92.8% .006 264.531), oklch(27.8% .033 256.848));
  overflow-x: scroll;
  overflow-y: hidden;
}

/* Other */
.chroma .x {}

/* Error */
.chroma .err {
  color: light-dark(inherit, #960050);
  background-color: light-dark(transparent, #1e0010);
}

/* CodeLine */
.chroma .cl {}

/* LineLink */
.chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit;
}

/* Line tables */
.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
}

.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

/* Line highlight */
.chroma .hl {
  background-color: light-dark(#dfdfdf, #3c3d38);
}

/* Line numbers */
.chroma .lnt,
.chroma .ln {
  white-space: pre;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #7f7f7f;
}

/* Line */
.chroma .line {
  display: flex;
}

/* Keywords */
.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kr {
  color: light-dark(#aa22ff, #66d9ef);
  font-weight: bold;
}

.chroma .kn,
.chroma .ow {
  color: light-dark(#aa22ff, #f92672);
}

.chroma .kp {
  color: light-dark(#aa22ff, #66d9ef);
}

.chroma .kt {
  color: light-dark(#00bb00, #66d9ef);
  font-weight: bold;
}

/* Names */
.chroma .n {}

.chroma .na {
  color: light-dark(#bb4444, #a6e22e);
}

.chroma .nb {
  color: light-dark(#aa22ff, inherit);
}

.chroma .bp {}

.chroma .nc {
  color: light-dark(#0000ff, #a6e22e);
}

.chroma .no {
  color: light-dark(#800000, #66d9ef);
}

.chroma .nd {
  color: light-dark(#aa22ff, #a6e22e);
}

.chroma .ni {
  color: light-dark(#999999, inherit);
  font-weight: bold;
}

.chroma .ne {
  color: light-dark(#d2413a, #a6e22e);
  font-weight: bold;
}

.chroma .nf {
  color: light-dark(#00a000, #a6e22e);
}

.chroma .fm {}

.chroma .nl {
  color: light-dark(#a0a000, inherit);
}

.chroma .nn {
  color: light-dark(#0000ff, inherit);
  font-weight: bold;
}

.chroma .nx {
  color: light-dark(inherit, #a6e22e);
}

.chroma .py {}

.chroma .nt {
  color: light-dark(#008000, #f92672);
  font-weight: bold;
}

.chroma .nv {
  color: light-dark(#b8860b, inherit);
}

.chroma .vc {}
.chroma .vg {}
.chroma .vi {}
.chroma .vm {}

/* Literals */
.chroma .l {
  color: light-dark(inherit, #ae81ff);
}

.chroma .ld {
  color: light-dark(inherit, #e6db74);
}

/* Strings */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sh,
.chroma .s1,
.chroma .s2 {
  color: light-dark(#bb4444, #e6db74);
}

.chroma .sd {
  color: light-dark(#bb4444, #e6db74);
  font-style: italic;
}

.chroma .se {
  color: light-dark(#bb6622, #ae81ff);
  font-weight: bold;
}

.chroma .si {
  color: light-dark(#bb8866, #e6db74);
  font-weight: bold;
}

.chroma .sx {
  color: light-dark(#008000, #e6db74);
}

.chroma .sr {
  color: light-dark(#bb8866, #e6db74);
}

.chroma .ss {
  color: light-dark(#b8860b, #e6db74);
}

/* Numbers */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
  color: light-dark(#666666, #ae81ff);
}

/* Operators */
.chroma .o {
  color: light-dark(#666666, #f92672);
}

/* Punctuation */
.chroma .p {}

/* Comments */
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1 {
  color: light-dark(#008800, #75715e);
  font-style: italic;
}

.chroma .cs {
  color: light-dark(#008800, #75715e);
  font-weight: bold;
}

.chroma .cp,
.chroma .cpf {
  color: light-dark(#008800, #75715e);
}

/* Generic */
.chroma .g {}

.chroma .gd {
  color: light-dark(#a00000, #f92672);
}

.chroma .ge {
  font-style: italic;
}

.chroma .gr {
  color: light-dark(#ff0000, inherit);
}

.chroma .gh {
  color: light-dark(#000080, inherit);
  font-weight: bold;
}

.chroma .gi {
  color: light-dark(#00a000, #a6e22e);
}

.chroma .go {
  color: light-dark(#888888, inherit);
}

.chroma .gp {
  color: light-dark(#000080, inherit);
  font-weight: bold;
}

.chroma .gs {
  font-weight: bold;
}

.chroma .gu {
  color: light-dark(#800080, #75715e);
  font-weight: bold;
}

.chroma .gt {
  color: light-dark(#0044dd, inherit);
}

.chroma .gl {
  text-decoration: underline;
}

/* Whitespace */
.chroma .w {
  color: light-dark(#bbbbbb, inherit);
}
