/* ===================================== */
/* Base Styles & Typography */
/* ===================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  --text: #1f2933;
  --muted: #5f6b76;
  --light: #e6e8eb;
  --link: #1b4b7a;
  --link-hover: #143a5d;
  --bg: #fbfbfd;
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px; /* unified top spacing for both pages */
  line-height: 1.65;
  font-size: 15.5px;
}

/* ===================================== */
/* Navigation */
nav {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid var(--light);
  padding-bottom: 12px;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
  font-family: 'Source Sans 3', sans-serif;
}

nav a::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: var(--text);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

nav a:hover { color: var(--text); }
nav a:hover::after, nav a.active::after { width: 100%; }

/* ===================================== */
/* Headings */

/* Headings */
h1, .pub-title, footer h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
}

/* Body text */
body, p, .pub-authors, .pub-venue, .contact-links span {
  font-family: 'Source Sans 3', sans-serif;
}

/* Nav & links */
nav a, .contact-links a, .pub-links a, a {
  font-family: 'Source Sans 3', sans-serif;
}


h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.2px;
}

/* Paragraphs */
p { 
  margin-bottom: 24px; 
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
}

/* Strong Text */
strong { 
  color: var(--text);
  font-weight: 600; 
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: 'Source Sans 3', sans-serif;
}

a:hover { 
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* ===================================== */
/* Contact links */
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-links span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'Source Sans 3', sans-serif;
}

.contact-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: 'Source Sans 3', sans-serif;
}

.contact-links a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* ===================================== */
/* Publications */
/* ===================================== */
/* ===================================== */
/* Publications */
/* General publication block styling */
.publication {
  margin-bottom: 40px;
  padding-bottom: 25px;
}

.publication:not(:last-child) {
  border-bottom: 1px solid var(--light);
}

/* Last publication only: reduce spacing so note sits closer */
.publication:last-of-type {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

/* Title */
.pub-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.45;
  font-family: 'Source Serif 4', serif;
}

/* Authors */
.pub-authors {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
}

/* Venue */
.pub-venue {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal; /* no italics */
}

/* Links wrapper */
.pub-links {
  margin-top: 4px;
}

/* Links */
.pub-links a {
  display: inline-block;
  margin-right: 18px;
  color: var(--link);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Source Sans 3', sans-serif;
}

.pub-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Note below publications */
.pub-note {
  font-size: 13.5px;
  color: var(--muted);
  font-family: 'Source Sans 3', sans-serif;
  margin-top: 2px;
  margin-bottom: 20px;
}



/* ===================================== */
/* Footer / Contact */
footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--light);
  text-align: center;
}

footer h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text);
  font-family: 'Source Serif 4', serif;
}

/* ===================================== */
/* Responsive */
@media (max-width: 600px) {
  body { padding: 32px 18px; font-size: 14.5px; }
  nav { gap: 16px; font-size: 14px; }
  h1 { font-size: 24px; margin-bottom: 24px; }
  .pub-title { font-size: 16px; }
}

html {
  overflow-y: scroll; /* always reserve space for scrollbar */
}
