/* /hunch/: the technical overview. Tokens, type, header, footer and links come from /styles.css. */
.report-page {
  --ink: #08090b;
  --ink-2: #2b2c30;
  --ink-3: #5a5b60;
  --rule: #08090b1c;
  --s06: #08090b9e;
}

/* hero, on night */
.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 6%;
  align-items: end;
  padding: 196px 7% 104px;
}
.report-kicker {
  display: flex;
  gap: 22px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 44px;
}
.report-hero .hunch-wordmark {
  color: var(--paper);
  margin-bottom: 40px;
}
.report-lede {
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  max-width: 34ch;
  margin-bottom: 46px;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 40px;
}
.report-actions .text-link {
  margin-top: 0;
  gap: 18px;
}
.report-hero-art img {
  display: block;
  mix-blend-mode: lighten;   /* the plate's #050505 ground melts into the page's night */
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-left: auto;
}

/* the reading body, on paper */
.report {
  background: var(--paper);
  color: var(--ink);
  padding: 112px 7% 24px;
}
.report-section {
  max-width: 1080px;
  margin: 0 auto 128px;
}
.report .section-kicker {
  margin-bottom: 42px;
}
.report .kicker-rule {
  background: var(--rule);
}
.report h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  margin-bottom: 38px;
}
.prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.prose p + p {
  margin-top: 1em;
}
.report code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: #08090b0d;
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
.report figcaption a,
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* key figures */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin: 60px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.facts dt {
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  font-weight: 350;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.facts dd {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* the one line on limits, under the key figures */
.brief-note {
  max-width: 44rem;
  margin-top: 48px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-3);
}
.brief-note strong {
  font-weight: 650;
  color: var(--ink);
}

/* the path diagram */
.diagram {
  margin-top: 52px;
  max-width: 900px;
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.d-box rect { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.d-wire path { fill: none; stroke: #08090b66; stroke-width: 1.2; }
.d-chip rect { fill: #fffdf8; stroke: #08090b33; }
.d-core rect { fill: var(--ink); }
.d-score rect { fill: var(--red); }
.d-brace { fill: none; stroke: var(--red); stroke-width: 1.4; }
.d-label { font-size: 15px; font-weight: 550; fill: var(--ink); }
.d-label.light { fill: var(--paper); }
.d-label.accent { fill: var(--red); }
.d-small { font-size: 13px; fill: var(--ink-3); }
.report figcaption {
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 44rem;
}

/* charts */
.chart-figure {
  margin: 52px 0 56px;
  max-width: 920px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.key {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 1px;
}
.key.s06 { background: var(--s06); }
.key.s17 { background: var(--red); }
.key.tick-key { width: 2px; height: 14px; background: var(--ink); }
.chart .row {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 5px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #08090b12;
}
.chart .name {
  grid-row: 1 / span 3;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.bar {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.2rem;
  gap: 12px;
  align-items: center;
}
.bar .track {
  position: relative;
  height: 9px;
  background: #08090b0d;
}
.bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
}
.bar.s06 .fill { background: var(--s06); }
.bar.s17 .fill { background: var(--red); }
.bar .tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: calc(var(--t) * 100%);
  width: 2px;
  background: var(--ink);
}
.bar .val {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  text-align: right;
}

/* red text on paper needs more contrast than the brand red gives (#b83818 is 5.1:1) */
.report .index { color: #b83818; }
.d-label.accent { fill: #b83818; }
.lg { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* tables, resources */
.table-wrap {
  overflow-x: auto;
  max-width: 50rem;
  margin-bottom: 40px;
}
.report table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.report caption {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding-bottom: 12px;
}
.report th,
.report td {
  text-align: left;
  padding: 14px 20px 14px 0;
  border-top: 1px solid var(--rule);
  font-weight: 400;
}
.report thead th {
  font-size: 0.8125rem;
  color: var(--ink-3);
  white-space: nowrap;   /* a model name never breaks over two lines (on a phone, with the tighter cell padding below) */
}
.report tbody th {
  font-weight: 550;
}
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 50rem;
}
.resource-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 1.125rem;
  transition: color 0.25s;
}
.resource-list a span:last-child {
  color: var(--ink-3);
  font-size: 0.9375rem;
  text-align: right;
}
.resource-list a:hover { color: var(--red); }
.cite {
  margin-top: 56px;
  max-width: 50rem;
}
.cite figcaption {
  margin: 0 0 12px;
  font-size: 0.75rem;
}
.cite pre {
  margin: 0;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.cite code {
  background: none;
  padding: 0;
  font-size: inherit;
}

@media (max-width: 900px) {
  .report-hero { grid-template-columns: 1fr; padding-top: 170px; }
  .report-hero-art img { max-width: 320px; margin: 12px 0 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .diagram { overflow-x: auto; }
  .diagram svg { min-width: 640px; }
  .report-hero { padding: 150px 6% 72px; }
  .report { padding: 76px 6% 8px; }
  .report-section { margin-bottom: 92px; }
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .chart .row { grid-template-columns: 1fr; }
  .chart .name { grid-row: auto; margin-bottom: 4px; }
  .bar { grid-column: 1; }
  .report th,
  .report td { padding-right: 12px; }
  .resource-list a { flex-direction: column; gap: 4px; }
  .resource-list a span:last-child { text-align: left; }
}
