/* Global layout and monochrome theme */
body {
  background: white url("background.jpg") repeat;
  color: #111111;
  font-family: "Liberation Mono", "DejaVu Sans Mono", monospace;
  max-width: 80ch;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.5;
}

/* Default links (navigation, footer, general text) */
a {
  color: #111111;
  text-decoration: none;
}

a:visited {
  color: #555555;
}

a:hover {
  text-decoration: underline;
}

/* Article links (index page) */
.posts a {
  color: #111111;
}

/* Headings */
h1, h2 {
  color: #000000;
}

h2 {
  border-bottom: 1px solid #777777;
  font-size: 1.1rem;
  margin-top: 2rem;
  padding-bottom: 0.25rem;
}

pre {
  overflow-x: auto;
}

nav {
  margin-bottom: 2rem;
}

nav a:visited {
  color: #111111;
}

.posts ul {
  list-style: none;
  padding-left: 0;
}

.posts li {
  border-bottom: 1px dotted #b8b8b8;
  padding: 0.25rem 0;
}

.gallery {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  border: 1px solid #777777;
  display: block;
  height: auto;
  max-width: 100%;
}

.gallery figcaption {
  color: #555555;
  margin-top: 0.4rem;
}

/* Footer / secondary text */
small {
  color: #555555;
  display: block;
  margin-top: 3rem;
}
