:root {
  --text: #1a1a1a;
  --muted: #666;
  --accent: #0b5394;
  --border: #e5e5e5;
  --bg: #ffffff;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.header-text h1 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role {
  margin: 0 0 2px;
  font-size: 18px;
  color: var(--text);
}

.affil {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}

.links {
  font-size: 15px;
}
.links .sep { color: var(--border); margin: 0 4px; }

/* ===== Sections ===== */
.section { margin-bottom: 44px; }

.section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 0 0 18px;
}

.section p { margin: 0 0 14px; }

.draft-note { color: var(--muted); font-size: 14px; }

/* ===== Publications ===== */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub { margin-bottom: 22px; }
.pub-title {
  margin: 0 0 3px !important;
  font-weight: 600;
  line-height: 1.45;
}
.pub-authors {
  margin: 0 0 3px !important;
  font-size: 15px;
  color: #333;
}
.pub-venue {
  margin: 0 !important;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
.footnote {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Education ===== */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.edu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.edu-list li:last-child { border-bottom: none; }
.edu-degree { font-weight: 600; }
.edu-school {
  grid-column: 1;
  font-size: 15px;
  color: var(--muted);
}
.edu-year {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .photo { width: 120px; height: 120px; }
  .container { padding: 36px 20px 60px; }
  .header-text h1 { font-size: 26px; }
}
