@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600&family=Playfair+Display:wght@400;700&display=swap');

/* ── Colors ── */
:root {
  --accent: #4F46E5;    /* vivid indigo */
  --heading: #2C3E50;   /* midnight blue */
  --text: #2b2b2b;
  --muted: #6c757d;
}

/* ── Body ── */
body {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* ── Headings ── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
}

/* ── Navbar ── */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 2px solid var(--text);
}

.navbar-brand, .nav-link {
  color: var(--text) !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.navbar-brand img {
  max-height: 40px !important;
  height: auto;
}

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Page width ── */
.page-columns {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Papers page ── */
.paper-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  gap: 1.5rem;
}

.paper-year {
  width: 60px;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.paper-fig {
  width: 160px;
  flex-shrink: 0;
}

.paper-fig img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.paper-info {
  flex-grow: 1;
  min-width: 0;
}

.paper-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.paper-ref {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Remove default paragraph spacing inside title/ref divs */
.paper-title p,
.paper-ref p {
  margin-bottom: 0;
}

/* Link line: [bioRxiv], [doi], etc. — match the ref size */
.paper-info > p,
.paper-links {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.paper-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.paper-link:hover {
  text-decoration: underline;
}

.icon-link {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

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

/* ── Mobile ── */
@media (max-width: 600px) {
  .paper-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .paper-fig {
    width: 100%;
    max-width: 240px;
  }
}