::selection, mark {
  background-color: black;
  color: white;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
}

@media (prefers-color-scheme: light) {
  body {
    background-image: url("/public/images/bg-light.webp");
    background-color: rgba(255, 255, 255, 0.1);
    background-blend-mode: multiply;
  }
}

body::-webkit-scrollbar {
  width: .6em;
}

body::-webkit-scrollbar-track {
  background-color: white;
}

body::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 5px;
}

@media (prefers-color-scheme: dark) {
  body::-webkit-scrollbar-track {
    background-color: black;
  }

  body::-webkit-scrollbar-thumb {
    background-color: white;
  }

  body {
    background-image: url("/public/images/bg-dark.webp");
    background-color: black;
    filter: invert(95%) hue-rotate(180deg);
  }

  img, video, iframe {
    filter: invert(95%) hue-rotate(180deg);
  }

  .navigation-menu-bars img {
    filter: invert(0);
  }
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background-size: 80%;
  background-attachment: fixed;
  min-height: 100%;
  scroll-behavior: smooth;
}

.htmx-indicator {
  margin-left: 1rem;
  width: 12px;
  height: 12px;
  border: 2px solid black;
  border-bottom-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  display: none;
}

.htmx-request .htmx-indicator {
  opacity: 1;
  display: inline-block;
}

