@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter_24pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter_24pt-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../public/fonts/RobotoMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-bg: #00070d;
  --text-main: #f9f9f9;
  --text-muted: #8d8e95;
  --accent: #ff4eb1;
  --border: rgb(255 255 255 / 20%);
  --chip-bg: rgb(255 255 255 / 10%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
ul {
  margin: 0;
}

.page {
  min-height: 100vh;
  padding: 0 24px;
}

.container {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 40px 0 41px;
}

.hero {
  margin-bottom: 90px;
}

.hero__head {
  height: 80px;
}

.hero__body {
  display: grid;
  grid-template-columns: 500px 440px;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 24px;
}

.hero__intro {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
}

.hero__name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero__role {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.hero__summary {
  width: 500px;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0;
  font-weight: 400;
}

.hero__meta {
  width: 440px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.28px;
}

.hero__cv {
  display: inline-block;
  margin-bottom: 2px;
  color: #ff75d8;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero__separator,
.footer__separator {
  color: var(--text-muted);
  padding: 0 12px;
}

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

.project__head {
  margin-bottom: 8px;
}

.project__info {
  min-height: 48px;
}

.project__copy {
  display: grid;
  grid-template-columns: 500px 440px;
  justify-content: space-between;
  gap: 24px 40px;
}

.project__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project__role {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.project__role span {
  padding: 0 4px;
}

.project__description,
.project__right {
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0;
  font-weight: 400;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.28px;
}

.project__tags a,
.project__tags span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip-bg);
}

.project__tags .project__tag-plain {
  border: 0;
  background: transparent;
  padding: 0 4px;
}

.project__tags a {
  transition: border-color 160ms ease;
}

.project__tags a:hover {
  border-color: rgb(255 255 255 / 40%);
}

.project__image {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 90px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.28px;
}

@media (max-width: 900px) {
  .page {
    padding: 0 18px;
  }

  .container {
    padding: 24px 0 32px;
  }

  .hero__body,
  .project__copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    margin-bottom: 64px;
  }

  .hero__meta {
    width: 100%;
  }

  .hero__summary,
  .project__description {
    width: 100%;
  }

  .project__image {
    border-radius: 24px;
  }

  .projects {
    gap: 64px;
  }

  .footer {
    padding-top: 64px;
  }
}

@media (max-width: 560px) {
  .hero__intro {
    gap: 14px;
  }

  .hero__avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .hero__name {
    font-size: 20px;
    line-height: 28px;
  }

  .hero__summary,
  .project__description,
  .project__right,
  .hero__role,
  .project__role {
    font-size: 14px;
    line-height: 20px;
  }

  .project__tags {
    font-size: 12px;
    gap: 6px;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .project__tags a,
  .project__tags span {
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
  }

  .project__image {
    border-radius: 20px;
  }
}
