:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --text: #1d242b;
  --muted: #546170;
  --accent: #0c5a4b;
  --line: #d7dee5;
}

a {
  color: inherit;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4f6f3 0%, #f9faf8 26%, var(--bg) 100%);
  line-height: 1.6;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.quick-links a:hover,
.pub-links a:hover,
.footer a:hover {
  color: var(--accent);
}

main.container {
  padding: 2rem 0 1rem;
}

.about {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-image {
  margin: 0;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.about-text p {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

.quick-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.quick-links a,
.pub-links a,
.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.news,
.publications {
  margin-top: 2.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.section-link:hover {
  text-decoration: underline;
}

.news ul,
.publications ol {
  margin: 0;
  padding-left: 1.2rem;
}

.news li,
.publications li {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.news li {
  display: grid;
  grid-template-columns: 95px 1fr;
  column-gap: 0.6rem;
  align-items: start;
}

.news-date {
  display: inline-block;
  width: 85px;
  color: var(--text);
  font-weight: 600;
}

.news-text {
  width: auto;
  color: var(--muted);
  font-weight: 400;
}

.pub-title,
.pub-authors,
.pub-venue,
.pub-links {
  margin: 0;
}

.pub-title {
  color: var(--text);
  font-weight: 600;
}

.pub-links {
  margin-top: 0.12rem;
}

.pub-list .pub-links {
  display: inline-block;
  margin-right: 0.5rem;
}

.pub-links a + a::before {
  content: "| ";
  color: var(--muted);
  font-weight: 400;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pub-page {
  padding: 2rem 0 2rem;
}

.pub-hero {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.pub-hero p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.pub-listing {
  margin-top: 1.2rem;
}

.pub-list {
  margin: 0;
  padding-left: 1.4rem;
}

.pub-list li {
  margin-bottom: 1rem;
}

.pub-list .pub-title,
.pub-list .pub-authors,
.pub-list .pub-venue {
  margin: 0;
}

.pub-list .pub-title {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-image {
    max-width: 320px;
  }

  .news-date {
    width: auto;
    margin-right: 0.4rem;
  }

  .news li {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}
