/* ============================================================
   Cosmetic Homepage — Blog archive (cshp-blog)
   Ported from html2/Blog.html content sections.
   Global header/footer/promo come from the cshp chrome; this
   file styles only the blog body. Everything scoped to .cshp-blog.
   Colors reuse the site tokens (--cshp-*) so the blog inherits the
   real site accent (marsala) instead of the mockup's terracotta.
   ============================================================ */

.cshp-blog {
  /* fall back to the mockup values only if the chrome tokens are absent */
  --cshp-bg:        var(--cshp-bg, #efe9df);
  --cb-surface-2:   #f6f1e8;
  --cb-line-2:      #c9bfaf;

  background: var(--cshp-bg, #efe9df);
  color: var(--cshp-ink, #1a1612);
  font-family: var(--cshp-sans, "Manrope", -apple-system, system-ui, sans-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* ---------- Break out of the Merchant theme container ----------
   The archive loop is wrapped in .site-content > .container.clearfix,
   which caps width and adds gutters on top of .cshp-container. Neutralise
   it so the blog controls its own width (mirrors homepage.css). */
body.cshp-blog-page .site-breadcrumb { display: none !important; }
body.cshp-blog-page .site-content {
  max-width: none !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important; float: none !important; display: block !important;
}
body.cshp-blog-page .site-content > .container {
  max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
}
body.cshp-blog-page #primary {
  max-width: none !important; width: 100% !important; padding: 0 !important; float: none !important;
}
body.cshp-blog-page #secondary { display: none !important; }

/* Hide the Merchant theme's default archive title/breadcrumb band —
   the blog template renders its own breadcrumb + head. */
body.cshp-blog-page .page-header { display: none; }

.cshp-blog *, .cshp-blog *::before, .cshp-blog *::after { box-sizing: border-box; }
.cshp-blog img, .cshp-blog svg { display: block; max-width: 100%; }
.cshp-blog a { color: inherit; text-decoration: none; }
.cshp-blog button { font: inherit; cursor: pointer; }

.cshp-blog .cshp-container {
  width: 100%;
  max-width: var(--cshp-container, 1320px);
  margin: 0 auto;
  padding: 0 var(--cshp-gutter, 32px);
}

/* ---------- Shared type ---------- */
.cshp-blog .cshp-eyebrow {
  font-family: var(--cshp-mono, monospace);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cshp-ink-2, #5b5249); font-weight: 500;
}
.cshp-blog .cshp-display {
  font-family: var(--cshp-sans, sans-serif); font-weight: 300;
  line-height: 1.05; letter-spacing: -0.03em; color: var(--cshp-ink, #1a1612);
}
.cshp-blog .cshp-h2 { font-size: clamp(40px, 4.6vw, 68px); }
.cshp-blog .cshp-body-lg { font-size: 17px; line-height: 1.6; color: var(--cshp-ink-2, #5b5249); }
.cshp-blog .cshp-img-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--cb-surface-2);
}

/* ---------- Link button ---------- */
.cshp-blog .cshp-btn--link {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--cshp-ink, #1a1612);
  padding: 0 0 4px; height: auto; border: 0;
  border-bottom: 1px solid var(--cshp-ink, #1a1612); border-radius: 0;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.cshp-blog .cshp-btn--link:hover {
  color: var(--cshp-accent, #af6a7c); border-bottom-color: var(--cshp-accent, #af6a7c);
}

/* ---------- Breadcrumb ---------- */
.cshp-blog-breadcrumb { border-bottom: 1px solid var(--cshp-line, #d9d0c3); background: var(--cshp-bg, #efe9df); }
.cshp-blog-breadcrumb__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 18px var(--cshp-gutter, 32px); max-width: var(--cshp-container, 1320px); margin: 0 auto;
  font-family: var(--cshp-mono, monospace); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cshp-ink-3, #8a8077);
}
.cshp-blog-breadcrumb a:hover { color: var(--cshp-accent, #af6a7c); }
.cshp-blog-breadcrumb .sep { opacity: .5; }
.cshp-blog-breadcrumb .current { color: var(--cshp-ink, #1a1612); }

/* ---------- Blog head ---------- */
.cshp-blog-head { padding: 64px 0 48px; border-bottom: 1px solid var(--cshp-line, #d9d0c3); }
.cshp-blog-head__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cshp-blog-head__title { margin: 10px 0 0; }
.cshp-blog-head__lede { max-width: 460px; margin: 0; }

/* ---------- Tag / category filters ---------- */
.cshp-blog-tagbar { padding: 32px 0; border-bottom: 1px solid var(--cshp-line, #d9d0c3); }
.cshp-blog-tagbar__list { display: flex; gap: 10px; flex-wrap: wrap; }
.cshp-blog-tagbar__list a {
  display: inline-flex; align-items: center;
  background: var(--cshp-surface, #fff); border: 1px solid var(--cb-line-2);
  color: var(--cshp-ink-2, #5b5249);
  padding: 9px 18px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cshp-blog-tagbar__list a.is-active {
  background: var(--cshp-ink, #1a1612); color: var(--cshp-bg, #efe9df); border-color: var(--cshp-ink, #1a1612);
}
.cshp-blog-tagbar__list a:hover:not(.is-active) { border-color: var(--cshp-ink, #1a1612); color: var(--cshp-ink, #1a1612); }

/* ---------- Featured post ---------- */
.cshp-blog-featured { padding: 64px 0; border-bottom: 1px solid var(--cshp-line, #d9d0c3); }
.cshp-blog-featured__card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--cshp-surface, #fff); border: 1px solid var(--cshp-line, #d9d0c3);
}
.cshp-blog-featured__img { aspect-ratio: 16/12; position: relative; overflow: hidden; }
.cshp-blog-featured__img .cshp-img-cover { position: absolute; inset: 0; }
.cshp-blog-featured__copy {
  padding: clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.cshp-blog-featured__meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--cshp-mono, monospace); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cshp-ink-3, #8a8077);
}
.cshp-blog-featured__meta .badge-featured { color: var(--cshp-accent, #af6a7c); }
.cshp-blog-featured__title {
  margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1;
}
.cshp-blog-featured__title a:hover { color: var(--cshp-accent, #af6a7c); }
.cshp-blog-featured__excerpt {
  color: var(--cshp-ink-2, #5b5249); font-size: 16px; line-height: 1.65; margin: 0; max-width: 480px;
}

/* ---------- Post grid ---------- */
.cshp-blog-section { padding: 72px 0 120px; }
.cshp-blog-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.cshp-blog-section__head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cshp-blog-section__count { font-family: var(--cshp-mono, monospace); font-size: 12px; color: var(--cshp-ink-3, #8a8077); }

.cshp-blog-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.cshp-blog-post { display: flex; flex-direction: column; }
.cshp-blog-post__img { aspect-ratio: 4/5; margin-bottom: 20px; position: relative; overflow: hidden; }
.cshp-blog-post__img .cshp-img-cover { position: absolute; inset: 0; transition: transform .5s ease; }
.cshp-blog-post__img:hover .cshp-img-cover { transform: scale(1.03); }
.cshp-blog-post__meta {
  display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap;
  font-family: var(--cshp-mono, monospace); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cshp-ink-3, #8a8077);
}
.cshp-blog-post__title {
  font-family: var(--cshp-sans, sans-serif); font-weight: 500; font-size: 21px;
  line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px;
}
.cshp-blog-post__title a:hover { color: var(--cshp-accent, #af6a7c); }
.cshp-blog-post__excerpt { color: var(--cshp-ink-2, #5b5249); font-size: 14px; line-height: 1.6; margin: 0; }

.cshp-blog-empty { padding: 40px 0 80px; font-size: 17px; color: var(--cshp-ink-2, #5b5249); }

/* ---------- Pagination ---------- */
.cshp-blog-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 72px; flex-wrap: wrap; }
.cshp-blog-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--cshp-mono, monospace); font-size: 13px; color: var(--cshp-ink-2, #5b5249);
  border: 1px solid transparent;
}
.cshp-blog-pagination a.page-numbers:hover { border-color: var(--cb-line-2); color: var(--cshp-ink, #1a1612); }
.cshp-blog-pagination .page-numbers.current { background: var(--cshp-ink, #1a1612); color: var(--cshp-bg, #efe9df); }
.cshp-blog-pagination .page-numbers.dots { border: 0; }
.cshp-blog-pagination .page-numbers.next,
.cshp-blog-pagination .page-numbers.prev { width: auto; padding: 0 16px; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cshp-blog-featured__card { grid-template-columns: 1fr; }
  .cshp-blog-featured__img { aspect-ratio: 16/10; }
  .cshp-blog-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cshp-blog-posts { grid-template-columns: 1fr; }
  .cshp-blog-head__row { align-items: flex-start; }
}
