html {
  color-scheme: dark;
  background: #191919;
}

body {
  max-width: 960px;
  margin: 8px;
  background: #191919;
  color: #eee;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
}

a:link {
  color: #aaaaff;
}

a:visited {
  color: #d6aaff;
}

a:hover,
a:focus {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -10000px;
}

.skip-link:focus {
  position: static;
}

.site-header {
  margin-bottom: 1.5em;
}

.site-title {
  margin-right: 1.5em;
  font-weight: bold;
}

.site-email {
  margin-left: 1em;
}

.site-linkedin {
  margin-left: 1em;
}

.site-nav {
  display: inline;
}

.site-nav a + a {
  margin-left: 1em;
}

.post-list {
  border-collapse: collapse;
}

.post-list td {
  padding: 0 1em 0.7em 0;
  vertical-align: top;
}

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

.article-date {
  font-style: italic;
}

.pagination {
  margin-top: 1.5em;
}

.pagination a + a {
  margin-left: 1em;
}

.article,
.prose {
  max-width: 48em;
}

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

.prose img {
  filter: grayscale(1);
}

pre {
  overflow-x: auto;
  padding: 0.75em;
  border: 1px solid #eee;
}

code,
pre {
  font-family: monospace;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75em;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 600px) {
  .site-nav {
    display: block;
    margin-top: 0.5em;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
