.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: calc(var(--space) * 3);
  margin-top: calc(var(--space) * 10);
  color: rgb(var(--muted));
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.article-footer em {
  color: rgb(var(--accent));
}

.article-content {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.8;
  text-align: justify;
  overflow-wrap: break-word;
  line-break: strict;
  word-break: normal;
  text-autospace: normal;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: rgb(var(--ink) / 85%);
  letter-spacing: 0.05em;
  margin-top: 1.5em;
  margin-bottom: 1.25em;
  font-weight: 700;
  line-height: 1.5;
}

.article-content h1 {
  font-size: 1.6em;
  font-weight: 900;
}

.article-content h2 {
  font-size: 1.45em;
}

.article-content h3 {
  font-size: 1.3em;
}

.article-content h4 {
  font-size: 1.2em;
}

.article-content h5 {
  font-size: 1.1em;
}

.article-content h6 {
  font-size: 1.05em;
}

.article-content :is(ul, ol) {
  padding-left: 1.5em;
}

.article-content li {
  margin-block: 0.25em;
}

.article-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.article-content :is(td, th) {
  padding: 8px 12px;
  border: 1px solid rgb(var(--line));
  text-align: left;
}

.article-content th {
  background: rgb(var(--accent) / 6%);
}

.article-content :not(pre) > code {
  padding: 0.15em 0.35em;
  border-radius: 3px;
  background: rgb(var(--code-bg));
  font-size: 0.88em;
}

.article-content > :first-child {
  margin-top: 0;
}

hr {
  margin: 1.5em 0.75em;
  border: 0;
  border-top: 1px solid rgb(var(--line));
}

.article-content a,
.content-warning a {
  color: rgb(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img,
.article-content video {
  max-width: 85%;
  height: auto;
  margin: 1.5em auto;
}

.article-content figure {
  margin: 1.5em auto;
  text-align: center;
}

.article-content figure img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgb(var(--shadow)/30%);
}

.article-content figcaption {
  margin-top: 12px;
  color: rgb(var(--muted));
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.article-content audio {
  max-width: 100%;
}

.article-content pre,
.article-content .highlight {
  margin: 20px 0;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: 5px;
  background: rgb(var(--code-bg));
  font-family: var(--mono-font), monospace;
  font-size: 14px;
  line-height: 1.6;
  text-indent: 0;
}

.article-content .highlight pre {
  margin: 0;
  padding: 0;
}

.article-content .highlight .gutter {
  padding-right: 20px;
  color: rgb(var(--muted));
}

.article-content blockquote {
  border-radius: 5px;
  margin: auto;
  padding: 1em 1.5em;
  padding-block: var(--space);
  background: rgb(var(--accent) / 10%);
  color: rgb(var(--ink)/85%);
  text-indent: 0;
}

.article-content .poem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(100%) minmax(0, 1fr);
  width: 85%;
  max-width: 100%;
  margin: 1.5em auto;
  padding: 1.5em clamp(1em, 3vw, 2em);
  border-radius: 5px;
  background: rgb(var(--accent) / 10%);
  line-height: 1.95;
  text-align: left;
  text-indent: 0;
}

.article-content .poem > * {
  grid-column: 2;
  min-width: 0;
}

.article-content .poem p {
  margin: 0 0 1.15em;
  text-indent: 0;
}

.article-content .poem > :last-child,
.article-content .poem > :last-child p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .article-content > .reveal {
    opacity: 0;
    transition: opacity var(--motion-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js .article-content > .reveal.is-visible {
    opacity: 1;
  }

  .js .article-content > .reveal.is-done {
    transition-delay: 0ms;
  }
}
