/* retro / vintage academic page */
:root {
  --paper: #f3ead8;
  --ink: #2b2420;
  --muted: #7a6a58;
  --rule: #c9b796;
  --accent: #9c3d2a;   /* old brick red */
  --bar: #2f4a3a;      /* faded library green */
  --bar-ink: #f3ead8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
a:hover { background: var(--accent); color: var(--paper); }

/* headline */
.headline { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 32px; }
.id { flex: 1 1 280px; min-width: 0; }
.avatar {
  width: 160px; height: 160px; object-fit: cover; flex-shrink: 0; display: block;
  border-radius: 12px; border: 1px solid var(--rule);
  filter: sepia(.3) contrast(1.05);
}
.headline h1 {
  margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.tagline { margin: 0 0 6px; color: var(--muted); font-size: .9rem; font-style: italic; }
.facts { list-style: none; padding: 0; margin: 0 0 6px; font-size: .85rem; }
.k { color: var(--muted); display: inline-block; width: 46px; }
.links { font-size: .9rem; margin-top: 10px; }
.links span + span::before { content: "·"; color: var(--muted); margin: 0 8px 0 4px; }
hr.fade {
  height: 1px; border: 0; margin: 0 0 12px;
  background-image: linear-gradient(to right, transparent, var(--muted), transparent);
}

/* section bars: only as wide as the label, lowercase on purpose */
.bar {
  display: inline-block;
  margin: 28px 0 12px;
  padding: 1px 10px;
  background: var(--bar);
  color: var(--bar-ink);
  font-size: .85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.bio { margin: 0; }

/* experience */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 64px 84px 1fr; align-items: start; }
.ico { position: relative; border-left: 2px solid var(--rule); padding-left: 12px; align-self: stretch; }
.dot {
  position: absolute; top: 0; left: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rule); border: 2px solid var(--paper);
}
.org, .org:hover { border: 0; background: none; }
.logo {
  width: 56px; height: 56px; border-radius: 6px; overflow: hidden; object-fit: contain; background: #fff;
  border: 1px solid var(--rule); padding: 0; display: block;
}
.initials {
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: var(--paper); color: var(--bar); font-size: .7rem; font-weight: 700;
}
.when { font-size: .8rem; line-height: 1.5; color: var(--muted); white-space: nowrap; text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; }
.timeline .desc { margin: 0; padding: 0 0 28px 4px; font-size: .95rem; }
.timeline li:last-child .desc { padding-bottom: 4px; }
.timeline .desc a { border-bottom: 1px dotted var(--accent); color: var(--accent); }

/* publications */
.pubs { padding-left: 1.3em; margin: 0; }
.pubs li { margin-bottom: 10px; }
.pubs li::marker { color: var(--accent); }
.pubs span { display: block; }
.pubs .title { font-weight: 600; }
.pubs .authors, .pubs .venue { font-size: .87rem; }
.pubs .venue { color: var(--muted); }
.plinks { font-size: .8rem; }
.plinks a { border: 0; }

.footer {
  margin-top: 28px; padding-top: 10px; border-top: 1px dashed var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .72rem; color: var(--muted);
}

@media (max-width: 600px) {
  .page { padding: 20px 16px; }
  .avatar { width: 120px; height: 120px; }
  .timeline li { grid-template-columns: 56px 72px 1fr; }
  .logo { width: 48px; height: 48px; }
}