/* Uniform card used for every project on the index except the featured
   application, rendered by _partials/project-card.html and loaded via that
   page's `stylesheets` front matter.

   Edge language follows the research cards: straight left edge, right corners
   rounded, no box border, faint brand tint. The edge here is only a shade
   darker than the card fill, so a column of eight cards reads as texture
   rather than as eight accent bars. */

.project-card {
  border-left: 4px solid rgba(38, 53, 170, 0.1);
  background-color: rgba(38, 53, 170, 0.03);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 0 0 0.85rem;
}

/* Overrides the global heading scale: these sit inside a section, not above
   one, so they need to stay close to body size whether they render as h3
   or h4. */
.project-card__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}

/* The mark is inlined SVG so it inherits the heading colour; Simple Icons
   ship no fill attribute, which is what makes currentColor take effect. */
.project-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

.project-card__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.project-card__body p {
  margin: 0;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.project-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(38, 53, 170, 0.09);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Keep the label in brand colour through every link state: the global
   a:visited rule is more specific than a single class and would tint it. */
.project-card__pill,
.project-card__pill:visited,
.project-card__pill:hover {
  color: var(--primary-color);
}

.project-card__pill:hover {
  background-color: rgba(38, 53, 170, 0.14);
  text-decoration: none;
}

.project-card__pill .mdi {
  font-size: 1.1em;
  line-height: 1;
}

/* Machine names -- repository, package -- set apart from the pill label. */
.project-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
