/*
  Classic mathematics academic homepage.

  Visual direction:
  - plain white background
  - compact typography
  - traditional blue links
  - restrained headings
  - simple horizontal rules
  - no cards / gradients / dark mode
*/

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.page {
  width: min(900px, calc(100% - 48px));
  margin: 32px auto 60px;
}

.header h1 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
}

.chinese-name {
  margin: -1px 0 13px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 21px;
  font-weight: 600;
}

address {
  margin-top: 12px;
  font-style: normal;
  line-height: 1.38;
}

.contact {
  margin: 12px 0 0;
}

hr {
  border: 0;
  border-top: 1px solid #8c8c8c;
  margin: 22px 0;
}

section {
  margin: 0 0 25px;
}

h2 {
  margin: 23px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

h3 {
  margin: 17px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
}

p {
  margin: 9px 0;
}

a {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #cc0000;
}

ol,
ul {
  margin: 7px 0 0;
  padding-left: 31px;
}

li {
  margin: 7px 0;
  padding-left: 3px;
}

.publications li {
  margin-bottom: 10px;
}

.note {
  color: #222222;
}

footer {
  padding-bottom: 10px;
  font-size: 14px;
  font-style: italic;
}

/* A little more breathing room on large screens,
   while keeping the old-school academic-page feel. */
@media (min-width: 1100px) {
  .page {
    width: 920px;
  }
}

/* Mobile: retain the same visual language, just reduce margins. */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .page {
    width: calc(100% - 28px);
    margin-top: 20px;
  }

  .header h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 20px;
  }

  ol,
  ul {
    padding-left: 26px;
  }
}
