:root {
  --bg-page: #eef0f2;
  --bg-card: #ffffff;
  --text: #1f2733;
  --text-muted: #6b7280;
  --accent: #1d5fc2;
  --border: #e2e4e8;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  text-align: center;
  background: var(--bg-card);
  padding: 2.5rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* Nav */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 1rem 1rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.25rem 0.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.nav-list a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

/* Page layout */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card-label {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* About page */
.about-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.avatar-circle {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e7e9ed;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
}

.btn-primary:hover {
  background: #164a99;
  text-decoration: none;
}

.card-centered {
  text-align: center;
}

/* Entry lists (Research / Volunteer / Program) */
.entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.entry-meta {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entry-desc {
  margin: 0.5rem 0 0;
}

.entry-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
}

.empty-note {
  color: var(--text-muted);
  margin: 0;
}

/* Contact page */
.contact-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-weight: 700;
  color: var(--text);
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem 1rem 2.5rem;
}

/* Mobile */
@media (max-width: 600px) {
  .about-flex {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .nav-list {
    gap: 1.25rem;
  }
}
