:root {
  color-scheme: light;
  --ink: #28332d;
  --muted: #647167;
  --green: #315f46;
  --line: #dce3da;
  --paper: #fbfcf8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.75 Georgia,
    "Times New Roman",
    serif;
}
a {
  color: var(--green);
  text-underline-offset: 0.18em;
}
a:hover {
  color: #183a27;
}
a:focus-visible {
  outline: 3px solid #8ba571;
  outline-offset: 4px;
}
.site-header,
main,
.site-footer {
  width: min(100% - 3rem, 760px);
  margin-inline: auto;
}
.site-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.site-title {
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: -0.04em;
}
nav,
.byline,
.site-footer,
.post-list time,
.media-unavailable {
  font-family: system-ui, sans-serif;
}
nav {
  font-size: 0.9rem;
}
.site-header nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.7rem;
}
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: normal;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin: 0 0 0.7rem;
}
h1 a {
  text-decoration: none;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
}
.byline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0;
}
.post-header {
  margin-bottom: 2rem;
}
article {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.post-body {
  overflow-wrap: anywhere;
}
.post-body p {
  margin: 1.3em 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
}
.post-body figure {
  max-width: 100%;
  margin: 1.8rem auto;
}
.post-body figure img {
  display: block;
  margin: auto;
}
.post-body figcaption {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}
.post-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border: 0;
  margin: 1.5rem 0;
}
.post-body video {
  max-width: 100%;
  height: auto;
}
.post-body .aligncenter {
  display: block;
  margin-inline: auto;
}
.post-body .alignleft {
  float: left;
  margin: 0 1.3rem 1rem 0;
}
.post-body .alignright {
  float: right;
  margin: 0 0 1rem 1.3rem;
}
.post-body:after {
  content: "";
  display: block;
  clear: both;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
}
.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--line);
}
.pagination,
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.post-navigation a {
  max-width: 46%;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.post-list {
  padding: 0;
  list-style: none;
}
.post-list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list time {
  font-size: 0.8rem;
  color: var(--muted);
}
.archive-year {
  margin: 3rem 0;
}
.media-unavailable {
  display: block;
  padding: 1rem;
  background: #eef1ea;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  padding: 0.5rem;
}
@media (max-width: 540px) {
  body {
    font-size: 17px;
  }
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 2rem);
  }
  .site-header {
    padding-top: 2rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .post-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .post-body .alignleft,
  .post-body .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
  }
  .post-navigation a {
    max-width: 100%;
  }
}
