body {
  font-family: "Georgia", "Times New Roman", serif;
  color: #222;
  line-height: 1.7;
  font-size: 17px;
  background-color: #fff;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2f5d8a;
  text-decoration: none;
}

a:hover {
  color: #1d3f61;
  text-decoration: underline;
}

/* ---------- Headings ---------- */

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.45rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
  margin-bottom: 0.35rem;
}

h4 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

/* ---------- Main content width ---------- */

.quarto-title-block,
.quarto-container,
.content,
main.content,
#quarto-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navbar ---------- */

.navbar {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---------- Hero section ---------- */

.hero {
  padding: 4.5rem 1.5rem 3.5rem 1.5rem;
  text-align: center;
  background: #f8f7f3;
  border: 1px solid #ece9e1;
  border-radius: 18px;
  margin: 1.5rem 0 2.5rem 0;
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 720px;
  margin: 0.6rem auto;
}

/* ---------- Buttons ---------- */

.btn-main,
.btn-secondary {
  display: inline-block;
  margin: 0.6rem 0.35rem 0 0.35rem;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-main {
  background: #222;
  color: #fff;
  border: 1px solid #222;
}

.btn-main:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: #222;
  border: 1px solid #cfcfcf;
}

.btn-secondary:hover {
  background: #f3f3f3;
  color: #222;
  text-decoration: none;
}

/* ---------- Publications page ---------- */

.pub-page h2 {
  font-size: 1.35rem;
}

.pub-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pub-page p {
  margin-bottom: 0.7rem;
}

/* Publication link icons */
.pub-links {
  margin: 0.25rem 0 0.8rem 0;
}

.pub-links a {
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 1rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pub-links a:hover {
  color: #111;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Abstract dropdown */
details {
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
  padding: 0.2rem 0 0.2rem 0;
}

details summary {
  cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #666;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

details[open] summary {
  color: #333;
}

details p,
details {
  color: #333;
}

/* Better spacing between publication entries */
.pub-page h3 + p,
.pub-page h3 + div,
.pub-page h3 + .pub-links {
  margin-top: 0.2rem;
}

/* ---------- Lists ---------- */

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ---------- Images / PDFs / embeds ---------- */

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- Footer spacing ---------- */

footer,
.page-footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Mobile adjustments ---------- */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 1rem 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.profile-card {
  text-align: center;
  margin: 1.5rem auto 2rem auto;
  max-width: 320px;
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fafafa;
}

.profile-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem auto;
}

.profile-card a {
  margin: 0 0.35rem;
  font-size: 1rem;
  text-decoration: none;
}

.hero-left {
  padding: 2.5rem 1rem 2rem 1rem;
}

.hero-left h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.08rem;
  color: #444;
}

.v-center {
  align-items: center;
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .columns .column {
    width: 100% !important;
  }

  .hero-left {
    padding: 1rem 0;
    text-align: center;
  }

  .profile-card {
    margin-bottom: 1.5rem;
  }
}