:root {
  --bg: #000000;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --accent: #7ec8e3;
  --border: #222222;
  --max-width: 700px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

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

a:hover {
  text-decoration: underline;
}

nav.site-nav {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

nav.site-nav a {
  margin-right: 1rem;
}

nav.site-nav a.active {
  color: var(--text);
  font-weight: 600;
}

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.entry {
  margin-bottom: 1rem;
}

.entry .period {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.entry .details {
  font-size: 0.95rem;
}

.entry .details strong {
  font-weight: 600;
}

.entry .details .note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

ol.publications {
  list-style: none;
  counter-reset: pub;
  padding-left: 0;
}

ol.publications li {
  counter-increment: pub;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  padding-left: 2rem;
  position: relative;
}

ol.publications li::before {
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pub-title {
  font-weight: 600;
}

.pub-venue {
  color: var(--text-muted);
  font-style: italic;
}

ul.students, ul.software {
  list-style: none;
  padding-left: 0;
}

ul.students li, ul.software li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

ul.post-list {
  list-style: none;
  padding-left: 0;
}

ul.post-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 0.6rem;
}

ul.theses, ul.awards, ul.talks {
  list-style: none;
  padding-left: 0;
}

ul.theses li, ul.awards li, ul.talks li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

ul.awards .year, ul.talks .year {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .links {
    gap: 0.8rem;
  }
}
