:root {
  --paper: #fbf9f4;
  --ink: #1d1b18;
  --muted: #5d5850;
  --rule: #d9d3c7;
  --accent: #8a1c1c;
  --panel: #f2eee5;
  --link: #1f4e8c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161513;
    --ink: #ece7dd;
    --muted: #a8a196;
    --rule: #3a362f;
    --accent: #e0726a;
    --panel: #201e1a;
    --link: #8db4ec;
  }
}

:root[data-theme="dark"] {
  --paper: #161513;
  --ink: #ece7dd;
  --muted: #a8a196;
  --rule: #3a362f;
  --accent: #e0726a;
  --panel: #201e1a;
  --link: #8db4ec;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

q { quotes: "\201C" "\201D" "\2018" "\2019"; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Caption */
.caption {
  border-bottom: 3px double var(--ink);
  padding: 48px 0 20px;
  text-align: center;
}
.court, .docket, .label, .tag, time, .src, .credit, .group, .fine, .toc a {
  font-family: var(--mono);
}
.court {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 8px 0 6px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.docket {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.toc a {
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}
.toc a:hover { color: var(--accent); }

/* Sections */
section {
  padding: 48px 0 8px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 16px;
}
section:last-of-type { border-bottom: 0; }

.label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.note {
  font-size: 16px;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding-left: 14px;
  margin: 0 0 28px;
}

.lede { font-size: 21px; line-height: 1.5; margin-top: 0; }

/* Summary */
.summary {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Exhibits */
.exhibit { margin: 20px 0; }
.exhibit img { border: 1px solid var(--rule); }
.exhibit-lead { margin: 0; }
figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 1px 6px;
  margin-right: 6px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--rule);
}
.timeline > li {
  position: relative;
  padding: 0 0 28px 24px;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted);
}
.timeline > li.key::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline time {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.timeline p { margin: 6px 0; }

blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  font-style: italic;
}
blockquote p { margin: 4px 0; }
.dialogue { font-style: normal; }
.dialogue b { font-family: var(--mono); font-size: 14px; font-weight: 500; }

.src {
  font-size: 13px;
  color: var(--muted);
}
.src::before { content: "Source: "; }

/* Family */
.people { display: grid; gap: 32px; }
.person {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.person img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.person h3 { margin: 0 0 8px; font-size: 22px; }
.person h3 span {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.person ul { margin: 0; padding-left: 20px; }
.person li { margin-bottom: 8px; }
.person li a { font-size: 14px; }
.credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Legal record */
.group {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.cases { margin: 0; }
.cases dt { font-weight: 700; margin-top: 18px; }
.cases dd { margin: 4px 0 0; }
.cases dd a { font-size: 14px; }

/* Political spending */
.table-wrap { overflow-x: auto; margin: 0 0 32px; }
.spend {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.spend th, .spend td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
}
.spend thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.spend tbody th { font-weight: 700; width: 9em; }
.spend td a { font-size: 14px; }
.spend .amt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  width: 9em;
}

@media (max-width: 640px) {
  .spend thead { display: none; }
  .spend, .spend tbody, .spend tr, .spend th, .spend td { display: block; width: auto; }
  .spend tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .spend th, .spend td { border: 0; padding: 4px 0; }
}

/* The open question */
.question .ask {
  margin: 28px 0 32px;
  padding: 18px 20px;
  border: 2px solid var(--accent);
  font-weight: 600;
  font-size: 19px;
}

/* Quotes */
.quotes { display: grid; gap: 20px; }
.quote { margin: 0; }
.quote blockquote { font-size: 19px; margin: 0; }
.quote figcaption b { color: var(--ink); }

/* Credits */
.credits ul { padding-left: 20px; font-size: 15px; }
.fine {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 48px;
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .exhibit-lead { max-width: 300px; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person img { width: 140px; }
  .lede { font-size: 19px; }
}
