/*
 * The page is the pull-request comment: monospace for every word the product
 * prints, one serif for the claim, and one colour — red — for the one thing it
 * means in the comment: a transaction got through. `blocked` is never green.
 * The ground is the logo's own field, so the mark needs no plate; dark mode
 * inverts both, and the inverse of #f5f4f0 is #0a0b0f.
 */
:root {
  --bg: #f5f4f0;
  --ink: #212121;
  --muted: #5c5a55;
  --faint: #9a968d;
  --line: #d9d6ce;
  --code: #eceae4;
  --hit: #c2261b;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0f;
    --ink: #e6e4de;
    --muted: #a3a097;
    --faint: #6e6b64;
    --line: #2a2b30;
    --code: #17181d;
    --hit: #f0645a;
  }

  .mark {
    filter: invert(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--hit);
}

.wrap {
  max-width: 1104px;
  margin: 0 auto;
  padding: 0 24px;
}

.top,
.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.top {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.top nav,
.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.mark {
  display: block;
}

.hero {
  padding: 88px 0 40px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 980px;
}

.lede {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: 64px;
  padding: 24px 0;
}

.part {
  padding: 80px 0 0;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding-top: 104px;
}

.note {
  margin: 0;
  align-self: start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.note b {
  color: var(--ink);
  font-weight: 600;
}

.notes .note b {
  display: block;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgb(33 33 33 / 8%);
}

figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px 72px;
  padding: 32px 0 96px;
  border-bottom: 1px solid var(--line);
}

.figures p {
  margin: 0;
}

.figures span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.figures .big {
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.figures .figures-note {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 20px;
}

.md {
  color: var(--faint);
  font-weight: 400;
}

.part p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

blockquote {
  margin: 0 0 16px;
}

code {
  font-family: var(--mono);
  font-size: 0.94em;
  background: var(--code);
  padding: 1px 6px;
  border-radius: 3px;
}

pre {
  margin: 0 0 20px;
  padding: 20px 24px;
  background: var(--code);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.hit,
a.hit {
  color: var(--hit);
}

.scroll {
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}

th,
td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
}

th {
  border-top: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.num {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.num th + th,
.num td + td {
  text-align: right;
}

.closing {
  padding-bottom: 96px;
  border-bottom: 1px solid var(--line);
}

.closing .verdict {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.25;
}

.verdict code {
  font-size: 26px;
}

.bottom {
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .notes {
    gap: 16px;
    padding-top: 8px;
  }

  .hero {
    padding: 56px 0 24px;
  }

  .part {
    padding-top: 56px;
  }

  .figures .big {
    font-size: 44px;
  }

  .closing .verdict {
    font-size: 28px;
  }
}
