@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/IBMPlexSans-Regular-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/IBMPlexSans-SemiBold-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-weight: 600 800;
}

:root {
  color-scheme: light;
  --ink: #111b24;
  --muted: #65736d;
  --line: #d3dcd6;
  --paper: #f4f6f2;
  --deep-blue: #121e2b;
  --deep-green: #10241a;
}

* {
  box-sizing: border-box;
}

html {
  background: #e7ece7;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-synthesis: none;
  min-width: 320px;
}

body {
  background:
    radial-gradient(circle at 0 0, rgb(205 255 62 / 11%), transparent 27rem),
    radial-gradient(circle at 100% 100%, rgb(38 82 108 / 9%), transparent 34rem),
    var(--paper);
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #2775a5;
  outline-offset: 3px;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
}

.site-mark,
.site-mark img {
  border-radius: 8px;
  display: block;
  height: 32px;
  width: 32px;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.button {
  align-items: center;
  background: rgb(255 255 255 / 68%);
  border: 1px solid #c7d0ca;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
}

.button:hover,
.button:focus-visible {
  background: #fff;
  border-color: #96a69c;
}

.button--primary {
  background: #142331;
  border-color: #142331;
  color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #243d51;
  border-color: #243d51;
}

.layout {
  display: grid;
  gap: clamp(44px, 6vw, 86px);
  grid-template-columns: minmax(290px, 365px) minmax(480px, 720px);
  justify-content: center;
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 72px) 70px;
}

.identity {
  align-self: start;
}

.portrait-row {
  align-items: end;
  display: flex;
  gap: 16px;
}

.portrait {
  border-radius: 22px;
  box-shadow: 0 12px 28px rgb(20 35 49 / 15%);
  height: 98px;
  object-fit: cover;
  width: 98px;
}

.location {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

h1 {
  font-size: clamp(38px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 24px 0 14px;
}

.role,
.bio {
  line-height: 1.55;
  margin: 0;
}

.role {
  color: #4d5d67;
  font-size: 16px;
}

.bio {
  border-top: 1px solid var(--line);
  color: #35434d;
  font-size: 14px;
  margin-top: 23px;
  padding-top: 21px;
}

.about-link {
  align-items: center;
  color: #18384e;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin-top: 17px;
}

.about-link span {
  align-items: center;
  background: #dce6df;
  border-radius: 50%;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  transition: transform 150ms ease;
  width: 26px;
}

.about-link:hover span {
  transform: translateX(3px);
}

.section-label,
.eyebrow {
  color: #6c7b73;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label {
  margin: 34px 0 10px;
}

.contacts {
  border-top: 1px solid var(--line);
}

.contact {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  font-size: 13px;
  gap: 10px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  min-height: 47px;
}

.contact span {
  color: #68766f;
  font-size: 12px;
  font-weight: 600;
}

.contact strong {
  overflow-wrap: anywhere;
}

.contact i {
  color: #315f7c;
  font-style: normal;
}

.contact:hover strong,
.github:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.projects-heading h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 0;
}

.projects-heading p {
  color: #6b7972;
  font-size: 12px;
  margin: 0 0 3px;
}

.projects {
  display: grid;
  gap: 14px;
}

.project {
  border-radius: 20px;
  box-shadow: 0 14px 32px rgb(20 33 46 / 11%);
  color: #eef4f6;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 120px;
  min-height: 190px;
  overflow: hidden;
  padding: 25px 26px;
  position: relative;
}

.project::after {
  border-radius: 50%;
  content: "";
  height: 230px;
  opacity: 0.13;
  position: absolute;
  right: -70px;
  top: -105px;
  width: 230px;
}

.project--kgm {
  background: var(--deep-blue);
}

.project--kgm::after {
  background: #58a6ff;
}

.project--merch {
  background: var(--deep-green);
}

.project--merch::after {
  background: #32d46f;
}

.project__copy,
.project__brand {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: rgb(238 244 246 / 62%);
  margin: 0;
}

.project h3 {
  font-size: 28px;
  letter-spacing: -0.035em;
  margin: 13px 0 6px;
}

.project__description {
  color: rgb(238 244 246 / 74%);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 420px;
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.project-link {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  color: #eef4f6;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  min-height: 35px;
  padding: 0 11px;
}

.project-link:hover,
.project-link:focus-visible {
  background: rgb(255 255 255 / 12%);
}

.project-link--primary {
  background: #eef3f0;
  color: #15212a;
}

.project-link--primary:hover,
.project-link--primary:focus-visible {
  background: #fff;
}

.project__brand {
  align-items: center;
  border-left: 1px solid rgb(255 255 255 / 11%);
  display: flex;
  justify-content: end;
}

.project__brand span {
  align-items: center;
  background: #0d1117;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgb(0 0 0 / 18%);
  display: flex;
  height: 78px;
  justify-content: center;
  overflow: hidden;
  width: 78px;
}

.project__brand img {
  display: block;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.project--kgm .project__brand img {
  border-radius: 11px;
  height: 55px;
  width: 55px;
}

.github {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  margin-top: 16px;
  min-height: 65px;
  padding: 0 15px;
}

.github__mark {
  align-items: center;
  background: #142331;
  border-radius: 9px;
  color: #fff;
  display: flex;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.github strong,
.github small {
  display: block;
}

.github strong {
  font-size: 14px;
}

.github small {
  color: #718078;
  font-size: 11px;
  margin-top: 3px;
}

.github b {
  color: #21445a;
  font-size: 12px;
}

.share-dialog {
  background: var(--paper);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgb(10 20 28 / 30%);
  color: var(--ink);
  max-width: calc(100vw - 32px);
  padding: 26px;
  text-align: center;
  width: 390px;
}

.share-dialog::backdrop {
  background: rgb(12 23 31 / 55%);
  backdrop-filter: blur(3px);
}

.share-dialog form {
  position: absolute;
  right: 12px;
  top: 10px;
}

.dialog-close {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #52615a;
  cursor: pointer;
  font-size: 26px;
  height: 38px;
  width: 38px;
}

.share-dialog h2 {
  font-size: 23px;
  margin: 6px 0 18px;
}

.share-dialog > img {
  background: #fff;
  border-radius: 12px;
  height: 208px;
  width: 208px;
}

.share-dialog > p {
  color: #5f6e67;
  font-size: 13px;
}

.copy-row {
  display: flex;
}

.copy-row input {
  border: 1px solid #bfcac3;
  border-radius: 8px 0 0 8px;
  min-width: 0;
  padding: 9px 10px;
  width: 100%;
}

.copy-row button {
  background: #142331;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.copy-status {
  height: 18px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .layout {
    gap: 42px;
    grid-template-columns: minmax(0, 680px);
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 520px) {
  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .button {
    font-size: 11px;
    gap: 5px;
    min-height: 36px;
    padding: 0 9px;
  }

  .layout {
    gap: 38px;
    padding: 30px 20px 42px;
  }

  .portrait {
    height: 88px;
    width: 88px;
  }

  h1 {
    font-size: 39px;
  }

  .role {
    font-size: 14px;
  }

  .bio {
    font-size: 13px;
  }

  .projects-heading p {
    display: none;
  }

  .projects-heading h2 {
    font-size: 27px;
  }

  .project {
    display: block;
    min-height: 0;
    padding: 22px 20px;
  }

  .project__brand {
    display: none;
  }

  .project h3 {
    font-size: 25px;
  }

  .project__actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-link {
    justify-content: center;
  }

  .github {
    padding: 0 3px;
  }

  .github small {
    display: none;
  }

  .github b {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
