:root {
  --paper: #f7f3ea;
  --paper-deep: #eee7d8;
  --ink: #171716;
  --muted: #66645e;
  --rule: #d7ccba;
  --accent: #285044;
  --accent-soft: #7d5134;
  --max: 1000px;
  --main: 650px;
  --rail: 250px;
  --gutter: 46px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body {
  margin: 0;
}

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

a:hover {
  color: var(--accent-soft);
}

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 30px 56px;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  margin-bottom: 82px;
}

.site-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.82rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.page-layout {
  max-width: calc(var(--main) + var(--gutter) + var(--rail));
  margin: 0 auto;
}

.page-content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-row {
  display: grid;
  grid-template-columns: minmax(0, var(--main)) var(--rail);
  column-gap: var(--gutter);
  align-items: baseline;
  margin-bottom: 18px;
}

.eyebrow-row .eyebrow,
.eyebrow-links {
  margin: 0;
}

.eyebrow-links {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.eyebrow-links a {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  margin: 0 0 1.5rem;
  max-width: none;
  font-size: 2.35rem;
  letter-spacing: 0;
}

.dek {
  margin: 0 0 48px;
  color: #2e2d2a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.45;
}

.content-flow {
  padding-top: 20px;
}

.content-flow > *:first-child {
  margin-top: 0;
}

.content-flow p,
.content-flow li {
  color: #2f2e2a;
}

.content-flow p {
  margin: 0 0 1.15rem;
}

.content-flow h2,
.content-flow h3,
.content-flow h4 {
  margin: 2.6rem 0 0.8rem;
  font-size: 1.48rem;
}

.section-slash {
  display: inline-block;
  margin: 0 0.16em;
  color: var(--accent);
  font-size: 1.55em;
  font-weight: 400;
  line-height: 0.55;
  transform: translateY(0.08em);
}

.content-flow strong {
  font-weight: 600;
}

.content-flow em {
  font-style: italic;
}

.content-flow ul {
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
}

.content-flow li:not(.note-block) {
  padding: 0.92rem 0;
  border-top: 1px solid rgba(215, 204, 186, 0.75);
}

.content-flow li:not(.note-block):first-child {
  border-top: 1px solid var(--rule);
}

.content-flow sub,
.content-flow sup {
  line-height: 0;
}

.content-flow sub {
  color: var(--muted);
  font-size: 0.74rem;
}

.standalone,
.content-flow > h3,
.content-flow > h4,
.content-flow > p,
.content-flow > ul:not(.publication-list):not(.coffee-list) {
  max-width: var(--main);
}

.note-block {
  display: grid;
  grid-template-columns: minmax(0, var(--main)) var(--rail);
  column-gap: var(--gutter);
  align-items: start;
  margin: 0 0 1.25rem;
}

.note-block.rule {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}

.main-text > *:first-child,
.pub-main > *:first-child {
  margin-top: 0;
}

.main-text > *:last-child,
.pub-main > *:last-child {
  margin-bottom: 0;
}

.margin-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.34;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}

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

.margin-note li {
  margin: 0 0 0.3rem;
  padding: 0;
  border: 0;
  color: var(--muted);
}

.content-flow .margin-note li,
.content-flow .margin-note li:first-child {
  margin: 0 0 0.3rem;
  padding: 0;
  border: 0;
}

.margin-note a {
  font-weight: 400;
}

.margin-note p {
  margin: 0;
}

.bio-affiliations {
  margin-bottom: 42px;
}

.bio-affiliation-main {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.bio-portrait {
  margin: 0;
  padding: 5px;
  border: 1px solid var(--rule);
  background: #fbf8f1;
}

.bio-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(40, 80, 68, 0.28);
}

.bio-portrait figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.affiliation-list {
  padding-top: 0.14rem;
}

.affiliation-list p {
  margin: 0 0 0.32rem;
}

.affiliation-list p + .affiliation-school {
  margin-top: 0.58rem;
}

.affiliation-position,
.affiliation-school {
  margin: 0;
}

.affiliation-position {
  font-size: 0.95rem;
  line-height: 1.4;
}

.affiliation-school {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bio-note-block {
  margin-bottom: 1rem;
}

.bio-note-block + .bio-note-block {
  margin-top: -0.15rem;
}

.section-dots {
  max-width: var(--main);
  margin: 1.65rem 0 1.8rem;
  color: rgba(102, 100, 94, 0.52);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  line-height: 1;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.additional-info {
  max-width: var(--main);
  margin: 2.4rem 0 1.7rem;
}

.content-flow .additional-info .additional-links {
  margin: 0;
}

.content-flow .additional-info li,
.content-flow .additional-info li:first-child {
  padding: 0.2rem 0;
  border: 0;
}

.publication-list,
.coffee-list {
  max-width: calc(var(--main) + var(--gutter) + var(--rail));
}

.content-flow .publication {
  padding: 1rem 0;
}

.publication-anchored-note {
  display: block;
}

.publication-anchored-note > .publication-meta {
  max-width: var(--main);
}

.summary-note-block {
  margin: 0;
}

.pub-title {
  font-weight: 600;
}

.publication-meta,
.publication-summary {
  margin: 0;
}

.publication-summary {
  margin-top: 0.35rem;
  color: #3f3d38;
  font-size: 0.94rem;
  line-height: 1.5;
}

.bio-page .content-flow .standalone,
.bio-page .content-flow .main-text p {
  color: #2f2e2a;
  font-size: 0.94rem;
  line-height: 1.5;
}

.content-flow .coffee-list,
.content-flow .coffee-noted-list {
  margin-top: 0.6rem;
}

.content-flow .coffee-list li {
  max-width: var(--main);
  padding: 0.36rem 0;
  border-top: 1px solid rgba(215, 204, 186, 0.75);
  font-size: 0.94rem;
  line-height: 1.38;
  position: relative;
}

.content-flow .coffee-list li:first-child {
  border-top: 1px solid var(--rule);
}

.content-flow .coffee-noted-list .coffee-list {
  margin: 0;
}

.coffee-noted-list {
  align-items: start;
}

.inline-margin-note {
  position: absolute;
  top: 0.36rem;
  left: calc(100% + var(--gutter));
  width: var(--rail);
}

.coffee-footnote {
  max-width: var(--main);
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.coffee-footnote sup {
  margin-right: 0.18em;
}

code {
  color: #3b3934;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

@media (max-width: 880px) {
  .site-shell {
    padding: 22px 20px 42px;
  }

  .site-header {
    display: block;
    margin-bottom: 54px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 16px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .dek {
    margin-bottom: 36px;
  }

  .page-layout {
    max-width: var(--main);
  }

  .note-block,
  .eyebrow-row,
  .bio-affiliation-main {
    display: block;
  }

  .bio-portrait {
    margin-bottom: 24px;
  }

  .bio-portrait img {
    max-width: 260px;
  }

  .margin-note {
    margin-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 0.75rem 0 0;
  }

  .inline-margin-note {
    position: static;
    width: auto;
  }

  .affiliation-list {
    margin-top: 20px;
  }
}
