/* Public devlog pages: post list, filters and long-form reading, in the portfolio's world. */

.page-head .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.chips .chip {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  padding: 0.3rem 0.65rem;
}
.chips .chip:hover { color: var(--ink); border-color: var(--ink); }
.chips .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.post-list { list-style: none; border-top: 1px solid var(--rule); }
.post-row a {
  display: block;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.post-row h2 {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.post-row .meta { margin: 0.4rem 0 0.6rem; }
.post-row p:last-child { color: var(--ink-2); max-width: 65ch; }
.post-row a:hover h2 { text-decoration: underline; text-underline-offset: 0.2em; }
.post-list .empty { padding-block: 2rem; color: var(--ink-2); }

.post .page-head .meta a { color: var(--ink-2); }
.post .page-head .display { font-size: clamp(2.25rem, 6vw, 4rem); margin-top: 1rem; }

.prose {
  max-width: 68ch;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5 {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 2em;
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose code {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 0.875em;
  background: #141414;
  padding: 0.1em 0.35em;
}
.prose pre {
  overflow-x: auto;
  background: #0d0d0d;
  border: 1px solid var(--rule);
  padding: 1rem 1.25rem;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 1px solid var(--ink-3); padding-left: 1.25rem; color: var(--ink-2); }
.prose a { text-decoration-color: var(--ink-3); }
.prose a:hover { text-decoration-color: var(--ink); }
