/* Resume: a paper sheet that stays light in both themes and prints as A4. */
.cv-page { padding: 0 16px 80px; }

.cv-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 820px; margin: 0 auto; padding: 20px 0;
  background: var(--bg); font-size: 14px; color: var(--muted);
}
.cv-bar__back { transition: color .2s; }
.cv-bar__back:hover { color: var(--text); }
.cv-bar__right { display: flex; align-items: center; gap: 14px; }
.cv-bar .icon svg { width: 18px; height: 18px; }

.paper {
  --ink: #111; --ink-2: #555; --rule: #e6e6e6;
  max-width: 820px; margin: 8px auto 0; padding: 56px 64px 64px;
  background: #fff; color: var(--ink); border-radius: 8px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.5;
}
.paper a { text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 2px; transition: text-decoration-color .2s; }
.paper a:hover { text-decoration-color: currentColor; }

.cv-head { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.cv-head h1 { font-size: 36px; font-weight: 450; line-height: 1.05; letter-spacing: -1px; }
.cv-role { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.cv-contacts { text-align: right; color: var(--ink-2); }
.cv-contacts li + li { margin-top: 2px; }

.cv-sec { padding-top: 24px; }
.cv-sec h2 {
  margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.job + .job { margin-top: 18px; }
.job__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.job__head b { font-weight: 600; }
.job__head span { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job__co { color: var(--ink-2); }
.job__list { margin: 8px 0 0; padding-left: 16px; list-style: disc; }
.job__list li + li { margin-top: 3px; }
.job__list li::marker { color: #aaa; }

.cv-projects li + li { margin-top: 6px; }
.cv-projects a { text-decoration: none; }
.cv-projects a:hover b { text-decoration: underline; }
.cv-projects b { font-weight: 600; }

.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.cv-grid h2 { margin-bottom: 6px; }
.cv-grid b { font-weight: 600; }

@media (max-width: 720px) {
  .paper { padding: 32px 22px 40px; }
  .cv-head { flex-direction: column; gap: 16px; }
  .cv-contacts { text-align: left; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-bar .cv-print { padding: 0 10px; }
}

@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html, body { background: #fff !important; }
  .cv-page { padding: 0; }
  .cv-bar { display: none; }
  .paper { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; font-size: 11px; }
  .paper a { text-decoration: none; }
  .js .fade { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .job, .cv-grid > div { break-inside: avoid; }
}
