*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --blue: #A78BFA;
  --text: #111111;
  --muted: #777777;
  --bg: #ffffff;
  --max-w: 680px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  padding: 0 1.5rem;
}

/* ── Cursor blob ── */

#cursor-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.08);
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: blur(90px);
  z-index: 0;
}

nav, main {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-name {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-name:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── Main ── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 6rem;
}

section {
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

p {
  font-weight: 300;
  max-width: 62ch;
  margin-bottom: 1rem;
}

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

em {
  font-style: italic;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Publications ── */

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pub-title {
  font-weight: 400;
  font-size: 0.9375rem;
}

.pub-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Contact ── */

.contact-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-links a {
  color: var(--text);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.contact-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.contact-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Mobile ── */

@media (max-width: 520px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 3rem;
  }

  .nav-links {
    gap: 0.4rem;
    font-size: 0.8125rem;
  }
}
