:root {
  --bg: #101010;
  --ab: #1a1a1a;
  --hw: #1f1f1f;
  --fg: #c8c3c3;
  --pr: #e8e3e3;
}

@font-face {
  font-family: Font;
  font-display: swap;
  src: url("./Roboto-Regular.ttf");
}

* {
  margin: 0;
  padding: 0;
  font-family: Font;
  text-decoration: none;
  color: var(--fg);
}

.material-symbols-rounded {
  vertical-align: bottom;
  font-variation-settings:
  'FILL' 1,
  'wght' 300,
  'GRAD' 0,
  'opsz' 48
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body {
  opacity: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: fade-in 1s ease 200ms forwards;
}

main {
  display: grid;
  gap: 3em;
  width: 50%;
  padding: 5em 0;
}

h1 {
  font-size: 32pt;
  margin-bottom: -1rem;
}

.lang-toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#lang-toggle {
  background-color: var(--hw);
  border-radius: 1em;
  border: none;
  color: var(--fg);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.lang.pt,
.lang.en {
  display: none;
}

.lang.show {
  display: block;
}

h1, h2, h3 {
  color: var(--pr);
}

p, li, a {
  font-size: medium;
}

/* Info */
.info {
  display: flex;
  gap: 2em;
}

img {
  height: 6em;
  border-radius: 1em;
}

.info div, .tags {
  display: flex;
  gap: 1em;
}

.info div {
  flex-direction: column;
  justify-content: space-between;
}

.tags {
  list-style-type: none;
}

main > p {
  margin-top: -1em;
  width: 75%;
  line-height: 1.5rem;
}

/* Projects  */
.projects, .cards {
  display: grid;
  gap: 2em;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  & p:last-child {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
  }
}

span.count {
  margin-top: 0.3rem;
}

article, .socials a {
  transition: 100ms ease-out;
}

article {
  height: 65%;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;

  gap: 1em;

  border-radius: .5em;
  padding: 2em;
  background: var(--ab);
}

/* Socials & Etc */
article > p, .tags li, .socials a {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

article:hover, .socials a:hover {
  background: var(--hw);
  transform: translateY(-2px);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1em;
}

.socials a, .tags li {
  background: var(--ab);
  padding: .5em 1em;
  border-radius: 1em;
  -webkit-line-clamp: 1;
}

@media screen and (max-width: 1366px) {
  main { width: 75%; }
  main > p { width: 100%; }
}

@media screen and (max-width: 800px) {
  main { width: 85%; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 550px) {
  .cards { grid-template-columns: 1fr; gap: 1em; }
  .info { display: grid; gap: 1em; }
  .socials { display: grid; grid-template-columns: repeat(2, 1fr); }
  .socials a { padding: 1em; text-align: center; border-radius: .5em;}
}
