/* Muhui Jiang — personal site
   Minimal, professional. One accent color, hairline rules, no decoration. */

:root {
  --bg: #ffffff;
  --text: #18181b;
  --secondary: #52525b;
  --muted: #71717a;
  --hairline: #e4e4e7;
  --hairline-soft: #f1f1f3;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --award: #b45309;
  --maxw: 860px;
}

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

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; }
.site-header .name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.site-header nav a {
  color: var(--secondary);
  font-size: 14px;
  margin-left: 22px;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 46px 0 32px; display: flex; gap: 36px; align-items: flex-start; }
.hero-text { flex: 1; }
.hero-photo { width: 140px; height: auto; border-radius: 4px; margin-top: 4px; }
.zh-name { margin-top: 4px; font-size: 15px; color: var(--muted); }
.hero h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hero .title-line {
  margin-top: 10px;
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}
.hero .title-line .org { color: var(--secondary); font-weight: 400; }
.hero .lead {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--secondary);
  max-width: 640px;
}
.hero .meta .hl { color: var(--text); font-weight: 600; }
.hero .meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.hero .contact {
  margin-top: 18px;
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- facts line ---------- */
.facts {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  font-size: 14px;
  color: var(--secondary);
}

/* ---------- sections ---------- */
section { padding: 30px 0; border-bottom: 1px solid var(--hairline); }
section:last-of-type { border-bottom: none; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.role-intro { color: var(--secondary); margin-bottom: 18px; font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cols p { font-size: 14.5px; color: var(--secondary); }

/* ---------- selected work ---------- */
.feature { padding: 14px 0; border-top: 1px solid var(--hairline-soft); }
.feature:first-of-type { border-top: none; padding-top: 4px; }
.feature h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.feature .tagline { margin-top: 4px; font-size: 14.5px; color: var(--secondary); }
.feature .venue { margin-top: 8px; font-size: 13px; color: var(--muted); }

.award-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--award);
  border: 1px solid #e7d4bf;
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- publication lists ---------- */
.pub-list { list-style: none; }
.pub-list li { padding: 9px 0; border-bottom: 1px solid var(--hairline-soft); }
.pub-list li:last-child { border-bottom: none; }
.pub-list .p-title { font-size: 15px; font-weight: 600; }
.pub-list .p-title a { color: var(--text); }
.pub-list .p-title a:hover { color: var(--accent); }
.pub-list .p-authors { margin-top: 2px; font-size: 13.5px; color: var(--secondary); }
.pub-list .p-venue { margin-top: 2px; font-size: 13px; color: var(--muted); }

.more-link { display: inline-block; margin-top: 18px; font-size: 14.5px; }

/* pubs page */
.year-h {
  font-size: 15px;
  font-weight: 700;
  margin: 36px 0 6px;
}
.year-h:first-of-type { margin-top: 0; }

/* ---------- experience ---------- */
.xp { margin-bottom: 18px; }
.xp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.xp-head h3 { font-size: 16.5px; font-weight: 600; }
.xp-head .dates { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.xp .org { font-size: 14.5px; color: var(--secondary); margin-top: 1px; }
.xp ul { margin: 8px 0 0 18px; }
.xp ul li { font-size: 14.5px; color: var(--secondary); margin-bottom: 5px; }
.xp .note { margin-top: 6px; font-size: 14px; color: var(--secondary); }
.xp + .xp { border-top: 1px solid var(--hairline-soft); padding-top: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 22px 0 36px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--muted);
}
.site-footer nav a { color: var(--secondary); margin-left: 18px; }
.site-footer nav a:first-child { margin-left: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 34px 0 26px; gap: 20px; }
  .hero-photo { width: 92px; }
  .cols { grid-template-columns: 1fr; gap: 22px; }
  .site-header .wrap { flex-direction: column; gap: 8px; }
  .site-header nav a { margin-left: 0; margin-right: 18px; }
}

/* portfolio section */
.portfolio-grid { display: grid; grid-template-columns: 170px 1fr; row-gap: 10px; align-items: baseline; }
.p-cat { font-size: 13px; font-weight: 600; color: var(--muted); }
.p-names { font-size: 15px; }
@media (max-width: 720px) { .portfolio-grid { grid-template-columns: 1fr; row-gap: 4px; } .p-names { margin-bottom: 8px; } }
.portfolio-note { font-size: 13px; color: var(--muted); }


/* ---------- print (PDF export) ---------- */
@media print {
  .site-header, .site-footer { display: none; }
  body { font-size: 12px; line-height: 1.5; }
  .hero { padding: 0 0 18px; }
  .hero-photo { width: 96px; }
  section { padding: 18px 0; }
  .feature, .xp, .pub-list li, .p-names { break-inside: avoid; page-break-inside: avoid; }
  a { color: inherit; }
}
