/* CV page: builds on ../css/sheet.css. Skills as a ruled grid of cells,
   and roles with their dates in a mono column beside them. */

/* skills: a ruled grid of cells; each fills on hover */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 0 0 -1px 0;
  overflow: clip;
}

.skills li {
  padding: 14px var(--gut) 16px;
  border-bottom: var(--hair);
  border-right: var(--hair);
  margin-right: -1px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.08s linear;
}

.skills b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font: 700 22px/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.skills li:hover {
  background: var(--ink);
  color: var(--blue);
}

.skills li:hover b {
  color: var(--blue);
}

/* roles: dates in a mono column, the role beside them */

.role {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding: 22px var(--gut) 28px;
}

.role + .role {
  border-top: var(--hair);
}

@media (min-width: 1000px) {
  .role {
    grid-template-columns: 170px 1fr;
  }
}

.when {
  font: 700 13px/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.when i {
  font-style: normal;
  color: var(--hi);
}

.what {
  max-width: 44em;
}

h3 {
  font: 700 clamp(30px, 4.4vw, 46px) / 0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.title {
  margin-top: 8px;
  font: 400 14px/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.note {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 7px;
  background: var(--hi);
  color: #000;
  font: 700 11px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prose {
  margin-top: 16px;
}

.points {
  margin-top: 16px;
  border-top: var(--hair);
}

.points li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: var(--hair);
  font-size: 14px;
  line-height: 1.6;
}

.points li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--hi);
}

.points strong {
  font-weight: 700;
}

.clients strong {
  display: block;
  font: 700 17px/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media print {
  .role {
    break-inside: avoid;
  }

  .note {
    background: none;
    border: 1px solid #000;
    padding: 1px 5px;
  }

  .skills li:hover,
  .skills li:hover b {
    background: none;
    color: inherit;
  }
}
