/* Projects page: one line per project, name on the left, links after it */
.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
  line-height: 1.7;
}

.project-list li + li {
  margin-top: 0.5em;
}

.project-name {
  color: var(--text);
}

.project-links {
  margin-left: 1.5ch;
  color: var(--nav);
}

.project-links a {
  color: var(--nav);
  text-underline-offset: 0.25em;
  transition: color 0.15s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--nav-hover);
}

/* The list sits in the empty sky at the top left of the rainy windshield
   art, without a backing. */
.home.projects {
  top: 15vh;
  transform: none;
  width: min(64ch, 52vw - var(--home-left));
}

.home.projects li {
  white-space: nowrap; /* keep each project on one line in the sky */
}

/* Compact screens: back to the shared layout from css/style.css, with the
   dark backing from ascii-bg.css since the list covers the art there. */
@media (max-width: 1100px), (max-aspect-ratio: 3/2), (max-height: 560px) {
  .home.projects {
    top: 7rem;
    width: auto;
  }

  .home.projects li {
    white-space: normal;
  }
}

@media (max-height: 560px) {
  .home.projects {
    top: 4.5rem;
  }
}
