:root {
  color-scheme: dark;
  --bg: #0b1730;
  --bg-alt: #101f3d;
  --text: #e8edf6;
  --muted: #a3b1c8;
  --accent: #7fb0ff;
  --accent-soft: #1a2d52;
  --border: #223559;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; flex-wrap: wrap; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.photo {
  width: 260px; height: 260px; border-radius: 50%; object-fit: contain; padding: 22px;
  border: 2px solid var(--border); background: var(--bg-alt);
}
.photo-fallback {
  width: 260px; height: 260px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font: 700 4rem Georgia, serif;
}
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; text-decoration: none; font-size: .95rem;
  border: 1px solid var(--accent); color: var(--accent);
}
.btn.primary { background: var(--accent); color: var(--bg); }
.btn:hover { opacity: .85; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
section.alt .card { background: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0 0; }
.tags li { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}
.timeline .when { color: var(--muted); font-size: .88rem; }
.timeline strong { display: block; }

/* publications */
#pubs { list-style: none; padding: 0; margin: 24px 0 0; }
#pubs li { padding: 14px 0; border-bottom: 1px solid var(--border); }
#pubs .year { color: var(--muted); font-size: .88rem; }
#pubs .venue { color: var(--muted); font-style: italic; }
.note { color: var(--muted); font-size: .92rem; }

footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .hero .wrap, .cols { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .photo, .photo-fallback { width: 180px; height: 180px; order: -1; }
  nav ul { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
