:root {
  --ink: #252525;
  --muted: #66645f;
  --paper: #fbfaf7;
  --line: #dedbd3;
  --accent: #9f493f;
  --accent-dark: #79362f;
  --card: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
}

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.site-header { border-bottom: 1px solid var(--line); background: rgba(251,250,247,.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0; }
.site-title { color: var(--ink); font-size: 30px; font-weight: 700; text-decoration: none; }
.site-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-family: Arial, sans-serif; }
nav { display: flex; gap: 24px; font-family: Arial, sans-serif; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--ink); border-color: var(--accent); }

.hero { display: grid; grid-template-columns: 260px 1fr; gap: 58px; align-items: center; padding: 80px 0 58px; }
.portrait { width: 100%; aspect-ratio: 248 / 299; object-fit: cover; border-radius: 3px; box-shadow: 0 16px 38px rgba(50,35,25,.16); }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font: 700 12px/1.2 Arial, sans-serif; }
h1 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
h2 {  margin: 42px 0 18px;   padding-bottom: 8px;   border-bottom: 1px solid var(--line);   font-size: 22px;   font-weight: 600;}
.page-content section:first-child h2 {
  margin-top: 0;
}
h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.35; }
.lead { font-size: 24px; line-height: 1.45; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 10px 19px; border-radius: 3px; text-decoration: none; font: 700 15px/1.4 Arial, sans-serif; }
.button:hover { color: #fff; background: var(--accent-dark); }
.text-link { font: 700 15px/1.4 Arial, sans-serif; }

.contact-card { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; margin: 12px 0 72px; padding: 24px 28px; background: var(--card); border: 1px solid var(--line); }
.contact-card div { display: flex; flex-direction: column; }
.label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font: 700 11px/1.5 Arial, sans-serif; }

.page-content { padding: 18px 0 80px; }
.page-content > h1 { margin-bottom: 42px; }
.paper { margin: 0 0 28px; }
.paper p { margin: 5px 0; }
.paper-links { font: 14px/1.5 Arial, sans-serif; }
.work-list { padding-left: 23px; }
.work-list li { margin-bottom: 13px; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 20px 0; border-bottom: none; }
.timeline-item p { margin: 0; line-height: 1.3;}
.timeline-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.35;
}
.year { color: var(--accent); font: 700 14px/1.5 Arial, sans-serif; }
footer { padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font: 13px/1.5 Arial, sans-serif; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
  nav { gap: 19px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .portrait { width: min(70%, 280px); }
  .contact-card { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 5px; }
}
/* Teaching page only */
.page-content .timeline-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
}
/* Compact teaching page */

.teaching-page h2 {
  margin: 30px 0 8px;
  padding-bottom: 5px;
}

.teaching-page section:first-of-type h2 {
  margin-top: 12px;
}

.teaching-page .timeline-item {
  grid-template-columns: 105px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 0;
}

.teaching-page .timeline-item h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.teaching-page .timeline-item p {
  margin: 1px 0;
  font-size: 15px;
  line-height: 1.4;
}

.teaching-page .timeline-item ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.teaching-page .timeline-item li {
  margin: 1px 0;
}

.teaching-page .year {
  font-size: 13px;
}
.timeline-item + .timeline-item {
  margin-top: 0px;
}

/* Make teaching entries compact */

.timeline-item {
  padding: 4px 0;
  border-bottom: none;
}

.timeline-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.timeline-item p {
  margin: 2px 0 0;
  line-height: 1.3;
}

.timeline-item ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.timeline-item li {
  margin: 0;
  line-height: 1.3;
}
