@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  background: #fdfaf3;
}

body {
  max-width: 55ch;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Libre Caslon Text', serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  object-fit: contain;
}

figure {
  margin: 1.5rem auto;
}

figure img {
  margin: 0 auto;
}

.img-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.img-row img {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-width: calc(50% - 0.375rem);
}


h1 {
  line-height: 1.2;
}

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

.title-link:hover {
  text-decoration: none;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-date {
  margin-bottom: 1.5rem;
  font-size: 0.9em;
  opacity: 0.7;
}

.post-author {
  font-size: 0.95em;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.post-list .post-author {
  font-size: 0.9em;
  margin: 0;
}

.center {
  text-align: center;
}

figcaption {
  text-align: center;
  font-size: 0.85em;
  margin-top: 0.5rem;
}

.banner {
  margin-bottom: 2rem;
  font-size: 0.95em;
}

.banner a {
  text-decoration: none;
}

.banner a:hover {
  text-decoration: underline;
}

.banner .sep {
  opacity: 0.3;
  margin: 0 0.5em;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.post-list .post-date {
  margin-bottom: 0;
  min-width: 7em;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.85em;
  opacity: 0.7;
}

@media (max-width: 600px) {
  body {
    max-width: 100%;
    padding: 0.6rem;
    font-size: 16px;
  }

  .img-row {
    flex-direction: column;
  }

  .img-row img {
    max-width: 100%;
  }

  .post-list li {
    display: block;
    margin-bottom: 1rem;
  }

  .post-list .post-date {
    text-align: left;
    min-width: 0;
    font-size: 0.75em;
    opacity: 0.6;
    margin-bottom: 0.15rem;
  }

  h1 {
    font-size: 1.3em;
  }

  .banner {
    font-size: 0.85em;
  }
}
