/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Theme variables */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --border: #e5e5e5;
}

/* Base */
html {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18.5px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  overflow-y: scroll;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main column with left sidebar */
.container {
  max-width: 690px;
  margin: 0 auto;
  padding: 1.75rem 2rem 1rem;
  position: relative;
  transform: translateX(3rem);
}

/* Side columns */
.sidebar {
  width: 150px;
  position: absolute;
  right: calc(100% + 3.5rem);
  top: 1.75rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Social links — stacked vertically below photo */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
  font-size: 0.8rem;
  font-style: italic;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.5;
}

.social-links a svg {
  vertical-align: middle;
  flex-shrink: 0;
}

.social-links a:hover {
  color: var(--text);
  border-bottom: none;
}

.sidebar-news {
  margin-top: 1.45rem;
}

.news-panel {
  max-height: min(14rem, calc(100vh - 16rem));
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.news-heading {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.news-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
}

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

.news-item p {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.3rem;
}

.news-item p:last-child {
  margin-bottom: 0;
}

.news-date {
  color: var(--text-light);
}

/* Right content */
.content {
  width: 100%;
}

/* Bio paragraphs — more breathing room */
.bio p {
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

/* Links — same font color, dotted underline */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-light);
  padding-bottom: 1px;
}

a:hover {
  color: var(--text-light);
  border-bottom-style: dotted;
}

/* Sections */
h2 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.75rem 0;
}

/* Publications */
.pub {
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 80%;
  margin-left: 1.5rem;
}

.pub::before {
  content: "\25A0";
  font-size: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pub-title {
  font-weight: normal;
  font-size: 18.5px;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.pub-authors {
  font-size: 18.5px;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.pub-authors strong {
  color: var(--text);
}

.pub-venue {
  font-size: 18.5px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0;
}

/* Footer */
footer {
  max-width: 690px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* Responsive — collapse sidebar when viewport too narrow */
@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .container {
    transform: none;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  h2 {
    font-size: 19px;
  }

  .container {
    padding: 1rem 1.25rem 1rem;
  }

  .pub-title,
  .pub-authors,
  .pub-venue {
    font-size: 15px;
  }

  .pub {
    margin-left: 0.5rem;
    max-width: 100%;
  }
}
