@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  src: url("fonts/plex-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  src: url("fonts/plex-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1b1b;
  --muted: #5f5f5f;
  --rule: #dcdcdc;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  color: var(--ink);

  color-scheme: light;
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 300px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: #b5b5b5;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: currentcolor;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bar,
main {
  max-width: 820px;
  padding: 0 24px;
  margin: 0 auto;
}
.bar {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.bar > a:first-child {
  margin-right: auto;
}
.langs {
  display: flex;
  gap: 10px;
}
.langs a[aria-current] {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.top {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.headline {
  margin-top: 6px;
  font-size: 17px;
  color: var(--muted);
}
.contacts a {
  text-decoration: none;
}
.contacts a:hover {
  text-decoration: underline;
}
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 0;
  margin-top: 16px;
  list-style: none;
}
.photo {
  flex: none;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
}
.summary {
  max-width: 40em;
  margin: 28px 0 36px;
  font-size: 16.5px;
}

.row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
}
h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.job + .job {
  margin-top: 22px;
}
.job header {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  align-items: baseline;
  justify-content: space-between;
}
.job h3,
.project h3 {
  font-size: 15px;
  font-weight: 600;
}
.job h3 span,
.project h3 span {
  font-weight: 400;
  color: var(--muted);
}
.period {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.job ul {
  padding-left: 18px;
  margin-top: 6px;
}
.job li + li {
  margin-top: 3px;
}
.job + .brief {
  margin-top: 18px;
}
.brief + .brief {
  margin-top: 10px;
}
.brief p {
  color: var(--muted);
}

.project + .project {
  margin-top: 14px;
}
.project p {
  margin-top: 2px;
}
.skills div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
}
.skills div + div {
  margin-top: 6px;
}
.skills dt {
  color: var(--muted);
}

@media screen and (max-width: 640px) {
  .bar {
    gap: 16px;
  }
  main {
    padding-top: 12px;
  }
  .top {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .photo {
    width: 88px;
    height: 88px;
  }
  h1 {
    font-size: 28px;
  }
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .skills div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@page {
  size: A4;
  margin: 12mm 15mm 11mm;
}
@media print {
  body {
    font-size: 8.7pt;
    line-height: 1.4;
  }
  .bar {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  a {
    text-decoration: none;
  }
  .top {
    gap: 10mm;
  }
  h1 {
    font-size: 21pt;
  }
  .headline {
    margin-top: 1mm;
    font-size: 10.5pt;
  }
  .contacts {
    gap: 0.6mm 5mm;
    margin-top: 3mm;
  }
  .photo {
    width: 25mm;
    height: 25mm;
    border-radius: 1mm;
  }
  .summary {
    max-width: none;
    margin: 5mm 0 6mm;
    font-size: 9.6pt;
  }
  .row {
    grid-template-columns: 30mm minmax(0, 1fr);
    gap: 6mm;
    padding: 3.2mm 0 3.6mm;
    border-top-width: 0.25mm;
  }
  h2,
  .job h3,
  .project h3 {
    font-size: 9.4pt;
  }
  .job {
    break-inside: avoid;
  }
  .job + .job {
    margin-top: 3.8mm;
  }
  .job ul {
    padding-left: 4mm;
    margin-top: 1mm;
  }
  .job li + li {
    margin-top: 0.5mm;
  }
  .job + .brief {
    margin-top: 3.2mm;
  }
  .brief + .brief {
    margin-top: 1.6mm;
  }
  .project {
    break-inside: avoid;
  }
  .project + .project {
    margin-top: 2.6mm;
  }
  .project p {
    margin-top: 0.4mm;
  }
  .skills div {
    grid-template-columns: 31mm minmax(0, 1fr);
    gap: 3mm;
  }
  .skills div + div {
    margin-top: 1mm;
  }
}
