/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #1e3a5f;
  --accent-soft: #2d4a73;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #6b7280;
  --rule: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --max-width: 760px;
  --radius: 6px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.2em;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.hero__photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: block;
}

.hero__intro h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  line-height: 1.15;
}

.hero__cn {
  font-weight: 400;
  color: var(--muted);
  font-size: 1.4rem;
  margin-left: 0.35rem;
}

.hero__role {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.hero__aff {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.hero__links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.92rem;
}

.hero__links a {
  border-bottom: 1px solid var(--rule);
}

.hero__links a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: none;
}

.section h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.section__note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------- Tags ---------- */
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.timeline__when {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timeline__what {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Publications ---------- */
.year {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.04em;
}

.year:first-of-type {
  margin-top: 1rem;
}

.pubs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 1.25rem;
}

.pubs li {
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  transition: border-color 0.15s ease;
}

.pubs li:hover {
  border-left-color: var(--accent);
}

.pub__title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.pub__authors {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0.15rem;
}

.pub__venue {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Service ---------- */
.service__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.service__list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container {
    padding: 2.5rem 1.25rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 2.5rem;
  }

  .hero__photo img {
    width: 120px;
    height: 120px;
  }

  .hero__intro h1 {
    font-size: 1.75rem;
  }

  .hero__cn {
    font-size: 1.15rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline__when {
    font-size: 0.8rem;
  }

  .section {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .hero__links {
    gap: 0.4rem 1rem;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(30, 58, 95, 0.15);
  color: var(--ink);
}
