@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #22252a;
  --text-soft: #666b76;
  --border: #e5e2da;
  --accent: #1f3a5f;
  --accent-soft: #eef1f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31,58,95,0.35);
}

a:hover { border-bottom-color: var(--accent); }

.sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Header --- */
.site-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.identity img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.identity h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.identity p {
  font-family: 'Inter', sans-serif;
  margin: 3px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

nav.main-nav a {
  color: var(--text-soft);
  border-bottom: none;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
}

/* --- Content --- */
main {
  max-width: 740px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

main > h2.page-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 24px;
}

.prose p { margin: 0 0 16px; }

.prose { margin-bottom: 8px; }

.prose:last-child p:last-child { margin-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(34,37,42,0.03);
}

.card:last-child { margin-bottom: 0; }

/* --- Link row (pill) --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
}

.pill:hover { background: #dfe6f0; border-bottom: none; }

.pill-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

/* --- Entry list (publications, talks, teaching...) --- */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 8px;
}

.entry {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.entry:last-child { border-bottom: none; }

.entry-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.entry-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-figure {
  margin: 16px 0 0;
}

.section-figure img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.section-figure figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 8px;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}

.footnote {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 4px 2px 0;
}

footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-soft);
}
