/* NexusStratum palette — clean modern light theme */

:root {
  --bg-primary: #F5F0EB;
  --bg-secondary: #FAFAF8;
  --bg-card: #FFFEFA;
  --bg-card-hover: #FAF8F5;
  --border: #E8D4C4;
  --border-light: #D4B8A8;

  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-muted: #9B918A;

  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-light: rgba(20, 184, 166, 0.10);
  --accent-orange: #F97316;
  --accent-navy: #1e3a5f;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero-inner {
  display: flex;
  gap: 36px;
  align-items: center;
}

.avatar-wrap {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 28px rgba(20, 184, 166, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.035em;
}

.hero .title {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.005em;
}

.hero .affiliations {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.orcid-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.orcid-link:hover {
  border-color: #A6CE39;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(166, 206, 57, 0.12);
}

.contact-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--accent);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

section {
  margin-bottom: 56px;
}

section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.bio p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-secondary);
}

.bio a,
footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  font-weight: 500;
}

.bio a:hover,
footer a:hover {
  border-bottom-color: var(--accent);
}

.bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Side-by-side blocks ────────────────────────────────────────────────── */

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.block h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: 'Space Grotesk', sans-serif;
}

.list {
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

/* ── Publications ───────────────────────────────────────────────────────── */

.pub-subtitle {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 28px;
  margin-top: -14px;
  font-family: 'Space Grotesk', sans-serif;
}

.paper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.paper:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.10);
  transform: translateY(-2px);
}

.paper-header {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}

.paper-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-family: 'Space Grotesk', sans-serif;
}

.paper-title-wrap {
  flex: 1;
  min-width: 0;
}

.paper-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.paper-authors {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.paper-venue {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.paper-abstract {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 11px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
}

.paper-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  main {
    padding: 40px 20px 64px;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-links {
    justify-content: center;
  }
  .side-by-side {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .paper {
    padding: 22px;
  }
  .paper-title {
    font-size: 17px;
  }
  .paper-header {
    gap: 14px;
  }
}
