.ricks-agm {
  padding-top: 2.5rem;
}

.ricks-agm__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  overflow: hidden;
  border: 1px solid #302b2b;
  border-radius: 0.75rem;
  background: #191616;
  box-shadow: 0 12px 26px rgb(25 22 22 / 14%);
}

.ricks-agm__brand {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid rgb(255 255 255 / 10%);
  background-color: #211b1b;
  background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ricks-agm__link {
  display: block;
  width: min(100%, 20rem);
  border-radius: 0.5rem;
}

.ricks-agm__brand img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e4dedd;
  border-radius: 0.5rem;
  background: #fff;
}

.ricks-agm__content {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border-left: 4px solid #d00000;
}

.ricks-agm__content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  line-height: 1.15;
}

.ricks-agm__content p {
  max-width: 45ch;
  margin: 0.75rem 0 0;
  color: #e3dbda;
  font-size: 1rem;
  line-height: 1.55;
}

.ricks-agm__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 639px) {
  .ricks-agm__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ricks-agm__brand {
    grid-column: 1;
    border-left: 0;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
  }

  .ricks-agm__content {
    grid-row: 2;
  }
}
