:root {
  --ink: #22201d;
  --muted: #716b63;
  --line: #ded9d1;
  --paper: #fbfaf7;
  --link: #8d3f2f;
  --measure: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

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

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

nav a:hover {
  color: var(--ink);
}

.intro {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
}

.profile-photo {
  display: block;
  width: 80%;
  height: auto;
  margin-bottom: 26px;
  border-radius: 0;
}

.eyebrow,
.meta,
footer {
  color: var(--muted);
  font-size: 0.91rem;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lead {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 1.28rem;
  line-height: 1.45;
}

.intro > p:not(.eyebrow):not(.lead):not(.links) {
  max-width: 650px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
}

.research {
  padding: 68px 0 42px;
}

h2 {
  margin-bottom: 44px;
  font-size: 1.8rem;
  font-weight: 400;
}

.research-group {
  margin-bottom: 46px;
}

h3 {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paper {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.paper:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

h4 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.35;
}

.meta {
  margin-bottom: 10px;
}

.paper p:not(.meta) {
  max-width: 680px;
  margin-bottom: 10px;
}

details {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
}

summary {
  color: var(--link);
  cursor: pointer;
}

details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--measure));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    gap: 16px;
  }

  .intro {
    padding: 60px 0 54px;
  }

  .research {
    padding-top: 52px;
  }
}
