/* Site-wide typography overrides for the hello-friend-ng theme. */
html {
  letter-spacing: normal;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: normal;
}

/* Tighter lines for publication entries (title / venue / authors). */
.post-content p:has(small) {
  line-height: 1.35;
}

/* Entry titles (publications, courses): slightly heavier than body text, not full bold. */
.post-content p:has(small) > strong:first-child {
  font-weight: 500;
}

.post-content li {
  margin: 0.1em 0;
}

/* Smaller, bullet-free lists (students, media mentions). */
.compact-list {
  font-size: 80%;
}

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

/* Secondary text inside headings, e.g. "Publications (Google Scholar)". */
.post-content h2:has(> small) {
  align-items: baseline;
}

.post-content h2 small {
  font-size: 0.8em;
  font-weight: 400;
  margin-left: 0.3em;
}

/* Bold text inside author lines (my name) matches the entry title weight. */
.post-content small strong {
  font-weight: 500;
}

/* Homepage: space between the header bar and the portrait. */
.home-intro .circle {
  margin-top: 2rem;
}

/* Homepage: keep the subtitle close to the name. */
.home-intro h1 {
  line-height: 1.2;
  margin-bottom: 0;
}

.home-intro h1 + p {
  margin-top: 0.4em;
}

/* Homepage: remove the large gap between the social icons and the content,
   and cap the width to match the header so lines stay readable. */
.home-content {
  margin-top: 0;
  padding-top: 0;
  /* 680px of text + 20px padding each side; slightly inset from the 760px header. */
  max-width: 720px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.home-content .post-content {
  margin-top: 0;
}

/* Keep the logo cursor solid while the phrase is being typed/erased. */
.logo--typing .logo__cursor {
  animation: none;
  opacity: 1;
}

/* Reserve the logo's line height so the header (and page) doesn't shift
   when the typing animation erases the text completely. */
.logo__text {
  line-height: 1.5;
  min-height: 1.5em;
}
