/*
  Minimal academic homepage stylesheet.
  No external fonts, no JavaScript, no CDN.
  Designed for GitHub Pages and custom domains.
*/

:root {
  --text: #111;
  --muted: #555;
  --rule: #ddd;
  --link: #0645ad;
  --visited: #5a3696;
  --background: #fff;

  /* Paper title colors */
--paper-title: #0055aa;
--paper-title-hover: #0070cc;
}

html {
  background: var(--background);
}

body {
  max-width: 820px;
  margin: 2.2rem auto;
  padding: 0 1.2rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: normal;
}

h1 {
  margin: 0 0 0.3rem 0;
  font-size: 2.25rem;
}

h2 {
  margin-top: 2rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--rule);
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
}

p {
  margin: 0.7rem 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  margin-bottom: 1.4rem;
}

.site-title {
  margin-bottom: 0.2rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1.2rem 0;
}

nav li {
  display: inline;
  margin-right: 1rem;
  white-space: nowrap;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: bold;
}

main {
  clear: both;
}

.portrait {
  float: right;
  width: 170px;
  max-width: 35%;
  height: auto;
  margin: 0.2rem 0 1rem 1.4rem;
  border: 1px solid var(--rule);
}

.note {
  color: var(--muted);
}

/* Paper entries */
.paper {
  margin: 1.1rem 0 1.4rem 0;
}

/* A light separator between consecutive papers. */
.paper + .paper {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

/* Paper title. */
.paper-title {
  font-style: italic;
  color: var(--paper-title);
}

/* Clickable paper titles. Used when the title itself links to the PDF. */
.paper-title-link,
.paper-title-link:visited {
  color: var(--paper-title);
  text-decoration: none;
}

.paper-title-link:hover,
.paper-title-link:focus {
  color: var(--paper-title-hover);
  text-decoration: underline;
}

.paper-title-link .paper-title {
  color: inherit;
}

/* Links such as [pdf], [arXiv], [doi] placed next to a paper title. */
.paper-title-links {
  font-size: 0.75em;
  font-weight: normal;
  font-style: normal;
  margin-left: 0.45em;
  white-space: nowrap;
}

.paper-title-links a {
  text-decoration: none;
}

.paper-title-links a:visited {
  color: var(--link);
}

.paper-title-links a:hover,
.paper-title-links a:focus {
  text-decoration: underline;
}

/* Old-style paper links, kept for compatibility in case some papers still use them. */
.paper-meta,
.paper-links {
  margin: 0.3rem 0;
}

.paper-summary {
  margin: 0.35rem 0;
}

.paper-links a {
  margin-right: 0.55rem;
}

/* Make numbered lists inside paper summaries slightly more compact. */
.paper ol.compact-list {
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
  padding-left: 1.8rem;
}

.paper ol.compact-list li {
  margin: 0.35rem 0;
}

.compact-list li {
  margin: 0.35rem 0;
}

/* Optional: use this if you write your name as Hongjun Ge <span class="chinese-name">(葛...)</span>. */
.chinese-name {
  font-weight: normal;
  font-size: 0.9em;
}

footer {
  margin-top: 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

@media (max-width: 620px) {
  body {
    margin-top: 1.2rem;
    font-size: 17px;
  }

  nav li {
    display: block;
    margin: 0.25rem 0;
  }

  .portrait {
    float: none;
    display: block;
    max-width: 260px;
    width: 70%;
    margin: 0.8rem 0;
  }
}
