html,
body {
  height: 100%;
  overflow: hidden;
}

.projects-shell {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.projects-shell .site-header,
.projects-shell .site-footer {
  flex-shrink: 0;
}

.projects-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 0 36px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.projects-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.projects-intro p {
  margin: 0;
}

.projects-intro span {
  display: inline-block;
  margin-left: 7px;
  color: var(--accent);
  font-size: 1rem;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  min-height: 130px;
  padding: 2px 0;
}

.project-entry + .project-entry {
  margin-top: 12px;
}

.project-copy {
  display: flex;
  min-width: 0;
  padding-left: 2px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.project-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.75rem;
}

.project-date {
  color: var(--accent);
}

.project-description {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.project-title {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(3.5rem, 6.25vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.061em;
  line-height: 0.9;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color 240ms ease;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:focus-visible,
.project-figure a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (hover: hover) {
  .project-entry:hover .project-title {
    color: transparent;
  }
}

.project-figure {
  width: 270px;
  justify-self: end;
  margin: 0;
}

.project-figure a {
  display: block;
  border-radius: 25px;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 835 / 329;
  object-fit: cover;
  border-radius: 25px;
}

@media (max-width: 900px) {
  .project-entry {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    min-height: 110px;
  }

  .project-title {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
  }

  .project-figure {
    width: 180px;
  }
}

@media (max-width: 680px) {
  .projects-main {
    padding: 22px 0 28px;
  }

  .projects-intro {
    margin-bottom: 4px;
  }

  .project-entry {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 12px;
    min-height: 90px;
    padding: 2px 0;
  }

  .project-copy {
    gap: 2px;
  }

  .project-description {
    white-space: normal;
  }

  .project-title {
    font-size: clamp(1.4rem, 7.2vw, 2.9rem);
    -webkit-text-stroke-width: 1px;
  }

  .project-figure {
    width: 100px;
  }
}
