/* Beyond Bars visual system: editorial, warm, and community-centered */
:root {
  --bb-ink: #1e3029;
  --bb-muted: #5f6b64;
  --bb-paper: #f8f7f1;
  --bb-card: #ffffff;
  --bb-green: #244f3d;
  --bb-lime: #d7e8a6;
  --bb-line: #dce2d9;
}

body {
  background: var(--bb-paper);
  color: var(--bb-ink);
}

body,
p,
li {
  line-height: 1.72;
}

h1,
h2,
h3,
h4 {
  color: var(--bb-ink);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 950px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 750;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.12;
}

a {
  text-underline-offset: 4px;
}

.bb-hero {
  max-width: 1060px;
  padding: clamp(3rem, 8vw, 7rem) 0 3rem;
}

.bb-eyebrow,
.bb-card-number {
  color: var(--bb-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bb-hero-copy {
  max-width: 730px;
  margin: 1.6rem 0 2rem;
  color: var(--bb-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.bb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 3rem;
}

.bb-button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--bb-green);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none !important;
}

.bb-button-primary {
  background: var(--bb-green);
  color: white !important;
}

.bb-button-primary:hover {
  background: #183b2b;
}

.bb-button-secondary {
  background: transparent;
  color: var(--bb-green) !important;
}

.bb-reach {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bb-line);
  color: var(--bb-muted);
}

.bb-reach strong {
  color: var(--bb-ink);
}

.bb-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--bb-line);
}

.bb-section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.bb-section-heading > p:last-child,
.bb-page-intro {
  max-width: 760px;
  color: var(--bb-muted);
  font-size: 1.08rem;
}

.bb-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.bb-pillars article {
  padding: 1.2rem 1.1rem 1.4rem 0;
  border-top: 3px solid var(--bb-green);
}

.bb-pillars article > span {
  color: var(--bb-green);
  font-size: 0.8rem;
  font-weight: 800;
}

.bb-pillars h3 {
  margin-top: 0.7rem;
}

.bb-pillars p,
.bb-project-card p {
  color: var(--bb-muted);
}

.bb-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.bb-project-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.5rem;
  border: 1px solid var(--bb-line);
  border-radius: 7px;
  background: var(--bb-card);
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.bb-project-card:hover {
  transform: translateY(-3px);
  border-color: #8ca895;
  box-shadow: 0 12px 28px rgb(30 48 41 / 7%);
}

.bb-project-card h2,
.bb-project-card h3 {
  margin: 0.8rem 0 0.4rem;
}

.bb-project-card p {
  flex-grow: 1;
}

.bb-card-link,
.bb-text-link {
  color: var(--bb-green);
  font-weight: 750;
}

.bb-cta {
  margin: 2rem 0 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 8px;
  background: #e9efdf;
}

.bb-cta h2 {
  max-width: 700px;
}

.bb-cta p:not(.bb-eyebrow) {
  max-width: 680px;
  color: var(--bb-muted);
}

.bb-page-intro {
  margin: 1rem 0 2.5rem;
}

.bb-project-detail {
  max-width: 850px;
}

.bb-project-detail h2 {
  margin-top: 2.5rem;
}

.bb-project-detail .bb-lede {
  color: var(--bb-muted);
  font-size: 1.25rem;
}

.bb-team {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--bb-lime);
}

.bb-note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--bb-line);
  border-radius: 5px;
  color: var(--bb-muted);
}

@media (max-width: 680px) {
  .bb-pillars,
  .bb-project-grid {
    grid-template-columns: 1fr;
  }

  .bb-project-card {
    min-height: 0;
  }

  .bb-section {
    padding: 3rem 0;
  }
}

/* Careful layout refinements: retain the original palette and visual identity. */
/* The site masthead title should lead; its description and the homepage content
   should support it rather than compete with it. */
.post-header .post-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 0.65rem;
}

.post-header .desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  line-height: 1.5;
}

.bb-hero {
  max-width: 900px;
  padding: clamp(2.2rem, 5vw, 4.4rem) 0 2.5rem;
}

.bb-hero h1 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.12;
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
}

.bb-hero-copy {
  max-width: 690px;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.bb-hero .bb-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.bb-section {
  padding: 3.6rem 0;
  border-top: 2px solid #c4cec2;
}

.bb-reach {
  border-top: 2px solid #c4cec2;
}

.bb-section-heading {
  margin-bottom: 1.6rem;
}

.bb-section-heading h2,
.bb-cta h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.18;
}

.bb-section-heading > p:last-child,
.bb-page-intro {
  font-size: 1rem;
  line-height: 1.65;
}

.bb-pillars article {
  border-top-width: 3px;
}

.bb-project-detail {
  max-width: 800px;
}

.bb-project-detail > h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin-top: 0.55rem;
  margin-bottom: 0.85rem;
}

.bb-project-detail .bb-lede {
  max-width: 700px;
  font-size: 1.12rem;
  line-height: 1.55;
}

.bb-editorial-image {
  max-width: 620px;
  margin: 1.5rem auto 2rem;
}

.bb-editorial-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.bb-editorial-image figcaption {
  margin-top: 0.55rem;
  color: var(--bb-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.bb-team {
  display: block;
  clear: both;
  overflow-wrap: anywhere;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--bb-lime);
}

.bb-team p {
  margin: 0 0 1rem;
}

.bb-team p:last-child {
  margin-bottom: 0;
}

.bb-team .bb-note {
  display: block;
  margin-top: 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bb-line);
  border-radius: 4px;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .post-header .post-title {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .post-header .desc {
    font-size: 0.98rem;
  }

  .bb-hero {
    padding: 2rem 0 2rem;
  }

  .bb-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .bb-section {
    padding: 2.7rem 0;
  }

  .bb-editorial-image {
    max-width: 100%;
    margin: 1.25rem 0 1.5rem;
  }

  .bb-editorial-image img {
    max-height: 280px;
  }
}

/* Homepage brand, image restoration, and compact reach statement. */
.post-header .post-title {
  max-width: 1100px;
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-size: clamp(4rem, 9.5vw, 7.5rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.post-header .desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  line-height: 1.5;
}

.bb-home-image {
  max-width: 1100px;
  height: clamp(3.75rem, 8vw, 6rem);
  margin: 0 auto;
  overflow: hidden;
}

.bb-home-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.bb-hero {
  max-width: 900px;
  padding: clamp(1.2rem, 2.5vw, 2rem) 0 2.5rem;
}

.bb-hero h1 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.12;
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
}

.bb-hero-copy {
  max-width: 690px;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.bb-hero-image {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.bb-hero-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.bb-hero-image figcaption {
  margin-top: 0.55rem;
  color: var(--bb-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.bb-reach-inline {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 1.75rem 0 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bb-line);
}

.bb-reach-inline strong {
  flex-shrink: 0;
}

.bb-reach-inline span {
  text-align: right;
}

@media (max-width: 680px) {
  .post-header .post-title {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  .post-header .desc {
    font-size: 0.98rem;
  }

  .bb-hero {
    padding: 1.2rem 0 2rem;
  }

  .bb-reach-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .bb-reach-inline span {
    text-align: left;
  }

  .bb-hero-image {
    max-width: 100%;
    margin: 1.25rem 0 1.5rem;
  }

  .bb-hero-image img {
    max-height: 280px;
  }
}
