/* Better Story blog: single post (single.php) + blog listing (home.php).
   Shares design tokens (:root vars) from global.css. */

/* ---------- shared wrap + two-column layout ---------- */
.bs-post-wrap, .bs-blog-wrap { max-width: 1140px; margin: 0 auto; padding: 0 48px; }
.bs-post-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 64px; align-items: stretch; padding-top: 56px; padding-bottom: 100px; }
.bs-blog-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 64px; align-items: stretch; padding-bottom: 100px; }
@media (max-width: 1024px) {
  .bs-post-wrap, .bs-blog-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bs-post-wrap, .bs-blog-wrap { padding: 0 26px; }
}

/* ---------- featured image hero (single.php) ---------- */
.bs-post-hero { width: 100%; max-width: 1040px; margin: 0 auto; height: clamp(280px, 38vw, 480px); overflow: hidden; background: var(--bone); }
.bs-post-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- article header ---------- */
.bs-post-main { max-width: 660px; }
.bs-post-header { margin-bottom: 40px; }
.bs-post-cat { margin: 0 0 16px; }
.bs-post-cat a {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ochre); text-decoration: none;
}
.bs-post-cat a:hover { color: var(--ochre-bright); }
.bs-post-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.16;
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 26px;
}
.bs-post-meta { display: flex; align-items: center; gap: 14px; }
.bs-post-avatar { border-radius: 50%; }
.bs-post-meta-text { display: flex; flex-direction: column; gap: 3px; }
.bs-post-author { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.bs-post-date-row { font-family: var(--sans); font-size: 13px; color: #8a7a6a; }
.bs-post-dot { margin: 0 6px; }

/* ---------- article body ---------- */
.bs-post-content { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--ink); }
.bs-post-content > p { margin: 0 0 26px; }
.bs-post-content > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 400; color: var(--ochre);
  font-size: 3.3em; line-height: 0.8; float: left; padding: 0.06em 0.09em 0 0;
}
.bs-post-content h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.28; color: var(--ink); margin: 56px 0 20px; }
.bs-post-content h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--ink); margin: 40px 0 16px; }
.bs-post-content a { color: var(--ochre); text-decoration: underline; text-underline-offset: 2px; }
.bs-post-content a:hover { color: var(--ochre-bright); }
.bs-post-content blockquote {
  margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--ochre);
  font-family: var(--serif); font-style: italic; font-size: 1.15em; color: #4a3d33;
}
.bs-post-content ul, .bs-post-content ol { margin: 0 0 26px; padding-left: 1.3em; }
.bs-post-content li + li { margin-top: 8px; }
.bs-post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 32px 0; display: block; }
.bs-post-content figcaption { font-family: var(--sans); font-size: 13px; color: #8a7a6a; text-align: center; margin-top: -18px; margin-bottom: 32px; }

.bs-post-pagination { margin: 30px 0; }

/* ---------- tags ---------- */
.bs-post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.bs-post-tag {
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--bone); border: 1px solid rgba(29,21,18,0.12); border-radius: 30px;
  padding: 7px 16px; text-decoration: none; transition: border-color 0.25s, color 0.25s;
}
.bs-post-tag:hover { color: var(--ochre); border-color: var(--ochre); }

/* ---------- prev/next nav ---------- */
.bs-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(29,21,18,0.12); }
.bs-post-nav-link { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.bs-post-nav-next { text-align: right; align-items: flex-end; grid-column: 2; }
.bs-post-nav-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a08f7c; }
.bs-post-nav-title { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ink); transition: color 0.25s; }
.bs-post-nav-link:hover .bs-post-nav-title { color: var(--ochre); }
@media (max-width: 560px) { .bs-post-nav { grid-template-columns: 1fr; } .bs-post-nav-next { grid-column: 1; text-align: left; align-items: flex-start; } }

/* ---------- comments ---------- */
.bs-post-comments { max-width: 660px; margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(29,21,18,0.12); font-family: var(--sans); }

