/* ============================================================
   Yiming Liu — academic homepage
   Source Serif 4, self-hosted (renders behind the GFW, where
   fonts.googleapis.com does not resolve).
   One ink colour throughout: hierarchy comes from weight and
   order, not from greying anything down. Links carry no
   underline; hover is the only colour on the page.
   ============================================================ */

@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/sourceserif-c2e0a.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/sourceserif-24c55.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/sourceserif-8c317.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/sourceserif-6a682.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/sourceserif-8c317.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/sourceserif-6a682.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root{
  --ink:   #292524;   /* every piece of running text        */
  --label: #7c746d;   /* section labels only                */
  --accent:#9a3412;   /* hover only                         */
  --rule:  #e7e5e4;
  --page:  #fdfcfb;
  --serif: 'Source Serif 4', Charter, 'Bitstream Charter', Cambria, Georgia, serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

body{
  font-family:var(--serif);
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background:var(--page);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

main{max-width:730px;margin:0 auto;padding:80px 32px 96px}

/* ---------- Intro ---------- */
.intro{display:grid;grid-template-columns:132px 1fr;gap:34px;align-items:start;margin-bottom:24px}
.photo{width:132px;border-radius:3px}
h1{font-size:40px;font-weight:600;line-height:1.1;letter-spacing:-.015em;margin-bottom:12px}
.role{font-weight:600;font-size:16px}
.role .alt{display:block;font-weight:400}
.org{font-size:16px}
.fields{font-size:16px;font-style:italic;margin-top:10px}
.links{margin-top:16px;font-size:16px;display:flex;gap:24px;flex-wrap:wrap}
.links a{transition:color .2s}
.links a:hover{color:var(--accent)}

/* ---------- Sections ---------- */
section{margin-top:56px}
h2{
  font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.15em;
  color:var(--label);padding-bottom:10px;border-bottom:1px solid var(--rule);margin-bottom:22px;
}

/* ---------- Entries ----------
   Three stacked lines: title, journal/status, coauthors.
   All one colour; the title's weight and the ordering carry
   the hierarchy. Unlinked papers look identical to linked
   ones by design — not every entry has somewhere to go.      */
.entry{margin-bottom:24px}
.entry:last-child{margin-bottom:0}
.t,.st,.co{display:block}
.t{font-size:17.5px;font-weight:600;line-height:1.4;transition:color .2s}
.st,.co{font-size:16px;line-height:1.5}
.entry a:hover .t{color:var(--accent)}
.st a{transition:color .2s}
.st a:hover{color:var(--accent)}

.courses p{margin-bottom:6px;font-size:16px}

/* ---------- Small screens ---------- */
@media (max-width:640px){
  body{font-size:16.5px}
  main{padding:48px 22px 64px}
  .intro{grid-template-columns:1fr;gap:22px;margin-bottom:8px}
  .photo{width:118px}
  h1{font-size:33px}
  section{margin-top:44px}
  .t{font-size:17px}
  .st,.co{font-size:15.5px}
  .links{gap:18px}
}
