/* Blog (monetamac.com/blog/: pages built by build.py in rayzorzrb/moneta-blog and
   served through the rewrite in vercel.json; they load this file). It sits on
   styles.css: the tokens, .wrap, .doc, .nav, .footer and .btn. Everything here is
   prefixed bl-, so nothing collides with the landing page or the films. */

.bl-eyebrow a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bl-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; color: var(--ink); text-wrap: balance;
}
.bl-dek { margin-top: 18px; max-width: 60ch; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-2); }

/* The answer first, for someone who reads nothing else */
.bl-answer { margin-top: 32px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--tile); }
.bl-answer b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bl-answer p { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); }

/* Prose. Geist Serif is Regular only, so emphasis is ink on ink-2, not bold. */
.bl-post .doc__body { margin-top: 36px; }
.bl-post .doc__body h2 { margin-top: 48px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.bl-post .doc__body h3 { margin-top: 28px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bl-post .doc__body p, .bl-post .doc__body li { font-size: 18px; line-height: 1.65; }
.bl-post .doc__body p { margin-top: 16px; }
.bl-post .doc__body ul, .bl-post .doc__body ol { margin-top: 14px; padding-left: 22px; }
.bl-post .doc__body ol { list-style: decimal; }
.bl-post .doc__body strong { font-weight: 400; color: var(--ink); }
.bl-post .doc__body blockquote { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.bl-post .doc__body blockquote p { margin-top: 0; }
/* A post's images: build.py writes each with its own width and height, so the page doesn't jump */
.bl-figure { margin-top: 24px; }
.bl-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); background: var(--tile); box-shadow: 0 0 0 0.5px var(--line-2); }
.bl-figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.bl-pre { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--tile); font: 14px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; }

.bl-table { margin-top: 20px; overflow-x: auto; }
/* On a phone the table keeps its width and scrolls sideways; squeezed, the middle column ran to one word a line */
.bl-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.bl-table th { padding: 8px 14px 8px 0; border-bottom: 0.5px solid var(--line-2); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.bl-table td { padding: 9px 14px 9px 0; border-bottom: 0.5px solid var(--line); color: var(--ink-2); vertical-align: top; }
.bl-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.bl-table .num { padding-right: 0; padding-left: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* After the post: what Moneta is, then the other posts */
.bl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 56px; padding: 24px; border-radius: var(--radius-lg); background: var(--tile); }
.bl-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-end { display: block; height: 1px; }
.bl-cta p { max-width: 42ch; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); }
.bl-more { margin-top: 48px; }
.bl-more h2 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bl-more li { margin-top: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.bl-more a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* The list of posts */
.bl-list { margin-top: 40px; border-top: 0.5px solid var(--line-2); }
.bl-list li { border-bottom: 0.5px solid var(--line-2); }
.bl-list a { display: block; padding: 26px 0; }
.bl-list h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.bl-list p { margin-top: 8px; max-width: 60ch; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.bl-list span { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .bl-list a:hover h2 { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
}
