:root {
  --content-width: 1120px;
  --container-width: 810px;

  /* Kimber base00 background */
  --light-color-00: #222222;
  --light-background-alt-color: #222222;
  /* Kimber base01 borders/dividers */
  --light-color-01: #313131;
  --light-text-color: #313131;
  /* Kimber base 02 */
  --light-color-02: #555d55;
  --link-color: #555d55;
  /* Kimber base 03 */
  --light-color-03: #644646;
  /* Kimber base04 */
  --light-color-04: #5a5a5a;
  --light-shadow-color: #5a5a5a;
  --light-muted-color: #5a5a5a;
  /* Kimber base05 text/code */
  --light-color-05: #dedee7;
  --light-code-color: #dedee7;
  /* Kimber base06 */
  --light-color-06: #c3c3b4;
  --light-secondary-color: #c3c3b4;
  /* --link-color: #c3c3b4; */
  --link-font-weight: 500;
  /*Kimber base07 */
  --light-color-07: #ffffe6;
  --light-background-color: #ffffe6;
  /*Kimber base08 */
  --light-color-08: #c88c8c;
  /*Kimber base09 */
  --light-color-09: #476c88;
  /*Kimber base0A */
  --light-color-0A: #d8b56d;
  /*Kimber base0B */
  --light-color-0B: #99c899;
  /*Kimber base0C */
  --light-color-0C: #78b4b4;
  /*Kimber base0D */
  --light-color-0D: #537c9c;
  /*Kimber base0E */
  --light-color-0E: #86cacd;
  /*Kimber base0F */
  --light-color-0F: #704f4f;
}

@font-face {
  font-family: Lato;
  font-weight: 400;
  src: url("/fonts/Lato-Regular.ttf");
}

@font-face {
  font-family: Lato;
  font-weight: 700;
  src: url("/fonts/Lato-Bold.ttf");
}

html {
  background-color: var(--light-background-color);
  color: var(--light-text-color);
  font-family: "Lato", sans-serif;
  font-size: var(--font-size);
  min-height: 100%;
  position: relative;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 170px;
}

body.blog-post.has-post-navigation {
  margin-bottom: 80px;
}

b,
strong {
  font-weight: bold;
}

a {
  color: inherit;
}

/* This is set in partials/head.html and is populated via config */
a:hover {
  color: var(--accent-color);
  fill: var(--accent-color);
}

main#content {
  margin: 90px auto 0;
  width: var(--content-width);
}

main#content>.container {
  margin: auto;
  width: 75%;
  max-width: var(--container-width);
}

.post.container {
  box-sizing: border-box;
  display: inline-block;
}

.post-toc {
  box-sizing: border-box;
  display: inline-block;
  padding-left: 50px;
  vertical-align: top;
  /* Would be 25% had there been no margins or border box on all inline blocks */
  width: 24%;
}

#toc {
  position: fixed;
  top: 80px;
  bottom: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

#toc ul li {
  margin-top: 12px;
}

#toc ul li a.level-1 {
  padding-left: 0;
}

#toc ul li a.level-2 {
  padding-left: 10px;
}

#toc ul li a.level-3 {
  padding-left: 20px;
}

#toc ul li a.level-4 {
  padding-left: 30px;
}

#toc ul li a {
  text-decoration: none;
}

#toc ul li a.active {
  color: var(--accent-color);
}

img {
  height: auto;
  max-width: 100%;
}

/* HEADER */
.header {
  background-color: color-mix(in srgb, var(--light-background-color) 95%, transparent);
  color: inherit;
  height: 50px;
  left: 0;
  position: fixed;
  top: 0;
  transition: box-shadow 0.3s ease-in-out;
  width: 100%;
  z-index: 5;
}

.header a {
  text-decoration: none;
}

.header .header-nav {
  height: 50px;
  margin-top: 0;
}

.header-nav .avatar {
  border-radius: 18px;
  float: left;
  height: 100%;
  margin-left: 15px;
}

.header-nav .avatar img {
  border-radius: 100%;
  display: block;
  height: 38px;
  margin-top: 5px;
  overflow: hidden;
  width: 38px;
}

