:root {
  --max: 920px;
  --fg: #111;
  --muted: #555;
  --line: #e6e6e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #2a2a2a;
  background: #fff;
  line-height: 1.6;
}

.container { max-width: var(--max); margin: 0 auto; padding: 32px 20px; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }

.subtitle { margin: 6px 0 10px; color: var(--muted); }

.links a { text-decoration: none; border-bottom: 1px solid transparent; }

.links a:hover { border-bottom-color: var(--fg); }

.links span { color: var(--muted); margin: 0 8px; }

/* Header avatar (if you still use it anywhere) */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
}

main { padding-top: 22px; }

section { margin: 22px 0; }

h2 { font-size: 1.1rem; margin: 0 0 10px; }

.pubs li { margin: 10px 0; }

.small { color: var(--muted); font-size: 0.95rem; }

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================
   ABOUT LAYOUT (text + photo)
   ============================ */

.about {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.about-text {
  flex: 1;
  min-width: 0;
}

.about-photo {
  flex: 0 0 180px;   /* fixed width column for photo */
}

.about-photo img {
  width: 270px;      /* reasonable academic-site size */
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* mobile layout */
@media (max-width: 700px) {
  .about {
    flex-direction: column;
  }

  .about-photo img {
    width: 220px;
  }
}

/* ============================
   TOP NAVIGATION BAR
   ============================ */

.nav {
  margin-top: 8px;
}

.nav a {
  text-decoration: none;
  margin-right: 18px;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
}

/* slightly separate nav from header title */
.header-text {
  display: flex;
  flex-direction: column;
}

/* ============================
   LINKS
   ============================ */

a {
  color: #6FAED9;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:visited {
  color: #B8A2CC;
}

a:hover {
  color: #4F95C6;
  text-decoration: underline;
}
