/* Blog. Built on compare.css so the chrome matches the rest of the site;
   this only adds what long-form prose needs and the pages do not already have. */

.bl-wrap { max-width: 46rem; }

/* The crumb is a div here, not a nav. shared.css makes every bare <nav>
   position:fixed for the site header, which pinned the breadcrumb and the
   prev/next strip to the top of the viewport, on top of the real nav. */
.bl-crumb { position: static; }

.bl-post h1 { text-wrap: balance; }

.bl-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

/* The one paragraph that decides whether the rest gets read. */
.bl-lede {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--muted2, var(--muted));
  margin: 0 0 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.bl-post h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 2.4rem 0 0.9rem;
  text-wrap: balance;
}

.bl-post h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }

.bl-post p { line-height: 1.72; margin: 0 0 1.1rem; }

.bl-post ul, .bl-post ol {
  line-height: 1.72;
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bl-post code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.bl-post pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}
.bl-post pre code { background: none; padding: 0; }

.bl-post blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted2, var(--muted));
}

/* Share. A quiet row at the end of the piece, not a panel: readers share when
   they have finished, and a call to action before that is just noise. The
   Medium import is NOT here on purpose. Importing is a once-per-post author
   job, and author tools in a reader's path make a page feel like a dashboard.
   Those links live in blog/_medium.mjs, which is not served. */
.bl-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.bl-share-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.3rem;
}

.bl-share-link {
  font: inherit;
  font-size: 0.84rem;
  color: var(--muted2, var(--muted));
  text-decoration: none;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.bl-share-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--hover);
}
.bl-share-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bl-cta {
  margin: 3rem 0 0;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.bl-cta h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.bl-cta p { color: var(--muted); margin: 0 0 1.1rem; }

.bl-updown {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.bl-updown a { color: var(--muted); text-decoration: none; max-width: 46%; }
.bl-updown a:hover { color: var(--text); }

/* Hub */
.bl-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.bl-card {
  display: block;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bl-card:hover { border-color: var(--border2); background: var(--surface); }

.bl-card-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.bl-card h2 { font-size: 1.15rem; margin: 0 0 0.5rem; line-height: 1.3; text-wrap: balance; }
.bl-card-desc { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0 0 0.7rem; }
.bl-card-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 46rem) {
  .bl-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
}
