@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --bg: #FAF1EF;
  --text: #4F3E3A;
  --muted: #8A746E;
  --heading: #432B28;
  --link: #89584E;
  --line: #EADAD5;
  --chip: #F3E2DD;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* ---------- Header ---------- */
header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.photo {
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 10%;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px -12px rgba(67, 43, 40, 0.35);
}

h1 { margin: 0; font-size: 2.6rem; line-height: 1.1; }

.tagline {
  margin: 0.5rem 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.links { margin: 0; display: flex; gap: 0.6rem; }
.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--link);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.links a:hover { background: var(--link); color: var(--bg); transform: translateY(-2px); }
.links svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
section + section { margin-top: 2.75rem; }

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

p { margin: 0 0 1rem; }

a { color: var(--link); text-underline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.chips span {
  background: var(--chip);
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { margin-bottom: 1.4rem; }
.pub-title { font-weight: 700; color: var(--heading); line-height: 1.4; }
.pub-authors { color: var(--muted); font-size: 0.95rem; }
.pub-authors b { color: var(--text); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 0.25rem; font-size: 0.9rem; }
.pub-meta .venue { font-style: italic; }
.pub-meta a { font-weight: 600; }

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  main { padding-top: 3rem; }
  header { flex-direction: column; text-align: center; gap: 1.25rem; }
  .photo { width: 140px; height: 140px; }
  h1 { font-size: 2.2rem; }
  .links { justify-content: center; }
}
