/* ── Variables ─────────────────────────────────────────── */
:root {
  --teal:      #3a3aaa;
  --teal-mid:  #4444bb;
  --text:      #1a1a2e;
  --text-mid:  #444;
  --text-soft: #777;
  --border:    #e0e0e0;
  --bg:        #ffffff;
  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 780px;
}

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

/* ── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Navigation ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--teal);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--teal); }

/* ── Sections ──────────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

/* ── Hero / About ──────────────────────────────────────── */
.section-hero {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.section-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
}

.body-content p {
  margin-bottom: 0.9rem;
  color: var(--text-mid);
}
.body-content p:last-child { margin-bottom: 0; }

/* ── Section headings ──────────────────────────────────── */
h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 0.45rem;
  border-bottom: 1.5px solid var(--teal);
  margin-bottom: 1.6rem;
}

/* ── Research list ─────────────────────────────────────── */
.research-list {
  list-style: none;
  padding: 0;
}

.research-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.97rem;
}
.research-list li:last-child { border-bottom: none; }

/* ── Papers list ───────────────────────────────────────── */
.paper-list {
  list-style: none;
  padding: 0;
}

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

.paper-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.45;
}

.paper-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-brand { font-size: 0.72rem; }
  .nav-links { gap: 1rem; }
  .section { padding: 2.5rem 1.25rem; }
  .section-hero h1 { font-size: 1.6rem; }
}
