/* ==========================================================================
   Custom styles — academic profile
   ========================================================================== */

/* Typography refinements
   ========================================================================== */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.page__content {
  line-height: 1.75;
}

.page__content p {
  line-height: 1.75;
  margin-bottom: 1.25em;
}

.page__content p,
.page__content li,
.page__content dl {
  font-size: 1rem;
}

/* Section headings
   ========================================================================== */

.page__content h2 {
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--global-border-color);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--global-text-color);
}

.page__content h2:first-of-type {
  margin-top: 1.25em;
}

/* Lists — clean, no decorative bullets or icons
   ========================================================================== */

.page__content ul {
  margin-left: 1.4em;
  margin-bottom: 1.25em;
  list-style: disc;
}

.page__content ul li {
  margin-bottom: 0.55em;
  line-height: 1.7;
  padding-left: 0.15em;
}

.page__content ul li strong {
  font-weight: 600;
  color: var(--global-text-color);
}

/* Publication / archive items
   ========================================================================== */

.archive__item {
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--global-border-color);
}

.archive__item:last-child {
  border-bottom: none;
}

.archive__item-title {
  margin-bottom: 0.35em;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.archive__item-title a {
  color: var(--global-link-color);
  text-decoration: none;
}

.archive__item-title a:hover {
  text-decoration: underline;
}

.archive__item-excerpt {
  margin-top: 0.4em;
  font-size: 0.925rem;
  color: var(--global-text-color-light);
  line-height: 1.6;
}

/* CV page — clean indented list, no decorative pseudo-elements
   ========================================================================== */

.archive .page__content ul {
  list-style: none;
  margin-left: 0;
}

.archive .page__content ul li {
  margin-bottom: 1.25em;
  padding-left: 1em;
  border-left: 2px solid var(--global-border-color);
}

.archive .page__content ul li ul {
  margin-top: 0.4em;
  margin-left: 0.75em;
  border-left: none;
  list-style: disc;
}

.archive .page__content ul li ul li {
  margin-bottom: 0.35em;
  padding-left: 0;
  border-left: none;
  font-size: 0.925rem;
  color: var(--global-text-color-light);
}

/* Sidebar / author profile
   ========================================================================== */

.author__avatar img {
  border-radius: 50% !important;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  width: 175px;
  height: 175px;
}

.author__name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.author__bio {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--global-text-color-light);
}

/* Masthead nav
   ========================================================================== */

.masthead__menu-item a {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Link styling
   ========================================================================== */

.page__content a {
  color: var(--global-link-color);
  text-decoration: none;
}

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

/* Google Scholar / wordwrap banner
   ========================================================================== */

.wordwrap {
  color: var(--global-text-color) !important;
  line-height: 1.6;
}

.wordwrap a {
  color: var(--global-link-color) !important;
  font-weight: 500;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .page__content h2 {
    font-size: 1.1rem;
    margin-top: 1.75em;
  }
}

/* Smooth transitions
   ========================================================================== */

a {
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Dark mode
   ========================================================================== */

[data-theme="dark"] .page__content ul li strong {
  color: var(--global-text-color);
}

[data-theme="dark"] .archive__item-title a {
  color: var(--global-link-color);
}

[data-theme="dark"] .archive .page__content ul li {
  border-left-color: var(--global-border-color);
}

[data-theme="dark"] .wordwrap {
  color: var(--global-text-color) !important;
}

[data-theme="dark"] .wordwrap a {
  color: var(--global-link-color) !important;
}
