:root {
  --paper: #f2efe7;
  --sheet: #fbfaf6;
  --ink: #171714;
  --muted: #68645c;
  --line: #c9c4b8;
  --fine: #ddd8ce;
  --stage: #d9d6cf;
  --red: #9c3528;
  --amber: #80601c;
  --green: #275c45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(to right, rgba(23, 23, 20, .025) 1px, transparent 1px);
  background-size: 96px 100%;
  content: "";
}

a { color: inherit; }
.site-nav,
article > *,
.site-footer {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.site-nav {
  display: flex;
  justify-content: space-between;
  padding-block: 23px;
  border-bottom: 1px solid var(--line);
}
.site-nav a,
.site-nav span,
.overline,
.chapter-no,
.toolbar > div:first-child span,
.label,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; }
.site-nav span,
.overline,
.chapter-no { color: var(--muted); }

.story-head { padding-block: 58px 76px; }
.story-title {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 34px;
  align-items: start;
}
.overline { margin: 12px 0 0; line-height: 1.5; }
.story-title h1 {
  grid-column: 2;
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.deck {
  grid-column: 2;
  max-width: 680px;
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
}
.hiring-note {
  grid-column: 2;
  max-width: 680px;
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.packet-lead { margin: 52px 0 0; }
.packet-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2px;
  height: min(300px, 29vw);
  overflow: hidden;
  background: var(--ink);
}
.packet-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%);
}
.packet-images .packet-main { filter: grayscale(100%) contrast(1.04); }
.packet-lead figcaption,
.score-note,
.attribution {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.brief-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 36px 0 0 204px;
  border-top: 1px solid var(--ink);
}
.brief-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.brief-facts div:nth-child(odd) { margin-right: 24px; }
.brief-facts dt,
.brief-facts dd { margin: 0; font-size: 11px; line-height: 1.45; }
.brief-facts dt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.chapter {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 34px;
  padding-block: 76px;
  border-top: 1px solid var(--ink);
}
.chapter-heading { grid-column: 1 / -1; display: contents; }
.chapter-no { grid-column: 1; margin: 7px 0 0; }
.chapter h2,
.source-note h2 {
  grid-column: 2;
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.article-copy {
  grid-column: 2;
  max-width: 720px;
  margin-top: 40px;
}
.article-copy p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
}
.article-copy .standfirst {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.45;
}
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.margin-note {
  grid-column: 1;
  grid-row: 2;
  margin-top: 46px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.margin-note span {
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.margin-note p { color: var(--muted); font-size: 12px; line-height: 1.6; }

.pipeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  margin: 54px 0 0 204px;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  list-style: none;
}
.pipeline li {
  display: grid;
  grid-template-columns: 48px 160px 1fr;
  min-height: 0;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.pipeline li:last-child { border-bottom: 0; }
.pipeline span {
  margin-bottom: 0;
  color: var(--muted);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pipeline strong { font-size: 14px; }
.pipeline small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.cases { display: block; }
.case-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 38px;
}
.case-intro h2 { margin-top: 18px; }
.case-intro > p { margin: 0; color: #403d37; font-size: 15px; line-height: 1.7; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
button { border-radius: 0; font: inherit; }
.tab {
  border: 0;
  border-right: 1px solid var(--line);
  padding: 16px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab span,
.tab small { display: block; }
.tab span { font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tab small { margin-top: 4px; font-size: 11px; }

.simulator {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr);
  min-height: 740px;
  border-bottom: 1px solid var(--ink);
  background: var(--sheet);
}
.document-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}
.toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}
.toolbar > div:first-child { display: grid; gap: 4px; }
.toolbar > div:first-child span { color: var(--muted); }
.toolbar strong { font-size: 12px; }
.controls { display: flex; align-items: center; gap: 5px; }
.controls button,
.page-buttons button,
.reveal {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}
.controls span {
  min-width: 42px;
  color: var(--muted);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.document-stage {
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(24px, 5vw, 54px);
  background: var(--stage);
}
.document-sheet {
  position: relative;
  width: min(100%, 540px);
  border: 1px solid #aaa59c;
  background: white;
}
.document-sheet img { display: block; width: 100%; height: auto; }
.evidence-box {
  position: absolute;
  min-width: 28px;
  min-height: 22px;
  border: 2px solid currentColor;
  background: rgba(39, 92, 69, .05);
  color: var(--green);
  cursor: pointer;
}
.evidence-box.unresolved { color: var(--amber); background: rgba(128, 96, 28, .05); }
.evidence-box.ignored { color: var(--red); border-style: dashed; background: rgba(156, 53, 40, .06); }
.evidence-box.selected { outline: 2px solid white; outline-offset: 2px; }
.evidence-box span {
  position: absolute;
  top: -21px;
  left: -2px;
  padding: 3px 6px;
  background: currentColor;
  color: white;
  font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.page-buttons {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.page-buttons button { width: 30px; }
.page-buttons button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.evidence-column { display: flex; flex-direction: column; gap: 23px; padding: 26px; }
.decision { border-top: 4px solid currentColor; border-bottom: 1px solid currentColor; padding: 15px 0; }
.decision.approved { color: var(--green); }
.decision.denied { color: var(--red); }
.decision.needs_review { color: var(--amber); }
.decision > span,
.label { font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.decision > strong { display: block; margin: 10px 0 18px; font-size: 33px; letter-spacing: -.04em; }
.decision div { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid; }
.case-summary h3 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; line-height: 1.2; }
.case-summary p,
.detail p,
.hidden p { margin: 0; color: #514d45; font-size: 12px; line-height: 1.65; }
.hidden { padding: 11px 13px; border-left: 2px solid var(--red); background: #eee0dc; }
.hidden code { display: block; margin: 7px 0; font-size: 10px; overflow-wrap: anywhere; }
.blockers,
.detail { padding-top: 15px; border-top: 1px solid var(--line); }
.blockers ul { padding-left: 17px; color: #514d45; font-size: 11px; line-height: 1.8; }
.detail { margin-top: auto; }
.detail strong,
.detail small { display: block; margin-top: 8px; }
.detail small { margin-bottom: 8px; color: var(--muted); font-size: 10px; }

.outcome-lead {
  grid-column: 2;
  max-width: 720px;
  margin-top: 38px;
}
.outcome-lead p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.48;
}
.release-notes {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.release-notes div { padding: 18px 18px 22px 0; border-right: 1px solid var(--line); }
.release-notes div + div { padding-left: 18px; }
.release-notes div:last-child { border-right: 0; }
.release-notes dt { margin-bottom: 32px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.release-notes dd { margin: 0; font: 30px Georgia, "Times New Roman", serif; }
.release-notes dd small { color: var(--muted); font: 11px Arial, sans-serif; }
.score-note { grid-column: 2; max-width: 720px; }
.release-detail {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.release-detail p { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.release-detail strong { display: block; margin-bottom: 8px; font-size: 20px; }
.release-detail span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.source-note {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 34px;
  padding-block: 72px;
  border-top: 1px solid var(--ink);
}
.source-note > div:first-child { display: contents; }
.source-note .chapter-no { grid-column: 1; }
.source-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 34px;
}
.source-links a { padding-bottom: 5px; border-bottom: 1px solid; font-size: 13px; font-weight: 700; text-decoration: none; }
.attribution { grid-column: 2; }
.site-footer { display: flex; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { text-decoration: none; }

button:hover { background: #e5e1d7; }
.tab[aria-selected="true"]:hover,
.page-buttons button[aria-pressed="true"]:hover { background: var(--ink); }
button:focus-visible,
a:focus-visible { outline: 3px solid #2d67b0; outline-offset: 3px; }

@media (max-width: 900px) {
  .story-title,
  .chapter,
  .source-note { grid-template-columns: 150px minmax(0, 1fr); }
  .brief-facts { margin-left: 184px; grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; margin-left: 184px; }
  .pipeline li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .simulator { grid-template-columns: 1fr; }
  .document-column { border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 680px) {
  .site-nav,
  article > *,
  .site-footer { width: calc(100% - 28px); }
  .site-nav span { display: none; }
  .story-head { padding-block: 54px 70px; }
  .story-title,
  .chapter,
  .source-note { display: block; }
  .story-title h1 { margin-top: 25px; font-size: clamp(46px, 14vw, 64px); }
  .deck { font-size: 21px; }
  .hiring-note { grid-column: auto; }
  .packet-lead { margin-top: 48px; }
  .packet-images { grid-template-columns: 1fr 1fr; height: 440px; }
  .packet-images .packet-main { grid-column: 1 / -1; }
  .brief-facts { margin-left: 0; grid-template-columns: 1fr; }
  .brief-facts div:nth-child(odd) { margin-right: 0; }
  .chapter { padding-block: 72px; }
  .chapter h2,
  .source-note h2 { margin-top: 20px; }
  .article-copy,
  .margin-note,
  .outcome-lead,
  .release-notes,
  .score-note,
  .release-detail { grid-column: auto; }
  .pipeline { margin-left: 0; }
  .pipeline li { grid-template-columns: 38px 125px 1fr; }
  .margin-note { max-width: 230px; }
  .case-intro { grid-template-columns: 1fr; gap: 24px; }
  .tabs { grid-template-columns: 1fr; }
  .tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .document-stage { padding: 20px; }
  .evidence-column { padding: 22px; }
  .release-notes,
  .release-detail { grid-template-columns: 1fr; }
  .release-notes div,
  .release-notes div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .release-notes dt { margin-bottom: 14px; }
  .source-links,
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
