/* Blue Note site-specific rules that do not belong to the theme. */

/* This cover's figure is low in the frame. Preserve her in wide, shallow windows;
   the portrait crop and ordinary desktop composition keep their existing focus. */
@media (min-aspect-ratio: 2/1) {
  .letterbox-frame {
    --lb-cover-position: 50% 70%;
  }
}

/* About's site resources rest at the page bottom, in normal document flow. */
.about-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
}

.about-page .page-body {
  display: flex;
  flex: 1;
  padding-bottom: 2rem;
}

.about-page .content-column {
  display: flex;
  flex-direction: column;
}

.about-page .about-content {
  margin-top: auto;
  padding-top: 4rem;
}

.about-resources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-page .about-resources__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--link-hover);
  font-family: var(--font-prose);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.055em;
}

.about-resources__icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}

.about-page .about-resources__link:hover,
.about-page .about-resources__link:focus-visible {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-page .about-resources__link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* Long manuscripts retain their own chapters inside the encrypted reading area. */
.post-page .markdown-body .manuscript-toc {
  margin: 0 0 2.5rem;
  color: var(--prose);
  font-family: var(--font-prose);
}

.post-page .markdown-body .manuscript-toc > summary {
  width: fit-content;
  padding: 0.5rem 0;
  color: var(--link-hover);
  cursor: pointer;
}

.post-page .markdown-body .manuscript-toc > summary:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.post-page .markdown-body .manuscript-toc ol {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.post-page .markdown-body .manuscript-toc li {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.post-page .markdown-body .manuscript-chapter {
  margin-top: 3.5rem;
}

.post-page .markdown-body .manuscript-chapter > h2 {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  font-size: 1.375rem;
  line-height: 1.5;
  scroll-margin-top: 2rem;
}

.post-page .markdown-body .manuscript-chapter > h3 {
  font-size: 1.125rem;
  line-height: 1.65;
}

.post-page .markdown-body .manuscript-chapter > h4 {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.post-page .markdown-body .manuscript-verse {
  white-space: pre-line;
  line-height: 1.95;
}

.post-page .markdown-body .manuscript-note,
.post-page .markdown-body .manuscript-date {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.post-page .markdown-body .manuscript-date {
  text-align: right;
}

.post-page .markdown-body .manuscript-figure {
  margin: 2rem 0;
}

.post-page .markdown-body .manuscript-figure img {
  display: block;
  width: auto;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}
