/* ---------- CV ---------- */

.cv {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 46px) clamp(20px, 4vw, 40px) 100px;
}

.cv > h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 60px;
}

.cv-row {
  display: flex;
  gap: 23px;
  padding: 35px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-row:first-of-type {
  border-top: none;
}

.cv-row__label {
  flex: 0 0 30%;
  font-size: 18px;
  font-weight: 700;
}

.cv-row__content {
  flex: 1 1 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  text-align: justify;
}

.cv-row__content p {
  margin: 0 0 4px;
}

.cv-entry {
  margin: 0 0 20px;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry strong {
  color: var(--fg);
}

.cv-row__content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-row__content ul li {
  margin: 0 0 4px;
}

/* A paragraph directly after a list introduces the next list, so it needs
   breathing room above it. This was an inline style before the CV moved to
   Prismic, which has no way to carry one. */
.cv-row__content ul + p {
  margin-top: 10px;
}

@media (max-width: 800px) {
  .cv {
    padding-top: calc(var(--nav-height) + 30px);
  }

  .cv > h1 {
    margin-bottom: 30px;
  }

  .cv-row {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .cv-row__label {
    flex: none;
  }
}
