:root {
  --bg: #f4f4f4;
  --text: #1f1f1f;
  --muted: #666666;
  --rule: #e0e0e0;
  --accent: #2f5d62;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }

.site-header,
main,
.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  padding-bottom: 32px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 22px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

section { margin: 0 0 56px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
}

h1 {
  font-size: 46px;
  line-height: 1.1;
  margin: 40px 0 8px;
  letter-spacing: -0.01em;
}

.intro-head {
  display: grid;
  grid-template-columns: 1fr 260px;
  column-gap: 40px;
  align-items: end;
  margin: 40px 0 32px;
}
.intro-head h1 { margin: 0 0 8px; }
.intro-head .tagline { margin: 0 0 6px; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .10);
}

.tagline {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 28px;
}

h2 {
  font-size: 16.5px;
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2a2a2a;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin: 0 0 24px;
}

h3 {
  font-size: 20px;
  margin: 0 0 4px;
  line-height: 1.35;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.logo {
  width: 96px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.logo img[src*="arbiter"] { max-width: 64px; }

.timeline h3 a {
  color: var(--text);
  text-decoration: none;
}
.timeline h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.timeline .role {
  font-size: 15px;
  color: var(--muted);
  margin: 2px 0 0;
}
.timeline .when {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline .when::before { content: "·"; margin: 0 8px; }

.timeline p { margin: 6px 0 0; }

.compact p { font-size: 16px; }

.mini-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mini-list li { display: flex; flex-direction: column; gap: 2px; }
.mini-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.mini-list a:hover { color: var(--accent); }
.mini-list img { width: 24px; height: 24px; object-fit: contain; }
.mini-list img.mini-book {
  height: 30px;
  width: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.mini-list span { font-size: 14px; color: var(--muted); padding-left: 32px; }

.cards {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cards a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}
.cards img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
.cards img.card-book {
  width: auto;
  height: 52px;
  margin-bottom: 2px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  align-self: flex-start;
}
.cards strong { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.cards span { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cards small { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--accent); }

.book {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 32px;
  align-items: start;
  margin: 40px 0 24px;
}
.book-cover img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(34, 32, 28, 0.12), 0 2px 6px rgba(34, 32, 28, 0.08);
  transition: transform 0.15s;
}
.book-cover:hover img { transform: translateY(-2px); }
.book h3 { font-size: 22px; margin: 2px 0 6px; }
.book p { margin: 8px 0 0; }

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.book-sub { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

.footnote { font-size: 15px; color: var(--muted); }

.page-title { margin-bottom: 12px; }
.lede {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 48px;
}

.entries { list-style: none; margin: 0; padding: 0; }
.entries > li { margin-bottom: 28px; }
.entries h3 { font-size: 20px; }
.entries p { margin: 6px 0 0; }
.meta { font-family: var(--sans); font-size: 14px; color: var(--muted); }

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
}
.pubs .title { font-family: var(--serif); font-size: 18px; color: var(--text); }
.pubs .authors,
.pubs .venue { display: block; font-size: 14px; color: var(--muted); }
.pubs .authors strong { color: var(--text); font-weight: 500; }

.subhead { font-size: 19px; margin: 32px 0 12px; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}
.downloads a {
  font-size: 14px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}
.downloads a:hover { border-color: var(--accent); }

.talks { list-style: none; margin: 0; padding: 0; }
.talks li { margin-bottom: 10px; line-height: 1.5; }
.talks .meta { display: block; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}
.project h3 { font-size: 19px; margin: 14px 0 4px; }
.project h3 a { color: var(--text); text-decoration: none; }
.project h3 a:hover { color: var(--accent); }
.project p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.project-shot {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9e9e9;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.project-shot:hover img { transform: scale(1.02); }

.compact-entries { margin-top: 40px; }
.compact-entries > li { margin-bottom: 20px; }
.compact-entries h3 { font-size: 18px; }
.compact-entries p { font-size: 15px; }

.figure { margin: 24px 0 0; }
.figure img {
  display: block;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(34, 32, 28, 0.10);
}
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.toc { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
}

.more { margin-top: 8px; font-size: 15px; }

.essay-list { list-style: none; margin: 0; padding: 0; }
.essay-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 5px 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}
.essay-list .when { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 3px; }
.essay-list a { color: var(--text); text-decoration: none; }
.essay-list a:hover { color: var(--accent); }

.essay { max-width: 680px; }
.essay .eyebrow a { color: var(--muted); text-decoration: none; }
.essay-byline { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 0 8px; }
.essay-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  margin-top: 32px;
}
.essay-body h2, .essay-body h3 { font-size: 22px; margin: 32px 0 8px; }
.essay-body img { max-width: 100%; height: auto; }
.essay-body blockquote { font-size: 19px; color: var(--muted); }
.essay-body .video-link { font-family: var(--sans); font-size: 15px; }
.essay-note { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 48px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer span { margin: 0 8px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  .intro-head { grid-template-columns: 1fr 120px; column-gap: 18px; margin: 28px 0 24px; }
  .portrait { border-radius: 10px; }
  .mini-list { grid-template-columns: 1fr; gap: 12px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 14px; }
  .logo { width: 52px; height: 36px; }
  .book { grid-template-columns: 110px 1fr; gap: 20px; }
}

.figure-wide img { max-width: 100%; }
.press > li { margin-bottom: 20px; }
.press h3 { font-size: 18px; }
.press p { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.press p.press-src { font-family: var(--sans); font-size: 13px; margin-top: 4px; }
.press p.press-src a { color: var(--muted); }
.dt-title img { display: block; width: 100%; max-width: 433px; height: auto; }

.toc-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -24px 0 40px; font-size: 14px; }
.toc-inline a { color: var(--muted); }
.side-figure { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.side-figure img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
.side-figure p:first-child { margin-top: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pair .figure { margin: 0; }
.video { display: block; width: 100%; max-width: 560px; border-radius: 4px; background: #000; }
.puzzles li { margin-bottom: 10px; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.quotes li span { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 6px; }
.quotes li span::before { content: "— "; }
.strips { display: grid; gap: 16px; }
.strips img { max-width: 100%; border: 1px solid var(--rule); }
.clipping { border-left: 3px solid var(--rule); padding-left: 20px; font-family: var(--serif); font-size: 18px; }
.essay-body img { display: block; margin: 8px 0 16px; border-radius: 4px; }

@media (max-width: 560px) {
  .side-figure, .pair { grid-template-columns: 1fr; }
}

.file-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.file-list li { break-inside: avoid; padding: 2px 0; overflow-wrap: anywhere; }
.archive-list { list-style: none; padding: 0; }
@media (max-width: 560px) { .file-list { columns: 1; } }
.side-figure.thumb { grid-template-columns: 120px 1fr; gap: 20px; }
.side-figure.thumb h3 { margin-top: 0; }
@media (max-width: 560px) { .side-figure.thumb { grid-template-columns: 80px 1fr; } }
