@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  src: url("/cv/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("/cv/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;
}
@font-face {
  font-display: swap;
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/ibm-plex-mono-cyrillic-400-normal.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 Mono";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.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;
}
@font-face {
  font-display: swap;
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/ibm-plex-mono-cyrillic-500-normal.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 Mono";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.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 {
  --paper: #efece6;
  --ink: #111;
  --muted: #6e6a64;
  --line: #111;
  --hair: #1112;
  --signal: #ff4d00;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
.page {
  max-width: 1600px;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter)
    max(24px, env(safe-area-inset-bottom));
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px 20px;
  align-items: baseline;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line);
}
.topbar-site {
  grid-column: span 3;
}
.topbar-role {
  grid-column: span 4;
}
.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  grid-column: span 5;
  gap: 22px;
  align-items: baseline;
  justify-content: flex-end;
}
.topbar a {
  position: relative;
}
.topbar a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.topbar a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: clamp(56px, 6vw, 96px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 2px solid var(--line);
}
.site-foot a:hover {
  color: var(--signal);
}

.topbar-nav > a {
  white-space: nowrap;
}
.topbar-nav > a[aria-current]::after {
  transform: none;
}
@media (max-width: 900px) {
  .topbar-role {
    display: none;
  }
  .topbar-nav {
    grid-column: span 9;
  }
}
@media (max-width: 600px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: space-between;
  }
  .topbar-nav {
    gap: 8px 14px;
    justify-content: flex-start;
  }
}
