/* A self-contained layout inspired by the al-folio academic theme. */
:root {
  color-scheme: light;
  --background: #fff;
  --text: #252525;
  --muted: #666;
  --accent: #a5099d;
  --line: #e7e7e7;
  --subtle: #f7f7f7;
  --award-background: #fff5d6;
  --award-text: #795000;
  --award-border: #e7c76c;
  --footer-background: #1c1c1d;
  --footer-text: #dedede;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --background: #1c1c1d;
  --text: #e8e8e8;
  --muted: #ababaf;
  --accent: #68c5df;
  --line: #3b3b3f;
  --subtle: #252527;
  --award-background: #362c17;
  --award-text: #f4d47c;
  --award-border: #8f7234;
  --footer-background: #151516;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 85px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 930px; margin-inline: auto; padding-inline: 15px; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
p { margin: 0 0 16px; }
strong { font-weight: 600; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 8px; font-size: 42px; font-weight: 300; letter-spacing: -.8px; }
h1 strong { font-weight: 650; }
h2 { margin: 0 0 22px; font-size: 28px; font-weight: 400; letter-spacing: -.45px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; background: var(--background); padding: 10px 16px; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--line); }
.nav { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-name { color: var(--text); font-size: 20px; font-weight: 300; white-space: nowrap; }
.site-name:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--text); padding-block: 19px; font-size: 16px; }
.nav-links > a.active { color: var(--accent); font-weight: 600; }
.nav-links > a:hover { color: var(--accent); text-decoration: none; }
.theme-toggle { border: 0; color: var(--text); background: transparent; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; border-radius: 50%; }
.theme-toggle:hover { background: var(--subtle); }
.sun-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
.main-content { flex: 1; padding-top: 44px; padding-bottom: 58px; }
.post-header { margin-bottom: 26px; }
.subtitle { color: var(--muted); font-size: 16px; margin: 0; }
.biography::after { content: ""; display: block; clear: both; }
.profile { float: right; width: 30%; margin: 0 0 20px 32px; }
.profile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 35%; border-radius: 50%; box-shadow: 0 3px 12px #00000018; }
.profile figcaption { margin-top: 13px; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; }
.inline-award { font-weight: 600; color: var(--award-text); }
.section { margin-top: 42px; }
.news-list { margin: 0; display: grid; gap: 13px; }
.news-item { display: grid; grid-template-columns: 60px 1fr; gap: 22px; }
.news-item dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.news-item dd { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.section-heading > a { white-space: nowrap; font-size: 13px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { display: grid; grid-template-columns: 124px 1fr; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.publication-venue { padding-top: 3px; font-size: 12px; line-height: 1.6; }
.publication-venue > span:first-child { display: block; background: var(--accent); color: var(--background); text-align: center; border-radius: 3px; padding: 4px 5px; font-weight: 600; }
.publication-year { display: block; text-align: center; color: var(--muted); margin-top: 6px; font-size: 13px; }
.publication h3 { margin: 0 0 7px; font-weight: 600; font-size: 16px; line-height: 1.5; }
.publication h3 a { color: var(--text); }
.publication h3 a:hover { color: var(--accent); }
.publication-authors { font-size: 14px; line-height: 1.65; margin-bottom: 6px; color: var(--muted); }
.publication-authors strong { color: var(--text); }
.publication-conference { margin-bottom: 8px; font-size: 14px; }
.paper-status { margin-left: 5px; font-size: 12px; color: var(--muted); }
.award-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin: 12px 0 9px; }
.award-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--award-background); color: var(--award-text); border: 1px solid var(--award-border); border-radius: 5px; padding: 5px 10px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.trophy { font-size: 20px; line-height: 1; }
.award-note { font-size: 12px; color: var(--award-text); }
.award-certificate { font-size: 12px; white-space: nowrap; }
.acceptance { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.publication-links { display: flex; flex-wrap: wrap; gap: 8px; }
.publication-links a { padding: 2px 10px; font-size: 12px; color: var(--text); border: 1px solid var(--muted); border-radius: 3px; line-height: 1.7; }
.publication-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.education-list { display: grid; gap: 18px; }
.education-item { display: grid; grid-template-columns: 124px 1fr; gap: 24px; }
.education-date { font-size: 14px; color: var(--muted); padding-top: 1px; }
.education-item p { margin: 0; }
.education-degree { color: var(--muted); font-size: 14px; }
.honors-note { margin: 22px 0 0; font-size: 14px; }
.activities-list { padding-left: 21px; margin: 0; display: grid; gap: 8px; }
.contact { text-align: center; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-links { display: flex; justify-content: center; gap: 24px; align-items: center; }
.contact-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.contact-note { color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.site-footer { background: var(--footer-background); color: var(--footer-text); font-size: 11px; padding-block: 13px; text-align: center; }
.site-footer a { color: inherit; }
.publications-page .post-header { margin-bottom: 32px; }
.awards-page .post-header { margin-bottom: 32px; }
.honors-list { list-style: none; padding: 0; margin: 0; }
.honor { display: grid; grid-template-columns: 124px 1fr; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.honor:first-child { padding-top: 0; }
.honor:last-child { border-bottom: 0; }
.honor-period { color: var(--muted); font-size: 14px; padding-top: 4px; }
.honor h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 500; margin-bottom: 12px; color: var(--award-text); }
.honor p { margin-bottom: 9px; }
.honor-actions { margin-top: 14px; }
@media (max-width: 650px) {
  .container { padding-inline: 22px; }
  .nav { gap: 10px; min-height: 58px; }
  .nav-links { gap: 18px; }
  .nav-links > a { font-size: 14px; padding-block: 17px; }
  .site-name { font-size: 18px; }
  .theme-toggle { width: 36px; height: 40px; margin-right: -6px; }
  .main-content { padding-top: 32px; padding-bottom: 40px; }
  h1 { font-size: 36px; }
  h2 { font-size: 25px; }
  .profile { float: none; width: 190px; margin: 0 auto 27px; }
  .profile figcaption { display: none; }
  .section { margin-top: 34px; }
  .publication { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .publication-venue { display: flex; align-items: center; gap: 10px; padding: 0; }
  .publication-venue > span:first-child { display: inline-block; padding: 3px 9px; }
  .publication-year { margin: 0; }
  .publication h3 { font-size: 16px; }
  .education-item { grid-template-columns: 90px 1fr; gap: 14px; }
  .news-item { grid-template-columns: 42px 1fr; gap: 14px; }
  .section-heading { gap: 12px; }
  .section-heading > a { font-size: 12px; }
  .contact-links { gap: 20px; }
  .design-credit { display: block; }
  .honor { grid-template-columns: 1fr; gap: 10px; }
  .honor h2 { font-size: 21px; }
}
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .nav-links { gap: 12px; }
  .nav-links > a { font-size: 13px; }
  .site-name { font-size: 16px; }
  .theme-toggle { width: 30px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .theme-toggle, .site-footer { display: none; }
  .main-content { padding-top: 0; }
  .publication { break-inside: avoid; }
}
