/* Prototype 02: an immersive photographic lead, three editorial cards, archive CTA.
   Native Query Loop items share an editable template; the first is the lead article. */
.bounty-blog {
  --blog-surface: #fcfbf9;
  --blog-ink: var(--bounty-ink, #302119);
  --blog-muted: var(--bounty-muted, #75675d);
  --blog-brown: var(--bounty-brown, #71492f);
  --blog-pill: #e9dcc8;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
  color: var(--blog-ink);
  background: linear-gradient(180deg, #ded0c2, #ede4d9 38%, #f5eee7 60%, #f4ece4);
  direction: rtl;
}
.bounty-blog *, .bounty-blog *::before, .bounty-blog *::after { box-sizing: border-box; }
.bounty-blog > .bounty-blog__query { margin: 0; }
.bounty-blog .bounty-blog__posts {
  display: grid;
  /* Outer tracks absorb wide-screen space; the lead spans every track. */
  grid-template-columns: minmax(20px, 1fr) repeat(3, minmax(0, 426px)) minmax(20px, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bounty-blog .bounty-blog__posts > li { min-width: 0; margin: 0 8px; padding: 0; list-style: none; }
.bounty-blog .bounty-blog__posts > li:nth-child(2) { grid-column: 2; }
.bounty-blog .bounty-blog__posts > li:nth-child(3) { grid-column: 3; }
.bounty-blog .bounty-blog__posts > li:nth-child(4) { grid-column: 4; }
.bounty-blog .bounty-blog__article {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffffed;
  border-radius: 12px;
  background: var(--blog-surface);
  box-shadow: 0 11px 22px #40312421, 0 1px 4px #32251b0b;
}
.bounty-blog .bounty-blog__image { flex: none; aspect-ratio: 224 / 124; margin: 0; background: #eee4d8; }
.bounty-blog .bounty-blog__image img { display: block; width: 100%; height: 100%; aspect-ratio: 224 / 124; object-fit: cover; object-position: center; }
.bounty-blog .bounty-blog__image--missing { display: grid; place-items: center; padding: 20px; color: var(--blog-muted); font-size: 13px; text-align: center; }
.bounty-blog .bounty-blog__article-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 0; padding: 16px 20px 20px; }
.bounty-blog .bounty-blog__category { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; font-size: 12px; line-height: 1.8; }
.bounty-blog .bounty-blog__category a { padding: 2px 12px; border-radius: 16px; background: var(--blog-pill); color: var(--blog-ink); text-decoration: none; }
.bounty-blog .bounty-blog__category .wp-block-post-terms__separator { display: none; }
.bounty-blog .bounty-blog__title { margin: 0 0 16px; color: var(--blog-ink); font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.bounty-blog .bounty-blog__title a { color: inherit; text-decoration: none; }
.bounty-blog .bounty-blog__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bounty-blog .bounty-blog__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: auto 0 0; color: var(--blog-muted); font-size: 12px; line-height: 1.8; }
.bounty-blog .bounty-blog__date { margin: 0; font-size: inherit; }
.bounty-blog .bounty-blog__calendar { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bounty-blog .bounty-blog__eyebrow,
.bounty-blog .bounty-blog__excerpt,
.bounty-blog .bounty-blog__article-cta { display: none; }

/* Dynamic photographic lead. Its source and text remain separate WordPress data. */
.bounty-blog .bounty-blog__posts > li:first-child { grid-column: 1 / -1; margin: 0 0 0; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article,
.bounty-blog .bounty-blog__empty-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 28.6vw, 440px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #4b362b url('blog-assets/hero-photographic-backdrop-inpainted.png') center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; aspect-ratio: auto; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__image img { width: 100%; height: 100%; aspect-ratio: auto; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__image--missing { display: none; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article::before,
.bounty-blog .bounty-blog__empty-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #21130bd9, #17100bb3 46%, #1f130e99);
  pointer-events: none;
}
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article::after,
.bounty-blog .bounty-blog__empty-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(transparent, #ede4d9);
  pointer-events: none;
}
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article-body,
.bounty-blog .bounty-blog__empty-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 64px;
}
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__eyebrow,
.bounty-blog .bounty-blog__empty-hero .bounty-blog__eyebrow {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.bounty-blog .bounty-blog__eyebrow::before,
.bounty-blog .bounty-blog__eyebrow::after { content: ''; position: absolute; top: 50%; width: 24px; height: 1px; background: #ffffff66; }
.bounty-blog .bounty-blog__eyebrow::before { inset-inline-end: calc(100% + 12px); }
.bounty-blog .bounty-blog__eyebrow::after { inset-inline-start: calc(100% + 12px); }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__category { justify-content: center; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__title,
.bounty-blog .bounty-blog__empty-title { max-width: 900px; margin: 0 0 12px; color: #fff; font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; line-height: 1.65; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__excerpt { display: block; max-width: 720px; margin: 0 0 20px; color: #fff; font-size: 16px; line-height: 2; }
.bounty-blog .bounty-blog__excerpt p { margin: 0; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__meta { display: none; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border: 1px solid #ffffff99; border-radius: 24px; background: #302119; color: #fff; font-size: 14px; text-decoration: none; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article-cta::after { content: '←'; margin-inline-start: 8px; }
.bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article-cta:hover { background: #4b301f; }
.bounty-blog .bounty-blog__empty-hero { margin: 0; }
.bounty-blog .bounty-blog__empty-hero > p:not(.bounty-blog__eyebrow) { max-width: 640px; margin: 0; color: #fff; font-size: 16px; line-height: 2; }
.bounty-blog .bounty-blog__archive-actions { display: flex; justify-content: center; margin: 32px 20px 0; }
.bounty-blog .bounty-blog__archive-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; border-radius: 16px; background: var(--blog-brown); color: #fff; font-size: 14px; }
.bounty-blog .bounty-blog__archive-button .wp-block-button__link::after { content: '←'; margin-inline-start: 8px; }
.bounty-blog :is(a, button):focus-visible { outline: 3px solid #b9824a; outline-offset: 4px; }

@media (max-width: 921px) {
  .bounty-blog .bounty-blog__posts { grid-template-columns: minmax(20px, 1fr) repeat(2, minmax(0, 426px)) minmax(20px, 1fr); row-gap: 16px; }
  .bounty-blog .bounty-blog__posts > li:nth-child(4) { grid-column: 2; }
  .bounty-blog .bounty-blog__article-body { padding: 16px; }
}
@media (max-width: 600px) {
  .bounty-blog { padding-bottom: 32px; }
  .bounty-blog .bounty-blog__posts { grid-template-columns: 20px minmax(0, 1fr) 20px; row-gap: 20px; }
  .bounty-blog .bounty-blog__posts > li:not(:first-child) { grid-column: 2; margin-inline: 0; }
  .bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__article-body,
  .bounty-blog .bounty-blog__empty-hero { padding: 36px 24px 56px; }
  .bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__title,
  .bounty-blog .bounty-blog__empty-title { font-size: 28px; }
  .bounty-blog .bounty-blog__posts > li:first-child .bounty-blog__excerpt { font-size: 14px; }
  .bounty-blog .bounty-blog__title { font-size: 20px; }
  .bounty-blog .bounty-blog__archive-actions { margin-top: 24px; }
}
