/* elevated. blog: compact heroes, shaded panels, listing + article chrome */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact page header (blog list + article) — no jarallax bloat */
.ehd-page-hero--blog {
  position: relative;
  color: #fff;
  background-color: #1a1714;
  background-image: var(--ehd-hero-img);
  background-size: cover;
  background-position: center 40%;
  min-height: 0 !important;
  padding: 5.25rem 0 1.35rem !important;
  overflow: hidden;
}

.ehd-page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 9, 8, 0.72) 0%, rgba(10, 9, 8, 0.45) 55%, rgba(10, 9, 8, 0.35) 100%);
  pointer-events: none;
}

.ehd-page-hero--blog .container {
  position: relative;
  z-index: 2;
}

.ehd-page-hero--blog h1,
.ehd-page-hero--blog #ehd-post-hero-title {
  font-size: clamp(1.75rem, 3.6vw, 2.35rem) !important;
  margin-bottom: 0.3rem !important;
  max-width: 20ch;
  color: #fff !important;
}

.ehd-page-hero--blog .crumb,
.ehd-page-hero--blog .crumb a,
.ehd-page-hero--blog .crumb li {
  color: rgba(255, 255, 255, 0.88) !important;
}

.ehd-page-hero--blog .ehd-page-hero__lede {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  max-width: 28ch;
  margin-left: auto;
}

@media (max-width: 767px) {
  .ehd-page-hero--blog {
    padding: 4.4rem 0 1.05rem !important;
    background-position: center center;
  }

  .ehd-page-hero--blog h1,
  .ehd-page-hero--blog #ehd-post-hero-title {
    max-width: none;
    font-size: 1.55rem !important;
  }

  .ehd-page-hero--blog .ehd-page-hero__lede {
    margin-left: 0;
    max-width: none;
  }
}

/* Layout */
.ehd-blog-section {
  padding: 2.25rem 0 4rem;
}

.ehd-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

@media (max-width: 991px) {
  .ehd-blog-layout {
    grid-template-columns: 1fr;
  }
}

.ehd-blog-panel {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.04);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.ehd-blog-intro {
  background: linear-gradient(165deg, #fff 0%, var(--ehd-stone) 120%);
  margin-bottom: 1.15rem;
}

.ehd-blog-intro__eyebrow,
.ehd-blog-card__cat,
.ehd-post-kicker {
  font-family: var(--ehd-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ehd-champagne-deep);
  font-weight: 600;
}

.ehd-blog-intro h2 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem) !important;
  line-height: 1.08 !important;
  color: var(--ehd-ink) !important;
}

.ehd-blog-card__title {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.25;
  margin: 0;
}

.ehd-blog-intro p {
  margin: 0;
  color: var(--ehd-mute);
}

.ehd-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 767px) {
  .ehd-blog-grid {
    grid-template-columns: 1fr;
  }
}

.ehd-blog-card__body {
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(180deg, #fffaf4 0%, #ebe4d8 100%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  border-top: 1px solid rgba(168, 132, 79, 0.18);
}

.ehd-blog-card {
  display: flex;
  flex-direction: column;
  background: #f7f1e8;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(13, 13, 13, 0.06);
  height: 100%;
}

.ehd-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ehd-stone);
}

.ehd-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ehd-blog-card:hover .ehd-blog-card__media img {
  transform: scale(1.04);
}

.ehd-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ehd-mute);
}

.ehd-blog-card__title a {
  color: var(--ehd-ink);
  text-decoration: none;
}

.ehd-blog-card__title a:hover {
  color: var(--ehd-champagne-deep);
}

.ehd-blog-card__excerpt {
  margin: 0;
  color: var(--ehd-mute);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.ehd-blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ehd-blog-card__tag,
.ehd-blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.16);
  color: var(--ehd-ink);
  font-size: 0.72rem;
  text-decoration: none;
  border: 1px solid rgba(168, 132, 79, 0.25);
}

