@layer screens {
/* Project card — Ink & Paper. The whole card is a link to the project hub. */

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  background: var(--surface);
  border: var(--border-width) solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  min-width: 0;

  &:hover {
    background: var(--surface-sunken);
  }

  &:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: -3px;
  }

  /* Title + status row */
  & .project-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-3);
  }

  & .project-card__name {
    margin: 0;
    min-width: 0;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text);
  }

  & .project-card__top .badge {
    flex-shrink: 0;
  }

  & .project-card__meta {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-subtle);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Hairline divider between meta and stats */
  & .project-card__divider {
    width: 100%;
    height: 0;
    margin: 0;
    border: 0;
    border-block-start: var(--border-width) solid var(--border);
  }

  /* Stats row */
  & .project-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    margin: 0;
  }

  & .project-card__stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
  }

  & .project-card__stat-label {
    order: 2;
    font-size: var(--font-size-xs);
    color: var(--text-subtle);
  }

  /* Money renders in the base font — the display fonts lack the ₪ glyph */
  & .project-card__stat-value {
    order: 1;
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text);
  }
}
}
