/* ==========================================================================
   Clean academic aesthetic
   ========================================================================== */

:root {
  --bg: #fdf9f3;
  --text: #1a1a1a;
  --text-dim: #5a5a5a;
  --link: #c0392b;
  --link-hover: #922b21;
  --border: #e3ddd0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  font-family: "Inconsolata", "SF Mono", Menlo, Consolas, monospace;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

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

.site-name {
  font-family: inherit;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-name a {
  color: var(--text);
  text-decoration: none;
}

.site-tagline {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.site-tagline a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #e0b5ae;
  text-underline-offset: 2px;
}

.site-tagline a:hover {
  color: var(--link-hover);
}

.site-tagline strong {
  color: var(--text);
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  padding-top: 1.4rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--link);
}

.site-nav a.active {
  color: var(--link);
  border-bottom-color: var(--link);
}

/* ==========================================================================
   Content
   ========================================================================== */

.content h1,
.content h2,
.content h3,
.content h4 {
  font-family: inherit;
  font-weight: 700;
  color: var(--text);
}

.content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1.1rem;
}

.content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #c3cede;
  text-underline-offset: 2px;
}

.content a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.content strong {
  font-weight: 600;
}

.content ul,
.content ol {
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}

.content li {
  margin-bottom: 0.45rem;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.content pre {
  background: #f6f6f6;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  line-height: 1.5;
}

.content code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ==========================================================================
   Home / intro
   ========================================================================== */

.intro-section p:first-child {
  margin-top: 0;
}

.intro-section::after {
  content: "";
  display: table;
  clear: both;
}

.avatar {
  float: left;
  width: 240px;
  height: auto;
  margin: 0 1.75rem 1rem 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

@media (max-width: 620px) {
  .avatar {
    float: none;
    display: block;
    width: 200px;
    margin: 0 auto 1.5rem;
  }
}

/* ==========================================================================
   Publications
   ========================================================================== */

.author-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

.paper {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.paper:last-child {
  border-bottom: none;
}

.paper-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.paper-authors {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.paper-venue {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
}

.paper.award .paper-venue {
  color: #8a6d00;
}

/* ==========================================================================
   News
   ========================================================================== */

.news-list {
  list-style: none;
  padding: 0.25rem 1rem;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fbf5ea;
}

.news-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 66px;
  font-size: 0.85rem;
  padding-top: 0.1rem;
}

.news-list::-webkit-scrollbar {
  width: 8px;
}

.news-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 540px) {
  .container {
    padding: 2rem 1.25rem 2.5rem;
  }

  .site-name {
    font-size: 1.5rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.15rem;
  }
}
