body {
  color: rgb(18, 37, 59); /* blue-900 */
  background: rgb(230, 228, 217); /* ui */
  font-family: Junicode, Garamond, Georgia, 'Times New Roman', serif;
  font-size: 16pt;
  overflow-x: hidden;
}

body a:link, body a:visited {
  color: rgb(36, 131, 123); /* cy */
}

body a:active {
  color: rgb(58, 169, 159);
}

body a:hover {
  color: rgb(208, 162, 21);
}

.full-width {
  width: 100vw;
  margin: 0;
}

.body-width {
  width: 960px;
  margin: 0 auto;
}

:is(h1,h2,h3) {
  font-family: 'Montagu Slab', Clarendon, Georgia, 'Arial Black', serif;
  font-weight: 900;
  letter-spacing: -0.04ex;
  font-optical-sizing: none;
}

#masthead {
  height: 50px;
  background: url("/images/blog-bg-mini.png") #12122c repeat-x;
  background-position: center 20%;
}

#site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8em 0;
  font-size: 14pt;
}

#avatar {
  width: 216px;
  height: auto;
}

header h1 {
  font-size: 24pt;
}

header h1 a:link, header h1 a:visited {
  color: rgb(18, 37, 59); /* blue-900 */
  text-decoration: none;
}

header h1 a:hover {
  color: rgb(18, 37, 59); /* blue-900 */
  text-decoration: wavy underline;
}

nav {
  text-transform: lowercase;
  font-variant: small-caps;
}

nav ul {
  display: flex;
  gap: 1ex;
}

nav ul li:after {
  content: "\2000\2E33\2009";
}

nav ul li:last-of-type:after {
  content: none;
}

main {
  padding: 1em 0;
}

main.posts-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1em;
}

.post-preview {
  display: grid;
  grid-template-rows: 1fr 2fr 1fr;
  grid-template-columns: 18% 82%;
}

.post-preview .meta {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
}

.post-preview .meta h3 {
  font-size: 18pt;
  color: rgb(188, 82, 21);
}

.post-preview .meta a:link {
  font-size: 12pt;
}

.post-preview .post-featured-image {
  grid-column: 1;
  grid-row: 1/4;
  width: 128px;
}

.post-preview .preview-text {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 100%;
}

.post-preview .category-list {
  font-size: 12pt;
  text-align: right;
  border-bottom: 1px solid rgb(206, 205, 195);
  grid-column: 2;
  grid-row: 3/4;
}

.post-single article, .page-single article {
  display: grid;
  grid-template-columns: 240px auto;
}

.post-single article figure.post-featured-image {
  grid-column: 1/3;
  background-color: rgb(188, 82, 21);
  margin-bottom: 2em;
  height: 216px;
}

.post-single article img.post-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: grayscale();
}

.post-single article header, .page-single article header {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  height: fit-content;
  border-bottom: 16px solid #12253b;
  margin-right: 1em;
  padding-bottom: 1ex;
}

.post-single article header h3, .page-single article header h3 {
  color: rgb(188, 82, 21);
}

.post-single article header h3, .post-single article time, .page-single article header h3, .page-single article time {
  margin: 0 0 1ex 0;
}

.post-single article header ul {
  list-style: "\261E" inside;
}

.post-single article header ul li {
  margin-left: .5ex;
  padding: .5ex 0;
}

.post-meta, .page-meta {
  font-size: 12pt;
}

#post-body:after {
  content: "\2217\2217\2217";
  letter-spacing: 2ex;
  display: block;
  width: 100%;
  text-align: center;
  color: rgb(183, 181, 172);
}

.body-copy p {
  font-size: 16pt;
  line-height: 1.2;
  margin-bottom: 1em;
  text-align: justify;
}

.body-copy h3 {
  margin: 1ex 0 2ex 0;
}

.body-copy ul {
  list-style: "\2BD6" outside;
  margin-left: 1em;
}

.body-copy ul li {
  padding: 1ex 0 1ex 1.5ex;
  line-height: 1.2;
}

.body-copy details.body-image {
  margin: 0 auto 1em auto;
  width: fit-content;
  cursor: pointer;

  &[open] > figure {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(206, 205, 195, 0.5);
    pointer-events: none;

    & > img {
      max-height: 80vh;
      cursor: initial;
      pointer-events: initial;
    }
  }
}

.body-copy details.body-image img {
  max-height: 240px;
  width: auto;
}

.body-copy details.body-image .body-image-caption {
  text-align: end;
  padding: 2ex 0;
  font-size: smaller;
  font-style: italic;
}

.body-copy details.body-image summary {
  display: block;
}

.body-copy details.body-image[open] summary:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
}

.body-copy .float-right {
  float: right;
  margin-left: 3ex;
}

.body-copy a.hat-tip:before {
  content: "\21AC\2009"
}

.body-copy blockquote {
  margin: 0 0 2em 1em;
  padding-top: 1em;
  font-size: 24pt;
  font-weight: 700;
  font-style: italic;
  text-wrap: pretty;
  text-indent: -.7ex;
}

.body-copy blockquote.cited {
  margin-bottom: .1em;
}

.body-copy blockquote:before, .body-copy q:before {
  content: "\201C";
}

.body-copy blockquote:after, .body-copy q:after {
  content: "\201D";
}

.body-copy cite {
  display: block;
  font-size: 12pt;
  margin: .5em 4em 2em 0;
  text-align: right;
}

.body-copy cite:before {
  content: "\2E3A";
}

pre {
  font-family: 'Fantasque Sans Mono', 'Fira Code', 'Cascadia Code', Hack, Courier New, monospace;
}

footer {
  font-size: 10pt;
  padding: .5em;
  border-top: 1px solid rgb(206, 205, 195);
}
