/*
 * CV. Builds on site.css: the same grid on screen, and a plain A4
 * résumé in print (Save as PDF), with the page chrome removed.
 */

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--muted);
}

.cv-contacts a:hover {
  color: var(--accent);
}

.cv-actions {
  display: flex;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}

.cv-status {
  font-size: var(--fs-meta);
  font-weight: 500;
}

.cv-status .mark {
  margin: 0 0.6em 0 0;
  vertical-align: 0.12em;
}

.cv-print {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.cv-print:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.cv-profile {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Experience ---------- */

.cv-roles {
  display: grid;
  gap: 28px;
}

.cv-role__company {
  grid-column: 1 / 7;
  font-weight: 600;
}

.cv-role__period {
  grid-column: 7 / -1;
  justify-self: end;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.cv-role__title {
  color: var(--muted);
}

.cv-points {
  display: grid;
  max-width: 68ch;
  margin-block: 10px;
  gap: 6px;
  color: var(--muted);
}

.cv-points li {
  position: relative;
  padding-left: 18px;
}

.cv-points li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--dim);
}

.cv-role__stack {
  font-size: var(--fs-meta);
}

/* ---------- Selected work ---------- */

.cv-work {
  padding-block: 5px;
}

.cv-work__title {
  grid-column: 1 / 4;
  font-weight: 600;
}

.cv-work__body {
  grid-column: 4 / -1;
  color: var(--muted);
}

.cv-work__body .dim {
  font-size: var(--fs-meta);
}

/* ---------- Recommendations ---------- */

.cv-quotes {
  display: grid;
  gap: 18px;
}

.cv-quotes blockquote {
  max-width: 68ch;
  hanging-punctuation: first;
}

.cv-quotes figcaption {
  margin-top: 4px;
  font-size: var(--fs-meta);
}

.cv-quotes strong {
  font-weight: 600;
}

/* ---------- Mobile ---------- */

@media (max-width: 699px) {
  .cv-role__company,
  .cv-work__title {
    grid-column: 1;
  }

  .cv-role__period {
    grid-column: 2;
  }

  .cv-work__body {
    grid-column: 1 / -1;
  }
}

/* ---------- Print: an A4 résumé ---------- */

@media print {
  /* 188mm of content keeps the desktop grid (wider than the 699px breakpoint). */
  @page {
    size: A4;
    margin: 12mm 11mm;
  }

  :root {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
    --muted: #262624;
    --dim: #5c5c57;
    --line: #c4c4be;
    --accent: #d8231a;
    --section-gap: 16pt;
  }

  html,
  body {
    background: #fff;
    font-size: 9.5pt;
    line-height: 1.45;
  }

  .skip-link,
  .masthead,
  .footer,
  .grid-overlay,
  .cv-print {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .page-intro {
    margin-top: 0;
  }

  .page-intro h1 {
    font-size: 20pt;
  }

  .page-intro__dek,
  .cv-profile {
    font-size: 10pt;
  }

  .section {
    padding-top: 6pt;
  }

  .section__label {
    break-after: avoid;
  }

  .cv-role,
  .cv-work,
  .kv__row,
  .cv-quotes figure,
  .posts li {
    break-inside: avoid;
  }

  .cv-roles {
    gap: 12pt;
  }

  .cv-points {
    margin-block: 4pt;
    gap: 2pt;
  }

  a {
    text-decoration: none;
  }

  .arrow {
    display: none;
  }
}
