/* ============================================================
   Academic Website — Custom Styles
   ============================================================ */

/* --- Backgrounds ------------------------------------------ */
body {
  background-color: #f5f5f5;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #111111;  /* near-black for main text */
}

#quarto-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* --- Navbar ----------------------------------------------- */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #dde1e7;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #555555;  /* mid grey for navbar text */
}

.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #555555 !important;
}

.navbar-nav .nav-link {
  color: #555555 !important;
}

.navbar-nav .nav-link:hover {
  color: #222222 !important;
}

/* --- Fix whitespace on about page ------------------------- */
.about-contents section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.about-contents h2:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, .navbar-brand {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-weight: 600;
  color: #2c3e50;
}

/* --- Links ------------------------------------------------ */
a {
  color: #3d6b8e;
}

a:hover {
  color: #2c4f6b;
}

/* --- About / trestles layout ------------------------------ */
#quarto-content img.about-image {
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.about-links .about-link {
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
}

/* --- Section headings ------------------------------------- */
h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #dde1e7;
}

/* --- Table styling ---------------------------------------- */
table {
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
}

/* --- Footer ----------------------------------------------- */
.nav-footer {
  background-color: #f0f0f0;
  border-top: 1px solid #dde1e7;
  font-size: 0.85rem;
  color: #666;
  font-family: "Inter", sans-serif;
}

/* --- Code blocks ------------------------------------------ */
pre.sourceCode {
  border-radius: 8px;
  font-size: 0.88rem;
}

/* --- Responsive tweaks ------------------------------------ */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
}