:root {
  --paper: #f4efe5;
  --sheet: #fffdf8;
  --ink: #21192b;
  --muted: #5d5363;
  --plum: #68234f;
  --plum-dark: #421634;
  --sage: #1f6559;
  --copper: #8a3f1c;
  --line: #cec3b4;
  --soft-plum: #f1e3eb;
  --soft-sage: #e0eee9;
  --shadow: 0 14px 42px rgba(33, 25, 43, .10);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
}
a { color: var(--plum-dark); text-underline-offset: .18em; text-decoration-thickness: .09em; }
a:hover { color: var(--copper); }
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #ffbd4a;
  outline-offset: 3px;
}
.skip-pattern {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  padding: .8rem 1rem;
  min-height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: .3rem;
}
.skip-pattern:focus { transform: translateY(0); }

.folio-mast {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .97);
}
.folio-mast__row {
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.folio-mark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.folio-mark img { width: 220px; max-width: 100%; height: auto; }
.folio-mark small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.folio-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.folio-menu a { min-height: 44px; display: inline-flex; align-items: center; padding: .45rem .72rem; font-size: .88rem; font-weight: 750; text-decoration: none; }

.folio-frame {
  width: min(1180px, calc(100% - 2rem));
  margin: 2.2rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 2.6rem;
  align-items: start;
}
.folio-story { min-width: 0; }
.folio-rail { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.rail-card { padding: 1rem; border: 1px solid var(--line); background: var(--sheet); box-shadow: 5px 5px 0 var(--soft-plum); }
.rail-card h2 { margin: 0 0 .5rem; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.rail-card ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.rail-card li + li { margin-top: .4rem; }

.story-head { border-bottom: 5px solid var(--plum); padding-bottom: 1.4rem; }
.story-kicker { margin: 0 0 .55rem; color: var(--plum); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; }
h1 { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 7vw, 5.7rem); font-weight: 500; letter-spacing: -.045em; }
.story-dek { max-width: 69ch; margin: 1rem 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.byline-row { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }

.decision-panel {
  margin: 2rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--plum);
  border-left-width: .65rem;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.decision-panel h2 { margin-top: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.decision-panel p:last-child { margin-bottom: 0; }
.scope-note { padding: 1rem 1.15rem; border: 1px solid #9bbdb5; background: var(--soft-sage); font-size: .94rem; }

.folio-section { margin-top: 3.4rem; }
.folio-section > h2 { margin: 0 0 1rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 500; }
.section-lead { max-width: 74ch; color: var(--muted); }
.table-window { overflow-x: auto; border: 1px solid var(--line); background: var(--sheet); }
table { width: 100%; min-width: 940px; border-collapse: collapse; font-size: .9rem; }
caption { padding: 1rem; color: var(--muted); text-align: left; font-weight: 650; }
th, td { padding: .82rem .9rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--ink); color: #fff; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: #faf6ee; }
.pick-row { background: var(--soft-plum) !important; }
.rank-chip { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 850; }
.kind-tag { display: inline-block; padding: .12rem .45rem; border: 1px solid var(--sage); color: var(--sage); font-size: .73rem; font-weight: 800; text-transform: uppercase; }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.path-card { padding: 1.2rem; border-top: .45rem solid var(--plum); background: var(--sheet); box-shadow: 0 8px 22px rgba(33, 25, 43, .07); }
.path-card:nth-child(2) { border-color: var(--sage); }
.path-card:nth-child(3) { border-color: var(--copper); }
.path-card h3 { margin: 0 0 .6rem; font-size: 1.08rem; }

.proof-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.proof-sheet { padding: 1.2rem; border: 1px solid var(--line); background: var(--sheet); }
.proof-sheet h3 { margin-top: 0; font-family: var(--serif); font-size: 1.35rem; }
.proof-sheet p:last-child { margin-bottom: 0; }
.evidence-grade { color: var(--sage); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.score-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.score-list li { display: grid; grid-template-columns: 5rem 1fr; gap: .8rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line); background: var(--sheet); }
.score-list strong { color: var(--plum); }

.question-stack { display: grid; gap: .7rem; }
.question-stack details { border: 1px solid var(--line); background: var(--sheet); }
.question-stack summary { min-height: 52px; cursor: pointer; padding: .9rem 3rem .9rem 1rem; font-weight: 800; }
.question-stack details[open] { border-color: var(--plum); box-shadow: 5px 5px 0 var(--soft-plum); }
.question-stack details p { margin: 0; padding: 0 1rem 1.15rem; color: #392f3d; }

.source-notes { padding-left: 1.35rem; }
.source-notes li + li { margin-top: .72rem; }
.fine-print { color: var(--muted); font-size: .84rem; }
.folio-foot { border-top: 1px solid var(--line); background: var(--ink); color: #f9f3e9; }
.folio-foot__row { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.folio-foot p { margin: .25rem 0; }
.folio-foot a { color: #fff; }

@media (max-width: 900px) {
  .folio-frame { grid-template-columns: 1fr; }
  .folio-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .folio-mast__row { align-items: flex-start; flex-direction: column; padding: .75rem 0; gap: .25rem; }
  .folio-menu { width: 100%; }
  .folio-menu a { padding-left: 0; padding-right: 1rem; }
  .folio-frame { margin-top: 1.25rem; }
  .folio-rail, .proof-ledger { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.8rem); }
  .folio-foot__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
