/* === Custom Properties === */
:root {
  --bg: #fff;
  --text: #222;
  --muted: #666;
  --accent: #2563a0;
  --accent-hover: #1a4670;
  --border: #e0e0e0;
  --nav-bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --muted: #999;
    --accent: #6cacf0;
    --accent-hover: #8fc4ff;
    --border: #333;
    --nav-bg: #1a1a1a;
  }
}

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

/* === Base === */
html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

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

/* === Layout === */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Navigation === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav .site-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

nav .site-name:hover {
  color: var(--accent);
}

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

nav .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav .nav-links a:hover {
  color: var(--accent);
}

nav .nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

/* === Typography === */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

/* === Subtitle === */
.subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* === Headshot === */
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* === Main content area === */
main {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

/* === Separator === */
.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0 1.5rem;
}

/* === Quick links (index page bottom) === */
.quicklinks {
  font-size: 0.95rem;
}

.quicklinks a {
  white-space: nowrap;
}

.quicklinks .separator-dot::before {
  content: ' · ';
  color: var(--muted);
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}

/* === Publication entries === */
.publication {
  margin-bottom: 1.75rem;
}

.publication-title {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.publication-authors {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.1rem;
}

.publication-venue {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.publication-links {
  font-size: 0.88rem;
}

.publication-links a {
  white-space: nowrap;
}

.publication-links .separator-dot::before {
  content: ' · ';
  color: var(--muted);
}

/* === In-progress note === */
.in-progress {
  color: var(--muted);
  font-style: italic;
}

/* === Lists === */
ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* === Strong within authors === */
.publication-authors strong {
  color: var(--text);
  font-weight: 600;
}
