/* ============================================================
   Personal site, minimal serif style
   White background, brown serif text, grey pipe-links, photo left.
   ============================================================ */

:root {
  --ink:        #7d6049;   /* lighter warm brown for body text */
  --ink-strong: #5c3a1e;   /* dark brown for the name / headings */
  --link:       #9b9b9b;   /* soft grey for links */
  --link-hover: #5c3a1e;
  --rule:       #e6e6e6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Tinos", "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 1160px; margin: 0 auto; padding: 120px 36px 96px; }

/* cv page sits in its own narrower, centred column */
.page--cv { max-width: 800px; }
.page--cv .body,
.page--cv .cvsec,
.page--cv .award { max-width: none; }

/* ---- tiny top nav (inner pages only) ---- */
.topnav { margin: 0 0 44px; color: var(--link); font-size: 18px; }
.topnav a { color: var(--link); text-decoration: none; }
.topnav a:hover { color: var(--ink-strong); }
.topnav a[aria-current="page"] { color: var(--ink-strong); }
.topnav .sep { margin: 0 10px; }

/* ---- home: photo + text side by side ---- */
.top { display: flex; gap: 48px; align-items: flex-start; }

.photo { width: 260px; flex: none; }
.photo img {
  width: 260px; height: 300px; object-fit: cover; display: block;
  background: #eeeeee;
}
.photo.noimg { position: relative; }
.photo.noimg::after {
  content: "add photo.jpg";
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: #f0f0f0; color: #9b9b9b; font-size: 16px;
}

.intro { flex: 1; min-width: 0; }

.name {
  color: var(--ink-strong);
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 400;
  line-height: 1;
  margin: 4px 0 30px;
}

.bio p { margin: 0 0 22px; max-width: 70ch; }
.bio .rule {
  border: 0; border-top: 1px solid var(--rule);
  max-width: 70ch; margin: 0 0 22px;
}
.bio em { font-style: italic; }
.bio .org { font-weight: 700; }
.bio a { color: var(--ink); text-decoration: none; }
.bio a:hover { color: var(--link); }

/* ---- pipe link rows ---- */
.links { margin-top: 34px; }
.links p { margin: 0; color: var(--link); }
.links a { color: var(--link); text-decoration: none; }
.links a:hover { color: var(--link-hover); }
.links .sep { margin: 0 11px; }

/* ---- inner page content ---- */
.title { color: var(--ink-strong); font-size: clamp(34px, 5vw, 46px); font-weight: 400; margin: 0 0 26px; }
.body { max-width: 72ch; }
.body p { margin: 0 0 22px; }
.body a { color: var(--ink); text-underline-offset: 3px; }

.h2 { font-size: 24px; font-weight: 400; margin: 44px 0 8px; }

/* publications, plain */
.pub { padding: 20px 0; border-top: 1px solid var(--rule); max-width: 72ch; }
.pub:last-of-type { border-bottom: 1px solid var(--rule); }
.pub .venue { color: var(--link); font-size: 17px; margin: 0 0 4px; }
.pub h3 { font-size: 21px; font-weight: 400; margin: 0 0 6px; line-height: 1.3; }
.pub .authors { font-size: 17px; margin: 0 0 10px; }
.pub .authors .me { font-style: italic; }
.pub .desc { margin: 0; }

/* path, plain dated lines */
.steps { max-width: 74ch; }
.step { padding: 20px 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .when { color: var(--link); font-size: 17px; margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; font-weight: 400; margin: 0 0 4px; }
.step .where { font-style: italic; margin: 0 0 8px; }
.step p { margin: 0; }

a:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }

/* ---- responsive ---- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .page { padding: 72px 24px 72px; }
  .top { flex-direction: column; gap: 28px; }
  .photo, .photo img { width: 200px; }
  .photo img { height: 232px; }
}

/* ---- news feed ---- */
.newsfeed { margin: 6px 0 0; }
.newsitem {
  display: flex; gap: 28px; padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.newsitem:last-child { border-bottom: 1px solid var(--rule); }
.newsitem .n-when {
  color: var(--link); font-size: 16px; white-space: nowrap;
  flex: none; width: 88px; padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.newsitem .n-what { margin: 0; }
.newsitem .org { font-weight: 700; }
.newsitem a { color: var(--ink); text-underline-offset: 3px; }
.newsitem a:hover { color: var(--link); }

@media (max-width: 640px) {
  .newsitem { flex-direction: column; gap: 3px; }
  .newsitem .n-when { width: auto; padding-top: 0; }
}

/* ---- cv-style sections on the path page ---- */
.cvsec { max-width: 76ch; margin: 6px 0 8px; }
.entry { padding: 16px 0; border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.entry .inst { font-weight: 700; font-size: 20px; line-height: 1.25; }
.entry .date {
  color: var(--link); font-size: 16px; white-space: nowrap;
  font-variant-numeric: tabular-nums; flex: none;
}
.entry .role { font-style: italic; margin: 2px 0 0; }
.entry .note { margin: 6px 0 0; }

.notes { margin: 6px 0 0; padding-left: 1.15em; }
.notes li { margin: 0 0 5px; }
.notes li:last-child { margin-bottom: 0; }
.notes li::marker { color: var(--link); }
.notes a { color: var(--ink); text-underline-offset: 3px; }
.notes a:hover { color: var(--link); }
.oral { font-size: 0.8em; vertical-align: 1px; }

.award {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 11px 0; border-top: 1px solid var(--rule); max-width: 76ch;
}
.award:last-of-type { border-bottom: 1px solid var(--rule); }
.award .a-when { color: var(--link); font-size: 16px; white-space: nowrap; flex: none; }

@media (max-width: 640px) {
  .entry .row, .award { flex-direction: column; gap: 3px; }
}
