/* ---------------------------------------------------------
   Ho-Chien Huang — Academic Personal Page
   Minimal black/white/gray, serif academic style.
   Pure static CSS, no build step, no frameworks.
--------------------------------------------------------- */

:root {
  --color-text: #1a1a1a;
  --color-muted: #5a5a5a;
  --color-bg: #ffffff;
  --color-line: #dcdcdc;
  --color-accent: #333333;
  --max-width: 760px;
  --font-serif: "Iowan Old Style", "Noto Serif TC", "Songti TC", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 20px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.7;
  font-size: 17px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #000;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.7rem;
  margin: 0 0 4px;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-line);
}

.zh-name {
  font-weight: 400;
  color: var(--color-muted);
}

/* Header */
.site-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 32px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.subtitle {
  margin: 4px 0 2px;
  color: var(--color-muted);
}

.affiliation {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
}

.site-nav a:hover {
  text-decoration: underline;
}

.lang-switch {
  margin-left: auto;
  font-style: italic;
}

/* Sections */
section {
  margin: 0 0 44px;
}

.lead {
  color: var(--color-text);
}

/* Research interests */
.research-list {
  padding-left: 20px;
  margin: 0;
}

.research-list li {
  margin-bottom: 10px;
}

/* Academic journey timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-year {
  font-size: 1rem;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--color-text);
}

.timeline-year:first-child {
  margin-top: 0;
}

.timeline-entry {
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--color-line);
}

.timeline-entry .entry-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2px;
}

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

.pub-list li {
  margin-bottom: 18px;
  padding-left: 1.6em;
  text-indent: -1.6em;
}

.pub-list .pub-note {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.contact-list a.is-hidden {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 20px 0 48px;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .lang-switch {
    margin-left: 0;
  }
}
