/* ==========================================================
   Site styles. Colours and font are in the :root block below.
   ========================================================== */

:root {
  --text: #111111;
  --muted: #888888;     /* small labels and grey text */
  --link: #0077b3;      /* links */
  --link-hover: #00a7e3;
  --font: "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

.page {
  max-width: 820px;
  padding: 56px 56px 64px;
}

h1 { font-size: 30px; margin: 0 0 18px; }
h2 { font-size: 22px; margin: 44px 0 14px; }
h3 { font-size: 17px; margin: 26px 0 12px; }

p { margin: 0 0 12px; }

.label {
  display: block;
  font-size: 11px;
  color: var(--text);
  margin-top: 14px;
}

/* ---------- Header: details left, photo right ---------- */

.header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.header .left { flex: 1; }
.header .right { width: 220px; flex-shrink: 0; font-size: 14px; }

.position { margin: 0 0 16px; font-size: 16px; }
.position a { font-size: 16.5px; }
.position b { display: block; font-weight: bold; }

.profiles { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.photo { display: block; width: 100%; height: auto; }

.pitch { margin: 2px 0 0; max-width: 60ch; }

/* ---------- Year column + text (projects, talks, teaching) ---------- */

.rows { width: 100%; border-collapse: collapse; }
.rows td { vertical-align: top; padding: 0 0 12px; }
.rows td.when { width: 95px; white-space: nowrap; padding-right: 16px; }
.rows td.logo { width: 120px; text-align: right; }
.rows td.logo img { height: 36px; width: auto; }
.rows .name { font-weight: bold; }

/* ---------- Publications ---------- */

.pubs { margin: 0; padding-left: 34px; }
.pubs li { margin-bottom: 9px; }
.pubs .t { font-style: italic; }

footer { margin-top: 56px; color: var(--muted); font-size: 12px; }

/* ---------- Phones and small screens ---------- */

@media (max-width: 680px) {
  body { font-size: 15px; }
  .page { padding: 32px 16px 48px; }
  .header { flex-direction: column; gap: 8px; }
  .header .right { width: 160px; }
  .rows td.when { width: 78px; padding-right: 10px; }
  .rows td.logo { display: none; }
  .pubs { padding-left: 28px; }
}
