.fpga-page {
  max-width: 1120px;
  margin: 16px auto 40px;
  color: #292e33;
}

.fpga-page h1,
.fpga-page h3 {
  text-align: left;
}

.fpga-page h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.fpga-page h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 2rem;
}

.project-section {
  margin-bottom: 28px;
}

.project-section h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.project-section figure {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.project-section figure > a,
.project-section figcaption {
  min-width: 0;
}

.project-section img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 600px);
  max-height: 280px;
  margin: 0 auto;
}

.project-section figcaption {
  max-width: 76ch;
  margin: 16px auto 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.project-section figcaption p:first-child {
  margin-top: 0;
}

.project-section figcaption p:last-child {
  margin-bottom: 0;
}

.project-section figure + figure {
  margin-top: 24px;
}

.project-details-hint {
  margin: 0 0 12px;
  color: #626b74;
  font-size: .95rem;
}

.project-details {
  margin-bottom: 12px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
}

.project-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.project-details summary::-webkit-details-marker {
  display: none;
}

.project-details summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.project-details[open] > summary::after {
  content: "−";
}

.project-details summary:hover {
  background: var(--accent-strong);
}

.project-details summary:focus-visible {
  outline: 2px solid #292e33;
  outline-offset: 2px;
}

.project-details summary h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-details[open] > summary {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--accent-strong);
  border-radius: 6px 6px 0 0;
}

.project-details figure {
  padding: 0 20px;
}

.project-details figure:last-child {
  padding-bottom: 20px;
}

@media (min-width: 800px) {
  .project-section figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }

  .project-section figcaption {
    margin: 0;
    text-align: left;
  }
}
