/* A restrained academic layout for mortenbrun.xyz
   Color is intentionally left to Quarto's native light/dark themes.
   This file only adjusts layout, spacing, and typography. */

:root {
  --site-text-width: 46rem;
}

/* Keep prose comfortably narrow on large screens. */
main.content {
  max-width: var(--site-text-width);
  margin-left: auto;
  margin-right: auto;
}

/* Slightly more generous typography than the Quarto default. */
body {
  line-height: 1.65;
}

p,
li {
  max-width: 72ch;
}

/* Page headings */
.quarto-title h1.title,
h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin-top: 1.8rem;
}

/* Quiet navigation. Use Bootstrap theme variables so this adapts
   automatically to both Quarto themes. */
.navbar {
  border-bottom: 1px solid var(--bs-border-color);
}

.navbar-title {
  font-weight: 600;
}

.navbar .nav-link {
  font-weight: 400;
}

.navbar .nav-link.active {
  font-weight: 600;
}

/* Links remain conventional, but a little easier to scan in prose. */
main a {
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.06em;
}

/* Homepage position/affiliation block. */
.home-position {
  margin-top: -0.35rem;
  margin-bottom: 1.8rem;
  color: var(--bs-secondary-color);
  font-size: 1.08rem;
  line-height: 1.5;
}

.home-position strong {
  color: inherit;
  font-weight: 600;
}

/* Publication lists generated by Pandoc/Quarto. */
#refs .csl-entry {
  margin-bottom: 1rem;
}

/* Tables in the CV should remain compact and readable if used later. */
table {
  font-size: 0.96rem;
}

/* Footer */
.nav-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

/* Mobile: let Quarto use the available width naturally. */
@media (max-width: 767.98px) {
  main.content {
    max-width: none;
  }

  .home-position {
    margin-bottom: 1.4rem;
  }
}
