/* ===== Base ===== */
:root {
  --accent: #1f4e79;        /* deep blue accent — change to taste */
  --bg-alt: #f6f8fa;
  --text: #222;
  --font-head: "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
}

/* Narrow, fluid column: content caps at 60rem, with 2.5rem side gutters
   (overrides Bootstrap's stepped .container widths) */
.container {
  max-width: 65rem;
  padding-inline: 2.5rem;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-head);
  font-weight: 600;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Navbar ===== */
#mainNav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
#mainNav .navbar-brand { color: var(--accent); }
#mainNav .nav-link {
  font-weight: 500;
  color: #444;
  margin: 0 .15rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--accent);
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
  scroll-margin-top: 70px;   /* so anchor links don't hide under the fixed navbar */
}
.section-alt { background: var(--bg-alt); }

.section-title {
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 3px;
  background: var(--accent);
}

/* ===== About ===== */
.profile-photo {
  width: min(100%, 250px);   /* shrink to fit the column on mid-size screens */
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.social-links a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--accent);
}
.social-links a:hover { color: #000; text-decoration: none; }

/* ===== Entries (projects & publications) ===== */
.entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e8eb;
}
.entry:last-child { border-bottom: none; }

.entry-thumb {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e8eb;
  background: #fff;
}

.entry-links a {
  margin-right: 1.1rem;
  font-size: .9rem;
  font-weight: 500;
}

/* ===== Footer ===== */
footer { background: var(--bg-alt); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .profile-photo { width: 210px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
