/* Academic personal site — themed after the "Minimal Light" Jekyll theme
   (https://github.com/yaoyao-liu/minimal-light, CC0), as used on bplank.github.io */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,500;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');

:root {
  --bg: #ffffff;
  --text: #595959;
  --muted: #7a7f8a;
  --heading: #043361;
  --accent: #3399cc;
  --accent-dark: #006699;
  --border: #e5e5e5;
  --card: #f8f8f8;
  --badge-bg: #eaf3fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #20212b;
    --text: #dadbdf;
    --muted: #9aa0ab;
    --heading: #3eb7f0;
    --accent: #3eb7f0;
    --accent-dark: #7cd0ff;
    --border: #34353f;
    --card: #262732;
    --badge-bg: #1d3550;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
}
a[href^="mailto:"] { font-family: "Ubuntu Mono", Consolas, monospace; font-size: 0.9em; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* Navigation */
nav {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 10;
  opacity: 0.98;
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.nav-brand { font-weight: 600; font-size: 1.1rem; color: var(--heading); text-decoration: none; }
.nav-brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Header / hero */
header.hero { padding: 2.5rem 0 1.5rem; }
.hero-grid { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-photo { flex: 0 0 auto; text-align: center; }
.hero-photo img {
  width: 210px; height: 210px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
}
.hero-photo .caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
h1 { font-size: 2.2rem; font-weight: 600; color: var(--heading); margin-bottom: 0.25rem; }
h1 .accent { color: var(--accent); }
.subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.subtitle a { color: var(--accent); text-decoration: none; }

h2 {
  font-size: 1.55rem; font-weight: 600; color: var(--heading);
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.12rem; font-weight: 600; color: var(--heading); margin: 1.4rem 0 0.5rem; }
p { margin-bottom: 0.9rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
strong { font-weight: 600; }
ul.plain { list-style: none; }
main { padding-bottom: 2rem; min-height: 60vh; }

/* News table */
.news-item { display: flex; gap: 1.2rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--border); }
.news-date { flex: 0 0 90px; color: var(--muted); font-size: 0.9rem; padding-top: 0.1rem; }
.news-body { flex: 1; }

/* Publications */
.pub {
  display: flex; gap: 1.2rem; margin-bottom: 1.4rem;
  padding: 1rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
}
.pub-year { flex: 0 0 60px; font-weight: 600; color: var(--muted); }
.pub-body { flex: 1; }
.pub-title { font-weight: 600; margin-bottom: 0.15rem; }
.pub-authors { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.15rem; }
.pub-venue { font-size: 0.92rem; font-style: italic; margin-bottom: 0.4rem; }
.pub-summary { font-size: 0.92rem; margin-bottom: 0.5rem; }
.pub-links a {
  display: inline-block; font-size: 0.8rem; text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent);
  padding: 0.1rem 0.55rem; border-radius: 4px; margin-right: 0.4rem;
}
.pub-links a:hover { background: var(--accent); color: #fff; }
.badge {
  display: inline-block; font-size: 0.78rem; background: var(--badge-bg);
  color: var(--accent-dark); border-radius: 4px; padding: 0.1rem 0.5rem;
  margin-left: 0.3rem; vertical-align: middle;
}

/* Cards (teaching / team) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Team list */
.person { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--border); }
.person:last-child { border-bottom: none; }
.person-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--badge-bg); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; flex: 0 0 auto;
}
.person-name { font-weight: 550; }
.person-role { font-size: 0.88rem; color: var(--muted); }

/* CV page */
.cv-entry { margin-bottom: 1.3rem; }
.cv-entry .dates { color: var(--muted); font-size: 0.9rem; }
.cv-entry .org { color: var(--muted); }
.cv-entry ul { margin: 0.3rem 0 0 1.2rem; font-size: 0.95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.btn {
  display: inline-block; text-decoration: none; font-weight: 550;
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: 0.4rem 1rem; border-radius: 6px; margin: 0.4rem 0 1rem;
}
.btn:hover { background: var(--accent); color: #fff; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem; text-align: center;
  color: var(--muted); font-size: 0.88rem;
}
.social { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  color: var(--heading); text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.social a:hover { background: var(--badge-bg); color: var(--accent); transform: scale(1.15); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
