/* Keller's reading metrics with the site's warm dark palette. */
.view-blog {
  --font: var(--sans);
  font: 400 18px/1.6 var(--font);
}
.reading-article .ambient-canvas { display: none; }
.view-blog main {
  --text: #dadadb;
  --muted: #9b9c9d;
  --prose: #c4c4c5;
  width: min(100%, 720px);
  margin: calc(var(--gap) + 24px) auto 96px;
  color: var(--text);
}
.view-blog .page { max-width: 720px; text-shadow: none; }

.notebook-title, .blog-post-header h1 { font: 700 40px/1.2 var(--font); letter-spacing: normal; }
.notebook-heading { margin-bottom: 28px; }
.notebook-title { margin: 0 0 12px; }
.notebook-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.notebook-page { width: 100%; margin-inline: auto; }
.notebook-filters { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; }
.notebook-filters .quiet-button { padding: 6px 0; border: 0; border-radius: 0; font-size: 14px; min-height: 36px; }
.notebook-filters .quiet-button[aria-pressed='true'] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; background: none; }
.notebook-filters span { display: inline-block; opacity: .6; margin-left: 3px; font-size: 12px; }
.notebook-page .entry-list { display: grid; gap: var(--gap); }
.notebook-entry { margin: 0; }
.notebook-entry > a { display: block; padding: var(--gap); border: 1px solid #a59b9e26; border-radius: 8px; background: #2b2628; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.notebook-entry > a:hover { border-color: #cb888366; background: #2f292b; text-decoration: none; }
.notebook-entry > a:focus-visible { border-color: var(--accent); outline-offset: 5px; }
.notebook-entry h2 { margin: 0; font: 700 24px/1.3 var(--font); }
.notebook-summary { margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.notebook-meta { display: flex; flex-wrap: wrap; gap: 0 7px; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.notebook-empty { margin: 0; color: var(--muted); font-size: 16px; }
.notebook-stage-note { border-left: 2px solid #a17370; padding-left: 16px; color: var(--muted); font-size: 13px; }
.note-changes { margin-top: 40px; padding-top: 20px; border-top: 1px solid #a59b9e40; font-size: 13px; }

.notebook-article { width: 100%; margin: 0; }
.blog-post-header { margin: 0 0 20px; }
.blog-post-header h1 { margin: 0 0 2px; overflow-wrap: break-word; }
.article-meta { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.view-blog .article-body { color: var(--prose); font-size: 18px; line-height: 1.6; }
.view-blog .article-body > :is(p, ul, ol, pre, blockquote, details) { margin: 0 0 20px; }
.view-blog .article-body :is(p, ul, ol) { color: var(--prose); }
.view-blog .article-body :is(ul, ol) { padding-left: 20px; }
.view-blog .article-body li { padding-left: 0; margin: 5px 0 0; }
.view-blog .article-body li p { margin-bottom: 0; }
.view-blog .article-body h2 { margin: 32px 0 24px; font: 700 32px/1.2 var(--font); letter-spacing: normal; }
.view-blog .article-body > :is(h3, h4, h5, h6) { margin: 24px 0 16px; color: var(--text); font-weight: 700; line-height: 1.2; }
.view-blog .article-body > h3 { font-size: 24px; }
.view-blog .article-body > h4 { font-size: 16px; }
.view-blog .article-body > h5 { font-size: 14px; }
.view-blog .article-body > h6 { font-size: 12px; }
.view-blog .article-body strong { color: inherit; font-weight: 700; }
.view-blog .article-body a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; }
.view-blog .article-body a:hover { color: var(--accent); text-decoration-color: currentColor; }
.view-blog .article-body p { overflow-wrap: anywhere; }
.view-blog .article-body .heading-anchor { display: inline; margin-left: 8px; padding: 0 2px; color: var(--muted); opacity: 0; font-size: .65em; font-weight: 400; text-decoration: none; }
.view-blog .article-body h2:hover .heading-anchor, .view-blog .heading-anchor:focus-visible { opacity: 1; }
.view-blog .article-body pre { max-width: 100%; overflow: auto; }
.view-blog .article-body code { margin: auto 4px; padding: 4px 6px; font: .78em/1.5 'JetBrains Mono', monospace; background: #2b2628; border-radius: 2px; }
.view-blog .article-body pre code { display: block; margin: auto 0; padding: 10px; border-radius: 8px; background: #1c181a; overflow-x: auto; word-break: break-all; }
.view-blog .article-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--muted); }
.view-blog .article-body > :is(.research-plot, .research-diagram, .article-figure) { margin: 32px auto 36px; max-width: 100%; }
.view-blog :is(.research-plot, .research-diagram) { --font: 'JetBrains Mono', monospace; font-family: var(--font); }
.view-blog .plot-header h3 { margin: 0; font: 500 15px/1.3 var(--font); }
.blog-post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid #a59b9e30; }
.blog-post-footer .back-link { margin: 0; font-size: 15px; }

@media (pointer: coarse) { .notebook-filters .quiet-button { min-height: 44px; } }
@media (prefers-contrast: more) {
  .view-blog main { --muted: #c6bec0; --prose: #e7e1df; }
  .notebook-entry > a { border-color: var(--muted); }
  .view-blog .article-body a { text-decoration-color: currentColor; }
}
@media (forced-colors: active) { .notebook-entry > a { border-color: CanvasText; } }
@media print {
  .view-blog main { --text: #161616; --muted: #444; --prose: #161616; }
  .view-blog { padding: 0; font-size: 10pt; }
  .view-blog .site-shell, .view-blog main { width: 100%; margin: 0; }
  .blog-post-footer, .view-blog .heading-anchor { display: none; }
  .view-blog .article-body { font-size: 10pt; }
  .notebook-entry > a, .view-blog .article-body pre code { background: #fff; border-color: #bbb; }
}
