/* Layout inspired by Tairan He; original site based on Jon Barron's template. */
@font-face {
  font-family: 'Titillium Web'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('docs/fonts/titillium-web-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('docs/fonts/titillium-web-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('docs/fonts/titillium-web-700.ttf') format('truetype');
}
.homepage { margin: 0; background: #fff; color: #111; font-family: 'Titillium Web', Verdana, Helvetica, sans-serif; font-size: 16px; line-height: 1.35; }
.homepage * { box-sizing: border-box; }
.homepage a { color: #1772d0; text-decoration: none; }
.homepage a:hover, .homepage a:focus { color: #f09228; }
.homepage a:focus-visible { outline: 2px solid #1772d0; outline-offset: 4px; border-radius: 2px; }
.homepage strong { font-weight: 600; }
.homepage u { text-underline-offset: 2px; }
.page { max-width: 900px; padding: 28px 20px 20px; margin: 0 auto; }
.homepage h1 { margin: 0 0 36px; text-align: center; font-size: 38px; line-height: 1.25; font-weight: 400; }
.homepage h1 span { white-space: nowrap; }
.profile { display: grid; grid-template-columns: 30% 70%; margin-bottom: 26px; }
.profile-sidebar { padding: 4px 20px 0; text-align: center; }
.portrait-link { display: block; width: 90%; margin: 0 auto; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1489 / 2136; object-fit: cover; border-radius: 15px; }
.social-links { margin: 16px -20px 0; line-height: 1.4; white-space: nowrap; }
.biography { min-width: 0; padding: 0 20px; text-align: justify; }
.biography p { margin: 0 0 16px; }
.biography p:last-child { margin-bottom: 0; }
.career-goal { color: #d62728; font-weight: 600; }
.section { position: relative; padding-top: 21px; margin-top: 23px; }
.section::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(to right, transparent, #999, transparent); }
.homepage h2 { margin: 0 0 20px; padding: 0 20px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.entry { display: grid; grid-template-columns: 40% 60%; align-items: center; padding: 15px 15px 22px; gap: 0; }
.project-series { margin-bottom: 12px; }
.project-series summary { margin: 0 15px 12px; padding: 10px 0; color: #1772d0; font-size: 18px; font-weight: 600; cursor: pointer; border-bottom: 1px solid #e8e8e8; }
.project-series summary:hover { color: #f09228; }
.project-series summary:focus-visible { outline: 2px solid #1772d0; outline-offset: 4px; }
.series-count { color: #666; font-size: 14px; font-weight: 400; }
.entry-media { min-width: 0; padding: 0 22px 0 0; }
.entry-image, .media-preview { display: block; width: 100%; border-radius: 15px; }
.entry-image { height: auto; max-height: 220px; object-fit: contain; }
.media-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.media-preview img, .media-preview video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 15px; }
.media-preview video { position: absolute; inset: 0; }
.media-preview video[hidden] { display: none; }
.entry-text { min-width: 0; overflow-wrap: anywhere; }
.homepage h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.entry-text p { margin: 8px 0; }
.link-divider { white-space: pre; }
.news-list { margin: 0; padding: 0 20px 12px 40px; }
.news-list li { padding-left: 2px; }
.reviewer-list { list-style: none; margin: 0; padding: 0 20px 12px; }
.reviewer-list li { margin: 0 0 5px; }
.homepage footer { padding: 28px 5px 0; text-align: right; font-size: 13px; color: #555; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 8px 12px; background: #fff; z-index: 2; }
.skip-link:focus { top: 10px; }
@media (max-width: 699px) {
  .page { padding: 24px 20px; }
  .homepage h1 { font-size: 30px; margin-bottom: 26px; }
  .profile { grid-template-columns: 1fr; gap: 28px; margin-bottom: 24px; }
  .profile-sidebar { padding: 0; }
  .portrait-link { width: 170px; margin: 0 auto; }
  .biography { padding: 0; text-align: left; }
  .homepage h2 { padding: 0; margin-bottom: 22px; }
  .entry { grid-template-columns: 1fr; padding: 0 0 30px; gap: 14px; }
  .project-series summary { margin-left: 0; margin-right: 0; }
  .entry-media { padding: 0; width: 100%; max-width: 420px; margin: 0 auto; }
  .entry-image { max-height: none; }
  .news-list { padding: 0 0 10px 20px; }
  .reviewer-list { padding: 0 0 10px; }
  .homepage footer { text-align: center; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .media-preview video { display: none; } }