.htmx-request.htmx-indicator {
  opacity: 1;
  display: inline-block;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

a {
  color: black;
  font-weight: 700;
  text-decoration: none;
}

a.link-normal {
  font-weight: normal !important;
}

a.link-decorated {
  text-decoration: underline;
}

a.link-decorated:hover {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.go-back-indicator,
.has-phosphor-icon,
.link-copier,
.icon-tag {
  position: relative;
  padding-left: 1.5rem;
}

.go-back-indicator::before,
.link-copier::before,
.has-phosphor-icon::before,
.icon-tag::before {
  font-family: "Phosphor";
  position: absolute;
  left: 0;
  top: .110rem;
  font-weight: 600;
}

.go-back-indicator::before {
  content: "\E058";
}

/* Icons.  */

.icon-tag {
  padding-left: .7rem !important;
}

.icon-tag::before {
  /*top: .2rem !important;*/
  content: "\E478";
  font-weight: normal;
  /*font-size: 15px;*/
  /*left: -.1rem;*/
}

/* Logo.  */

.logo {
  display: inline;
  max-width: 200px;
  color: black;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Source Serif 4', sans-serif;
}

.logo-text span {
  font-family: 'Source Serif 4', sans-serif;
  font-weight: 400;
}

.logo-motto {
  font-size: 13px;
}

/* Button.  */

.btn {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  padding: .5rem;
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
  cursor: pointer;
  border: 1px solid black;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
}

.btn:hover {
  text-decoration: underline;
}

.btn.filled {
  background-color: black;
  color: white;
}

button.link-copier::before {
  content: "\E2E6";
  top: .34rem;
}

button.link-copier.copied::before {
  content: "\E182";
}

/* Image viewer.  */

.article-post img,
.post-content-section img,
.images-container img {
  cursor: zoom-in;
}

dialog.img-viewer {
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  border: none;
  outline: none;
  border-radius: 5px;
  background-color: transparent;
}

dialog.img-viewer::backdrop {
  background-color: rgb(0, 0, 0, 0.8);
}

dialog.img-viewer .small {
  color: rgb(255, 255, 255, 0.5);
  text-align: center;
  font-size: 12px;
  font-family: 'Source Serif 4', sans-serif;
  padding-bottom: .25rem;
}

dialog.img-viewer .img-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

dialog.img-viewer .img-container img {
  max-width: calc(100vw - 3rem);
  max-height: calc(100vh - 6.5rem);
  border-radius: 5px;
}

@media (prefers-color-scheme: dark) {
  dialog.img-viewer .img-container img {
    filter: none;
  }
}

dialog.img-viewer .caption {
  text-align: center;
  padding-top: .25rem;
  color: white;
  font-style: italic;
  font-family: 'Source Serif 4', sans-serif;
}

dialog.img-viewer .caption * {
  color: white;
  font-family: 'Source Serif 4', sans-serif;
}

/* Title header.  */

.title-header {
  margin-bottom: 1rem;
}

.title-header-text {
  font-size: clamp(2.5rem, 5vw, 5vw);
  font-weight: 200;
}

.title-header-text span {
  font-weight: 700;
}

.title-header .api-endpoint {
  font-size: clamp(1.5rem, 2vw, 2vw);
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.title-header .api-endpoint:hover {
  color: black;
}

/* Wrapper.  */

.site-wrapper {
  width: 54%;
  max-width: 57rem;
  min-height: 100%;
  margin: auto;
  display: block;
}

@media screen and (max-width: 1120px) {
  .site-wrapper {
    width: 70%;
  }
}

@media screen and (max-width: 610px) {
  .site-wrapper {
    width: 75%;
  }
}

@media screen and (max-width: 510px) {
  .site-wrapper {
    width: 85%;
  }
}

.main {
  min-height: 76vh;
}

/* Header and navigation.  */

.header {
  padding-top: 3rem;
  padding-bottom: 1.2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation-menu-bars {
  display: none;
  cursor: pointer;
  text-align: center;
  line-height: normal;
  padding: .5rem;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation-header h2 {
  display: none;
}

.navigation-closer {
  cursor: pointer;
  color: black;
  display: none;
  opacity: 0;
}

.navigation-closer {
  opacity: 1;
}

.navigation-closer:hover {
  text-decoration: underline;
}

.navigation-list {
  align-items: center;
  display: flex;
  list-style: none;
}

.navigation-list-item:not(:last-child):after {
  content: "";
  position: relative;
  width: 3px;
  height: 3px;
  background: black;
  display: inline-block;
  top: -3px;
  margin: 0 8px 0 8px;
  border-radius: 3px;
}

.navigation-list-item a {
  font-weight: normal;
  border-bottom: 1px solid transparent;
  padding-bottom: .1rem;
  text-decoration: none;
}

.navigation-list-item a.selected {
  border-bottom: 1px solid black;
  font-weight: bolder;
}

.navigation-list-item a:hover,
.navigation-list-item a:visited {
  border-bottom: 1px solid black;
}

#backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(0, 0, 0, .25);
  opacity: 0;
}

@media screen and (max-width: 1120px) {
  .header .navigation, #backdrop {
    transition: all 300ms;
  }

  .navigation {
    display: block;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    z-index: 1;
    padding-top: 3rem;
  }

  .navigation-closer {
    display: block;
  }

  .navigation-menu-bars {
    display: block;
  }

  .navigation h2 {
    display: block;
    margin-bottom: .5rem;
  }

  .navigation.show {
    opacity: 1;
    width: 300px;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .navigation.show ul li a,
  .navigation.show h2 {
    opacity: 1;
  }

  .navigation-list-item {
    padding: 0;
  }

  .navigation-list-item:not(:last-child):after {
    display: none;
  }

  .navigation-list-item a,
  .navigation h2 {
    opacity: 0;
  }

  .navigation-list {
    align-content: space-around;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .navigation-list-item {
    width: 100%;
  }

  .navigation-list-item a {
    display: block;
    width: 100%;
    height: 100%;
    padding: .5rem .5rem .5rem 0;
  }

  #backdrop.show {
    width: 100%;
    opacity: 1;
  }
}

@media screen and (max-width: 510px) {
  .navigation.show {
    width: 100%;
  }

  #backdrop {
    display: none;
  }
}

/* Footer.  */

.footer {
  display: flex;
  flex-direction: column;
  align-items: end;
  width: 100%;
  opacity: .6;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: right;
}

.footer-content p {
  padding-top: .2rem;
  font-family: 'Source Serif 4', sans-serif;
  font-size: 11px;
}

/* Me page.  */

.me {
  width: 100% !important;
  display: flex;
}

.me .info-article {
  width: 100%;
}

.me .info-article .name {
  font-size: clamp(2.7rem, 5vw, 6vw);
  font-weight: 200;
}

.me .info-article .name span {
  font-weight: 700;
}

.me .info-article .job-title {
  font-size: clamp(1.4rem, 1.5vw, 3vw);
  font-weight: 700;
  margin-top: .5rem;
}

.me .info-article .job-title span {
  font-weight: 600;
}

.me .info-article .summary-container {
  padding-top: 2.2rem;
}

.me .info-article .summary-container * {
  font-family: 'Source Serif 4', sans-serif;
}

.me .info-article .summary-container p {
  font-size: 17px;
}

.me .info-article .summary-container p:not(:last-child) {
  padding-bottom: 2rem;
}

.me .info-article .contact-icons-container {
  display: flex;
  align-items: center;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.me .info-article .contact-icons-container > p.label {
  font-family: 'Source Serif 4', sans-serif;
  font-size: 17px;
  padding-right: .6rem;
}

.me .info-article .contact-icons a {
  display: inline-block;
  line-height: 50px !important;
  width: 40px;
  height: 40px;
  text-align: center;
  padding: .4rem;
  border: 1px solid transparent;
}

.me .info-article .contact-icons a i {
  font-size: 24px;
}

.me .info-article .contact-icons a:hover {
  border: 1px solid black;
}

.me .info-article .buttons * {
  margin-right: 1rem;
}

@media screen and (max-width: 510px) {
  .me .info-article .buttons {
    display: flex;
    flex-wrap: wrap;
  }

  .me .info-article .buttons * {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
}

.me .info-article .bottom-line {
  margin-top: 2rem;
  font-family: 'Source Serif 4', sans-serif;
}

@media screen and (max-width: 1300px) {
  .me .info-article {
    padding-right: 2rem;
  }
}

@media screen and (max-width: 1220px) {
  .me .info-article .contact-icons {
    width: 100%;
  }
}

@media screen and (max-width: 1120px) {
  .me .info-article {
    padding-right: 0;
  }

  .me .info-article .contact-icons {
    width: 60%;
  }

  .me .info-article p.my-name {
    font-size: clamp(3.5rem, 4vw, 4vw);
  }

  .me .info-article .my-summary-container {
    max-width: 38rem;
  }

  .me {
    flex-wrap: wrap;
  }

  .me .info-article {
    width: 100%;
  }
}

/* Experience page.  */

.experience-list-tile {
  display: flex;
  position: relative;
}

.experience-list-tile .line {
  position: absolute;
  top: 8px;
  background-color: black;
  width: 1px;
  height: 100%;
}

.experience-list-tile .dates-container {
  min-width: 240px;
  text-align: left;
  padding-top: 5px;
  padding-left: 2rem;
}

.experience-list-tile .dates-container .dates-text {
  font-weight: 700;
}

.experience-list-tile .dates-container .dates-text .ends {
  padding-left: 1.2rem;
}

.experience-list-tile .dates-container .dates-text .ends::before {
  content: "\E32A";
}

.experience-list-tile .spot {
  position: absolute;
  left: -7px;
  top: 8px;
  background-color: black;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.experience-list-tile .content-container {
  min-height: 200px;
}

.experience-list-tile:not(:last-child) .content-container {
  padding-bottom: 2rem;
}

.experience-list-tile .content-container .job-title {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: .2rem;
}

.experience-list-tile .content-container .company,
.experience-list-tile .content-container .company * {
  font-weight: 600 !important;
}

.experience-list-tile .content-container .company,
.experience-list-tile .content-container .location {
  padding-bottom: .3rem;
}

.experience-list-tile .content-container .location {
  font-weight: 500;
}

.experience-list-tile .content-container .location::before {
  content: "\EE3E";
}

.experience-list-tile .content-container .summary {
  margin-top: .7rem;
  font-size: 17px;
}

.experience-list-tile .content-container .summary p:not(:last-child),
.experience-list-tile .content-container .summary h1:not(:last-child),
.experience-list-tile .content-container .summary h2:not(:last-child),
.experience-list-tile .content-container .summary h3:not(:last-child),
.experience-list-tile .content-container .summary h4:not(:last-child),
.experience-list-tile .content-container .summary h5:not(:last-child),
.experience-list-tile .content-container .summary h6:not(:last-child) {
  padding-bottom: 1rem;
}

.experience-list-tile .content-container .summary ul,
.experience-list-tile .content-container .summary ol {
  padding-left: 3rem;
}

.experience-list-tile .content-container .summary * {
  font-family: 'Source Serif 4', sans-serif !important;
}

@media screen and (max-width: 1120px) {
  .experience-list-tile {
    flex-wrap: wrap;
  }

  .experience-list-tile .dates-container {
    padding-left: 30px;
    margin-bottom: .5rem;
  }

  .experience-list-tile .content-container {
    padding-left: 30px;
  }
}

/* Projects page.  */

.project-tile {
  display: flex;
}

.project-tile .content-container {
  padding-right: 2rem;
  width: 65%;
}

.project-tile:not(:last-child) .content-container {
  padding-bottom: 3rem;
}

.project-tile .content-container .name {
  width: calc(100% - 170px - .5rem);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.project-tile .content-container .homepage {
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
  overflow: hidden;
}

.project-tile .content-container .dates,
.project-tile .content-container .company,
.project-tile .content-container .language,
.project-tile .content-container .homepage {
  margin-bottom: .3rem;
}

.project-tile .content-container .summary {
  margin-top: 1rem;
  font-family: 'Source Serif 4', sans-serif;
  font-size: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tile .content-container .tags {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  column-gap: .5rem;
  row-gap: .5rem;
  flex-wrap: wrap;
}

.project-tile .content-container .tags .tag {
  background-color: black;
  color: white;
  padding: .3rem;
  font-size: 14px;
  font-weight: 600;
}

.project-tile .content-container .buttons .btn:nth-child(2) {
  margin-left: .5rem;
}

.project-tile .links-container {
  background-color: black;
  width: 1px;
  position: relative;
}

.project-tile .links-container .links {
  position: absolute;
  width: 220px;
  right: -17px;
  text-align: right;
}

.project-tile .links-container .links a {
  display: flex;
  width: 100%;
  justify-content: right;
  align-items: center;
}

.project-tile .links-container .links a i {
  background-color: black;
  color: white;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 33px;
  margin-left: .5rem;
}

.project-tile .links-container .links .github-url {
  background-color: black;
  color: white;
}

.project-tile .links-container .links .github-url i {
  background-color: white;
  color: black;
  font-size: 22px;
  border: 1px solid transparent;
}

.project-tile .links-container .links .github-url:hover i {
  border: 1px solid black;
}

.project-tile .images-container {
  padding-left: 2rem;
  padding-bottom: 3rem;
  width: 35%;
}

.project-tile .images-container img {
  width: 100%;
}

.project-tile .images-container .first-image {
  width: 100%;
  max-height: 300px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.project-tile .images-container .first-image img {
  width: 110%;
  height: auto;
  border-radius: 5px;
}

.project-tile .images-container .second-image {
  width: 100%;
  position: absolute;
  bottom: -3rem;
  right: 0;
  overflow-x: hidden;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.project-tile .images-container .second-image img {
  margin-left: 25%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 1420px) {
  .project-tile .content-container {
    width: 55%;
  }

  .project-tile .images-container {
    width: 45%;
  }
}

@media screen and (max-width: 1120px) {
  .project-tile:not(:last-child) .content-container {
    padding-bottom: 0;
  }

  .project-tile {
    flex-wrap: wrap;
    height: auto;
    position: relative;
  }

  .project-tile .content-container {
    width: 100%;
  }

  .project-tile .links-container {
    position: absolute;
    right: 0;
    height: 100%;
  }

  .project-tile .images-container {
    padding-top: 20px;
    padding-left: 0;
    padding-bottom: calc(3rem + 20px);
    width: 90%;
  }
}

@media screen and (max-width: 610px) {
  .project-tile .images-container {
    padding-right: 10px;
    width: 100%;
  }

  .project-tile .content-container .name {
    width: 100%;
  }

  .project-tile .content-container .buttons {
    display: block;
  }

  .project-tile .content-container .buttons .btn:nth-child(2) {
    margin-top: .5rem;
    margin-left: 0;
  }

  .project-tile .links-container .links {
    width: auto;
  }

  .project-tile .links-container .links,
  .project-tile .links-container .links a,
  .project-tile .links-container .links a i {
    margin: 0;
    padding: 0;
  }

  .project-tile .links-container .links a span {
    display: none;
  }
}

/* Project details page. */

.project-detail .info-article {
  padding-bottom: 1rem;
  border-bottom: 1px solid black;
  display: flex;
}

.project-detail .info-container {
  width: 65%;
}

.project-detail .info-container {
  padding-right: 1rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.project-detail .info-article .info-container .name {
  font-size: clamp(2.5rem, 2.5vw, 2.5vw);
  font-weight: 800;
  margin-bottom: .5rem;
}

.project-detail .info-article .info-container .name .api-endpoint {
  font-size: clamp(.8rem, 1vw, 1vw);
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.project-detail .info-article .info-container .name .api-endpoint:hover {
  color: black;
}

.project-detail .info-article .info-container .dates,
.project-detail .info-article .info-container .company,
.project-detail .info-article .info-container .language,
.project-detail .info-article .info-container .homepage {
  margin-bottom: .5rem;
}


.project-tile .content-container .dates::before,
.project-detail .info-article .info-container .dates::before {
  content: "\E7B4";
}

.project-tile .content-container .dates .end-date,
.project-detail .info-article .info-container .dates .end-date {
  position: relative;
  padding-left: 1.3rem;
}

.project-tile .content-container .dates .end-date::before,
.project-detail .info-article .info-container .dates .end-date::before {
  content: "\E32A";
}

.experience-list-tile .content-container .company::before,
.project-tile .content-container .company::before,
.project-detail .info-article .info-container .company::before {
  content: "\E5B0";
}

.project-detail .info-article .info-container .language::before {
  font-family: "Phosphor-Bold" !important;
  content: "\E860";
  font-weight: 600;
}

.project-tile .content-container .homepage::before,
.project-detail .info-article .info-container .homepage::before {
  content: "\E288";
}

.project-detail .info-article .info-container .homepage {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.project-detail .info-article .info-container .category {
  font-weight: bolder;
}

.project-detail .info-article .info-container .summary {
  font-family: 'Source Serif 4', sans-serif;
  font-size: 17px;
  padding-top: .6rem;
}

.project-detail .info-article .info-container .tags-and-playground-container {
  display: block;
}

.project-detail .info-article .tags-and-playground-container .tags {
  padding-top: 1rem;
  display: flex;
  column-gap: .5rem;
  row-gap: .5rem;
  flex-wrap: wrap;
}

.project-detail .info-article .tags-and-playground-container .tags .tag {
  background-color: black;
  color: white;
  font-size: 14px;
  padding: .3rem;
  font-weight: 600;
}

.project-detail .info-article .images-and-links-container {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-detail .info-article .images-container {
  width: 100%;
  height: 100%;
  max-height: 350px;
  border-radius: 5px;
  overflow: hidden;
}

.project-detail .info-article .images-container img {
  width: 100%;
}

.project-detail .info-article .images-container .first-image {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.project-detail .info-article .images-container .first-image img {
  width: 150%;
  height: auto;
  border-radius: 5px;
}

.project-detail .info-article .images-container .second-image {
  width: 100%;
  position: absolute;
  bottom: -3rem;
  right: 0;
  overflow-x: hidden;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.project-detail .info-article .images-container .second-image img {
  margin-left: 25%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-detail .images-and-links-container .links-container {
  padding-top: 1rem;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: end;
  align-items: end;
}

.project-detail .images-and-links-container .links-container .links {
  width: 220px;
}

.project-detail .images-and-links-container .links-container .links a {
  display: block;
  padding: .5rem .7rem;
  text-align: right;
}

.project-detail .images-and-links-container .links-container .links .github-url {
  background-color: black;
  color: white;
}

@media screen and (max-width: 1420px) {
  .project-detail .info-article .images-container .first-image img {
    width: 100%;
  }

  .project-detail .info-article {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .project-detail .info-article .info-container {
    width: 100%;
    padding: 0;
  }

  .project-detail .info-article .images-and-links-container {
    width: 100%;
    padding: 0;
  }

  .project-detail .info-article .images-and-links-container .images-container {
    padding-top: 1rem;
    width: 90%;
  }

  .project-detail .info-article .images-and-links-container .images-container {
    align-self: center;
  }
}

@media screen and (max-width: 720px) {
  .project-detail .info-article .images-and-links-container .images-container {
    width: 100%;
  }
}

/* Post styles.  */

.post-content-section {
  width: 100%;
  padding-top: 1.5rem;
  padding-left: 25%;
  position: relative;
}

@media screen and (max-width: 1600px) {
  .post-content-section {
    padding-right: 0;
  }
}

.post-content-section .post-header {
  display: flex;
  position: absolute;
  left: 0;
  flex-direction: column;
  flex-wrap: wrap;
}

.post-content-section .post-header p {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.post-content-section .post-header button {
  border: none;
  outline: none;
  cursor: pointer;
  background-color: transparent;
  padding-top: .2rem;
  color: black;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: .5rem;
}

.post-content-section .post-header button i,
.post-content-section .post-header p i {
  padding-right: .5rem;
}

.post-content-section .post-header p {
  padding-bottom: .5rem;
  font-weight: 700;
}

.post-content-section .post-header button:hover {
  text-decoration: underline;
}

.post-content-section .post-header span {
  padding-bottom: .5rem;
}

.post-content-section .post-header span a::before {
  content: "\E20C";
  font-weight: lighter;
}

.post-content-section .post-header .readtime::before {
  content: "\E19A";
  font-weight: lighter;
  top: .3rem;
}

.post-content-section .post-header .views::before {
  content: "\E220";
  font-weight: lighter;
  top: .3rem;
}

.post-content-section .post-header p.bar {
  margin: 0 !important;
  padding: 0 !important;
}

@media screen and (max-width: 1120px) {
  .post-content-section .post-header {
    position: initial;
    padding-bottom: .5rem;
    flex-direction: row;
  }

  .post-content-section .post-header p {
    padding-bottom: 0;
  }

  .post-content-section .post-header button {
    margin-bottom: 0;
  }

  .post-content-section .post-header p.bar::before {
    content: "|";
    padding-right: .8rem;
    padding-left: .8rem;
  }

  .post-content-section .post-header .file-span {
    padding: 0.2rem 0 0;
    margin-right: 0.8rem;
  }
}

.post-content-section .content * {
  font-family: 'Source Serif 4', sans-serif;
}

.post-content-section .content h2 {
  font-size: x-large !important;
  font-weight: 800;
}

.post-content-section .content h3 {
  font-size: larger !important;
  font-weight: 800;
}

.post-content-section .content h2 {
  line-height: 1.6rem;
}

.post-content-section .content h3 {
  line-height: 1.5rem;
}

.post-content-section .content p,
.post-content-section .content h1,
.post-content-section .content h2,
.post-content-section .content h3,
.post-content-section .content h4,
.post-content-section .content h5,
.post-content-section .content h6 {
  padding-bottom: 1.3rem;
}

.post-content-section .content li {
  margin-bottom: .3rem;
}

.post-content-section .content p,
.post-content-section .content a,
.post-content-section .content li,
.post-content-section .content p *,
.post-content-section .content li * {
  font-size: 18px;
  line-height: 22px;
}

.post-content-section .content strong,
.post-content-section .content strong b {
  font-weight: 600;
}

.post-content-section .content ul,
.post-content-section .content ol {
  padding-left: 3rem;
  padding-bottom: 1.3rem;
}

.post-content-section .content blockquote {
  padding-left: 3rem;
  padding-bottom: 1.2rem;
  margin: 0;
}

.post-content-section .content .snippet {
  width: 100%;
  margin-bottom: 1.2rem;
  background-color: #f5f5f5;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: #202224;
}

.post-content-section .content .snippet .options {
  width: 100%;
  display: flex;
  column-gap: 1rem;
  justify-content: start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding: .5rem 1.5rem;
}

.post-content-section .content .snippet .options div p {
  padding: 0 !important;
  font-weight: 600;
  font-family: monospace !important;
  font-size: 14px !important;
}

.post-content-section .content .snippet pre {
  padding: .5rem 1.5rem;

  word-wrap: break-word;
  page-break-inside: avoid;
  line-height: 1.6;
  width: 100%;
  overflow-x: auto;
}

.post-content-section .content code,
.post-content-section .content .snippet pre code {
  font-family: monospace !important;
  font-size: 14px !important;
}

.post-content-section .content code {
  background-color: #f5f5f5;
  padding: .3rem;
  font-weight: bold;
}

.post-content-section .content .snippet pre code {
  background-color: transparent;
  padding: 0;
  font-weight: normal;
}

.post-content-section .content blockquote p::before {
  content: '\201C';
}

.post-content-section .content blockquote p::after {
  content: '\201D';
}

.post-content-section .content figure {
  margin-bottom: 1.2rem;
}

.post-content-section .content .video {
  width: 100%;
}

.post-content-section .content video {
  border-radius: 5px;
  width: 100%;
  height: auto;
}

.post-content-section .content figure img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.post-content-section .content figcaption {
  font: italic smaller sans-serif;
  text-align: left;
  padding: 0;
  position: relative;
}

.post-content-section .content figcaption .caption {
  padding-right: 16px;
  width: 33.5%;
  position: absolute;
  left: -33.5%;
  bottom: 0;
}

.post-content-section .content figcaption .caption p {
  font-size: 16px !important;
}

.post-content-section .content figcaption p {
  padding: 0 !important;
}

@media screen and (max-width: 1120px) {
  .post-content-section .content figure {
    margin-bottom: 0;
  }

  .post-content-section .content figure img {
    width: 100%;
    margin: auto;
  }

  .post-content-section {
    padding-left: 0;
  }

  .post-content-section .content figcaption .caption {
    position: initial;
    width: 100%;
    text-align: center;
    padding: 1rem 0 1rem;
  }
}

/* Archive page.  */

.archive-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.archive-content-main {
  width: calc(100% - 280px - 2rem);
}

.archive-content-main .topic-and-search .selected-tag-div {
  padding-top: 1rem;
  padding-bottom: .1rem;
  border-bottom: 1px solid black;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-content-main .topic-and-search .selected-tag-div span:first-child::before {
  content: "tag";
}

.archive-content-main .topic-and-search .selected-tag-div .selected-tag {
  font-family: 'Source Serif 4', sans-serif;
  font-size: 20px;
  font-style: italic;
}

.archive-content-main .topic-and-search .selected-tag-div .selected-tag::before {
  font-size: 20px;
  top: .1rem !important;
  left: -1rem;
}

.archive-content-main .topic-and-search .selected-tag-div.hide {
  display: none;
}

.archive-content-main .topic-and-search .topic-and-date.hide {
  display: none;
}

.archive-content-main .topic-and-search .selected-topic:after {
  padding-right: .9rem;
  content: "—";
  position: relative;
  display: inline-block;
  left: .5rem;
  font-weight: normal;
}

.archive-content-main .topic-and-search h3 {
  margin-bottom: 1rem;
}

.archive-content-main .topic-and-search label {
  display: flex;
  align-items: center;
}

.archive-content-main .topic-and-search .searchbar {
  outline: none;
  background: transparent;
  border: 1px solid black;
  padding: .2rem .2rem;
}

.archive-content-main .topic-and-search .searchbar::-webkit-search-decoration,
.archive-content-main .topic-and-search .searchbar::-webkit-search-cancel-button,
.archive-content-main .topic-and-search .searchbar::-webkit-search-results-button,
.archive-content-main .topic-and-search .searchbar::-webkit-search-results-decoration {
  display: none;
}

.article-results {
  padding-top: 1rem;
}

.articles-list .article-tile {
  width: 100%;
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.articles-list .article-tile:not(:last-child) {
  border-bottom: 1px solid black;
  padding-bottom: 1rem;
}

.articles-list .article-tile:not(:first-child) {
  padding-top: 1rem;
}

.articles-list .article-tile .summary > p {
  font-size: 16px;
  line-height: 20px;
  font-family: 'Source Serif 4', sans-serif;
  width: 90%;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.articles-list .article-tile .article-cover {
  align-self: flex-start;
}

.articles-list .article-tile .article-cover .image-container {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 5px;
}

.articles-list .article-tile .article-cover .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.articles-list .article-tile a.title {
  padding-right: 1rem;
  font-size: 18px;
  display: inline-block;
  font-weight: 800;
}

.articles-list .article-tile .options {
  padding-top: .3rem;
  padding-bottom: .5rem;
}

.articles-list .article-tile .options * {
  font-size: 12px;
  font-weight: 600;
}

.articles-list .article-tile .options > *:not(:last-child)::after {
  padding-left: .3rem;
  content: "|";
}

.archive-content-aside {
  width: 280px;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.archive-content-aside .tags header {
  margin-bottom: .5rem;
}

.archive-content-aside .tags .tags-list {
  display: flex;
  column-gap: .6rem;
  row-gap: .2rem;
  flex-wrap: wrap;
}

.archive-content-aside .tags .tags-list .tag::before {
  top: 0 !important;
  font-size: 12px;
}

.archive-content-aside .tags .tags-list .tag a {
  margin-left: 3px;
  font-size: 11px;
  font-weight: normal;
  font-family: 'Source Serif 4', sans-serif;
}

.archive-content-aside .tags .tags-list .tag.selected a {
  text-decoration: underline;
}

@media screen and (max-width: 1460px) {
  .articles-list .article-tile .article-cover .image-container {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 1360px) {
  .articles-list {
    width: 100%;
  }

  .articles-list .article-tile .article-cover .image-container {
    width: 100px;
    height: 100px;
  }

  .archive-content-main {
    margin-right: 0;
    width: 100%;
  }

  .archive-content-aside {
    width: 100%;
    border-top: 7px solid black;
    border-bottom: 7px solid black;
    padding-top: 1rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 0;
    column-gap: 1rem;
    justify-content: start;
  }

  .archive-content-aside .topics {
    flex: 0 0 25%;
  }

  .archive-content-aside .publications {
    flex: 0 0 25%;
  }

  .archive-content-aside .tags {
    flex: 1;
  }
}

@media screen and (max-width: 750px) {
  .articles-list .article-tile .article-cover .image-container {
    width: 100px;
    height: 100px;
  }

  .archive-content-aside {
    column-gap: 0;
  }

  .archive-content-aside .topics {
    width: 50%;
    flex: 1;
  }

  .archive-content-aside .publications {
    width: 50%;
    flex: 1;
  }

  .archive-content-aside .tags {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .archive-content-aside {
    flex-direction: column;
    row-gap: 1rem;
  }

  .archive-content-aside .tags {
    flex: 1;
  }
}

.archive-content-aside header {
  margin-bottom: .5rem;
}

.archive-content-aside li {
  list-style: none;
  padding-bottom: .2rem;
}

.archive-content-aside li a {
  font-weight: normal;
}

.archive-content-aside li.selected a {
  text-decoration: underline;
}

/* Article page.  */

.article-post .info-section {
  padding-bottom: 1rem;
  border-bottom: 7px solid black;
  display: flex;
}

.article-post .info-section .title-and-summary {
  display: flex;
  flex-direction: column;
}

.article-post .info-section header {
  padding-right: 1rem;
}

.article-post .info-section header .title {
  font-size: clamp(2.1rem, 4vw, 2.45vw);
  font-weight: 900;
  padding-top: 1rem;
  line-height: calc(clamp(2.1rem, 4vw, 2.45vw) - 0rem);
}

.article-post .info-section .metadata {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding-top: 1rem;
}

.article-post .info-section .metadata .summary {
  font-size: 19px;
  line-height: 23px;
  font-family: 'Source Serif 4', sans-serif;
  padding-right: 1rem;
}

.article-post .info-section .metadata .options {
  padding-top: 1rem;
}

.article-post .info-section .article-cover {
  width: 210px;
  align-self: flex-start;
}

.article-post .info-section .article-cover figure .image-container {
  width: 210px;
  height: 210px;
  overflow: hidden;
  border-radius: 5px;
}

.article-post .info-section .article-cover figure figcaption {
  padding-top: .4rem;
  text-align: right;
}

.article-post .info-section .article-cover figure .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.article-post .info-section header .top-links {
  margin-top: 1rem;
}

.article-post .info-section header .top-links span:not(:last-child):after,
.article-post .info-section .metadata span:not(:last-child):after {
  content: "|";
  margin-right: .2rem;
  margin-left: .5rem;
  font-weight: normal;
}

.article-post .post-content-section .content.add-border {
  border-bottom: 1px solid black;
}

.article-post .post-content-section .tags-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.article-post .post-content-section .tags-container header {
  margin-bottom: .5rem;
}

.article-post .post-content-section .tags-list {
  display: flex;
  column-gap: .6rem;
  flex-wrap: wrap;
}

.article-post .post-content-section .tags-list .tag::before {
  top: 1px !important;
  font-size: 13px;
}

.article-post .post-content-section .tags-list .tag a {
  margin-left: 6px;
  font-weight: normal;
  font-family: 'Source Serif 4', sans-serif;
  font-size: 13px;
}

@media screen and (max-width: 1370px) {
  .article-post .info-section header .title {
    padding-right: 1rem;
  }

  .article-post .info-section {
    padding-right: 0;
    justify-content: space-around;
  }

  .article-post .info-section .metadata .summary {
    width: 100%;
    padding-right: 1rem;
  }

  .article-post .info-section .article-cover figure {
    width: 100%;
  }
}

@media screen and (max-width: 765px) {
  .article-post .info-section {
    padding-bottom: .4rem;
  }

  .article-post .info-section header {
    padding-right: 0;
  }

  .article-post .info-section .metadata,
  .article-post .info-section .metadata .options {
    padding-top: 0;
  }

  .article-post .info-section {
    flex-wrap: wrap;
  }

  .article-post .info-section .article-cover {
    padding-top: 1rem;
  }

  .article-post .info-section header .title,
  .article-post .info-section .metadata .summary {
    padding-right: 0;
  }

  .article-post .info-section .metadata .summary {
    margin-top: .8rem;
    margin-bottom: .8rem;
    padding-right: 0;
  }

  .article-post .info-section .article-cover,
  .article-post .info-section .article-cover figure .image-container {
    width: 100%;
    height: auto;
  }
}