/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --black:   #1a1a1a;
  --grey:    #555;
  --light:   #f8f8f6;
  --border:  #e0e0e0;
  --accent:  #8b6f47;
  --white:   #ffffff;
  --max:     780px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Georgia', serif;
  color: var(--black);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  height: 220px;
  background: url('/assets/img/hero-books.jpg') center/cover no-repeat;
  position: relative;
  z-index: 0;
}

/* ─── Profile ────────────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -52px;
  margin-bottom: 12px;
}
.profile img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--white);
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.profile h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-top: 16px;
}

/* ─── Nav ────────────────────────────────────────────── */
nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max);
}
nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
}
nav ul li a {
  display: block;
  padding: 14px 32px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--black);
  border-bottom: 2px solid var(--black);
}
.lang-switch {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 8px 0 0;
  color: var(--grey);
}
.lang-switch a { margin: 0 6px; }
.lang-switch a.active { color: var(--black); font-weight: 600; }

/* ─── Main content ───────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
section { margin-bottom: 48px; }
section h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
section p { color: var(--black); margin-bottom: 12px; }

/* ─── Paper card (research page) ─────────────────────── */
.paper-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.paper-card:first-of-type { border-top: 1px solid var(--border); }
.paper-thumb {
  width: 90px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.paper-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.paper-card .byline {
  font-size: .875rem;
  color: var(--grey);
  margin-bottom: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--black);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .8rem;
  letter-spacing: .06em;
  cursor: pointer;
  background: var(--white);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--black); color: var(--white); }

/* ─── CV table ───────────────────────────────────────── */
.cv-section { margin-bottom: 40px; }
.cv-section h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.cv-entry { display: flex; gap: 24px; margin-bottom: 20px; }
.cv-entry .years {
  min-width: 100px;
  font-size: .875rem;
  color: var(--grey);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding-top: 2px;
}
.cv-entry .detail strong { display: block; margin-bottom: 4px; }
.cv-entry .detail p { font-size: .95rem; color: var(--grey); }

/* ─── Contact ────────────────────────────────────────── */
.contact-line {
  font-size: .95rem;
  margin-bottom: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.contact-line a { color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .78rem;
  color: var(--grey);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  nav ul li a { padding: 12px 16px; }
  .cv-entry { flex-direction: column; gap: 4px; }
  .paper-card { flex-direction: column; }
  .paper-thumb { width: 70px; }
}