@font-face {
  font-family: "DejaVu Sans";
  src: url("/fonts/DejaVuSans.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("/fonts/DejaVuSans-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("/fonts/DejaVuSans-Oblique.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("/fonts/DejaVuSans-BoldOblique.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/fonts/DejaVuSansMono.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/fonts/DejaVuSansMono-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/fonts/DejaVuSansMono-Oblique.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/fonts/DejaVuSansMono-BoldOblique.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "DejaVu Sans", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  background: rgb(28, 31, 37);
  color: rgb(209, 213, 216);
}

.wrapper {
  max-width: 768px;
  margin: 0;
  padding: 1rem;
}

/* Header */
header {
  margin-bottom: 1rem;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-title {
  color: rgb(209, 213, 216) !important;

  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.plain-link {
  color: inherit;
  text-decoration: none;
}

a {
  color: rgb(56, 118, 179);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header-links {
  font-weight: bold;

  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

/* Section headings */
.big-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  /* border-bottom: 1px solid black; */
}

/* Post listings */
.post-list {
  margin: 0;
}

.post-listing-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.post-date {
  white-space: nowrap;
}

/* Individual post */
.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 1.6rem;
  margin: 0 0 0.25rem 0;
}

.blog-meta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-tags a {
  margin-right: 0.5rem;
}

/* About page */
.about-li-padding {
  margin-right: 0.4rem;
}

/* Utilities */
.no-bullets {
  list-style: none;
  padding-left: 0;
}

/* Prose */
blockquote {
  font-style: italic;
}

figcaption {
  text-align: center;
  font-size: 14px;
}

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

figure img {
  width: 100%;
  max-width: 500px;
  min-width: 300px;
  height: auto;
}

figure img.portrait {
  width: 50%;
  max-width: 200px !important;
}

/* Code blocks (shiki) */
pre.shiki {
  padding: 0.5rem;
  /* border: 1pt solid black; */
  line-height: 1;
  overflow-x: auto;
}

code {
  font-family: "DejaVu Sans Mono", monospace;
  font-size: 14px;
}

/* Inline code */
:not(pre) > code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

@media (min-width: 768px) {
  /* main { */
  /* 	max-width: 768px; */
  /* 	margin: 0 1.5rem; */
  /* } */

  .post-listing-item {
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .post-listing-item {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* .title-link { */
  /* 	letter-spacing: 0 !important; */
  /* } */
}
