/* ============================================
   Pascale Fung — Personal Academic Website
   Accent color: Teal (#2A9D8F)
   ============================================ */

:root {
  --accent: #DC3D24;
  --accent-dark: #b8301c;
  --text-primary: #303030;
  --text-secondary: #555555;
  --text-muted: #717171;
  --bg: #fff;
  --bg-alt: #E8E8E8;
  --border: #E0E0E0;
  --header-bg: #303030;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 100;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: #fff;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---------- HERO ---------- */
#hero {
  margin-top: 50px;
  padding: 4rem 0 2rem;
  text-align: center;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

#hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

#hero .chinese-name {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

#hero .title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

#hero .title.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

#hero .fellowships {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-email {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.hero-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------- SECTION HEADINGS ---------- */
section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

/* ---------- ABOUT ---------- */
#about p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ---------- RESEARCH ---------- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.research-item {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.research-item:hover {
  border-color: var(--accent);
}

.research-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.research-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- AWARDS ---------- */
.awards-list {
  list-style: none;
}

.awards-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.awards-list .award-name {
  font-weight: 600;
  color: var(--text-primary);
}

.awards-list .award-venue {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- PUBLICATIONS ---------- */
.pub-list {
  list-style: none;
}

.pub-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

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

.pub-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.97rem;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.pub-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.1rem;
}

.pub-award {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.full-list-link {
  margin-top: 1.5rem;
  text-align: center;
}

.full-list-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.full-list-link a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

/* ---------- MEDIA & TALKS ---------- */
.media-list {
  display: flex;
  flex-direction: column;
}

.media-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

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

.media-item {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.media-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.media-item a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.media-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ---------- CONTACT ---------- */
#contact p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#contact a {
  color: var(--accent);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav {
    gap: 0.6rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 50px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  nav a {
    font-size: 0.78rem;
  }

  #hero {
    margin-top: 60px;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  #hero .title {
    font-size: 0.92rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }
}
