/* ================================================== */
/* Fonts                                              */
/* ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

body,
h1, h2, h3, h4, h5, h6,
.navbar,
.paper-btn {
  font-family: "Source Sans 3", sans-serif;
}


/* ================================================== */
/* Page titles                                        */
/* ================================================== */

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #343a40;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.6rem;
  margin-bottom: 1.8rem;
}


/* ================================================== */
/* Page width                                         */
/* ================================================== */

main.content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* ================================================== */
/* Shared styling                                     */
/* ================================================== */

.my-name {
  color: #1f2937;
  font-weight: 600;
}

.venue-year {
  white-space: nowrap;
}


/* ================================================== */
/* Publication buttons                                */
/* ================================================== */

.paper-btn {
  display: inline-block;
  padding: 0.20rem 0.62rem;
  margin-right: 0.30rem;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  color: #1d4ed8;
  background-color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  transition: all 0.15s ease-in-out;
}

.paper-btn:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  border-color: #1d4ed8;
}


/* ================================================== */
/* Publications and working papers                    */
/* ================================================== */

.pub-list-entry {
  margin-bottom: 2rem;
  line-height: 1.55;
  color: #374151;
  font-size: 0.98rem;
}

.pub-list-entry p {
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.pub-list-entry em {
  color: #374151;
  font-style: italic;
}

.pub-authors {
  color: #374151;
}

.pub-title {
  color: #1e3a8a;
  font-weight: 500;
}

.pub-buttons {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.pub-award {
  display: block;
  color: #4b5563;
  font-size: 0.9rem;
  margin-top: -0.15rem;
  margin-bottom: 0.2rem;
}

.pub-award p {
  display: inline;
  margin: 0;
  padding: 0;
}

.pub-award::before {
  content: "•";
  color: #9ca3af;
  margin-right: 0.35rem;
}

.pub-award + .pub-buttons {
  margin-top: 0.35rem;
}

.page-note {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.student-note {
  color: #6b7280;
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 0.05rem;
}


/* ================================================== */
/* CV download link                                   */
/* ================================================== */

.cv-download {
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  font-size: 1rem;
  color: #374151;
}

.cv-download a {
  color: #1d4ed8;
  text-decoration: none;
}

.cv-download a:hover {
  text-decoration: underline;
}

.download-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
}

.download-svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: #111827;
  vertical-align: -0.1rem;
}


/* ================================================== */
/* Homepage layout                                    */
/* ================================================== */

.home-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.home-sidebar {
  text-align: center;
}

.home-main {
  max-width: 760px;
  text-align: left;
}

.home-bio p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  line-height: 1.65;
}

.home-bio p:last-child {
  margin-bottom: 1.1rem;
}

.home-section {
  margin-top: 2rem;
}

.home-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}


/* ================================================== */
/* Homepage headshot and sidebar                      */
/* ================================================== */

.headshot {
  width: 235px;
  height: 235px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.15rem;
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-top: 0.05rem;
  margin-bottom: 0.55rem;
}

.sidebar-meta div {
  margin: 0;
  padding: 0;
  line-height: 1.18;
}

.sidebar-name {
  font-size: 1.08rem;
  font-weight: 500;
  color: #374151;
}

.sidebar-title {
  color: #4b5563;
  font-size: 0.98rem;
  font-weight: 400;
}

.sidebar-affiliation {
  color: #1e3a8a;
  font-size: 0.98rem;
  font-weight: 400;
}


/* ================================================== */
/* Homepage icons                                     */
/* ================================================== */

.home-icon-links {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 2rem;
  row-gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.home-icon-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
}

.home-icon-links a:hover {
  color: #1e40af;
  text-decoration: none;
  transform: translateY(-1px);
}

.sidebar-svg,
.linkedin-svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}


/* ================================================== */
/* Homepage education                                 */
/* ================================================== */

.education-list {
  margin-top: 0.4rem;
  margin-bottom: 1.8rem;
}

.education-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr 3rem;
  column-gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 0.28rem;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.35;
}

.education-icon {
  display: flex;
  align-items: baseline;
}

.education-text {
  min-width: 0;
}

.education-year {
  text-align: right;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 600;
}

.cap-icon {
  width: 0.85rem;
  height: 0.85rem;
  fill: #4b5563;
  vertical-align: baseline;
}


/* ================================================== */
/* Homepage awards                                    */
/* ================================================== */

.awards-list {
  margin-top: 0.4rem;
}

.award-row {
  display: grid;
  grid-template-columns: 1fr 3rem;
  column-gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 0.12rem;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.35;
}

.award-row div:last-child {
  text-align: right;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 600;
}


/* ================================================== */
/* Contact                                            */
/* ================================================== */

.contact-card {
  margin-top: 0.5rem;
  color: #374151;
  font-size: 1rem;
  line-height: 1.35;
}

.contact-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.contact-info {
  color: #4b5563;
  margin-bottom: 0.85rem;
}

.contact-info div {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.contact-details {
  display: grid;
  row-gap: 0.12rem;
  color: #374151;
}

.contact-details div {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.contact-details span {
  font-weight: 600;
  color: #374151;
}

.contact-details a {
  color: #1d4ed8;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}


/* ================================================== */
/* Mobile layout                                      */
/* ================================================== */

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-sidebar {
    text-align: left;
  }

  .home-main {
    max-width: 100%;
  }

  .headshot {
    width: 180px;
    height: 180px;
  }

  .home-icon-links {
    justify-content: flex-start;
  }
}