/* Cedarpool blog — Substack-like reading experience.
   Deliberately separate from ds.css: a clean, centered column with the brand
   green/gold as the only accent. Screen renderer of the repo blog store. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.bl {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font: 400 19px/1.62 Georgia, "Times New Roman", serif;
}

/* ---- top bar: publication + subscribe ---- */
.bl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 728px; margin: 0 auto; padding: 16px 20px;
  border-bottom: 1px solid #ececec;
}
.bl-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #0D3127; }
.bl-brand img { height: 22px; }
.bl-brand .n { font: 700 1rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; }
.bl-brand .t { display: block; font: 400 .68rem/1.2 -apple-system, system-ui, sans-serif; color: #8a8a8a; }
.bl-sub {
  display: inline-block; background: #0D3127; color: #fff; border: 0; border-radius: 6px;
  padding: 9px 16px; cursor: pointer; text-decoration: none;
  font: 600 .84rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.bl-sub:hover { background: #14503f; }

/* ---- column ---- */
.bl-wrap { max-width: 728px; margin: 0 auto; padding: 34px 20px 72px; }
.bl-back { font: .82rem/1 -apple-system, system-ui, sans-serif; color: #8a8a8a; text-decoration: none; }
.bl-back:hover { color: #0D3127; }

/* ---- index ---- */
.bl-intro h1 { font: 800 2rem/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; margin: 14px 0 6px; letter-spacing: -.02em; }
.bl-intro p { font: 400 1.02rem/1.5 -apple-system, system-ui, sans-serif; color: #6b6b6b; margin: 0 0 18px; }
.bl-item { display: block; padding: 26px 0; border-bottom: 1px solid #ececec; text-decoration: none; }
.bl-item h2 { font: 700 1.42rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; margin: 0 0 7px; color: #1a1a1a; letter-spacing: -.01em; }
.bl-item:hover h2 { color: #0D3127; }
.bl-item .desc { font: 400 1.02rem/1.5 -apple-system, system-ui, sans-serif; color: #555; margin: 0 0 10px; }
.bl-item .meta { font: 400 .8rem/1 -apple-system, system-ui, sans-serif; color: #8a8a8a; }

/* ---- post ---- */
.bl-post-h1 { font: 800 2.35rem/1.16 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; margin: 12px 0 12px; letter-spacing: -.025em; }
.bl-post-sub { font: 400 1.16rem/1.5 -apple-system, system-ui, sans-serif; color: #555; margin: 0 0 22px; }
.bl-byline { display: flex; align-items: center; gap: 10px; margin: 0 0 34px; font: 400 .84rem/1.3 -apple-system, system-ui, sans-serif; color: #8a8a8a; }
.bl-byline img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.bl-byline b { color: #1a1a1a; font-weight: 600; }
.bl-tags { margin: 0 0 26px; }
.bl-tags span { display: inline-block; font: 600 .72rem/1 -apple-system, system-ui, sans-serif; color: #0D3127;
                border: 1px solid #e0e6e2; background: #f5f8f6; border-radius: 999px; padding: 4px 10px; margin: 0 6px 6px 0; }

.bl-body p { margin: 0 0 22px; }
.bl-body a { color: #0D3127; text-decoration: underline; text-underline-offset: 2px; }
.bl-body h2 { font: 700 1.4rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; margin: 38px 0 12px; letter-spacing: -.01em; }
.bl-body h3 { font: 700 1.12rem/1.3 -apple-system, system-ui, sans-serif; margin: 30px 0 8px; }
.bl-body blockquote { margin: 24px 0; padding: 2px 0 2px 20px; border-left: 3px solid #C49E4C; color: #333; font-style: italic; }
.bl-body img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 26px 0; }
.bl-body figure { margin: 30px 0; }
.bl-body figure img { margin: 0 0 9px; }
.bl-body figcaption { font: 400 .82rem/1.5 -apple-system, system-ui, sans-serif; color: #6b6b6b; }
.bl-body table { width: 100%; border-collapse: collapse; font: .88rem/1.5 -apple-system, system-ui, sans-serif; margin: 22px 0; }
.bl-body th, .bl-body td { border-bottom: 1px solid #ececec; padding: 9px 10px; text-align: left; }
.bl-body hr { border: 0; border-top: 1px solid #ececec; margin: 34px 0; }
.bl-note { font: 400 .9rem/1.55 -apple-system, system-ui, sans-serif; color: #6b6b6b; border-left: 3px solid #C49E4C; padding-left: 14px; }

/* ---- subscribe box ---- */
.bl-sub-box { margin: 46px 0 0; padding: 26px 24px; background: #fafafa; border: 1px solid #ececec; border-radius: 12px;
              font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.bl-sub-box h3 { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: -.01em; }
.bl-sub-box p { margin: 0 0 14px; color: #555; font-size: .93rem; line-height: 1.5; }
.bl-sub-box form { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-sub-box input { flex: 1 1 220px; padding: 12px 13px; border: 1px solid #ccc; border-radius: 7px; font: inherit; font-size: .95rem; }
.bl-sub-box button { border: 0; border-radius: 7px; background: #0D3127; color: #fff; padding: 12px 20px; cursor: pointer; font: 600 .92rem/1 inherit; }
.bl-sub-box .fine { margin: 12px 0 0; font-size: .76rem; color: #999; }

/* ---- sources + footer ---- */
.bl-src { margin: 40px 0 0; font: 400 .82rem/1.7 -apple-system, system-ui, sans-serif; color: #666; }
.bl-src h2 { font: 600 .76rem/1 -apple-system, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; margin: 0 0 10px; }
.bl-src a { color: #0D3127; word-break: break-all; }
.bl-foot { max-width: 728px; margin: 0 auto; padding: 28px 20px 60px; border-top: 1px solid #ececec;
           font: 400 .78rem/1.6 -apple-system, system-ui, sans-serif; color: #9a9a9a; }
.bl-foot a { color: #8a8a8a; }

@media (max-width: 640px) {
  body.bl { font-size: 18px; }
  .bl-post-h1 { font-size: 1.9rem; }
  .bl-intro h1 { font-size: 1.7rem; }
}
