:root {
  --bg: #f4f5f7;
  --panel: transparent;
  --text: #1f2528;
  --muted: #596369;
  --body-copy: #4b5563;
  --line: rgba(23, 34, 42, 0.12);
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --shadow: 0 20px 50px rgba(22, 32, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  display: none;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.2), rgba(15, 118, 110, 0.02));
  top: -100px;
  right: -60px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: linear-gradient(145deg, rgba(201, 87, 40, 0.18), rgba(201, 87, 40, 0.02));
  bottom: -70px;
  left: -80px;
}

.layout {
  width: min(1200px, 94vw);
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.profile-panel,
.research-panel {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-panel {
  padding: 1.4rem;
  position: sticky;
  top: 1.2rem;
}

.profile-photo {
  width: 85%;
  display: block;
  margin: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(20, 30, 50, 0.2);
}

h1 {
  margin: 1rem 0 0.25rem;
  font-size: 1.62rem;
  line-height: 1.2;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.profile-panel h1,
.profile-panel .title,
.profile-panel .bio,
.profile-panel .meta-list,
.profile-panel .actions {
  width: 85%;
}

.title {
  margin: 0;
  color: var(--body-copy);
  font-weight: 500;
}

.bio {
  margin: 0.95rem 0;
  line-height: 1.55;
  color: var(--body-copy);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--body-copy);
}

.actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.actions .btn:nth-child(1),
.actions .btn:nth-child(2) {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.actions .btn:nth-child(3) {
  padding-left: 0.28rem;
  padding-right: 0.28rem;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(23, 34, 42, 0.04);
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: #0a5f59;
}

.research-panel {
  padding: 1.4rem;
}

.section-header h2,
.section-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.section-header p {
  margin: 0.2rem 0 1rem;
  color: var(--body-copy);
}

.papers-list {
  display: grid;
  gap: 0.25rem;
}

.paper-item {
  padding: 0.75rem 0 1.05rem;
  border-bottom: 1px solid transparent;
  animation: rise 380ms ease both;
}

.paper-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.paper-meta {
  margin: 0.35rem 0 0.45rem;
  color: var(--body-copy);
  font-size: 0.95rem;
}

.paper-meta a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.abstract-text {
  margin: 0.65rem 0 0;
  color: var(--body-copy);
  font-size: 1rem;
  line-height: 1.5;
}

.paper-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.paper-actions a {
  color: #243a63;
  font-weight: 600;
  font-size: 1rem;
  text-decoration-thickness: 1px;
}

.abstract-btn {
  border: none;
  background: #9ca3af;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.15rem 0.45rem;
  line-height: 1.1;
  cursor: pointer;
}

.abstract-btn:hover {
  background: #6b7280;
}

.wip-block {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.wip-block > h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.3rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
    margin: 1.2rem auto;
  }

  .profile-panel {
    position: static;
  }

  .paper-item {
    padding-top: 0.65rem;
  }
}
