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

html {
  font-size: 16px;
}

body {
  background-color: #f4f4ef;
  color: #222;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #ddd;
}

.header-text h1 {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.2;
}

.subtitle {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: #7b8c7c;
}

section {
  margin-bottom: 2rem;
}

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

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

p {
  font-size: 0.95rem;
}

ul {
  list-style: none;
  font-size: 0.95rem;
}

ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

ul li::before {
  content: "-";
  position: absolute;
  left: 0;
}

a {
  color: #7b8c7c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #5f6e60;
}

.muted {
  color: #7b8c7c;
}

.research-list a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.research-list a:hover {
  color: #111;
}

.projects-section {
  margin-bottom: 2rem;
}

.year-group {
  margin-bottom: 1.25rem;
}

.year-group:last-child {
  margin-bottom: 0;
}

.year-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.65rem;
}

.year-group:first-child .year-header {
  margin-top: 0.65rem;
}

.year {
  color: #b0b0b0;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.year-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

.project-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.projects-section .project-name {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.projects-section a.project-name:hover {
  color: #111;
}

.project-desc {
  color: #222;
}

.project-meta {
  color: #b0b0b0;
}

@media (max-width: 480px) {
  main {
    padding: 2rem 1.25rem 3rem;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
