:root {
  --paper: #f7f5f2;
  --paper-raised: #fdfcfb;
  --paper-sunk: #ebe7e1;
  --ink: #141414;
  --ink-2: #4a4744;
  --rule: #d6d1c9;
  --rule-strong: #141414;
  --accent: #cc0a1f;
  --accent-strong: #a10016;
  --accent-wash: #fde3e6;
  --hero: #cc0a1f;
  --hero-ink: #fff7f2;
  --hero-ink-2: #ffe5e0;
  --focus: #141414;

  --font-sans: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --text-xs: 0.875rem;
  --text-sm: 0.9375rem;
  --text-ui: 1rem;
  --text-body: 1.1875rem;
  --text-lead: 1.3125rem;
  --text-h3: 1.3125rem;
  --text-h2: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem);
  --text-hero: clamp(3.1rem, 1rem + 6.2vw, 6.75rem);
  --text-hero-lede: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  --text-mark: 1.375rem;
  --leading-body: 1.62;
  --leading-ui: 1.45;
  --leading-head: 1.18;
  --leading-hero: 1.02;
  --leading-lede: 1.5;
  --leading-statement: 1.4;
  --tracking-hero: -0.025em;
  --tracking-head: -0.01em;
  --measure: 42rem;
  --hero-measure: 68rem;
  --lede-measure: 48rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --weight-heavy: 800;
  --weight-black: 900;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 75rem;
  --rail: 17rem;
  --rail-gap: 4rem;
  --header-h: 4.5rem;
  --date-col: 4.75rem;
  --logo-w: 12rem;
  --icon: 1.625rem;

  --radius-sm: 2px;
  --border: 1px solid var(--rule);
  --border-strong: 1px solid var(--rule-strong);
  --stroke: 3px;
  --stroke-img: 2px;
  --bar: 10px;
  --dot: 12px;
  --tilt: -2deg;

  --dur-1: 140ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: var(--s-6);
}

body {
  margin: 0;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-heavy);
  line-height: var(--leading-head);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

strong {
  font-weight: var(--weight-bold);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:active {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent-wash);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  background: var(--ink);
  color: var(--hero-ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding-block: var(--s-2);
  font-size: var(--text-mark);
  font-weight: var(--weight-heavy);
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 30rem) {
  .wordmark {
    font-size: var(--text-ui);
  }
}

.wordmark svg {
  width: var(--icon);
  height: var(--icon);
  color: var(--hero);
}

.masthead a:hover,
.masthead a:active {
  color: var(--hero-ink-2);
}

.masthead :focus-visible {
  outline-color: var(--hero-ink);
}

.hero {
  background: var(--hero);
  color: var(--hero-ink);
}

.hero__inner {
  padding-block: var(--s-8);
}

.cover {
  display: grid;
  gap: var(--s-6);
  max-width: var(--hero-measure);
}

.cover__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
}

.cover__logo {
  width: var(--logo-w);
  outline: var(--stroke) solid var(--hero-ink);
}

.cover__text {
  display: grid;
  gap: var(--s-2);
}

.cover__lines {
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  color: var(--hero-ink-2);
}

.cover__lines strong {
  font-weight: var(--weight-heavy);
  color: var(--hero-ink);
}

.stamp {
  display: inline-block;
  margin-top: var(--s-3);
  padding: 0.35em 0.6em;
  border: var(--stroke) solid var(--hero-ink);
  transform: rotate(var(--tilt));
}

.cover h1 {
  margin-top: var(--s-4);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  text-transform: uppercase;
  color: var(--hero-ink);
}

.hl {
  padding: 0 0.12em;
  background: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: var(--lede-measure);
  font-size: var(--text-hero-lede);
  line-height: var(--leading-lede);
  color: var(--hero-ink);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) var(--rail-gap) var(--rail);
  justify-content: center;
  padding-block: var(--s-8) var(--s-9);
}

.dossier {
  grid-column: 1;
  grid-row: 1;
}

.rail {
  grid-column: 3;
  grid-row: 1;
  background: var(--paper-raised);
  border: var(--stroke) solid var(--ink);
}

.rail__inner {
  position: sticky;
  top: 0;
  padding: var(--s-5);
}

