/* pages/journal.css — journal index (home template), single posts, archives, search. Composition only; components live in the theme files.
   Loaded by inc/enqueue.php when is_home() / is_singular('post') / is_archive() / is_search(). Mobile-first; tokens only. */

/* ---------- single post hero: the editorial column. Title, meta and image centre on the same axis as the prose below. ---------- */
.ov-hero--single .ov-inner > .wp-block-post-title { max-width: 14em; margin-inline: auto; text-align: center; }
.ov-hero--single .ov-single__meta { justify-content: center; }
.ov-hero--single .ov-single__img { max-width: 864px; margin-inline: auto; margin-block-start: var(--space-6); }  /* the template serves the 1024px "large" size; 864x576 is the 16:9 building photo cropped to 3:2 at exactly 1x, so nothing is ever upscaled (measured) */
.ov-hero--single .ov-single__img img { border-radius: var(--r-md); }
.ov-main--single .ov-prose-section { padding-block-start: var(--space-7); }
@media (max-width: 639px) {
  .ov-main--single .ov-crumbs li[aria-current] { display: none; }   /* the h1 sits directly beneath; the long title would otherwise wrap the trail to three lines */
  .ov-main--single .ov-crumbs li:nth-last-child(2)::after { content: "›"; margin-left: .6em; color: var(--ov-fg-2); }
}

/* ---------- single post prose: one measure for every child.
   The template's constrained layout says contentSize 62ch, but `ch` is resolved in each child's own font, so an h2 at 32px gets a
   ~1000px box while a paragraph gets ~545px. 30.3em of the body size is 62ch of Instrument Sans measured in the browser (545px / 62 / 18px). */
.ov-prose-section .ov-prose { --ov-prose-measure: calc(30.3 * var(--fs-body)); }
.ov-prose-section .ov-prose > :where(:not(.alignwide):not(.alignfull)) { max-width: var(--ov-prose-measure); }
.ov-prose-section .ov-prose > * :is(p, li) { max-width: none; }   /* nested text (list items, quote lines): the child box already carries the measure */
.ov-single__byline { margin-block-end: var(--space-2); }
.ov-prose > .ov-lede { font-size: var(--fs-lede); line-height: 1.45; }
.ov-prose > .ov-single__byline + .ov-lede { margin-block-start: var(--space-4); }
.ov-prose > h2 { font-size: var(--fs-h3); font-weight: 400; }
.ov-prose > .wp-block-list li + li { margin-top: .6em; }
.ov-prose > .wp-block-list li::marker { color: var(--ov-clay-deep); }
/* pull quote: the lead-quote style scaled for a text column; the clay hex ghost stays clipped inside the block */
.ov-prose > .ov-pull { margin-block: var(--space-7); padding: var(--space-5) var(--space-4); border-block: var(--hairline); }
.ov-prose > .ov-pull p { font-size: var(--fs-h3); line-height: 1.3; }
.ov-prose > .ov-pull + h2 { margin-block-start: var(--space-5); }
.ov-prose-section .ov-prose__note { margin-block-start: var(--space-7); padding-block-start: var(--space-5); border-top: var(--hairline); }

/* ---------- index + related: ruled 3:2 cards; the title link is the cover link (40-blocks.css) ---------- */
.ov-journal__grid > .wp-block-post { padding-block-end: var(--space-3); }
.ov-journal__grid .wp-block-post-featured-image { margin-block-start: 0; }
.ov-journal__grid .wp-block-post-featured-image img { max-width: 100%; }
.ov-journal__grid .wp-block-post-title { margin-block-start: var(--space-3); text-wrap: balance; }
.ov-journal__grid .wp-block-post-excerpt { color: var(--ov-fg); }
.ov-journal--related .wp-block-post-title { font-size: var(--fs-h4); }
.ov-main--single .ov-chapter > .ov-inner > h2 + .ov-journal { margin-block-start: var(--space-6); }
@media (min-width: 768px) {
  .ov-main--single .ov-journal__grid.is-layout-grid { gap: var(--space-6) var(--space-6); }
}
@media (max-width: 767px) {
  .ov-main--single .ov-journal__grid.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
}
