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

:root {
  --navy:   #1b3a5c;
  --blue:   #2a7ae2;
  --text:   #1c1c1c;
  --text-2: #4a4a4a;
  --text-3: #777;
  --border: #e2e2e2;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: #f5f7fa;
}

/* ── Header ── */
.site-header {
  background: #1c2b3a;
  padding: 52px 24px 48px;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1.85em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 5px;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 0.86em;
  color: #7a9bb5;
  margin-bottom: 10px;
  line-height: 1.5;
}

.research-tags {
  font-size: 0.79em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.header-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.header-links a {
  font-size: 0.8em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}

.header-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

/* ── Main content ── */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Sections ── */
section {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 20px;
}

section h2 {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  padding-left: 12px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}

/* ── About ── */
.about-text {
  font-size: 0.93em;
  color: var(--text-2);
  line-height: 1.8;
}

.about-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

/* ── Education / Experience ── */
.item-list {
  list-style: none;
  padding: 0;
}

.item-list li {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
}

.item-list li:last-child {
  margin-bottom: 0;
}

.item-list li:hover {
  border-left-color: var(--blue);
}

.item-place {
  font-weight: 600;
  font-size: 0.92em;
}

.item-role {
  color: var(--text-2);
  font-size: 0.87em;
}

.item-meta {
  color: var(--text-3);
  font-size: 0.82em;
}

/* ── Publications ── */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pub-list li:first-child {
  padding-top: 0;
}

.pub-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-title {
  font-weight: 600;
  font-size: 0.93em;
  line-height: 1.45;
  margin-bottom: 4px;
  color: var(--text);
}

.pub-authors {
  color: var(--text-2);
  font-size: 0.84em;
  margin-bottom: 2px;
}

.pub-venue {
  color: var(--text-3);
  font-size: 0.82em;
  font-style: italic;
}

.award {
  color: #a16207;
  font-size: 0.82em;
  font-weight: 600;
  margin-top: 3px;
}

.media-coverage {
  font-size: 0.81em;
  color: var(--text-3);
  margin-top: 3px;
}

.media-coverage a {
  color: var(--text-2);
  text-decoration: none;
}

.media-coverage a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ── Paper action buttons ── */
.pub-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.btn-pdf {
  display: inline-block;
  font-size: 0.76em;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  transition: background 0.15s;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-pdf:hover {
  background: #1c60c0;
}

.cite-btn {
  display: inline-block;
  font-size: 0.76em;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.cite-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cite-content {
  display: none;
  position: relative;
  background: #f6f9fd;
  border: 1px solid #d0e4f7;
  border-radius: 4px;
  padding: 12px 14px;
  padding-right: 72px;
  margin-top: 10px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.78em;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.75em;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid #b0cfe8;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: var(--blue);
  color: #fff;
}

.copy-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.cite-content.show {
  display: block;
}

/* ── Teaching ── */
.teaching-role-label {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
  margin-top: 22px;
}

.teaching-role-label:first-child {
  margin-top: 0;
}

.teaching-list {
  list-style: none;
  padding: 0;
}

.teaching-list li {
  display: flex;
  gap: 14px;
  font-size: 0.88em;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 1px solid #f2f2f2;
}

.teaching-list li:last-child {
  border-bottom: none;
}

.teaching-list .year {
  color: var(--text-3);
  min-width: 110px;
  flex-shrink: 0;
}

/* ── Contact ── */
.contact-text {
  font-size: 0.9em;
  color: var(--text-2);
  line-height: 2.1;
}

/* ── Footer ── */
.footer {
  text-align: center;
  font-size: 0.78em;
  color: #bbb;
  padding-bottom: 40px;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-links {
    justify-content: center;
  }

  section {
    padding: 22px 18px;
  }

  .content {
    padding: 28px 14px 60px;
  }
}
