.projects-overview .board {
  background-color: var(--bg-card);
}

/* Scoped to the project directory; homepage and paper pages retain their styles. */
.projects-overview .overview-title {
  margin:32px 0 24px;
  font-size:28px;
  line-height:1.2;
  font-weight:800;
}
.projects-overview .projects-grid {
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
  align-items:stretch;
  margin:0;
}
.projects-overview .project-section { margin:0; }
.projects-overview .project-card {
  min-width:0;
  position:relative;
  padding:16px;
  border:1px solid var(--border-light);
  border-radius:14px;
  background:var(--bg-card);
  box-shadow:none;
  transition:border-color .2s ease;
}
.projects-overview .project-card-image {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:contain;
  border:0;
  border-radius:4px;
  margin:0 0 16px;
}
.projects-overview .project-card-heading {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.projects-overview .project-card h3 {
  margin:0;
  font-size:18px;
  line-height:1.4;
  font-weight:700;
}
.projects-overview .project-card-status {
  margin:0;
  color:var(--text-white);
  font-size:12px;
  line-height:1.2;
}
.projects-overview .project-card-description {
  margin:8px 0 0;
  font-size:14px;
  line-height:1.6;
  text-align:left;
  hyphens:none;
  flex-grow:0;
}
.projects-overview .project-card-links { display:flex; flex-wrap:wrap; gap:16px; margin-top:auto; padding-top:14px; }
.projects-overview .project-card-links a {
  color:var(--primary);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}
.projects-overview .project-card-links a:hover { text-decoration:underline; }
.projects-overview a:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
.projects-overview .section-intro { margin:40px 0 24px; text-align:left; }
.projects-overview .section-intro h2 { margin:0; font-size:24px; font-weight:800; }
@media (max-width:600px) {
  .projects-overview .projects-grid { grid-template-columns:minmax(0, 1fr); gap:24px; }
  .projects-overview .overview-title { margin-top:24px; font-size:25px; }
  .projects-overview .project-card-image { max-height:250px; }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .projects-overview .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .projects-overview .project-card { transition: none; }
}


@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.projects-overview .project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--border-angle), var(--gradient-light), var(--gradient-mid) 20%, var(--primary-hover) 35%, var(--primary) 45%, var(--gradient-light) 60%);
  -webkit-mask: linear-gradient(var(--bg-card) 0 0) content-box, linear-gradient(var(--bg-card) 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
}
.projects-overview .project-card:hover::before,
.projects-overview .project-card:focus-within::before {
  opacity: 1;
  animation: project-border-orbit 3s linear infinite;
}
@keyframes project-border-orbit { to { --border-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .projects-overview .project-card::before { animation: none; transition: none; }
}

.projects-overview .project-card-links a::after {
  content: " ↗";
  display: inline-block;
  margin-left: 3px;
}
.projects-overview .fun-section {
  padding-bottom: 24px;
}
.projects-overview .fun-section .project-card-links {
  padding-top: 0;
}
