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

:root {
  --text: #222;
  --text-light: #666;
  --link: #222;
  --link-hover: #888;
  --bg: #fff;
  --rule: #ddd;
  --max-w: 780px;
}

html { font-size: 16px; }

body {
  font-family: 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--link-hover); }

/* ── Site Header ── */
.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 0;
}

h1.site-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
h1.site-title a { color: var(--text); }
h1.site-title a:hover { color: var(--link-hover); }

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: center;
  gap: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}
nav .nav-group {
  display: flex;
  gap: 1.8rem;
}
nav .nav-group + .nav-group {
  margin-left: 3rem;
}
nav a {
  color: var(--text);
}
nav a:hover, nav a.active {
  color: var(--link-hover);
}

/* ── Main Content ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── Section Headings (Bio, Publications, etc.) ── */
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* ── About page ── */
.bio p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}
.bio p:last-child { margin-bottom: 0; }

.bio a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bio a:hover { color: var(--link-hover); }

.contact-line {
  margin-top: 1rem;
  font-size: 1rem;
}
.contact-line a { text-decoration: underline; }

.photo-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.photo-grid img {
  width: 100%;
  max-width: 370px;
  display: block;
}

/* ── Research/Writing page ── */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}
.section-heading:first-child { margin-top: 0; }

.pub {
  margin-bottom: 1.4rem;
}
.pub .pub-title a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 1rem;
  line-height: 1.5;
}
.pub .pub-title a:hover { color: var(--link-hover); }
.pub .pub-meta {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Book page ── */
.book-jacket-banner {
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.book-jacket-banner img {
  width: 100%;
  display: block;
}

.book-authors {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.book-authors a { text-decoration: underline; }

.book-description p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.book-links {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.book-links a {
  text-decoration: underline;
}

.toc-part-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.chapter {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.chapter-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 1.5rem;
  padding-top: 0.15rem;
}
.chapter-body {
  flex: 1;
}
.chapter-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.chapter-abstract {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-header { padding: 2rem 1rem 0; }
  h1.site-title { font-size: 1.5rem; }
  nav { flex-direction: column; align-items: center; gap: 0.6rem; }
  nav .nav-group + .nav-group { margin-left: 0; }
  .container { padding: 2rem 1.25rem 4rem; }
  .photo-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .photo-grid img { max-width: 100%; }
  .chapter { gap: 0.75rem; }
}
