*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ── Header / banner ─────────────────────────────────────── */
header {
  background: #1a3a5c;
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

header img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #9ab8d4;
  background: #2d5a8a;
  flex-shrink: 0;
}

header .intro h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

header .intro p {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: #c6daea;
}

/* ── Navigation ──────────────────────────────────────────── */
nav {
  background: #14304f;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: #c6daea;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] { color: #fff; }

/* ── Main layout ─────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

section { margin-bottom: 2.5rem; }

h2 {
  font-size: 1.35rem;
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 0.03em;
}

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

/* ── Quote ───────────────────────────────────────────────── */
.quote-block {
  background: #eef3f8;
  border-left: 4px solid #9ab8d4;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: #3a3a3a;
}

.quote-block cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.88rem;
  color: #555;
}

/* ── Quick links bar ─────────────────────────────────────── */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.quick-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #1a3a5c;
  color: #fff;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.quick-links a:hover { background: #2d5a8a; }

/* ── Bio text ────────────────────────────────────────────── */
#bio p { margin-bottom: 0.9rem; }

/* ── Research interests ──────────────────────────────────── */
#research ul {
  list-style: disc;
  padding-left: 1.4rem;
}

#research ul li { margin-bottom: 0.4rem; }

/* ── Publications ────────────────────────────────────────── */
.pub-section { margin-bottom: 2rem; }

.pub-section h3 {
  font-size: 1.1rem;
  color: #1a3a5c;
  font-weight: bold;
  margin-bottom: 0.8rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
}

.pub-list { list-style: none; }

.pub-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pub-list li:last-child { border-bottom: none; }

.pub-list a {
  color: #1a3a5c;
}

/* ── R Packages ──────────────────────────────────────────── */
.pkg-card {
  background: #fff;
  border: 1px solid #d0dce8;
  border-radius: 5px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}

.pkg-card h3 {
  font-size: 1.1rem;
  color: #1a3a5c;
  margin-bottom: 0.5rem;
  font-family: Arial, sans-serif;
}

.pkg-card p { margin-bottom: 0.5rem; font-size: 0.95rem; }

.pkg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.pkg-links a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid #1a3a5c;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  text-decoration: none;
  color: #1a3a5c;
  transition: background 0.2s, color 0.2s;
}

.pkg-links a:hover { background: #1a3a5c; color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #1a3a5c;
  color: #8aafc8;
  text-align: center;
  padding: 1rem;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  header { flex-direction: column; text-align: center; }
  header img { width: 100px; height: 100px; }
}
