/* Bio styles from breadli428/breadli428.github.io/assets/css/main.css (MIT).
   See navigation.LICENSE.txt for the copyright and license notice. */

#bio {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-2: #6e6e73;
  --bg-tile: #f5f5f7;
  --border: #d2d2d7;
  --link: #0066cc;
  --accent: #bf4800;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius-m: 18px;

  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  #bio {
    --text-2: #a1a1a6;
    --bio-heading: var(--text);
    --bg-tile: #161617;
    --border: #424245;
    --link: #2997ff;
    --accent: #f56300;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

#bio .wrap { width: var(--page-content-width); margin-inline: auto; }
#bio img { display: block; height: auto; }
#bio .about-portrait img { background: #f0fafa; }
#bio a { color: var(--link); text-decoration: none; }
#bio a:hover { text-decoration: underline; }
#bio h1 { margin: 0; font-weight: 600; color: var(--text); }
#bio p { margin: 0 0 1em; }

#bio.section { padding-block: clamp(80px, 11vw, 140px); }
#bio .about-grid {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
#bio .about-portrait {
  text-align: center;
}
#bio .about-portrait img {
  width: 100%; max-width: 220px; margin: 0 auto 24px;
  aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: var(--shadow);
}
#bio .about-portrait .name { margin: 0 0 1em; font-size: 32px; font-weight: 600; letter-spacing: 0.004em; }
#bio .org-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; }
#bio .org-list a { color: var(--text); font-weight: 600; }
#bio .social {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
#bio .social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg-tile); color: var(--text);
  font-size: 17px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
#bio .social a:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); text-decoration: none; }
#bio .about-bio .prose a {
  color: inherit; font-weight: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
#bio .about-bio .prose a:hover { background-size: 100% 1px; }
#bio .about-bio .about-intro a {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#bio .about-bio :is(h2, h3) {
  color: var(--bio-heading, #000);
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
#bio .bio-name { font-weight: 600; }
#bio .research-emphasis { color: var(--bio-heading, #000); font-weight: 600; }

#bio .about-bio {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
#bio .about-bio .bio-lead { max-width: 760px; }
#bio .bio-lead p { margin: 0; }
#bio .about-bio ul.bio-lead { margin: 0; padding-inline-start: 1.25em; }
#bio .bio-lead + h2 { margin-top: 24px; }

@media (max-width: 820px) {
  #bio .about-grid { grid-template-columns: 1fr; }
  #bio .about-portrait img { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  #bio .social a, #bio .about-bio .prose a { transition: none; }
}
