:root {
  --ink: #303030;
  --muted: #686868;
  --line: #d6d2ca;
  --paper: #fff;
  --accent: #7a6849;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: #555;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

.masthead {
  height: 170px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.1)),
    url("assets/masthead.jpg") center 47% / cover no-repeat;
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 25px;
}

.brand {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 12px 20px;
  color: #111;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  border-color: #333;
  background: rgba(255,255,255,.25);
}

.menu-toggle {
  display: none;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100vh - 260px);
  margin: 0 auto;
  padding: 55px 0 110px;
}

.page-shell.narrow {
  width: min(920px, calc(100% - 48px));
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin: 0 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  line-height: 1.1;
  text-transform: none;
}

h2 {
  margin: 34px 0 17px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: uppercase;
}

p {
  margin: 0 0 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  gap: 10%;
}

.profile {
  text-align: center;
}

.profile img {
  display: block;
  width: min(100%, 317px);
  height: auto;
  margin: 0 auto;
  filter: grayscale(1);
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

.button {
  min-width: 155px;
  padding: 13px 18px;
  color: #222;
  border: 1px solid #444;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}

.button:hover,
.button:focus-visible {
  color: white;
  background: #333;
}

.prose {
  padding-top: 2px;
}

.publication-list {
  margin: 0;
  padding-left: 28px;
}

.publication-list li {
  margin-bottom: 8px;
}

.publication-list span {
  display: block;
  margin: 4px 0 0 -28px;
}

.timeline {
  margin: 0;
}

.timeline > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  margin-bottom: 25px;
}

.timeline dt {
  font-style: italic;
}

.timeline dd {
  margin: 0;
}

.intro {
  max-width: 760px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

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

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

.paper h2 {
  margin: 0 0 3px;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: none;
}

.paper .coauthor {
  color: #777;
  font-style: italic;
}

.paper-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #777;
  font-size: .82rem;
  text-decoration: none;
}

.paper-link::before {
  content: "Read: ";
  font-weight: 400;
}

.paper-link.unavailable {
  color: #777;
  border-style: dashed;
}

.paper-link.unavailable::before {
  content: "";
}

.institution {
  margin-top: 55px;
}

.institution > h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.teaching-period {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 30px;
  padding: 18px 0;
}

.teaching-period h3 {
  margin: 2px 0 0;
  font-size: .95rem;
  font-style: italic;
  font-weight: 400;
}

.teaching-period ul {
  margin: 0;
  padding-left: 20px;
}

.teaching-period li {
  margin-bottom: 7px;
}

.teaching-period span {
  color: #777;
}

.teaching-period span::before {
  content: " — ";
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-list article {
  padding: 25px;
  border: 1px solid var(--line);
}

.resource-list h2 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

footer {
  padding: 25px;
  color: #aaa;
  background: #222;
  font-size: .75rem;
  text-align: center;
}

@media (max-width: 760px) {
  .masthead {
    height: 120px;
  }

  .nav-wrap {
    width: calc(100% - 32px);
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 16px;
  }

  .brand {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    color: #111;
    border: 1px solid #333;
    background: rgba(255,255,255,.45);
    text-decoration: none;
  }

  .menu-toggle {
    display: block;
    padding: 12px 16px;
    color: #111;
    border: 1px solid #333;
    background: rgba(255,255,255,.65);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 16px;
    z-index: 2;
    display: none;
    width: min(260px, calc(100% - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #333;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav a.active {
    border: 0;
    border-bottom: 1px solid #ddd;
    background: white;
  }

  .page-shell,
  .page-shell.narrow {
    width: calc(100% - 36px);
    padding: 38px 0 70px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .profile img {
    width: min(100%, 285px);
  }

  .profile-links {
    gap: 14px;
  }

  .timeline > div,
  .teaching-period {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }
}

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