.header-nav .nav-title {
  display: inline-block;
  height: 100%;
  line-height: 50px;
  padding-left: 15px;
}

.nav-title a {
  height: 50px;
}

.header-nav .nav-links {
  float: right;
  line-height: 50px;
  margin-right: 10px;
}

.nav-links .nav-link {
  display: inline-block;
  padding: 0 2px;
}

.nav-links .nav-link a {
  display: block;
  padding: 0 6px;
}

.nav-link a svg {
  height: 20px;
  margin: -3px auto;
  stroke-width: 2;
  width: 20px;
}

.nav-item a svg {
  height: 20px;
  margin: -3px auto;
  stroke-width: 2;
  width: 20px;
}

.nav-links .nav-link.icon a {
  padding: 0 8px;
}

.nav-links .nav-icons-divider {
  border-color: inherit;
  border-left: 1.5px solid;
  color: var(--light-secondary-color);
  margin: 0 10px;
}

.nav-links .dark-theme-toggle:hover {
  cursor: pointer;
}

a:hover .feather-sun {
  fill: var(--light-text-color);
  color: var(--light-text-color);
}

.dark-theme-toggle .feather {
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
}

#hamburger-menu-toggle {
  display: none;
}

#hamburger-menu-toggle .feather {
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 24px;
}

.nav-hamburger-list {
  background: var(--light-background-color);
  border-bottom: solid 1.5px var(--light-secondary-color);
  border-top: solid 1.5px var(--light-secondary-color);
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  text-align: center;
  width: 100%;
  z-index: 5;
}

.nav-hamburger-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  bottom: 0;
  color: inherit;
  left: 0;
  margin-left: 30%;
  overflow: hidden;
  padding: 40px 0;
  position: absolute;
  text-align: center;
  width: 40%;
}

.footer span {
  display: block;
  font-size: 0.85em;
  font-weight: 300;
  padding: 1px 0;
}

/** COMMON **/
.flex-break {
  flex-basis: 100%;
  height: 0;
  display: none;
}

.visibility-hidden {
  visibility: hidden;
}

.header-shadow {
  box-shadow: var(--light-shadow-color) 0px 1px 5px;
}

/* TAGS */
.post-tags {
  list-style-type: none;
  padding: 0;
}

.post-tags .post-tag {
  border: 1.5px solid;
  border-radius: 4px;
  box-sizing: border-box;
  color: inherit;
  display: inline-block;
  font-size: 14px;
}

.post-tags .post-tag:hover {
  background-color: var(--light-text-color);
  color: var(--light-background-color);
}

.post-tag a {
  color: inherit;
  display: block;
  padding: 6px 12px;
  text-decoration: none;
}

/* Small tag bubbles for post listings */
.post-title-tags {
  margin-top: 4px;
}

.post-title-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 7px;
  border: 1px solid var(--light-secondary-color);
  border-radius: 3px;
  text-decoration: none;
  color: var(--light-muted-color);
  margin-right: 4px;
  margin-bottom: 2px;
}

.post-title-tag:hover {
  background-color: var(--light-text-color);
  color: var(--light-background-color);
  border-color: var(--light-text-color);
}

/* CODE BLOCKS */
code,
pre {
  background-color: var(--light-background-alt-color);
  box-sizing: border-box;
  color: var(--light-code-color);
}

pre {
  font-size: 0.95rem;
  overflow: auto;
  padding: 20px;
}

code {
  box-decoration-break: clone;
  word-wrap: break-word;
  font-size: 0.8em;
}

:not(pre)>code {
  background-color: var(--light-secondary-color) !important;
  color: var(--light-text-color);
  padding: 1px 4px;
}

pre code {
  font-size: 0.9em;
}