/* ---------- sidebar (shared: single.php + home.php) ---------- */
.bs-post-sidebar { height: 100%; }
.bs-post-sidebar-zone { height: 56%; }
.bs-post-sidebar-inner { position: sticky; top: 116px; }
.bs-sidebar-card {
  background: var(--white); border: 1px solid rgba(29,21,18,0.12); border-radius: 5px;
  padding: 32px 28px; margin-bottom: 24px;
}
.bs-sidebar-card-title { font-family: var(--serif); font-weight: 300; font-size: 1.35rem; color: var(--ink); margin: 0 0 12px; }
.bs-sidebar-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ochre); margin: 0 0 12px; }
.bs-sidebar-copy { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #5a4c40; margin: 0 0 22px; }
.bs-sidebar-form { display: flex; flex-direction: column; gap: 12px; }
.bs-sidebar-form input[type="email"] {
  font-family: var(--sans); font-size: 14px; padding: 12px 14px; border: 1px solid rgba(29,21,18,0.18);
  border-radius: 3px; background: var(--bone);
}
.bs-sidebar-submit {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--ochre); border: none; border-radius: 3px; padding: 13px 20px;
  cursor: pointer; transition: background 0.25s, transform 0.25s;
}
.bs-sidebar-submit:hover { background: var(--ochre-bright); transform: translateY(-2px); }
.bs-sidebar-fineprint { font-family: var(--sans); font-size: 11.5px; color: #a08f7c; margin: 14px 0 0; }
@media (max-width: 1024px) { .bs-post-sidebar-inner { position: static; max-width: 420px; } .bs-post-sidebar, .bs-post-sidebar-zone { height: auto; } }

/* ---------- blog listing (home.php) ---------- */
.bs-blog-header { padding: 56px 0 20px; }
.bs-blog-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); margin: 0; }
.bs-blog-list { display: flex; flex-direction: column; }
.bs-blog-row {
  display: flex; align-items: flex-start; gap: 26px; padding: 30px 0;
  border-bottom: 1px solid rgba(29,21,18,0.1); text-decoration: none; color: inherit;
}
.bs-blog-row:first-child { padding-top: 0; }
.bs-blog-row-thumb { flex: 0 0 180px; width: 180px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--bone); }
.bs-blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-blog-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bs-blog-row-cat { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); }
.bs-blog-row-title { font-family: var(--serif); font-weight: 300; font-size: 1.3rem; line-height: 1.3; color: var(--ink); transition: color 0.25s; }
.bs-blog-row:hover .bs-blog-row-title { color: var(--ochre); }
.bs-blog-row-excerpt {
  font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #5a4c40;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bs-blog-row-date { font-family: var(--sans); font-size: 12px; color: #a08f7c; }
.bs-blog-empty { font-family: var(--sans); font-size: 15px; color: #5a4c40; padding: 40px 0; }
@media (max-width: 640px) {
  .bs-blog-row { gap: 16px; }
  .bs-blog-row-thumb { flex-basis: 110px; width: 110px; }
  .bs-blog-row-title { font-size: 1.1rem; }
}

/* ---------- pagination ---------- */
.bs-blog-pagination { margin-top: 40px; }
.bs-blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid rgba(29,21,18,0.15); border-radius: 3px; padding: 9px 15px; margin: 0 6px 6px 0; text-decoration: none;
}
.bs-blog-pagination .page-numbers.current { background: var(--ochre); border-color: var(--ochre); color: var(--white); }
.bs-blog-pagination .page-numbers:hover:not(.current) { border-color: var(--ochre); color: var(--ochre); }

/* ---------- category filter bar (home.php) ---------- */
.bs-blog-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 36px; }
.bs-blog-filter {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); background: var(--white); border: 1px solid rgba(29,21,18,0.15);
  border-radius: 30px; padding: 9px 18px; text-decoration: none; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.bs-blog-filter:hover { border-color: var(--ochre); color: var(--ochre); }
.bs-blog-filter.is-active { background: var(--ochre); border-color: var(--ochre); color: var(--white); }
/* ---------- Featured Writing strip (top of blog archive, added 2026-08-06) ---------- */
.bfw { background: #46597B; padding: 72px 0 64px; }
.bfw-wrap { max-width: 1140px; margin: 0 auto; padding: 0 48px; }
.bfw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.bfw-eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #F0C9A8; margin: 0 0 10px; }
.bfw-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.25; color: #fff; margin: 0; max-width: 560px; }
.bfw-head h2 em { font-style: italic; font-weight: 400; color: #F0C9A8; }
.bfw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bfw-card { position: relative; display: block; background: var(--white); border-radius: 5px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.25s, box-shadow 0.25s; }
.bfw-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.28); }
.bfw-num { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 12px; color: #fff; background: #556B8B; padding: 3px 10px; border-radius: 20px; }
.bfw-img { display: block; aspect-ratio: 16 / 7; background: var(--cream); }
.bfw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfw-body { display: block; padding: 16px 18px 18px; }
.bfw-tag { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); margin: 0 0 6px; }
.bfw-title { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.bfw-excerpt { display: block; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #4a3d33; margin: 0 0 10px; }
.bfw-read { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre); }
.bfw-card:hover .bfw-read { color: var(--ochre-bright); }
@media (max-width: 1024px) { .bfw-grid { grid-template-columns: repeat(2, 1fr); } .bfw-head { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (max-width: 640px) { .bfw-grid { grid-template-columns: 1fr; } .bfw-wrap { padding: 0 26px; } }