* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  flex: 0 0 240px;
  padding: 2rem 1.5rem;
  background: #f8f8f8;
  border-right: 1px solid #eee;
  position: sticky;
  top: 0;
  height: 100vh;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.sidebar h1 {
  font-size: 1.3rem;
  margin: 0 0 1.5rem;
}

.sidebar nav a {
  display: block;
  margin: 0.5rem 0;
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar nav a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pub-entry {
  margin-bottom: 2.5rem;
}

.pub-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.5;
}

.pub-title:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.pub-meta {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
  line-height: 1.6;
}

.self-name {
  font-weight: 700;
  color: #222;
}

.conf-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a64b4b;
  text-transform: uppercase;
}

.pub-meta a {
  color: inherit;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.pub-meta a:first-child {
  margin-left: 0;
}

.pub-meta a:hover {
  color: inherit;
}
.pub-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  margin: 0.8rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tagline {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.sidebar-links {
  margin-top: 1rem;
}

.sidebar-links a {
  display: block;
  margin: 0.3rem 0;
  color: #444;
  font-size: 0.9rem;
}

.hero .note {
  color: #555;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.project {
  margin-bottom: 1.8rem;
}

.project-thumb {
  display: block;
  width: auto;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  margin: 0 0 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.project .meta,
.project .authors {
  font-size: 0.95rem;
  color: #555;
  margin: 0.1rem 0;
}

.project .links a {
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.subheading {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.8rem;
  letter-spacing: 0.02em;
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.pub-inline {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 0 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pub-links a {
  display: inline-block;
  margin: 0 0.5rem 0.35rem 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f4fa3;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.pub-links a::before {
  content: "[";
  margin-right: 0.12rem;
  color: inherit;
}

.pub-links a::after {
  content: "]";
  margin-left: 0.12rem;
  color: inherit;
}

.pub-links a:hover {
  color: #0f2f6e;
}

.bullet-list {
  padding-left: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.bullet-list li {
  margin-bottom: 0.8rem;
}

.award-badge {
  color: #a64b4b;
  font-weight: 700;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 1.2rem;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: flex-start;
  }

  .sidebar nav a {
    margin: 0;
    font-size: 0.95rem;
  }

  .content {
    padding: 1.5rem 1.2rem;
  }

  .pub-inline {
    max-width: 100%;
  }

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

  .conf-tag {
    margin-left: 0.15rem;
  }
}
