:root {
  --text: #1a1a1a;
  --muted: #666;
  --rule: #ececec;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

header.site .name {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

header.site .name a {
  color: var(--text);
  text-decoration: none;
}

nav.top a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.92rem;
}

nav.top a:first-child { margin-left: 0; }

nav.top a:hover,
nav.top a.active {
  color: var(--text);
}

h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 2rem;
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
}

.hero > div { flex: 1; }
.hero h1 { margin-bottom: 0.3rem; }
.hero .tagline { margin: 0; }

.photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2.75rem 0 1.25rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.3rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

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

.news {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.news li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

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

.news time {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 5.5rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.paper {
  margin: 0 0 1.5rem;
}

.paper .title {
  font-weight: 500;
  color: var(--text);
}

.paper .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}

.paper .meta a { color: var(--muted); }

table.teaching {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
}

table.teaching th,
table.teaching td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

table.teaching th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.contact-list li {
  margin: 0.3rem 0;
  color: var(--muted);
}

.contact-list li strong {
  color: var(--text);
  font-weight: 500;
  display: inline-block;
  min-width: 90px;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 540px) {
  .wrap { padding: 2rem 1rem 3rem; }
  header.site { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav.top a { margin-left: 0; margin-right: 1rem; }
  .hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .photo { width: 96px; height: 96px; }
  h1 { font-size: 1.5rem; }
}

