:root {
  --paper: #fafafa;
  --ink: #171717;
  --muted: #606060;
  --quiet: #777777;
  --rule: #d2d2d2;
  --soft: #f0f0f0;
  --measure: 44rem;
  --wide-measure: 62rem;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.078125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: #e5e5e5;
}

a {
  color: inherit;
  text-decoration-color: #a6a6a6;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(calc(100% - 3rem), var(--measure));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.25rem) 3.25rem;
}

.page--wide {
  width: min(calc(100% - 3rem), var(--wide-measure));
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
}

.site-name {
  margin-bottom: 0;
  font-size: clamp(2rem, 1.9rem + 0.38vw, 2.22rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.site-name a {
  text-decoration: none;
}

.site-nav,
.site-footer nav,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.site-nav {
  justify-content: flex-end;
  gap: 0.25rem 1.15rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.site-nav a,
.site-nav .pending-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.pending-link {
  cursor: default;
}

.header-rule,
.division {
  border: 0;
  border-top: 1px solid var(--rule);
}

.header-rule {
  margin: 1.35rem 0 0;
}

.introduction {
  margin-top: 2.2rem;
}

.lede,
.bio-placeholder,
.paper-description,
.page-copy {
  max-width: 40rem;
  font-size: 1.078125rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.lede {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: 1.11rem;
}

.bio-placeholder {
  margin: 0.9rem 0 0;
}

.placeholder {
  color: var(--quiet);
}

.division {
  margin: 2.65rem 0 1.7rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.section-title {
  margin-bottom: 0;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.paper h3 {
  max-width: 41rem;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  font-weight: 630;
  letter-spacing: -0.018em;
  line-height: 1.42;
}

.paper h3 a {
  text-decoration-color: var(--rule);
}

.paper + .paper {
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
}

.paper-meta {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.paper-description {
  margin-bottom: 0.75rem;
}

.paper-description + .paper-description {
  margin-top: -0.15rem;
}

.paper-links {
  gap: 0.25rem 1rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.paper-links a,
.paper-links span {
  white-space: nowrap;
}

.paper-links a {
  text-decoration: none;
}

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

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

.page-introduction {
  margin-top: 2.65rem;
}

.page-title {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 1.62rem + 0.3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.1;
}

.page-summary {
  max-width: 40rem;
  margin-bottom: 0.9rem;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.48;
  text-wrap: pretty;
}

.page-copy {
  margin-bottom: 0.85rem;
}

.page-copy:last-child {
  margin-bottom: 0;
}

.course-list {
  margin-top: -0.35rem;
}

.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
}

.course:first-child {
  border-top: 0;
  padding-top: 0;
}

.course h3 {
  margin-bottom: 0.18rem;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.course-role,
.course-term,
.course-note {
  margin-bottom: 0;
}

.course-role,
.course-term {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.course-term {
  text-align: right;
  white-space: nowrap;
}

.course-note {
  grid-column: 1 / -1;
  max-width: 39rem;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.story-section .section-title {
  margin-bottom: 1rem;
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.72fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.65rem;
}

.about-lead-copy {
  max-width: 40rem;
}

.about-lead-copy .page-title {
  margin-bottom: 1.1rem;
}

.about-copy {
  max-width: 40rem;
  margin-bottom: 0.9rem;
  font-size: 1.078125rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.about-copy:last-child {
  margin-bottom: 0;
}

.about-section {
  margin-top: 3rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--rule);
}

.about-section .section-title {
  margin-bottom: 1rem;
}

.about-text-block {
  max-width: 44rem;
}

.media-placeholder {
  margin-bottom: 0;
}

.media-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--soft);
  color: var(--quiet);
  text-align: center;
}

.media-frame span {
  max-width: 16rem;
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.media--portrait .media-frame {
  aspect-ratio: 4 / 5;
}

.media--wide {
  margin-top: 1.65rem;
}

.media--wide .media-frame {
  aspect-ratio: 16 / 7;
}

.media--reading .media-frame {
  aspect-ratio: 4 / 3;
}

.media-placeholder figcaption {
  margin-top: 0.45rem;
  color: var(--quiet);
  font-size: 0.72rem;
  line-height: 1.45;
}

.writing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.publication-list {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.publication-list li {
  padding: 0.72rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  line-height: 1.5;
}

.publication-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  justify-content: flex-end;
  gap: 0.25rem 0.95rem;
}

.site-footer a,
.site-footer .pending-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

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

.not-found {
  margin-top: 2.65rem;
}

.not-found p {
  max-width: 34rem;
}

@media (max-width: 48rem) {
  .about-lead,
  .writing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.62fr);
    gap: 2rem;
  }
}

@media (max-width: 36rem) {
  .page,
  .page--wide {
    width: min(calc(100% - 2rem), var(--measure));
    padding-top: 2.4rem;
  }

  .masthead {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .introduction {
    margin-top: 1.9rem;
  }

  .page-introduction,
  .about-lead {
    margin-top: 2.25rem;
  }

  .course {
    display: block;
  }

  .course-term {
    margin-top: 0.22rem;
    text-align: left;
  }

  .course-note {
    margin-top: 0.5rem;
  }

  .about-lead,
  .writing-grid {
    display: block;
  }

  .about-lead .media--portrait {
    max-width: 18rem;
    margin-top: 2rem;
  }

  .writing-grid .media--reading {
    max-width: 22rem;
    margin-top: 1.75rem;
  }

  .media--wide .media-frame {
    aspect-ratio: 3 / 2;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 22rem) {
  .site-nav {
    column-gap: 0.78rem;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .page,
  .page--wide {
    width: auto;
    padding: 0;
  }

  .site-nav,
  .site-footer nav,
  .skip-link {
    display: none;
  }

  a {
    text-decoration: none;
  }

  .paper,
  .course,
  .about-section,
  figure {
    break-inside: avoid;
  }
}
