:root {
  --paper: #F7F5F0;
  --ink: #1E2420;
  --ink-soft: #4A5049;
  --accent: #6B2737;
  --rule: #D8D3C7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

header.masthead {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.affiliation {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

nav.crumbs {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  margin: 1.25rem 0 0;
}

nav.crumbs a {
  color: var(--ink-soft);
  margin-right: 1.1rem;
  text-decoration: none;
  padding-bottom: 2px;
}

nav.crumbs a:hover,
nav.crumbs a.current {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.rule {
  border: none;
  border-top: 2px solid var(--accent);
  width: 3rem;
  margin: 0;
}

.intro {
  font-size: 1.05rem;
  margin: 2rem 0 0;
  max-width: 34rem;
}

section {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

section h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

section h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

section h3:first-of-type {
  margin-top: 0;
}

ul.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.link-list li {
  margin: 0 0 0.6rem;
  font-size: 1.03rem;
}

ul.link-list li:last-child {
  margin-bottom: 0;
}

.sublist {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cv-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

p.body-text {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
}

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

.meta-line {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.contact-lines {
  font-size: 1.05rem;
}

.contact-lines div {
  margin-bottom: 0.35rem;
}

.past-teaching {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.past-teaching .year {
  color: var(--ink);
  font-weight: 600;
}

.past-teaching p {
  margin: 0 0 0.75rem;
}

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

.pub-list li {
  margin: 0 0 1.4rem;
  font-size: 0.99rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--rule);
}

.pub-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pub-list .cite {
  display: block;
  margin-bottom: 0.4rem;
}

.pub-list .links {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  main { padding: 2.5rem 1.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
