:root {
  --burgundy: #912338;
  --burgundy-dark: #6b1a2a;
  --burgundy-light: #b8324d;
  --slate: #1e293b;
  --slate-light: #334155;
  --warm-white: #faf9f7;
  --warm-gray: #f1f0ed;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e0db;
  --shadow: 0 2px 20px rgba(30, 41, 59, 0.06);
  --radius: 8px;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-height: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.75;
  font-size: 1.05rem;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--burgundy-light); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Top bar */
.top-bar {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: rgba(255,255,255,0.7);
}

.top-bar a:hover { color: var(--white); }

/* Navigation */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate);
}

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

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

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

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--warm-gray) 0%, var(--warm-white) 60%);
  padding: 4rem 0 3.5rem;
  border-bottom: 3px solid var(--burgundy);
}

.hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--burgundy);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.hero-credentials {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.2rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--slate-light);
  margin-bottom: 0.75rem;
}

.hero-affiliations {
  list-style: none;
  margin-bottom: 1.25rem;
}

.hero-affiliations li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.hero-affiliations li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--burgundy);
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--slate-light);
  line-height: 1.8;
  max-width: 640px;
}

/* Achievements band */
.achievements-band {
  background: var(--burgundy);
  color: var(--white);
  padding: 2.5rem 0;
}

.achievements-band h2 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  text-align: center;
  padding: 0 1rem;
}

.achievement-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* Main sections */
main { padding: 3.5rem 0; }

.page-section {
  margin-bottom: 4rem;
  scroll-margin-top: var(--nav-height);
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

/* Research cards */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.research-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.research-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--burgundy);
}

.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.research-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Biography */
.biography p {
  margin-bottom: 1.25rem;
  color: var(--slate-light);
}

.biography p:last-child { margin-bottom: 0; }

/* Teaching */
.teaching-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.teaching-list li {
  padding: 0.85rem 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--burgundy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--slate-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Publications */
.publication-list { list-style: none; }

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

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

.publication-list a { font-weight: 600; }

.publication-list .venue {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.publications-note {
  color: var(--slate-light);
  margin-bottom: 1.5rem;
  max-width: 720px;
  line-height: 1.7;
}

.publications-more {
  margin-top: 1.75rem;
}

.publications-more a {
  font-weight: 600;
}

/* Custom sections */
.custom-section {
  margin-bottom: 3rem;
}

.custom-section .content {
  color: var(--slate-light);
}

.custom-section .content p { margin-bottom: 1rem; }

/* Contact band */
.contact-band {
  background: var(--slate);
  color: var(--white);
  padding: 3rem 0;
  scroll-margin-top: var(--nav-height);
}

.contact-band h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
}

.contact-item {
  padding: 0.25rem 0;
}

.contact-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0.6rem;
}

.contact-item a,
.contact-item span {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
}

.contact-item a:hover { color: #f0c0c8; }

.social-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-row a {
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.social-row a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--warm-gray);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0;
}

.footer-affiliation {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 520px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 480px;
  line-height: 1.6;
}

.loading {
  text-align: center;
  padding: 6rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    margin: 0 auto;
    width: 160px;
    height: 200px;
  }
  .hero-intro { margin: 0 auto; }
  .hero-affiliations li { text-align: left; }
  .nav-links { display: none; }
  .hero-name { font-size: 1.85rem; }
}
