/* ============================================================
   Journal — listing headers, post prose, pagination, post nav.
   Loaded on single posts, archives, blog home, and search.
   Uses the design tokens from site.css. (.jcard / .journal-grid
   live in home-shared.css.)
   ============================================================ */

/* ---- Listing / archive header ----------------------------- */
.ma-listing-head { margin-bottom: clamp(32px, 5vw, 56px); }
.ma-listing-head .eyebrow { margin-bottom: 14px; }
.ma-listing-head h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
}
.ma-listing-head h1 em { font-style: italic; color: var(--accent); }
.ma-listing-head .ma-listing-desc {
  color: var(--ink-soft); margin-top: 16px; max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 18px);
}

/* ---- Generic page (page.php) ------------------------------ */
.ma-page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.ma-page-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.025em;
}

/* ---- Single article --------------------------------------- */
.ma-article { max-width: 760px; }
.ma-article-head { margin-bottom: 32px; }
.ma-article-head .ma-kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}
.ma-article-head .ma-kicker a { color: var(--accent); }
.ma-article-head .ma-kicker a:hover { text-decoration: underline; }
.ma-article-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08;
  letter-spacing: -0.025em; margin-top: 16px;
}
.ma-article-title em { font-style: italic; color: var(--accent); }
.ma-article-cover { margin-bottom: 36px; }

/* ---- Prose (post content) --------------------------------- */
.ma-prose { font-size: 17px; line-height: 1.72; color: var(--ink); }
.ma-prose > * + * { margin-top: 1.25em; }
.ma-prose p { margin: 0; }
.ma-prose h2, .ma-prose h3, .ma-prose h4 {
  font-family: var(--serif); font-weight: 400; line-height: 1.15;
  letter-spacing: -0.02em; margin-top: 1.7em;
}
.ma-prose h2 { font-size: clamp(24px, 3vw, 34px); }
.ma-prose h3 { font-size: clamp(20px, 2.3vw, 26px); }
.ma-prose h4 { font-size: 19px; }
.ma-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.ma-prose a:hover { color: var(--accent-ink); }
.ma-prose strong { color: var(--ink); font-weight: 700; }
.ma-prose ul, .ma-prose ol { margin: 0; padding-left: 1.4em; }
.ma-prose li + li { margin-top: 0.5em; }
.ma-prose blockquote {
  margin: 1.6em 0; padding: 6px 0 6px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: var(--ink-soft);
}
.ma-prose blockquote p { margin: 0; }
.ma-prose img, .ma-prose figure { border-radius: var(--r); }
.ma-prose figure { margin: 1.6em 0; }
.ma-prose figure img { width: 100%; }
.ma-prose figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  margin-top: 10px; text-align: center;
}
.ma-prose img { border: 1px solid var(--rule); }
.ma-prose hr { height: 1px; background: var(--rule); border: 0; margin: 2.4em 0; }
.ma-prose code, .ma-prose kbd {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 6px; padding: 0.1em 0.4em;
}
.ma-prose pre {
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 18px 20px; overflow-x: auto;
}
.ma-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.ma-prose .wp-caption, .ma-prose .wp-block-image { max-width: 100%; }
.ma-prose .wp-caption-text { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-top: 10px; }
.ma-prose iframe, .ma-prose embed, .ma-prose object, .ma-prose video { max-width: 100%; border-radius: var(--r); }

/* ---- Tags + article footer -------------------------------- */
.ma-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ma-tags a { display: inline-block; }
.ma-article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* ---- Prev / next post nav --------------------------------- */
.ma-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ma-postnav a {
  border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.ma-postnav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.ma-postnav .pn-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.ma-postnav .pn-title { font-family: var(--serif); font-size: 17px; margin-top: 6px; color: var(--ink); }
.ma-postnav .pn-next { text-align: right; }
@media (max-width: 600px){ .ma-postnav { grid-template-columns: 1fr; } .ma-postnav .pn-next { text-align: left; } }

/* ---- Pagination ------------------------------------------- */
.ma-pagination { margin-top: clamp(40px, 6vw, 64px); }
.ma-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.ma-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 100px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.ma-pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.ma-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ma-pagination .page-numbers.dots { border-color: transparent; }