.ehd-blog-tag.is-active,
.ehd-blog-card__tag:hover,
.ehd-blog-tag:hover {
  background: var(--ehd-champagne);
  border-color: var(--ehd-champagne);
  color: var(--ehd-ink);
}

.ehd-blog-tag span,
.ehd-blog-side__link em {
  font-style: normal;
  opacity: 0.7;
  font-size: 0.68rem;
}

.ehd-blog-card__more {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ehd-champagne-deep);
  text-decoration: none;
}

.ehd-blog-card__more:hover {
  color: var(--ehd-ink);
}

.ehd-blog-empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  background: var(--ehd-stone);
  border-radius: 4px;
}

/* Sidebar */
.ehd-blog-side {
  display: grid;
  gap: 1rem;
}

.ehd-blog-side .ehd-blog-panel h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.ehd-blog-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.ehd-blog-search input {
  border: 1px solid rgba(13, 13, 13, 0.16);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ehd-ink);
}

.ehd-blog-search button {
  border: 0;
  border-radius: 2px;
  background: var(--ehd-ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.ehd-blog-search button:hover {
  background: var(--ehd-champagne-deep);
}

.ehd-blog-side__list,
.ehd-blog-recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ehd-blog-side__link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  color: var(--ehd-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.ehd-blog-side__link.is-active,
.ehd-blog-side__link:hover {
  color: var(--ehd-champagne-deep);
}

.ehd-blog-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ehd-blog-recent li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.ehd-blog-recent a {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

.ehd-blog-recent strong {
  font-family: var(--ehd-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ehd-ink);
}

.ehd-blog-recent span {
  font-size: 0.78rem;
  color: var(--ehd-mute);
}

/* Article */
.ehd-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

@media (max-width: 991px) {
  .ehd-post-layout {
    grid-template-columns: 1fr;
  }
}

.ehd-post-article {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.06);
  overflow: hidden;
}

.ehd-post-heroimg {
  display: block;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  background: var(--ehd-stone);
}

@media (max-width: 767px) {
  .ehd-post-heroimg {
    aspect-ratio: 16 / 9;
    max-height: 160px;
  }
}

@media (min-width: 1200px) {
  .ehd-post-heroimg {
    max-height: 250px;
  }
}

.ehd-post-content {
  padding: 1.35rem 1.4rem 1.75rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f0e8db 100%);
}

@media (min-width: 768px) {
  .ehd-post-content {
    padding: 1.75rem 2rem 2.15rem;
  }
}

.ehd-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--ehd-mute);
}

.ehd-post-meta a {
  color: var(--ehd-champagne-deep);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

#ehd-post-title {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  margin: 0 auto 0.75rem;
  line-height: 1.08 !important;
  max-width: 18ch;
  color: var(--ehd-ink) !important;
}

#ehd-post-excerpt {
  margin: 0 auto 1.15rem;
  color: var(--ehd-mute);
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
  max-width: 36rem;
}

#ehd-post-body {
  color: var(--ehd-ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

#ehd-post-body h2 {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  line-height: 1.08 !important;
  max-width: 20ch;
  margin: 2.25rem auto 0.9rem;
  color: var(--ehd-ink) !important;
}

#ehd-post-body h3 {
  margin-top: 1.55rem;
  margin-bottom: 0.55rem;
  font-size: 1.28rem;
  text-align: center;
  font-weight: 700;
}

#ehd-post-body p,
#ehd-post-body ul,
#ehd-post-body ol {
  margin-bottom: 1rem;
}

#ehd-post-body a {
  color: var(--ehd-champagne-deep);
}

#ehd-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.35rem 0 0;
}

.ehd-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13, 13, 13, 0.1);
}

.ehd-post-related-wrap {
  margin-top: 1.5rem;
}

.ehd-post-related-wrap > h2 {
  margin-bottom: 0.85rem;
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(1.55rem, 3vw, 2.1rem) !important;
}

.ehd-post-related-wrap .ehd-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .ehd-post-related-wrap .ehd-blog-grid {
    grid-template-columns: 1fr;
  }
}
