@font-face {
  font-family: "Computer Modern Serif";
  src: url("../fonts/Computer_Modern_Serif/cmunrm.ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Computer Modern Serif";
  src: url("../fonts/Computer_Modern_Serif/cmunti.ttf");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: "Computer Modern Serif";
  src: url("../fonts/Computer_Modern_Serif/cmunbx.ttf");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Computer Modern Serif";
  src: url("../fonts/Computer_Modern_Serif/cmunbi.ttf");
  font-weight: bold;
  font-style: italic;
}

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

html {
  font-family: "Computer Modern Serif", ui-serif, serif;
}

body {
  background-color: white;
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 48rem) {
  body {
    padding: 2rem;
  }
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mobile-header {
  margin-bottom: 1.5rem;
}

.mobile-header h1,
.desktop-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.mobile-header p,
.desktop-header p {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.5;
}

@media (min-width: 48rem) {
  .mobile-header {
    display: none;
  }
}

.desktop-header {
  display: none;
  margin-bottom: 1.5rem;
}

@media (min-width: 48rem) {
  .desktop-header {
    display: block;
  }
}

.desktop-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item svg {
  margin: 0 1px;
}

.contact-item.github {
  gap: 0.25rem;
}

.contact-item img {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid #9ca3af;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.job,
.education-item,
.award-item,
.publication {
  margin-bottom: 1.5rem;
}

.job-header,
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.job-title,
.degree {
  font-weight: 600;
  padding-right: 1rem;
}

.location,
.date {
  text-align: right;
  white-space: nowrap;
  font-style: italic;
}

.company,
.institution {
  font-style: italic;
}

.job-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.job ul,
.education-item ul {
  margin-left: 20px;
}

.job ul,
.education-item ul,
.publications .publication {
  line-height: 1.75;
}

.job ul li,
.education-item ul li,
.publications .publication p {
  margin-bottom: 0.5rem;
}

.publications .publication p span.font-semibold {
  font-weight: 600;
}

.publications .publication p span.italic {
  font-style: italic;
}

.programming-mobile {
  display: block;
}

.programming-desktop {
  display: none;
}

@media (min-width: 48rem) {
  .programming-mobile {
    display: none;
  }

  .programming-desktop {
    display: block;
  }
}

.skill-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.skill-label {
  font-weight: 600;
  padding-right: 1rem;
}

.skill-value {
  text-align: right;
  line-height: 1.5;
}

.programming-desktop .skill-row {
  display: flex;
  margin-bottom: 0.5rem;
}

.programming-desktop .skill-label {
  width: 8rem;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.award-item .date {
  text-align: right;
  white-space: nowrap;
  font-style: italic;
}

.teaching-list p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
