@layer components {
  .entry-card {
    background: var(--color-surface);
    break-inside: avoid;
    display: inline-block;
    margin: 0 0 var(--space-3);
    width: 100%;

    &:hover .entry-card__media img {
      filter: grayscale(0) contrast(1);
    }
  }

  .entry-card__media {
    align-items: center;
    background: var(--color-media-placeholder);
    color: var(--color-text);
    display: flex;
    justify-content: center;
    min-height: 80px;
    overflow: hidden;
    text-decoration: none;
  }

  .entry-card__media img {
    display: block;
    filter: grayscale(1) contrast(1.05);
    height: auto;
    transition: filter 160ms ease;
    width: 100%;

    @media (prefers-reduced-motion: reduce) {
      transition: none;
    }
  }

  .entry-card__media iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    filter: grayscale(1);
    width: 100%;
  }

  .entry-card__media > span {
    align-items: center;
    display: flex;
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    justify-content: center;
    min-height: 120px;
    text-transform: uppercase;
    width: 100%;
  }

  .entry-card__body {
    padding: 10px;
  }

  .entry-card__meta {
    display: flex;
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    gap: var(--space-2);
    justify-content: space-between;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .entry-card__source {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .entry-card__title {
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: var(--space-3) 0 0;
  }

  .entry-card__title a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  .entry-card__excerpt {
    font-size: 13px;
    line-height: 1.35;
    margin: 10px 0 0;

    @media (width <= 40rem) {
      display: none;
    }
  }

  .entry-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) 10px;
    margin-top: var(--space-4);
  }

  .entry-card__tag {
    align-items: center;
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    gap: 5px;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}
