.house-ad-slot {
  margin: 16px 0;
}

.house-ad-slot:empty {
  display: none;
}

.house-ad-promotion {
  display: grid;
  gap: 7px;
}

.house-ad-label {
  margin: 0 0 0 2px;
  color: #64748b;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.house-ad-link {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(220px, 26.667vw, 256px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.house-ad-link picture,
.house-ad-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.house-ad-image {
  object-fit: cover;
  background: #0b2345;
}

.house-ad-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 10, 24, .92) 0%, rgba(4, 17, 37, .78) 42%, rgba(4, 17, 37, .12) 72%, transparent 100%);
  pointer-events: none;
}

.house-ad-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 9px;
  width: min(62%, 620px);
  padding: clamp(20px, 3.4vw, 38px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .24);
}

.house-ad-title {
  margin: 0;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.house-ad-body {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, .91);
  font-size: clamp(.86rem, 1.35vw, 1rem);
  line-height: 1.42;
}

.house-ad-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 2px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: #fff;
  color: #0f2747;
  font-size: .88rem;
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
}

.house-ad-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}

.house-ad-link:hover .house-ad-cta {
  background: #eaf3ff;
}

.house-ad-link:focus-visible {
  outline: 4px solid #60a5fa;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .house-ad-link {
    transition: transform .16s ease, box-shadow .16s ease;
  }
}

@media (max-width: 600px) {
  .house-ad-link {
    min-height: 320px;
  }

  .house-ad-link::after {
    background: linear-gradient(180deg, rgba(2, 10, 24, .94) 0%, rgba(3, 15, 34, .82) 47%, rgba(3, 15, 34, .18) 78%, transparent 100%);
  }

  .house-ad-copy {
    align-self: start;
    width: 100%;
    padding: 20px;
  }

  .house-ad-title {
    max-width: 20ch;
    font-size: clamp(1.24rem, 6vw, 1.6rem);
  }

  .house-ad-body {
    max-width: 38ch;
    font-size: .88rem;
  }

  .house-ad-cta {
    width: max-content;
    max-width: 100%;
  }
}