/*
Fix iOS font sizing in code blocks
Author: https://github.com/bglw
Source: https://github.com/adityatelange/hugo-PaperMod/issues/828#issuecomment-1171994855
*/
code {
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

blockquote {
  border-left: 2px solid var(--light-secondary-color);
  color: var(--light-muted-color);
  padding-left: 1rem;
  margin-left: 0;
}

hr {
  color: var(--light-secondary-color);
  margin: 50px auto;
}

table {
  border-collapse: collapse;
  margin: 30px 0;
  text-align: left;
  display: block;
  overflow-x: auto;
}

table thead {
  background-color: var(--light-secondary-color);
}

table td,
table th {
  padding: 1.4rem;
}

table td {
  border-bottom: 1px solid var(--light-secondary-color);
}

/* HOME PAGE */
.home-about {
  text-align: center;
}

.home-about .avatar img {
  border-radius: 50%;
  height: auto;
  object-fit: cover;
}

/* Avatar sizes (default is M) - XS, S, M, L, XL */
.home-about .avatar img.size-xs {
  height: 7rem;
  width: 7rem;
}

.home-about .avatar img.size-s {
  height: 9rem;
  width: 9rem;
}

.home-about .avatar img.size-m {
  height: 11rem;
  width: 11rem;
}

.home-about .avatar img.size-l {
  height: 13rem;
  width: 13rem;
}

.home-about .avatar img.size-xl {
  height: 15rem;
  width: 15rem;
}

.home-about h1 {
  font-size: 2em;
}

.home-about h2 {
  font-size: 1.2em;
}

.gk-social-icons {
  text-align: center;
}

.gk-social-icons .gk-social-icons-list {
  display: inline-block;
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.gk-social-icons-list .gk-social-icon {
  box-sizing: border-box;
  display: inline-block;
  fill: var(--light-text-color);
  height: 24px;
  margin: 0 6px;
  width: 24px;
}

.gk-social-icon a svg path {
  transition: fill 0.15s ease;
}

.home-content {
  line-height: 1.25;
  width: 80%;
  margin: 0 auto;
}

.home-posts {
  margin: 0 auto;
  padding-top: 10px;
  width: 80%;
}

/* HOME GRID (posts + projects side by side) */
.home-grid {
  display: flex;
  gap: 2rem;
  width: 80%;
  margin: 0 auto;
  align-items: center;
}

.home-grid .home-posts {
  width: auto;
}

.home-posts-column {
  flex: 3;
  min-width: 0;
}

.home-projects-card {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--light-secondary-color);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background-color: var(--light-background-color);
}

.home-projects-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.home-project-entry {
  margin-bottom: 0.9rem;
}

.home-project-entry:last-of-type {
  margin-bottom: 0.5rem;
}

.home-project-entry a {
  text-decoration: none;
  font-weight: 500;
}

.home-project-entry a:hover {
  text-decoration: underline;
}

.home-project-meta {
  font-size: 0.8rem;
  color: var(--light-muted-color);
  margin-top: 0.15rem;
}

.home-project-status {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  vertical-align: middle;
}

.home-projects-card .view-all {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent-color);
  border-top: 1px solid var(--light-secondary-color);
  padding-top: 0.6rem;
}

.home-projects-card .view-all:hover {
  text-decoration: underline;
}

/* SINGLE */
.post [role="doc-subtitle"] {
  font-size: 1.1em;
  font-style: italic;
}

.post {
  /* Prevent long strings from overflowing */
  overflow-wrap: break-word;
}

.post .post-date,
.prev-post-date,
.next-post-date {
  color: var(--light-muted-color);
}

.post .post-content {
  line-height: 1.7;
  margin-top: 50px;
  letter-spacing: 0.5px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  scroll-margin-top: 55px;
}

.post-content h1 {
  margin-top: 40px;
}

.post-content h2 {
  margin-top: 35px;
}

.post-content h3 {
  margin-top: 30px;
}

.post-content h4 {
  margin-top: 25px;
}

.post-content h5 {
  margin-top: 20px;
}

.post-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Content links: slightly bolder and dimmed vs body text */
.post-content a:not(.post-tag):not(.post-title-tag),
.markdown-content a {
  font-weight: var(--link-font-weight);
  color: var(--link-color);
}

.post-content a:not(.post-tag):not(.post-title-tag):hover,
.markdown-content a:hover {
  color: var(--accent-color);
}

/* ASIDE BLOCKS */
.aside-block {
  border-left: 4px solid var(--light-color-08);
  border-bottom: 4px solid var(--light-color-08);
  border-radius: 10px;
  background-color: color-mix(in srgb, var(--light-shadow-color) 15%, transparent);
  margin: 1.5rem 0;
  padding: 0.8rem 1rem 0.6rem;
}

