body.projects-page {
  color: var(--color-blue);
}

body.projects-page .overlay-wrapper {
  width: 100%;
  aspect-ratio: 4 / 1;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 25% 100%, 0 90%);
}

body.projects-page .overlay-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 81%;
}

.section-projetos {
  margin-top: var(--size-900);
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-items: start;
}

.projects-layout > h1 {
  grid-column: 1;
  grid-row: 1;
}

.projects-index {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: var(--size-600);
}

.projects-content {
  grid-column: 2;
  grid-row: 1 / -1;
}

.projects-index h2 {
  font-size: var(--text-m);
  margin-bottom: var(--size-400);
}

.projects-index ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--size-200);
}

.projects-index a {
  font-size: var(--text-s);
  text-decoration: 2px dotted underline;
  text-underline-offset: 0.25rem;
  color: inherit;
}

.projects-index a:hover {
  text-decoration: none;
}

.projects-content {
  display: flex;
  flex-direction: column;
  gap: var(--size-900);
}

.project-card h2 {
  font-size: var(--text-l);
  font-weight: var(--font-bold);
  margin-bottom: var(--size-500);
}

.project-card h3 {
  font-size: var(--text-m);
  font-weight: var(--font-bold);
  margin-top: var(--size-600);
  margin-bottom: var(--size-300);
}

.project-card h4 {
  font-weight: var(--font-bold);
  margin-top: var(--size-400);
  margin-bottom: var(--size-200);
}

.project-card p {
  margin-bottom: var(--size-300);
}

.project-card ul {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: var(--size-100);
  margin-bottom: var(--size-300);
}

.project-card + .project-card {
  padding-top: var(--size-900);
  border-top: 1px solid currentColor;
}

@media (max-width: 50em) {
  .section-projetos {
    margin-top: var(--size-600);
  }

  .projects-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .projects-layout > h1 {
    grid-column: auto;
    grid-row: auto;
  }

  .projects-index {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }

  .projects-content {
    grid-column: auto;
    grid-row: auto;
  }
}
