* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --light-gray: #e4e3dc;
  --medium-gray: #dad8cf;
  --gray: #414e58;
  --dark-gray: #1f282e;
  --orange: #ff4e20;
  --dark-orange: #b83312;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url(assets/fonts/NotoSansGeorgian-Regular.woff2) format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url(assets/fonts/NotoSansGeorgian-Black.woff2) format("woff2");
  font-weight: 900;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

main {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  width: 96vw;
  max-width: 560px;
  gap: 3rem;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 560px;
  min-height: 50px;
  margin-top: 2rem;
}

small {
  flex-shrink: 10;
}

h1 {
  font-family: "Noto Sans Georgian";
  font-weight: 900;
  font-size: 2rem;
  text-align: center;
}

p {
  text-align: center;
  font-family: "Noto Sans Georgian";
  font-weight: 400;
  font-size: 1rem;
}

a {
  text-align: center;
}

.card {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 50px;
  gap: 0.5rem;
}

.card p {
  margin-top: 1.5rem;
}

.profile-picture {
  height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.social-media-links {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  gap: 2rem;
  width: 100%;
}

.social-media-links__list__item {
  width: 100%;
  list-style: none;
}

.link {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  gap: 1rem;
  text-decoration: none;
}

.link__text {
  font-family: "Noto Sans Georgian";
  font-weight: 400;
  font-size: 1.5rem;
}

.social-media-icon {
  width: 3rem;
  aspect-ratio: 1 / 1;
}

.not-found {
  justify-content: center;
}

.not-found h2 {
  font-size: 8rem;
}

@media (max-width: 375px) {
  main {
    gap: 1rem;
  }

  h1 {
    text-align: center;
    font-size: 1.5rem;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(auto-fill, 1fr);
    gap: 1rem;
    width: 100%;
  }

  small {
    text-align: center;
  }

  .not-found h2 {
    font-size: 5rem;
  }
}

@media (min-width: 0px) and (max-width: 160px) {
  .social-media-icon {
    width: 2rem;
  }

  .link__text {
    font-size: 1rem;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: var(--light-gray);
  }

  h1,
  h2,
  p,
  a,
  small {
    color: var(--dark-gray);
  }

  .link {
    background-color: white;
    box-shadow: 0px 18px 40px -12px var(--medium-gray);
  }

  .link__text {
    color: var(--dark-gray);
  }

  .social-media-icon {
    fill: var(--dark-gray);
  }

  .link:hover {
    background-color: var(--gray);
    box-shadow: 0px 18px 40px -12px var(--dark-gray);
  }

  .link:hover .link__text {
    color: var(--light-gray);
  }

  .link:hover svg {
    fill: var(--light-gray);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--dark-gray);
  }

  h1,
  h2,
  p,
  a,
  small {
    color: var(--light-gray);
  }

  .link {
    background-color: var(--gray);
    box-shadow: 0px 18px 40px -12px #111517;
  }

  .link__text {
    color: var(--light-gray);
  }

  .social-media-icon {
    fill: var(--light-gray);
  }

  .link:hover {
    background-color: var(--light-gray);
    box-shadow: 0px 18px 40px -12px var(--medium-gray);
  }

  .link:hover .link__text {
    color: var(--dark-gray);
  }

  .link:hover svg {
    fill: var(--dark-gray);
  }
}
