* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", system-ui, "Times New Roman", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  text-wrap: pretty;
}

body {
  display: flex;
  background-color: black;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

main {
  padding: 32px;
  background-color: gainsboro;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
}

#details {
  border-bottom: 1.5px solid black;
  border-top: 1.5px solid black;

  padding: 0.25em;
}

#details > * {
  font-weight: 300;
}

li {
  margin-left: 2em;
}

#details > li {
  margin-bottom: 0.5em;
  font-size: 1em;
}

#work > h1 {
  display: flex;
  justify-content: space-between;
  padding-right: 0.5em;
}

a {
  color: black;
}

a:visited {
  color: black;
}

.job-facts > li {
  margin-bottom: 0.5em;
  font-weight: 300;
}

#langs > li {
  font-size: 1em;
  margin-bottom: 0.5em;
}

#langs > h3 {
  font-size: 1em;
}

#wj {
  margin-bottom: 0.5em;
}

#details > p::after {
  content: ":";
}

li::marker {
  content: "⤷ ";
}

#categories {
  display: flex;
  gap: 1em;
}

#edu {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

#school {
  width: 55%;
}

#languages {
  width: 45%;
}

#info {
  padding: 0;
}

article {
  height: fit-content;
}

article > h1 {
  background-color: black;
  color: gainsboro;
  padding-left: 0.5rem;
  font-size: 1em;
  font-weight: 600;
}

header {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5em;
}

#header1 {
  max-width: 25vw;
  height: calc(100vh - 64px);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

#cat-upper > h1 {
  font-size: 44pt;
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

#cat-lower > p {
  margin-top: 0.5em;
  margin-bottom: 1em;
  padding: 0.25em;
}

#work {
  width: fit-content;
}

#work > header {
  display: flex;
  gap: 1em;
  border-bottom: 1.5px solid black;
  margin-bottom: 0em;
}

.work-right {
  width: 32vw;
  text-wrap: pretty;
}

.work-right > h3 {
  font-style: italic;
  font-weight: 300;
  font-size: 1em;
  margin-bottom: 1em;
}

.work-left {
  width: 15vw;
  text-transform: capitalize;
}

.work-left > h3 {
  font-size: 1em;
  margin-bottom: 1em;
}

.date {
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 300;
}

@media (max-width: 1030px) {
  #categories {
    flex-direction: column;
  }

  #header1 {
    flex-direction: row;
    height: fit-content;
    justify-content: space-between;
    max-width: none;
  }

  #cat-lower {
    max-width: 35vw;
  }

  .work-left {
    width: 24vw;
  }

  .work-right {
    width: fit-content;
  }
}

@media (max-width: 600px) {
  #header1 {
    flex-direction: column;
  }

  #cat-lower {
    max-width: none;
  }

  #edu {
    flex-direction: column;
  }

  #languages {
    width: 100%;
  }

  #school {
    width: 100%;
  }

  #work > header {
    flex-direction: column;
  }

  .work-left {
    width: 100%;
  }

  .work-left > h3 > br {
    display: none;
  }

  .work-left > .date {
    margin-bottom: 0;
  }
}

@media print {
  /* Remove default margins */
  html,
  body {
    padding: 0;
    background-color: transparent;
    font-size: 13px;
  }
  main {
    background-color: transparent;
    padding: 0;
    height: fit-content;
  }

  #header1 {
    flex-direction: row;
    height: fit-content;
    justify-content: space-between;
    max-width: none;
  }

  #cat-lower {
    max-width: 35vw;
  }

  .work-right {
    width: fit-content;
  }

  .work-left {
    width: 24vw;
  }

  .work-left > h3 > br {
    display: none;
  }

  .work-left > .date > br {
    display: block;
  }

  #cat-upper > h1 {
    font-size: 3em;
  }
}
