body {
  font-family: Arial, sans-serif;
  margin: 2em;
  line-height: 1.6;
  background: #fafafa;
}

header {
    border-bottom: 2px solid #c4bebe; /* lighter gray */
    margin: 0 auto 1em auto; /* center the header element */
    text-align: center; /* center the text */
    width: 50%; /* shorter line width */
    padding: 0 0 0.5em 0; /* add some padding below text */
}

.footer-text {
    font-size: 0.9em;  /* makes it smaller */
    color: grey;       /* makes the text grey */
    margin-left: 20%; /* align with main content left edge */
    text-align: left; /* align text to the left */
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin: 0.5em 0;
}

a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

#publications ul li {
  margin: 1.2em 0;
  padding-left: 0.5em;
  border-left: 3px solid #ddd;
}

#publications strong {
  font-size: 1.05em;
}

#publications em {
  color: #555;
}

.year-header {
    font-size: 1.2em;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
}

section {
  margin-top: 5em;   /* space above each section */
  margin-bottom: 5em; /* space below each section */
}

.site-footer {
  margin-top: 50px; /* adds space above the footer */
}

/* Default: mobile first (no centering, takes full width) */
main {
  width: 100%;
  padding: 0 1rem;  /* small side padding for readability */
}

/* On larger screens (e.g., tablets/desktops), center the content */
@media (min-width: 768px) {
  main {
    max-width: 800px;  /* constrain width */
    margin: 0 auto;    /* center horizontally */
  }
}
