:root {
  --text: #1d252c;
  --muted: #66717a;
  --accent: #a54d26;
  --accent-soft: #f4e8e1;
  --border: #d8dde1;
  --soft: #f1f4f5;
  --white: #ffffff;
  --content-width: 1040px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--white);
}

.site-header {
  min-height: 84px;
  padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.site-header nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
}

.site-header nav a:hover {
  color: var(--accent);
}

.intro {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  justify-content: space-between;
  gap: 64px;
  align-items: center;
  background: var(--white);
  border-bottom: 0;
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 412 / 466;
  display: block;
  grid-column: 2;
  grid-row: 1;
  border: 1px solid #ded4ce;
  box-shadow: 14px 14px 0 var(--accent-soft);
  object-fit: cover;
  object-position: center top;
}

.intro-copy {
  grid-column: 1;
  grid-row: 1;
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.role {
  margin: 8px 0 22px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.intro-copy > p:not(.role) {
  max-width: 620px;
  margin: 0 0 14px;
}

.intro-links {
  margin-top: 22px;
  display: flex;
  gap: 24px;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 0;
  scroll-margin-top: 20px;
}

.section > h2 {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
}

.section > h2::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.paper {
  margin: 0 0 18px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
}

.section > h2 + .paper {
  padding-top: 30px;
}

.featured-paper {
  padding-left: 29px;
  border-left: 4px solid var(--accent);
}

.paper-label {
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-paper .paper-label {
  color: var(--accent);
}

.paper-body h3,
.teaching-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.paper-body > p {
  max-width: none;
  margin: 14px 0 17px;
  color: #414b53;
}

.paper-body .authors,
.paper-body .availability {
  margin-top: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.paper-body .availability {
  color: var(--accent);
  font-style: normal;
}

.paper-body .authors a {
  color: inherit;
  border-bottom: 1px solid #c8cdd1;
}

.paper-body .authors a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.paper-body .support {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.paper-body .support a {
  color: inherit;
  border-bottom: 1px solid #c8cdd1;
}

.paper-body .support a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.paper-body .presentations {
  max-width: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  background: transparent;
  border-top: 1px solid #e3e6e8;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.paper-body .presentations strong,
.teaching-list strong {
  color: var(--text);
  font-weight: 600;
}

.paper-body .presentation-link {
  color: inherit;
  border-bottom: 1px solid #c8cdd1;
}

.paper-body .presentation-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

#teaching {
  padding-right: 0;
  padding-left: 0;
  background: var(--white);
  border-left: 0;
}

.teaching-list {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
}

.teaching-list h3 {
  font-size: 20px;
}

.teaching-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.teaching-list .professor {
  color: var(--text);
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-grid a {
  width: fit-content;
  height: fit-content;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.contact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  main {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  .site-header {
    min-height: 70px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header nav {
    gap: 15px;
    font-size: 13px;
  }

  .intro {
    width: calc(100% - 40px);
    margin-top: 0;
    padding: 56px 0 50px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .portrait {
    width: min(100%, 300px);
    height: auto;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 412 / 466;
    box-shadow: 10px 10px 0 var(--accent-soft);
  }

  .intro-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .section {
    width: calc(100% - 40px);
    padding: 52px 0;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 22px;
  }

  .section > h2 + .paper {
    padding-top: 26px;
  }

  .featured-paper {
    padding-left: 19px;
  }

  .paper-label {
    padding-top: 0;
  }

  #teaching {
    padding-right: 0;
    padding-left: 0;
  }

  .teaching-list,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  footer {
    width: calc(100% - 40px);
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }
}

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