.home__header {
  background-color: rgba(8, 8, 8);
}

.home__header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home__title {
  color: var(--color-white);
  text-transform: uppercase;
}

.home__header .container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-block: 48px;
  flex-direction: column;
  gap: 24px;
}

.home__filter {
  white-space: nowrap;
}

.home__overline {
  color: var(--color-gold);
}
.home__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-self: flex-end;
}
.home__featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 48px;
}

.home__lead,
.home__sidebar-item,
.home__card {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: #1c1b19;
  border: none;
  color: #fff;
}

.home__lead {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.home__lead:hover .home__lead-excerpt {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.home__lead-content::before,
.home__card-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -120px;
  background: linear-gradient(
    to top,
    rgba(11, 11, 11, 0.72) 0%,
    rgba(11, 11, 11, 0.35) 55%,
    rgba(11, 11, 11, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
  transition: top 0.3s ease;
}

.home__lead:hover .home__lead-content::before {
  top: -200px;
}

.home__lead:hover .home__lead-image,
.home__card:hover .home__card-image {
  transform: scale(1.1);
}

.home__lead:hover .home__lead-img,
.home__card:hover .home__card-img {
  opacity: 1;
}

.home__lead-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.3s ease;
}

.home__lead-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.home__lead-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: none;
}

.home__lead-category,
.home__card-meta {
  display: inline-block;
  width: fit-content;
  background: var(--color-orange);
  color: #111;
  padding: 3px 8px;
}

.home__lead-title,
.home__card-title,
.home__sidebar-title {
  color: #fff;
  font-family: "Archivo", sans-serif;
  text-wrap: balance;
}

.home__lead-excerpt {
  color: rgba(244, 241, 234, 0.75);
  max-height: 8em;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin 0.35s ease;
  display: none;
}

.home__lead-cta,
.home__card-cta {
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.home__sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home__sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #1c1b19;
  border-left: 4px solid var(--color-orange);
  transition: border-left-width 0.3s ease;
}

.home__sidebar-item:hover {
  border-left-width: 16px;
}

.home__sidebar-image {
  display: none;
}

.home__sidebar-meta {
  color: var(--color-gold);
  font-size: 0.65rem;
}

.home__sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-block: 32px;
}
.home__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  min-height: 220px;
  background: #1c1b19;
}

.home__card-image {
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease;
  z-index: 0;
}
.home__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.home__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.home__more-title {
  text-transform: uppercase;
}

.home__load-more {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

@media (min-width: 520px) {
  .home__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .home__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home__lead-excerpt {
    display: block;
  }
}

@media (min-width: 990px) {
  .home__featured {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
  }

  .home__header .container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
