:root {
  --ink: #222222;
  --muted: #66645f;
  --line: #dedbd4;
  --accent: #9d3f1f;
  --paper: #fffefb;
  --soft: #f4f0e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.62;
}

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

a:hover,
a:focus-visible {
  color: #6d2914;
}

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 30px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.site-header .name {
  color: var(--ink);
  font-size: 1.22rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 30px 72px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px;
}

.profile {
  align-self: start;
  position: sticky;
  top: 28px;
  color: var(--muted);
  font-size: 0.93rem;
}

.headshot {
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
}

.profile p {
  margin: 0 0 12px;
}

.profile .role {
  color: var(--ink);
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 22px;
}

.content {
  min-width: 0;
}

section {
  margin-bottom: 62px;
  scroll-margin-top: 30px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
}

h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}

h3 a {
  color: var(--ink);
}

.intro p {
  max-width: 680px;
}

.paper {
  margin-bottom: 34px;
}

.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

details {
  margin-top: 10px;
}

summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.94rem;
}

details p {
  margin: 14px 0 0;
  color: #3d3b37;
  font-size: 0.96rem;
}

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

.teaching-list li {
  padding: 11px 0;
  border-bottom: 1px solid #ebe8e1;
}

.teaching-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 30px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 20px 17px;
  }

  nav {
    gap: 14px;
  }

  main {
    padding: 36px 20px 54px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .profile {
    position: static;
  }

  .headshot {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
  }

  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  section {
    margin-bottom: 50px;
  }

  footer {
    padding: 22px 20px 34px;
    flex-direction: column;
    gap: 4px;
  }
}
