/* ---------------------------------------------------------------------
   Shared stylesheet — quiet, text-first academic style.
   Single accent color, serif type throughout, no icons/decoration.
--------------------------------------------------------------------- */

:root {
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --rule: #ddd6c9;
  --accent: #1f3d5c;
  --bg: #fbfaf7;
  --bg-card: #ffffff;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;      /* defensive backstop: content must wrap, never scroll */
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  overflow-wrap: break-word;
}

/* ---------- header / nav ---------- */

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.1rem;
  margin-bottom: 2.2rem;
}

header.site-header .name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.15rem 0;
}

header.site-header .name a {
  color: var(--ink);
  text-decoration: none;
}

header.site-header .role {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1rem 0;
}

nav.site-nav {
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

nav.site-nav a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

nav.site-nav a:hover { text-decoration: underline; }

nav.site-nav a.current {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- typography ---------- */

h1 {
  font-size: 1.55rem;
  margin: 0 0 1.1rem 0;
}

h2 {
  font-size: 1.18rem;
  margin: 2.2rem 0 0.8rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.5rem 0;
  color: var(--accent);
}

p { margin: 0 0 1rem 0; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 1.5px; }

.muted { color: var(--muted); }

.lede {
  font-size: 1.05rem;
  color: #333;
}

/* ---------- avatar / intro block ---------- */

.intro {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.avatar {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
}

.intro-text p { margin: 0; }

/* ---------- lists ---------- */

ul.plain {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

ul.plain li {
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--rule);
}

ul.plain li:last-child { border-bottom: none; }

ul.pubs { list-style: none; margin: 0 0 1.2rem 0; padding: 0; }
ul.pubs li {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rule);
}
ul.pubs li:last-child { border-bottom: none; }
ul.pubs .venue { font-style: italic; }
ul.pubs .yr { color: var(--muted); }

.timeline { list-style: none; margin: 0 0 1rem 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
}
.timeline li:last-child { border-bottom: none; }
.timeline .when {
  flex: 0 0 152px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- cards / links row ---------- */

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.6rem 0;
}

.linkrow a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
}

.linkrow a:hover { background: var(--accent); color: #fff; }

.linkrow a.primary { background: var(--accent); color: #fff; }
.linkrow a.primary:hover { opacity: 0.85; background: var(--accent); }

/* ---------- details/summary (collapsible long lists) ---------- */

details {
  margin: 1.1rem 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
}

details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  outline: none;
}

details[open] > summary { margin-bottom: 0.7rem; }

/* ---------- misc ---------- */

.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding-left: 0.8rem;
  margin: 1.2rem 0;
}

footer.site-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}

footer.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .intro { flex-direction: column; align-items: flex-start; }
  .timeline li { flex-direction: column; gap: 0.15rem; }
  .timeline .when { flex: none; }
}
