/* Body text - lighter */
body {
  font-family: 'Libre Baskerville', Times, serif;
  font-size: 17px;
  line-height: 1.55;
  color: #444444;          /* lighter gray for body */
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;

  padding-top: 100px;
  padding-left: 100px;     /* Bonn-style large left margin */
  padding-right: 40px;
  padding-bottom: 80px;
}

/* Home header with picture + text side by side */
.home-header {
  display: flex;               /* side by side */
  flex-direction: row-reverse;
  align-items: flex-start;     /* top-align text with picture */
  gap: 40px;                   /* space between picture and text */
  margin-bottom: 50px;
}

/* Profile picture */
.profile-pic {
  width: 180px;                /* adjust size as needed */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;              /* prevents shrinking on smaller screens */
  margin-top: 30px;
}

/* Intro text */
.intro-text {
  flex: 1;                     /* take remaining horizontal space */
}

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .home-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    width: 120px;
    margin-bottom: 20px;
  }
}

.contact {
  line-height: 1.45;
}


/* Name header */
h1 {
  font-size: 42px;
  font-weight: 700;
  color: #111111;           /* darker header */
  margin-bottom: 28px;
}

/* Section headers */
h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111111;
  margin-top: 55px;
  margin-bottom: 18px;
}

/* Links */
a {
  color: #004080;         /* slightly lighter blue */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Publications list */
ol.publications {
  counter-reset: pubcount 10; /* total number of papers +1 */
  list-style: none;           /* remove default numbers */
  margin-left: 0;
  padding-left: 0;
}

ol.publications li {
  counter-increment: pubcount -1; /* decrement for inverse numbering */
  display: table;                 /* container for number + text */
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Number column */
ol.publications {
  counter-reset: pubcount 0;
  list-style: none;
  padding-left: 30px;
  margin-bottom: 20px;
}

ol.publications li {
  counter-increment: pubcount;
  position: relative;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Custom hanging bullet list */
/* Custom hanging bullet list */
ul.hanging-bullets {
  list-style: none;       /* remove default bullets */
  padding-left: 50px;     /* space for bullets */
  margin-left: 0;
}

ul.hanging-bullets li::before {
  content: attr(data-bullet);
  font-weight: bold;
  display: inline-block;
  width: 40px;            /* fixed space for bullet */
  text-align: right;
  margin-left: -50px;     /* shift bullet into padding */
  margin-right: 10px;     /* space between bullet and text */
}

/* Add more vertical spacing between bullets */
ul.hanging-bullets li {
  margin-bottom: 20px;    /* increase spacing between bullets */
}


/* Top-right navigation */
.topnav {
  position: absolute;
  top: 35px;
  right: 70px;
  font-size: 14px;
}

.topnav a {
  margin-left: 22px;
  color: #004080;
  text-decoration: none;
  font-weight: 400;
}

.topnav a:hover {
  text-decoration: underline;
}

.teaching-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.teaching-list li {
  margin-bottom: 18px;   /* vertical breathing room */
  line-height: 1.5;
}


