:root {
  --bg: #f4f4f4;
  --paper: #ffffff;
  --text: #333333;
  --muted: #555555;
  --link: #1870B8;
  --rule: #cfcfcf;
  --durham: #68246d;
}

* {
  box-sizing: border-box;
}

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

.topbar {
  background: var(--durham);
  color: #ffffff;
}

.topbar-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.3rem 2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-profile {
  text-align: center;
}

.topbar-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.topbar-subtitle,
.topbar-contact {
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.topbar-subtitle + .topbar-subtitle {
  margin-top: 0.05rem;
}

.topbar-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.topbar-contact {
  margin: 0;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
}

.social-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  display: block;
}

.social-icon-github svg {
  width: 0.98rem;
  height: 0.98rem;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #e9ddff;
  outline: none;
}

.social-icon-website {
  font-size: 0.82rem;
}

.social-icon-website i {
  line-height: 1;
}

.social-icon-website:hover,
.social-icon-website:focus-visible {
  color: #e9ddff;
  outline: none;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.2rem;
  background: var(--paper);
  border: 0;
  box-shadow: none;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
}

::selection {
  background: #C732FC;
  color: #ffffff;
}

section {
  margin-top: 1.6rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  border-bottom: 0;
  padding-bottom: 0;
  letter-spacing: 0.01em;
}

section,
section li,
section p {
  font-size: 1rem;
  line-height: 1.55;
}

.research-highlight {
  background: #f1e8ff;
  border-left: 3px solid #e4c1f9;
  padding: 0.2rem 0.55rem;
  margin-left: -0.55rem;
  border-radius: 0.2rem;
}

ul {
  margin: 0.15rem 0 0;
  padding-left: 0;
  list-style: none;
}

li + li {
  margin-top: 0.45rem;
}

ul ul {
  margin-top: 0.2rem;
  padding-left: 1.25rem;
  list-style: none;
}

ul ul li + li {
  margin-top: 0.15rem;
}

footer {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 1rem 1.1rem 1.1rem;
  }

  .topbar-name {
    font-size: clamp(2.7rem, 11.5vw, 4.4rem);
    letter-spacing: 0;
  }

  .topbar-subtitle,
  .topbar-contact {
    font-size: 0.88rem;
  }

  .topbar-contact-row {
    gap: 0.4rem;
  }

  .social-icon-website {
    font-size: 0.78rem;
  }

  .page {
    padding: 0.8rem 1.1rem 1.1rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  section,
  section li,
  section p {
    font-size: 0.96rem;
  }
}
