:root {
  --max-width: 780px;
  --ink: #1f2a33;
  --muted: #6b7c8c;
  --faint: #93a0ac;
  --accent: #4682b4;
  --accent-dark: #35648c;
  --rule: #e2e0d8;
  --bg: #f8f4ec;
  --card: #e7eef4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .year-heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 550;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header .portrait {
  width: 150px;
  height: 225px;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 14px;
  flex-shrink: 0;
  filter: contrast(1.02);
  box-shadow: 0 1px 2px rgba(31, 42, 51, 0.14), 0 6px 20px rgba(31, 42, 51, 0.12);
}

.site-header h1 {
  font-size: 2.3rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.site-header .tagline {
  color: var(--ink);
  margin: 0;
  font-size: 1.02rem;
}

.site-header .affiliation {
  color: var(--muted);
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

/* Nav */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 2rem 0 2.6rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.55rem;
  margin: 0 0 1.1rem;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.7rem;
}

/* Entries (education, media, awards) */
.entry {
  margin-bottom: 1.15rem;
}

.entry .title {
  font-weight: 600;
}

.entry .title a {
  color: var(--ink);
  text-decoration: none;
}

.entry .title a:hover {
  color: var(--accent);
}

.entry .detail {
  color: var(--muted);
  font-size: 0.92rem;
}

.entry .year {
  color: var(--faint);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Publications */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-list li {
  margin-bottom: 1.2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  transition: border-color 0.15s ease;
}

.pub-list li:hover {
  border-left-color: var(--accent);
}

.pub-title {
  font-weight: 600;
}

.pub-title a {
  color: var(--ink);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors,
.pub-venue {
  font-size: 0.9rem;
  color: var(--muted);
}

.pub-venue em {
  font-style: italic;
}

.pub-venue .doi {
  font-size: 0.85rem;
}

.year-heading {
  font-size: 1.25rem;
  margin: 2.4rem 0 1.1rem;
  color: var(--accent-dark);
}

/* Callout */
.callout {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

/* Profile icons */
.profiles-row {
  display: flex;
  gap: 1.1rem;
  padding: 0;
  margin: 0.4rem 0 0;
  list-style: none;
}

.profiles-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.profiles-row a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.profiles-row svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Contact links */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  padding: 0;
  margin: 0.9rem 0 0;
  list-style: none;
}

.links-row a {
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  color: var(--faint);
  font-size: 0.83rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  body {
    padding: 1.8rem 1.2rem 2.5rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
  }

  .site-header .portrait {
    width: 130px;
    height: 195px;
  }

  .site-header h1 {
    font-size: 1.85rem;
  }

  nav {
    gap: 1.1rem;
  }
}
