body {
  background: #f6f1e8;
  color: #1b1b1b;
}

.gallery-text {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-left: auto;
  z-index: 100;
}

.blog-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0 5rem;
}

.blog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.blog-intro-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #b21615;
  font: 700 0.82rem/1.2 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-intro h1,
.section-heading h2,
.featured-content h2,
.post-card h3 {
  margin: 0;
  line-height: 1.05;
}

.blog-intro h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.blog-intro p {
  margin: 0.9rem 0 0;
  max-width: 670px;
  color: #4d463f;
  font: 1.05rem/1.7 Georgia, serif;
}

.blog-tools {
  margin: 2.25rem 0 2rem;
  display: grid;
  gap: 1rem;
}

.search-wrap {
  position: relative;
  max-width: 520px;
}

.search-wrap input {
  width: 100%;
  border: 1px solid #cdbda9;
  border-radius: 999px;
  background: #fff;
  padding: 0.95rem 1.25rem;
  font: 1rem Arial, sans-serif;
  color: #1b1b1b;
  outline: none;
  box-shadow: 0 10px 28px rgba(57, 40, 25, 0.06);
}

.search-wrap input:focus {
  border-color: #b21615;
  box-shadow: 0 0 0 3px rgba(178, 22, 21, 0.12);
}

.category-filters,
.post-categories,
.viewer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pill,
.category-pill {
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  font: 700 0.74rem/1 Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-pill {
  border: 1px solid #d9cbb8;
  background: #fff;
  color: #5d4f43;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: #b21615;
  background: #b21615;
  color: #fff;
}

.category-pill {
  display: inline-flex;
  border: 1px solid rgba(178, 22, 21, 0.18);
  background: rgba(178, 22, 21, 0.07);
  color: #8e1615;
}

.featured-post {
  margin-bottom: 4rem;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  min-height: 430px;
  background: #171717;
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(43, 28, 16, 0.16);
}

.featured-media {
  min-height: 430px;
  background: #2a2a2a;
}

.featured-image,
.post-card-image,
.post-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,147,91,.32), transparent 32%),
    linear-gradient(135deg, #b21615, #711110 70%);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  padding: 2rem;
}

/* The fallback placeholder sits next to the real image in the DOM.
   Author CSS can otherwise override the browser's native [hidden] rule,
   causing both the cover and placeholder to render and making cards extremely tall. */
.post-image-placeholder[hidden] {
  display: none !important;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.featured-kicker {
  margin-bottom: 1rem;
  color: #d6ad82;
  font: 700 0.78rem/1 Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-content .category-pill {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.09);
  color: #fff;
}

.featured-content h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.featured-content p {
  color: #ddd4ca;
  font: 1.02rem/1.65 Georgia, serif;
  margin: 1.2rem 0 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  color: #766b61;
  font: 0.86rem/1.4 Arial, sans-serif;
}

.featured-content .post-meta {
  color: #bfb7ae;
}

.post-meta span + span::before {
  content: "•";
  margin-right: 1rem;
}


/* Author avatar shown beside the author name on featured and regular posts */
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 30px;
  background: #e9e3dc;
}

.featured-content .post-author-image {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid rgba(255,255,255,.25);
}

.post-author-name {
  white-space: nowrap;
}

.read-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  color: inherit;
  font: 700 0.9rem/1 Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

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

.post-card {
  min-width: 0;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(66, 45, 28, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(66, 45, 28, 0.14);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ece6dd;
}

.post-type-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  border-radius: 999px;
  background: rgba(24,24,24,.88);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font: 700 0.72rem/1 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.type-newsletter .post-type-badge {
  background: rgba(178, 22, 21, .92);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem;
}

.post-card h3 {
  margin-top: 0.95rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.post-card p {
  margin: 0.85rem 0 0;
  color: #655c53;
  font: 0.96rem/1.6 Georgia, serif;
}

.post-card .read-action {
  margin-top: auto;
  padding-top: 1.25rem;
  color: #a51b1a;
}

.blog-status,
.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: 18px;
  background: #fff;
  color: #61564c;
  text-align: center;
  font: 1rem/1.6 Arial, sans-serif;
}

@media (max-width: 980px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 330px;
    aspect-ratio: 16 / 9;
  }
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery-text { display: none; }
  .blog-page {
    width: min(100% - 1.2rem, 1180px);
    padding-top: 2rem;
  }
  .blog-intro {
    display: block;
  }
  .featured-card {
    border-radius: 20px;
  }
  .featured-media {
    min-height: 220px;
  }
  .featured-content {
    padding: 1.5rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
