/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2b4a;
  --accent: #2c5282;
  --light-accent: #ebf0f8;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e0e0e0;
  --max-w: 720px;
  --font: 'Georgia', serif;
  --sans: system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}

.nav-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

nav a:hover { color: var(--navy); }

/* ── Main layout ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Kill browser default blue on all content links */
main a {
  color: var(--text);
  text-decoration: none;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

/* ── About ── */
#about { padding-top: 6rem; }

.about-grid {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  margin-top: 0.4rem;
  filter: grayscale(8%);
}

h1 {
  font-size: 2.4rem;
  font-weight: normal;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.pronouns {
  font-size: 0.85rem;
  font-family: var(--sans);
  color: var(--muted);
  font-weight: normal;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.title {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.bio {
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 620px;
}

.bio a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s;
}

.bio a:hover { border-bottom-color: var(--muted); }

.contact {
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.contact a {
  color: var(--muted);
  text-decoration: none;
}

.contact a:hover { color: var(--navy); }

.sep { margin: 0 0.5rem; color: var(--border); }

/* ── Section headings ── */
h2 {
  font-size: 1.05rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

/* ── Research fields tags ── */
.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.fields span {
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  background: var(--light-accent);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ── Paper list ── */
.paper-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.paper-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
}

.paper-list li:hover { border-left-color: var(--accent); }

.paper-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.paper-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.paper-title a:hover {
  border-bottom-color: var(--muted);
}

.paper-title a::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.4;
  font-family: var(--sans);
}

.paper-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Simple list ── */
.simple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simple-list li {
  font-size: 0.97rem;
}

.list-meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.list-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── CV download button ── */
.cv-download {
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 2px;
}

.btn:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

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

/* ── Mobile ── */
@media (max-width: 640px) {
  nav { padding: 0.75rem 1rem; }
  nav ul { gap: 1rem; }
  h1 { font-size: 1.9rem; }
  section { padding: 3.5rem 0; }
  .about-grid { flex-direction: column; gap: 1.5rem; }
  .headshot { width: 110px; height: 110px; }
}
