:root {
  --background-color-dark: #121212;
  --background-color-light: #ffffff;
  --text-color-primary-dark: #121212;
  --text-color-secondary-dark: #565656;
  --text-color-primary-light: #eeeeee;
  --text-color-secondary-light: #bfbfbf;
  --link-color: #448aff;
  --chip-color: #e6e6e6;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  scroll-behavior: smooth;
  background-color: var(--background-color-dark);
}

body {
  margin: 0;
  min-width: 20rem;
  background-color: var(--background-color-light);
}

header,
footer {
  background-color: var(--background-color-dark);
  display: grid;
  place-items: center;
  padding: 2rem;
}

#copyright {
  color: var(--text-color-secondary-light);
}

#introduction {
  margin: 2rem 0rem;
  display: flex;
  flex-direction: row;
  gap: 6rem;
}

#portrait {
  height: clamp(30vh, 15rem, 100rem);
  width: clamp(30vh, 15rem, 100rem);
  border-radius: 50%;
  border: 0.15rem solid var(--text-color-primary-light);
}

#bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

#name {
  color: var(--text-color-primary-light);
  font-size: 5rem;
  margin: 0;
}

#subtitle {
  align-self: center;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

#about {
  color: var(--text-color-secondary-light);
  font-size: 1.5rem;
  margin: 0;
}

#link-container {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  row-gap: 1rem;
  flex-wrap: wrap;
}

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12rem;
  padding: 8rem 2rem;
}

.project {
  display: flex;
  flex-direction: row;
  width: min(65vw, 100rem);
  gap: 6rem;
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.preview {
  flex: 1;
}

.preview img {
  width: 100%;
  height: auto;
}

.information {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.title {
  font-weight: bold;
  font-size: 3rem;
  color: var(--text-color-primary-dark);
  margin: 0.5rem 0rem;
}

.description {
  color: var(--text-color-secondary-dark);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.75rem;
  font-weight: 400;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.chip {
  background-color: var(--chip-color);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  line-height: 1.5rem;
  border-radius: 1.5rem;
  text-overflow: ellipsis;
}

.links {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  row-gap: 1rem;
  flex-wrap: wrap;
}

.link {
  color: var(--link-color);
  font-weight: bold;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.link svg {
  fill: var(--link-color);
}

.link:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 96rem) {
  html {
    font-size: 80%;
  }

  .project {
    width: 75vw;
  }
}

@media only screen and (max-width: 64rem) {
  #introduction {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  #portrait {
    height: clamp(20vh, 10rem, 30rem);
    width: clamp(20vh, 10rem, 30rem);
  }

  #name {
    text-align: center;
    font-size: 4rem;
  }

  #subtitle {
    text-align: center;
  }

  #about {
    text-align: center;
    font-size: 1.2rem;
  }

  #bio {
    align-items: center;
  }

  #projects {
    gap: 8rem;
  }

  .project {
    flex-direction: column-reverse;
    width: min(75vw, 40rem);
    gap: 0;
  }

  .project:nth-child(even) {
    flex-direction: column-reverse;
  }

  .title {
    margin-top: 4rem;
  }
}
