.project-download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

#article-container a.project-action {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(25, 72, 110, .17);
  transform: translateY(0);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

#article-container a.project-action-primary {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .23), transparent 34%),
    linear-gradient(135deg, #268ee1, #5872e8);
}

#article-container a.project-action-github {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .13), transparent 34%),
    linear-gradient(135deg, #2e3744, #171c24);
}

#article-container a.project-action:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 17px 34px rgba(25, 72, 110, .25);
  transform: translateY(-4px);
}

.project-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
  font-size: 18px;
}

.project-action-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.project-action-copy strong,
.project-action-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-action-copy strong {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}

.project-action-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.project-action-arrow {
  justify-self: end;
  font-size: 10px;
  opacity: .58;
  transition: opacity .24s ease, transform .24s ease;
}

.project-action:hover .project-action-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

[data-theme='dark'] #article-container a.project-action {
  border-color: rgba(120, 211, 255, .14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
}

[data-theme='dark'] #article-container a.project-action:hover {
  border-color: rgba(120, 211, 255, .35);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42), 0 0 20px rgba(73, 184, 255, .1);
}

@media (max-width: 640px) {
  .project-download-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #article-container a.project-action {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #article-container a.project-action,
  .project-action-arrow {
    transition: none;
  }
}
