/* Minimal, clean layout inspired by jonbarron.github.io */
:root {
  --text: #1f2937;      /* slate-800 */
  --muted: #6b7280;     /* slate-500 */
  --border: #e5e7eb;    /* gray-200 */
  --accent: #111827;    /* near-black for headings */
  --link: #2563eb;      /* blue-600 */
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}
.wrap {
  max-width: 1080px; margin: 0 auto; padding: 24px; display: grid; gap: 28px;
  grid-template-columns: 280px 1fr;
}
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .wrap > .sidebar { position: static; }
}
.sidebar { position: sticky; top: 24px; align-self: start; }
.avatar { width: 180px; height: 180px; max-width: 100%; border-radius: 50%; display: block; border: 1px solid var(--border); object-fit: cover; object-position: center; }
.name { margin: 16px 0 4px; font-size: 28px; line-height: 1.2; color: var(--accent); }
.name a { text-decoration: none; color: inherit; }
.name a:hover { text-decoration: underline; }
.tagline { margin: 0 0 4px; color: var(--muted); }
.email { margin: 0 0 16px; color: var(--muted); }
.menu { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; }
.menu a:hover,
.menu a[aria-current="page"] { text-decoration: underline; }
.socials { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.socials li { margin: 0; display: flex; gap: 6px; align-items: center; }
.socials a { color: var(--link); text-decoration: none; }
.socials a:hover { text-decoration: underline; }

.content { padding-bottom: 48px; }
.section { margin-bottom: 32px; }
.section h2 { margin: 0 0 8px; font-size: 22px; color: var(--accent); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.list li:last-child { border-bottom: none; }
.meta { color: var(--muted); font-size: 0.95em; }
.footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95em; }
.embed { margin: 18px 0; }
.embed iframe { width: 100%; max-width: 480px; }
.embed-small { display: flex; justify-content: center; }
.embed-small iframe { max-width: 480px; height: 320px; }
.research-item { margin-top: 24px; }
.research-item h3 { margin: 0 0 4px; font-size: 18px; color: var(--muted); }
.research-item p { margin: 6px 0; }

/* Group headings in Writings */
.group-title { font-size: 18px; margin: 20px 0 6px; color: var(--muted); }
.nolink { font-weight: 500; }

/* Basic link styling */
a { color: var(--link); }
a:hover { color: #1d4ed8; }
