@font-face {
  font-family: "Inter Tight";
  src: url("assets/inter-tight-cyrillic.woff2") format("woff2");
  font-weight: 400 720;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 720;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, 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 {
  color-scheme: light;
  font-family: "Inter Tight", Arial, sans-serif;
  color: #14171e;
  background: #f8f9fb;
  --paper: #f8f9fb;
  --muted: #555e6d;
  --surface: #eceff4;
  --blue: #2544d9;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: #dce4ff; color: #14171e; }

.page {
  width: min(100%, 644px);
  margin-inline: auto;
  padding: clamp(14px, 3.7vw, 42px) clamp(17px, 4.4vw, 28px) 40px;
}

.profile { --profile-inset: 8px; text-align: left; }
.profile > :is(h1, .profile-meta, .bio, .profile-actions) { margin-inline-start: var(--profile-inset); }

.cover {
  display: block;
  width: 100%;
  height: clamp(117px, 36vw, 195px);
  border-radius: 19px;
  object-fit: cover;
  object-position: 51% 48%;
  background: #192334;
}

.avatar {
  position: relative;
  width: 85px;
  aspect-ratio: 1;
  margin: -43px 0 0 var(--profile-inset);
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--surface);
}

.avatar img {
  position: absolute;
  inset: -2.8% auto auto -49%;
  width: 200%;
  height: auto;
}

h1 {
  margin-top: 10px;
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.027em;
}

.profile-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.profile-meta span { padding-inline: 2px; }

.bio {
  max-width: 33ch;
  margin-top: 13px;
  color: #414956;
  font-size: 15px;
  line-height: 1.47;
  text-wrap: pretty;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 520;
  background: var(--surface);
}

.action--primary { background: var(--blue); color: #fff; }
.profile-location { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.profile-location svg { width: 16px; height: 16px; }
svg { display: block; width: 18px; height: 18px; flex: none; fill: currentColor; }
.action svg { width: 16px; height: 16px; }

.section { margin-top: 31px; scroll-margin-top: 20px; }
h2 { font-size: 23px; font-weight: 550; line-height: 1.13; letter-spacing: -0.022em; }

.project-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.project {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  height: clamp(125px, 38vw, 214px);
  padding: 9px;
  overflow: hidden;
  border-radius: 16px;
  background: #212a39;
  color: #fff;
}

.project-media { position: absolute; z-index: -1; inset: 0; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-caption, .project-arrow { background: rgba(12, 17, 27, 0.82); backdrop-filter: blur(8px); }
.project-caption { min-width: 0; padding: 8px 10px; border-radius: 10px; }
.project-name { display: block; font-size: 19px; font-weight: 530; line-height: 1.16; letter-spacing: -0.02em; }
.project-note { display: block; margin-top: 3px; color: #dfe5f0; font-size: 12px; line-height: 1.3; }
.project-arrow { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; }
.project-arrow svg { width: 15px; height: 15px; }

.socials { margin-top: 28px; }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 61px;
  padding: 8px 4px;
  border-radius: 13px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.action, .social { transition: background-color 160ms ease, transform 160ms ease; }
.project-media img { transition: transform 240ms ease; }

@media (hover: hover) {
  .action:hover, .social:hover { background: #e1e6ef; }
  .action--primary:hover { background: #1d37ba; }
  a.project:hover img { transform: scale(1.048); }
}

.action:active, .social:active { transform: translateY(1px); }

@media (max-width: 390px) and (min-height: 760px),
       (max-width: 430px) and (min-height: 800px) {
  .page { padding-bottom: 18px; }
  .project { height: clamp(141px, calc(38vw + 16px), 230px); }
}

@media (min-width: 520px) {
  .social { flex-direction: row; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  a.project:hover img, .action:active, .social:active { transform: none; }
}
