@import url("Plex Mono/plex-mono.css");
@import url("Vollkorn/vollkorn.css");
@import url("Source Serif/source-serif.css");
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Andada+Pro:ital,wght@0,400..840;1,400..840&display=swap');

:root {
  --link-color: #036163;
  --link-background: rgba(0.012, 0.38, 0.39, 0.071);
}

body {
  background-color: #eff0f1;
  font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-size: 16pt;
  line-height: 1.4;
}

a {
  color: var(--link-color);
  text-decoration: none;
  padding: 4px 8px;
  margin: -4px -8px;
}

a:hover {
  text-decoration: none;
  background: var(--link-background);
  /*padding: 4px 8px;
  margin: -4px -8px;*/
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  display: inline-block;
}

sup {
  line-height: 1;
}

a.footnote-ref,
a.footnote-backref {
  text-decoration: none;
  line-height: 1;
  margin-left: 2px;
  font-weight: bold;
}


h1 {
  font-size: 32pt;
}

h2 {
  font-size: 28pt;
}

h3 {
  font-size: 23pt;
}

h4 {
  font-size: 19pt;
}

h5 {
  font-size: 17pt;
}

h6 {
  font-size: 16pt;
  font-variant: small-caps;
  text-transform: lowercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Alegreya Sans", serif;
  font-weight: bold;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  text-decoration: none;
}

blockquote {
  font-size: 12pt;
  line-height: 1.3;
  padding: 0 0.5em 0.5em;
  background: #dee0e3;
  border-radius: 4px;
}

blockquote :last-child {
  margin-bottom: 0;
}

blockquote :first-child {
  margin-top: 0;
}

.wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.sidebar {
  flex: 0 0 192px;
}

#avatar-container {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
  justify-content: center;
  align-items: center;
}

#avatar-container label {
  font-size: 12pt;
}

#avatar {
  display: block;
  border: none;
}

#avatar:hover {
  outline: none;
  text-decoration: none;
  background: none;
  padding: 0;
  margin: 0;
}

#avatar img {
  width: 100%;
}

img.avatar-serious-business {
  display: none;
}

#enserious-avatar:checked ~ #avatar img.avatar-unserious-fun {
  display: none;
}

#enserious-avatar:checked ~ #avatar img.avatar-serious-business {
  display: block;
}

.navigation {
  display: flex;
  gap: 1em;
  flex-direction: column;
  justify-content: space-around;
}

.navigation ul {
  padding-left: 0;
  margin: 0;
}

.navigation li {
  list-style-type: none;
}

.content {
  flex: 0 0 36em;
  overflow: hidden;
  padding: 0.5em;
}

.content #body {
  text-align: left;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.content #body img {
  max-width: 100%;
}

code {
  font-family: "Plex Mono";
  font-size: 11pt;
  background-color: white;
  border-radius: 4px;
  padding: 0 2px;
  line-height: 1;
}

.highlight pre {
  overflow: auto;
}

.highlight code {
  display: inline-block;
  padding: 8px;
  background-color: inherit;
  border-radius: 0;
  line-height: 1.4;
}

footer {
  text-align: center;
  margin-top: 2em;
}

.blog-post.panel {
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 4px;
  background: white;
}

.blog-post.panel .header {
  margin-top: 0;
  margin-bottom: .2em;
}

.blog-post.panel .subheader {
  margin-top: 0;
}

.blog-post.panel .description {
  font-family: Vollkorn;
}

@media screen and (max-width: 1024px) {
  .sidebar {
    flex: 0 0 100%;
    padding-right: 0;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
  }

  #avatar-container {
    width: 128px;
    padding-right: 32px;
  }

  #avatar-container label {
    font-size: 8pt;
  }

  .wrapper {
    width: 640px;
    flex-wrap: wrap;
    gap: 0;
  }

  .content {
    flex: 0 0 100%;
  }

  .navigation {
    flex-direction: row;
  }
}

@media screen and (max-width: 640px) {
  .sidebar {
    flex: 0 0 100%;
    padding-right: 0;
    padding-top: 0;
    display: flex;
    flex-wrap: nowrap;
  }

  .wrapper {
    width: 100%;
    flex-wrap: wrap;
  }

  .content {
    flex: 0 0 100%;
  }

  .content #body {
    text-align: left;
  }
}
