/* Simple, SSI-inspired styling for academic website */

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

body {
  font-family: serif;
  line-height: 1.3;
  color: #333;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  text-align: justi;
}

/* Main content wrapper */
.content {
  max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  margin-top: 40px;
}

h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

p {
  margin: 12px 0;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Back link on publications page */
.back-link {
  margin-bottom: 20px;
}

#refs-index {
  margin-top: 0;
  padding-right: 30px;
  text-align: justify;
  font-size: 0.9em;
}

#refs {
  margin-top: 0;
  padding-left: 30px;
  padding-right: 30px;
  text-align: justify;
}

.references {
  margin-top: 0;
}

.references p, .references div {
  margin: 12px 0;
}

/* Individual reference entry */
.csl-entry {
  margin: 12px 0;
  padding: 0;
}

/* Remove default reference div styling */
#refs > div, #refs-recent > div, #refs-by-year > div {
  margin: 1.8em 0;
}

/* Year section spacing */
h3 + .csl-entry,
h3 + div {
  margin-top: 12px;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 20px 15px;
    font-size: 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 20px;
  }
}

/* Publications page specific - slightly wider */
body.publications-page {
  max-width: 900px;
}

.authorship-note {
  color: #888;
  font-weight: normal;
  font-style: italic;
}

.authorship-note-index {
  display: none;
}