.rail__title {
  font-size: var(--text-ui);
  font-weight: var(--weight-black);
  line-height: var(--leading-ui);
}

.toc {
  margin: var(--s-3) 0 0;
  padding: 0 0 0 var(--s-4);
  border-left: var(--border);
  list-style: none;
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
}

.toc a {
  display: block;
  padding-block: var(--s-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.page {
  padding-top: var(--s-5);
  border-top: var(--bar) solid var(--accent);
}

.page + .page {
  margin-top: var(--s-8);
}

.page > * + * {
  margin-top: var(--s-5);
}

.pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
}

.pagehead h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-head);
  text-transform: uppercase;
  color: var(--accent);
}

.pagehead__mark {
  flex: none;
  padding: 0.25em 0.6em;
  background: var(--accent);
  color: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.page h3 {
  margin-top: var(--s-7);
  font-size: var(--text-h3);
}

.page > .pagehead + *,
.page > h3 + * {
  margin-top: var(--s-4);
}

.note {
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  color: var(--ink-2);
}

.statement {
  padding: var(--s-5);
  background: var(--accent);
  color: var(--hero-ink);
  font-size: var(--text-lead);
  line-height: var(--leading-statement);
}

.statement strong,
.figlabel strong {
  font-weight: var(--weight-heavy);
}

.exref {
  display: inline-block;
  padding: 0 0.3em;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-decoration: none;
  vertical-align: 0.08em;
  color: var(--accent-strong);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.exref:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-raised);
}

.timeline {
  position: relative;
  margin-block-end: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--date-col) + var(--s-3) - var(--stroke) / 2);
  top: 0.6rem;
  bottom: 0.6rem;
  width: var(--stroke);
  background: var(--accent);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--date-col) minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-5);
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: calc(var(--date-col) + var(--s-3) - var(--dot) / 2);
  top: 0.55rem;
  width: var(--dot);
  height: var(--dot);
  background: var(--ink);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__date {
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  line-height: 1.6;
  text-align: right;
  white-space: nowrap;
  color: var(--accent);
}

.timeline__body {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
}

.timeline__note {
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--ink-2);
}

.exhibit {
  margin-inline: 0;
  margin-bottom: 0;
  scroll-margin-top: var(--s-6);
}

.exhibit__zoom {
  display: block;
  border: var(--stroke-img) solid var(--ink);
  background: var(--paper-raised);
  cursor: zoom-in;
}

.exhibit figcaption {
  display: grid;
  gap: var(--s-1);
  justify-items: start;
  margin-top: var(--s-3);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--ink-2);
}

.table-wrap {
  overflow-x: auto;
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
}

.data th,
.data td {
  padding: var(--s-2) var(--s-3);
  border-bottom: var(--border);
  text-align: left;
  vertical-align: baseline;
}

.data thead th {
  background: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: var(--weight-bold);
  color: var(--paper-raised);
}

.data tbody th {
  font-weight: var(--weight-regular);
  white-space: nowrap;
}

.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-heavy);
  white-space: nowrap;
}

.data thead .num {
  white-space: normal;
}

.colophon {
  padding-block: var(--s-7);
  background: var(--ink);
  border-top: var(--bar) solid var(--accent);
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  color: var(--hero-ink-2);
}

.colophon__inner p {
  max-width: var(--measure);
}

@media (max-width: 63.99rem) {
  .layout {
    grid-template-columns: minmax(0, var(--measure));
    padding-block: var(--s-7) var(--s-8);
  }

  .rail,
  .dossier {
    grid-column: 1;
    grid-row: auto;
  }

  .rail__inner {
    position: static;
  }

  .toc {
    margin-top: var(--s-2);
  }

  .dossier {
    margin-top: var(--s-7);
  }
}

@media (max-width: 47.99rem) {
  .hero__inner {
    padding-block: var(--s-7);
  }

  .timeline::before {
    left: calc(var(--dot) / 2 - var(--stroke) / 2);
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
    padding-left: var(--s-6);
  }

  .timeline__item::after {
    left: 0;
  }

  .timeline__date {
    text-align: left;
  }

  .data th,
  .data td {
    padding-inline: var(--s-2);
  }

  .data tbody th {
    white-space: normal;
  }
}