.aside-caption {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-background-alt-color);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 10px;
  position: relative;
  top: -1.5em;
  margin-bottom: -2em;
  margin-left: 0.2rem;
}

.aside-caption+.aside-content {
  margin-top: -1em;
}

.aside-content {
  line-height: 1.25;
}

.aside-content>*:first-child {
  margin-top: 0;
}

.aside-content>*:last-child {
  margin-bottom: 0;
}

/* LIST */
.list-posts .list-title {
  text-align: center;
}

.list-posts .posts-year {
  margin-top: 70px;
}

.list-posts .post-title {
  margin: 18px 0 0 15px;
}

.list-posts .post-title a {
  text-decoration: none;
}

.post-title .post-link,
.post-title .post-date {
  display: inline-block;
}

.post-title .post-link {
  /* This magic number is the largest width that keeps the post-date div from
   *  causing the line to wrap with the longest possible date string
   *  "September 22, 2022"
   */
  width: 73%;
}

.tags-list .post-tags {
  margin-top: 50px;
}

.tags-list .post-tags .post-tag {
  margin: 2px 5px;
  padding: 0;
}

.tags-list .post-tags .post-tag a {
  border-radius: inherit;
  padding: 0;
}

.tags-list .post-tags .post-tag a div {
  display: inline-block;
}

.tags-list .post-tags .post-tag a .tag-name {
  padding: 5px 8px;
}

.tags-list .post-tags .post-tag a .tag-posts-count {
  background-color: var(--light-secondary-color);
  border-radius: inherit;
  color: inherit;
  opacity: 0.8;
  padding: 6px;
  position: relative;
  z-index: 0;
}

.tags-list .post-tags .post-tag:hover a .tag-posts-count {
  background-color: var(--light-text-color);
  color: var(--light-background-color);
}

.text-404 {
  margin-top: 125px;
  text-align: center;
}

@media only screen and (max-width: 1120px) {
  main#content {
    width: auto;
  }
}

@media only screen and (max-width: 820px) {
  body {
    font-size: 0.95rem;
  }

  .flex-break {
    display: block;
  }

  .home-about .avatar img {
    border-radius: 50%;
    height: 7rem;
    width: 7rem;
  }

  .nav-links .nav-link,
  .nav-icons-divider {
    display: none;
  }

  #hamburger-menu-toggle {
    display: inline-block;
  }

  main#content {
    box-sizing: border-box;
    padding: 0 1.5rem;
    width: auto;
  }

  .home-content,
  .home-posts {
    width: auto;
    margin: 0;
  }

  .home-grid {
    flex-direction: column;
    width: auto;
    margin: 0;
  }

  .home-posts-column {
    width: 100%;
  }

  .home-projects-card {
    width: 100%;
    min-width: unset;
  }

  main#content .container {
    width: 100%;
  }

  .home-about {
    margin: 0 auto;
  }

  #toc {
    display: none;
  }

  .list-posts {
    flex: 1;
  }

  .list-posts .post-date {
    color: var(--light-muted-color);
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }
}

@media only screen and (min-width: 820px) {
  .nav-hamburger-list {
    visibility: hidden !important;
  }
}

/*Accessibility*/
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.post-navigation {
  padding: 40px 0;
}

.post-navigation::after {
  clear: both;
  content: "";
  display: table;
}

.prev-post {
  float: left;
  text-align: left;
}

.next-post {
  float: right;
  text-align: right;
}

.prev-post,
.next-post {
  max-width: 33%;
}

/* back to top button  */
.arrow-logo {
  background-color: transparent;
  border-radius: 50%;
  bottom: 20px;
  cursor: pointer;
  display: none;
  font-size: 24px;
  padding: 10px;
  padding-right: 8px;
  position: fixed;
  right: 20px;
  z-index: 5;
  background-color: var(--light-background-alt-color);
  width: 25px;
  height: 25px;
}

.arrow-logo path {
  fill: var(--light-secondary-color)
}

.arrow-logo:hover {
  fill: var(--accent-color);
}

@media screen and (max-width: 600px) {
  #btt-button {
    visibility: hidden;
  }
}