/* The blog (listing, month archives, post pages), redesigned 6 Dec 2026 (Han: "more presentable, typography,
   layout"): cards on the listing, a reading column on a post. Brand from the theme: brown #80521e, Roboto files from
   /wp-content/themes/chimps/fonts. The banner and the Archives sidebar stay the theme's.
   NOTE: the theme's Bootstrap 3 sets html { font-size: 10px }, so 1rem = 10px here. */
.main {
  --chb-ink: #2b2118;
  --chb-ink-soft: #5b4d40;
  --chb-brown: #80521e;
  --chb-paper: #f6f6f6;
  --chb-line: #e6e0d9;
}
.main .chb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The banner line on a post page is a <p> (the post title is the h1): same look as the listing's h1. */
.main p.chb-banner-title { font-family: 'Roboto-Thin', sans-serif; font-size: 36px; line-height: 1.1; font-weight: 400; color: #000; }

/* Archives sidebar: readable links. */
.main .blog-sidebar .widget-title { font-family: 'Roboto-Light', sans-serif; font-size: 20px; margin: 0 0 8px; }
.main .blog-sidebar ul { padding: 4px 0 0 18px; }
.main .blog-sidebar li { margin: 0 0 8px; }
.main .blog-sidebar li a { font-family: 'Roboto-Light', sans-serif; font-size: 15px; color: #fff; }
.main .blog-sidebar li a:hover, .main .blog-sidebar li a:focus-visible { text-decoration: underline; }

/* Desktop: the sidebar is as tall as the posts column (the theme faked it with 3150px of bottom padding). */
@media (min-width: 768px) {
  .main .chb-row { display: flex; align-items: stretch; }
  .main .chb-row > .chb-column,
  .main .chb-row > .blog-sidebar { float: none; }
  .main .chb-row > .blog-sidebar { padding-bottom: 20px !important; }
}

/* Shared bits. */
.main .chb-meta {
  margin: 0 0 8px;
  font-family: 'Roboto-Regular', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--chb-brown);
  text-align: left;
}
.main .chb-list { display: grid; gap: 20px; padding: 24px 24px 40px; }
.main .chb-archive-title {
  margin: 24px 24px 0;
  font-family: 'Roboto-Light', sans-serif;
  font-size: 22px;
  color: var(--chb-ink);
}

/* A post on the listing: picture left, words right. */
.main .chb-card {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}
.main .chb-card__media { display: block; background: var(--chb-line); }
.main .chb-card__media img { display: block; width: 100%; height: 100%; min-height: 200px; aspect-ratio: 4 / 3; object-fit: cover; }
.main .chb-card__body { display: flex; flex-direction: column; padding: 24px 28px; min-width: 0; }
.main .chb-card__title {
  margin: 0 0 10px;
  font-family: 'Roboto-Light', sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.main .chb-card__title a { color: var(--chb-ink); text-decoration: none; }
.main .chb-card__title a:hover, .main .chb-card__title a:focus-visible { color: var(--chb-brown); }
.main .chb-card__excerpt {
  margin: 0 0 14px;
  font-family: 'Roboto-Light', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--chb-ink-soft);
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.main .chb-card__more {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 0;
  font-family: 'Roboto-Regular', sans-serif;
  font-size: 15px;
  color: var(--chb-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A post's own page: one reading column. */
.main .chb-article {
  max-width: 760px;
  margin: 24px;
  padding: 32px 48px 40px;
  background: #fff;
  border-radius: 3px;
  text-align: left;
}
.main .chb-back { margin: 0 0 20px; font-family: 'Roboto-Regular', sans-serif; font-size: 14px; }
.main .chb-back a { color: var(--chb-brown); text-decoration: underline; text-underline-offset: 3px; }
.main .chb-article__title {
  margin: 0 0 10px;
  font-family: 'Roboto-Light', sans-serif;
  font-size: clamp(2.6rem, 1.8rem + 1.4vw, 3.6rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--chb-ink);
  text-align: left;
  text-wrap: balance;
}
.main .chb-figure { margin: 24px 0; }
.main .chb-figure img { display: block; width: 100%; height: auto; border-radius: 2px; }
.main .chb-figure figcaption { margin-top: 8px; font-family: 'Roboto-Regular', sans-serif; font-size: 14px; color: var(--chb-ink-soft); }
.main .chb-prose { max-width: 680px; }
.main .chb-prose p,
.main .chb-prose li {
  margin: 0 0 1.1em;
  font-family: 'Roboto-Light', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--chb-ink);
  text-align: left;
  text-wrap: pretty;
}
.main .chb-prose h2, .main .chb-prose h3 { margin: 1.6em 0 0.6em; font-family: 'Roboto-Regular', sans-serif; color: var(--chb-ink); line-height: 1.3; }
.main .chb-prose h2 { font-size: 22px; }
.main .chb-prose h3 { font-size: 19px; }
.main .chb-prose a { color: var(--chb-brown); text-decoration: underline; }
.main .chb-cta {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: var(--chb-paper);
  border-left: 4px solid var(--chb-brown);
  font-family: 'Roboto-Regular', sans-serif;
  font-size: 16px;
  color: var(--chb-ink);
}
.main .chb-cta a { color: var(--chb-brown); text-decoration: underline; text-underline-offset: 3px; }

/* Phones: cards stack (picture on top), the article uses the full width. */
@media (max-width: 767px) {
  .main p.chb-banner-title { font-size: clamp(2.6rem, 1.9rem + 2vw, 3.2rem); line-height: 1.2; }
  .main .chb-list { padding: 16px 16px 32px; gap: 16px; }
  .main .chb-archive-title { margin: 16px 16px 0; }
  .main .chb-card { grid-template-columns: 1fr; }
  .main .chb-card__media img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .main .chb-card__body { padding: 16px 16px 8px; }
  .main .chb-card__title { font-size: 20px; }
  .main .chb-card__more { min-height: 44px; display: inline-flex; align-items: center; }
  .main .chb-article { margin: 16px; padding: 20px 18px 28px; }
  .main .chb-prose p, .main .chb-prose li { font-size: 17px; line-height: 1.7; }
}
