.ogp-card {
  /* --- Modern Look & Feel --- */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px; /* Slightly more rounded */
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;

  /* --- Layout & Spacing --- */
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 2rem; /* Use rem for scalability */
  gap: 1rem;

  /* --- Responsive: Mobile-first --- */
  flex-direction: column;
}

.ogp-card:hover {
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
}

.ogp-card__image {
  /* --- Modern Look & Feel --- */
  background-color: #f8fafc;
  border-radius: 8px;

  /* --- Layout & Spacing --- */
  object-fit: cover;
  flex-shrink: 0;

  /* --- Responsive: Mobile-first --- */
  width: 100%;
  height: 180px;
  /* Ensure image is not stretched if it's smaller than the container */
  object-position: center;
}

.ogp-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0; /* Prevent overflow in flex container */
}

.ogp-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a202c;
  /* Ellipsis for long titles */
  overflow: hidden;
  text-overflow: ellipsis;
}

.ogp-card__description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a5568;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Add some space for the URL below */
  flex-grow: 1;
}

.ogp-card__url {
  font-size: 0.75rem;
  color: #718096;
  /* Ellipsis for long URLs */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Responsive: Desktop styles --- */
@media (min-width: 640px) {
  .ogp-card-target {
    max-width: 720px;
    margin: 2rem auto; /* top/bottom margin + auto left/right for centering */
  }
  .ogp-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .ogp-card__image {
    width: 120px;
    height: 120px;
  }
}