/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.75; text-decoration: underline; }

/* ── Theme Toggle ── */
#theme-toggle {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background 0.25s, border-color 0.25s;
}
#theme-toggle:hover { border-color: var(--accent); }

/* ── Header ── */
.site-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
}

.site-header h1::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
  width: 100%;
}

/* ── Bio Section ── */
.bio-section {
  display: flex;
  gap: 36px;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}

.bio-photo {
  flex-shrink: 0;
}

.bio-photo img {
  width: 200px;
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--accent-dim);
  display: block;
}

.bio-content {
  flex: 1;
  min-width: 0;
}

.bio-meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.bio-text {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.8;
}

.bio-text p { margin-bottom: 0.75em; }
.bio-text p:last-child { margin-bottom: 0; }

.bio-text strong { color: var(--heading); font-weight: 600; }
.bio-text em { font-style: italic; }

.bio-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75em 0;
}
.bio-text ul li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.5em;
}
.bio-text ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75em;
  top: 0.22em;
}

/* ── Social Icons ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
  opacity: 1;
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ── Bio Keywords ── */
.bio-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bio-keyword {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  white-space: nowrap;
}

/* ── Section Heading ── */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 40px;
}

/* ── Research Interests ── */
.research-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.research-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

.research-text p { margin-bottom: 0.75em; }
.research-text p:last-child { margin-bottom: 0; }
.research-text strong { color: var(--heading); font-weight: 600; }
.research-text em { font-style: italic; }

.research-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75em 0;
}
.research-text ul li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.6em;
}
.research-text ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75em;
  top: 0.25em;
}

/* ── News ── */
.news-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.6;
}
.news-list li:last-child { border-bottom: none; }
.news-list li strong { color: var(--heading); }

/* ── Awards Section ── */
.awards-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.award-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.award-item:last-child { border-bottom: none; }

.award-year {
  grid-row: 1 / 3;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.award-title {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
}

.award-org {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── Services Section ── */
.services-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.services-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
}

/* Each ### heading + its following ul = one column */
.services-text h3 {
  flex-basis: 100%;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading);
  margin: 20px 0 6px;
  min-width: 180px;
  flex-shrink: 0;
}
.services-text h3:first-child { margin-top: 0; }

.services-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  min-width: 180px;
  flex: 1;
}

.services-text ul li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 3px 0;
  padding-left: 22px;
  position: relative;
}
.services-text ul li::before {
  content: "–";
  position: absolute;
  left: 8px;
  color: var(--text-muted);
}

.services-text ul li a {
  color: var(--text);
  text-decoration: none;
}
.services-text ul li a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .bio-section {
    flex-direction: column;
    gap: 24px;
  }
  .bio-photo img {
    width: 120px;
    height: 144px;
  }
  .services-text {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 520px) {
  body { padding: 0 16px 48px; }
  .site-header { padding: 40px 0 24px; }
}
