@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --font-voice: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --text-accent: #1d4ed8;
  --surface-0: #fff;
  --surface-1: #f8f8f7;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-stronger: rgba(0, 0, 0, 0.38);
  --radius: 3px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ────────────────────────────────── */

.site-nav {
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  background: var(--surface-0);
  z-index: 100;
}

.site-title {
  font-family: var(--font-voice);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 13px;
  display: flex;
  align-items: center;
  height: 52px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}

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

.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ── Page wrapper ──────────────────────────────── */

.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── Bio page ──────────────────────────────────── */

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

h1.name {
  font-family: var(--font-voice);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.latest-box {
  background: var(--surface-1);
  border-left: 2px solid var(--border-stronger);
  padding: 9px 13px;
  margin-bottom: 1.25rem;
}

.latest-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.latest-title {
  font-size: 13.5px;
  line-height: 1.55;
}

.latest-title a {
  color: var(--text-accent);
  text-decoration: none;
}

.latest-title em {
  font-style: italic;
}

.latest-title a:hover {
  text-decoration: underline;
}

.tagline {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.links-primary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.links-primary a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 0.5px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.links-primary a:hover {
  color: var(--text-primary);
  border-color: var(--border-stronger);
}

.links-secondary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.links-secondary a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.links-secondary a:hover {
  color: var(--text-secondary);
}

/* Photo column */

.photo-col {
  display: flex;
  justify-content: flex-end;
}

.photo-frame {
  width: 200px;
  height: 265px;
  border-radius: 2px;
  overflow: hidden;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Bio text */

.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 2rem 0;
}

.bio-body p {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

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

.bio-body em {
  font-style: italic;
}

/* ── Shared page headings ──────────────────────── */

.pg-heading {
  font-family: var(--font-voice);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-heading {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 2.25rem;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--border);
}

/* ── Publications ──────────────────────────────── */

ol.pubs {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

ol.pubs li {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-primary);
}

ol.pubs li em {
  font-style: italic;
}

ol.pubs a {
  color: var(--text-accent);
  text-decoration: none;
}

ol.pubs a:hover {
  text-decoration: underline;
}

.pub-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.55;
}

ul.other-works {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

ul.other-works li {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-primary);
}

ul.other-works li em {
  font-style: italic;
}

ul.other-works a {
  color: var(--text-accent);
  text-decoration: none;
}

ul.other-works a:hover {
  text-decoration: underline;
}

/* ── Presentations ─────────────────────────────── */

.paper-group {
  margin-bottom: 1.6rem;
}

.paper-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

ul.venue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

ul.venue-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

ul.venue-list li.expand {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

ul.venue-list li.expand a {
  color: var(--text-accent);
  text-decoration: none;
}

ul.venue-list li.expand a:hover {
  text-decoration: underline;
}

/* Media section */

.media-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.media-item {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-primary);
}

.media-item a {
  color: var(--text-accent);
  text-decoration: none;
}

.media-item a:hover {
  text-decoration: underline;
}

.media-also {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── CV page ───────────────────────────────────── */

.cv-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
}

.cv-page h2 {
  font-family: var(--font-voice);
  font-size: 22px;
  font-weight: 400;
}

.cv-page p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cv-dl-btn {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 13.5px;
  padding: 10px 26px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.cv-dl-btn:hover {
  opacity: 0.82;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 640px) {
  .site-nav {
    padding: 0 1rem;
  }

  .nav-links a {
    padding: 0 8px;
    font-size: 12px;
  }

  .page {
    padding: 1.75rem 1rem 4rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .photo-col {
    justify-content: flex-start;
    order: -1;
  }

  .photo-frame {
    width: 150px;
    height: 200px;
  }
}
