/* PackProof: an evidence desk. Warm paper, ink, deliberate rules; no remote assets. */
:root {
  --paper: #f4f1e9; --surface: #fbf9f3; --ink: #232820; --muted: #62665b;
  --line: #d1d0c3; --line-strong: #9b9e90; --wash: #e9e9de; --focus: #365bc2;
  --pass: #2c6242; --pass-bg: #e5eddf; --fail: #ab3628; --fail-bg: #f6e8df;
  --warn: #7b520b; --warn-bg: #f5eccc; --white: #ffffff;
  --sans: "Segoe UI", Arial, sans-serif; --display: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--s6); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; }
h2 { font-family: var(--display); font-size: clamp(28px, 3.1vw, 38px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 0; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin-bottom: var(--s4); }
.page-width { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: var(--s3); left: var(--s3); padding: var(--s3) var(--s4); background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 96px; display: flex; align-items: center; gap: var(--s8); border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -1.2px; }
.wordmark-period { margin-left: -10px; color: var(--fail); }
.header-caption { color: var(--muted); padding-left: var(--s8); border-left: 1px solid var(--line); font-size: 13px; }
.header-actions { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.button { min-height: 44px; padding: 10px var(--s4); border: 1px solid var(--ink); border-radius: 2px; background: transparent; display: inline-flex; justify-content: center; align-items: center; gap: var(--s4); font-size: 13px; font-weight: 600; text-decoration: none; }
.button-dark { color: var(--surface); background: var(--ink); }
.button-dark:hover { background: var(--pass); border-color: var(--pass); }
.button-quiet { border-color: var(--line-strong); }
.button-quiet:hover { background: var(--wash); }
.button:disabled { opacity: .6; cursor: wait; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--s10); padding: 68px 0 56px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: var(--s2); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; margin-bottom: var(--s4); }
.small-square { display: inline-block; width: 6px; height: 6px; background: var(--ink); }
h1 { font-family: var(--display); font-stretch: condensed; font-size: clamp(50px, 6vw, 82px); font-weight: 800; letter-spacing: -.055em; line-height: .98; margin-bottom: var(--s6); max-width: 850px; }
.hero-description { font-size: 16px; max-width: 54ch; line-height: 1.6; color: var(--muted); margin-bottom: var(--s6); }
.record-caption { display: flex; align-items: flex-start; gap: var(--s2); font-size: 12px; margin-bottom: 0; color: var(--muted); }
.record-indicator { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.artifact-drawing { height: 276px; position: relative; isolation: isolate; }
.drawing-grid { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line-strong) .65px, transparent .8px); background-size: 16px 16px; opacity: .45; mask-image: radial-gradient(ellipse, black 30%, transparent 72%); }
.drawing-file { width: 148px; height: 188px; border: 1.5px solid var(--ink); position: absolute; padding: var(--s6) var(--s4); background: var(--paper); transform: rotate(-8deg); }
.drawing-file span { font: 11px var(--mono); letter-spacing: .08em; }
.drawing-file i { width: 100%; display: block; height: 5px; background: var(--line); margin-top: var(--s3); }
.drawing-file i:nth-of-type(2) { width: 76%; }
.drawing-file i:nth-of-type(4) { width: 60%; }
.drawing-file-back { left: 18px; top: 20px; }
.drawing-file-front { left: 133px; top: 59px; transform: rotate(8deg); background: var(--surface); }
.drawing-file .missing-line { background: transparent; border: 1px dashed var(--fail); height: 14px; }
.drawing-seal { position: absolute; right: -16px; bottom: 16px; background: var(--ink); color: var(--paper); font: 14px var(--mono); padding: 8px 14px; }
.drawing-annotation { position: absolute; left: 12px; bottom: 4px; font: 11px var(--mono); color: var(--muted); }
.drawing-arrow { width: 83px; height: 50px; position: absolute; right: 1px; top: 1px; }
.section-heading { display: flex; justify-content: space-between; gap: var(--s6); align-items: end; margin-bottom: var(--s6); }
.section-heading .eyebrow { margin-bottom: var(--s2); }
.section-heading > p { text-align: right; font-size: 12px; margin-bottom: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.comparison { border-top: 1px solid var(--line-strong); padding-top: var(--s8); margin-bottom: 56px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); background: var(--surface); }
.comparison-case { padding: var(--s6) var(--s8); min-width: 0; }
.comparison-case + .comparison-case { border-left: 1px solid var(--line-strong); }
.comparison-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.comparison-top p { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: 0; }
.comparison-case h3 { font-size: 24px; font-weight: 650; letter-spacing: -.035em; margin-bottom: var(--s2); }
.comparison-case > p { font-size: 13px; color: var(--muted); min-height: 42px; margin-bottom: var(--s5); max-width: 54ch; }
.file-evidence { background: var(--wash); padding: 10px var(--s3); font-family: var(--mono); font-size: 12px; display: flex; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); overflow-wrap: anywhere; }
.file-evidence strong { white-space: nowrap; font-size: 11px; font-weight: 500; }
.text-button { background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; min-height: 40px; font-size: 12px; font-weight: 600; display: inline-flex; gap: var(--s6); align-items: center; }
.text-button:hover { color: var(--pass); }
.comparison-note { margin-top: var(--s3); margin-bottom: 0; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--muted); background: var(--wash); font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; width: fit-content; }
.status::before { content: "—"; font-size: 12px; line-height: 1; }
.status-pass { color: var(--pass); background: var(--pass-bg); }
.status-pass::before { content: "✓"; }
.status-fail { color: var(--fail); background: var(--fail-bg); }
.status-fail::before { content: "×"; font-size: 15px; }
.status-inconclusive, .status-error, .status-timeout { color: var(--warn); background: var(--warn-bg); }
.status-inconclusive::before, .status-error::before, .status-timeout::before { content: "!"; }
.browser-heading { padding-top: var(--s8); border-top: 1px solid var(--ink); }
.browser-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); border: 1px solid var(--line-strong); background: var(--surface); min-height: 650px; }
.case-sidebar { border-right: 1px solid var(--line-strong); padding-bottom: var(--s6); min-width: 0; background: var(--paper); }
.case-filters { padding: var(--s5); border-bottom: 1px solid var(--line); }
.case-filters label { display: block; font-size: 12px; font-weight: 600; margin-bottom: var(--s2); }
.case-filters input, .case-filters select { display: block; width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 var(--s3); background: var(--surface); color: var(--ink); font-size: 12px; }
.case-filters select { margin-top: var(--s2); }
.case-filters input::placeholder { color: var(--muted); }
.case-list-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s5) var(--s5) var(--s2); margin: 0; }
.case-button { background: transparent; width: 100%; border: 0; border-left: 3px solid transparent; padding: var(--s4) 17px; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-height: 86px; }
.case-button:hover { background: var(--wash); }
.case-button[aria-current="true"] { border-left-color: var(--ink); background: var(--surface); }
.case-button .case-name { font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.case-button .case-meta { display: flex; align-items: center; gap: var(--s2); }
.case-number { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: auto; }
.sidebar-note { margin: var(--s6) var(--s5) 0; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.empty-filter { padding: var(--s4) var(--s5); font-size: 13px; }
#clear-filters { margin-inline: var(--s5); }
.report-detail { min-width: 0; }
.report-header { padding: var(--s8); }
.report-kicker { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.report-kicker .eyebrow { margin: 0; }
.report-title { font-family: var(--sans); font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; margin-bottom: var(--s2); }
.report-timestamp { color: var(--muted); font-size: 11px; margin-bottom: var(--s5); }
.outcome-summary { display: flex; align-items: flex-start; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); }
.outcome-summary .status { margin-top: 2px; font-size: 12px; padding: 5px 9px; }
.outcome-summary p { margin-bottom: 0; font-size: 14px; overflow-wrap: anywhere; }
.control-expectation { font-size: 11px; color: var(--muted); margin: var(--s3) 0 0; }
.control-expectation strong { color: var(--ink); }
.stage-tabs { display: flex; border-block: 1px solid var(--line); padding: 0 var(--s8); gap: var(--s5); overflow-x: auto; }
.stage-tab { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; min-height: 56px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: var(--s3) 0; font-size: 12px; color: var(--muted); }
.stage-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.stage-tab span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.stage-content { padding: var(--s8); }
.stage-heading { display: flex; align-items: center; gap: var(--s3); justify-content: space-between; margin-bottom: var(--s3); }
.stage-heading h3 { font-size: 18px; margin-bottom: 0; letter-spacing: -.02em; }
.stage-description { color: var(--muted); font-size: 13px; margin-bottom: var(--s6); max-width: 72ch; }
.facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 0 0 var(--s6); font-size: 12px; }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: var(--s4); }
.facts dd { overflow-wrap: anywhere; }
.code-value { font-family: var(--mono); font-size: 11px; }
.hash-block { padding: var(--s4) 0; border-block: 1px solid var(--line); margin-bottom: var(--s5); }
.hash-label { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; margin-bottom: var(--s1); font-size: 11px; color: var(--muted); }
.hash-label button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 4px 8px; font-size: 11px; }
.hash-value { display: block; font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; line-height: 1.8; user-select: all; }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 48px; padding: var(--s3) 0; font-size: 12px; font-weight: 600; }
summary::marker { color: var(--muted); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 11px; line-height: 1.7; background: var(--wash); padding: var(--s4); margin: 0 0 var(--s4); max-height: 360px; overflow-y: auto; tab-size: 2; }
.log-title { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; margin: var(--s3) 0 var(--s2); }
.file-list { list-style: none; padding: 0; margin: 0 0 var(--s4); max-height: 320px; overflow-y: auto; }
.file-list li { font: 11px/1.6 var(--mono); padding: 8px var(--s3); background: var(--wash); border-bottom: 1px solid var(--paper); overflow-wrap: anywhere; }
.check-list { margin-top: var(--s5); }
.check-row { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.check-row-header { display: flex; align-items: center; gap: var(--s3); justify-content: space-between; margin-bottom: var(--s2); }
.check-row h4 { margin: 0; font-size: 13px; font-weight: 600; }
.check-row p { font-size: 12px; color: var(--muted); margin-bottom: var(--s2); overflow-wrap: anywhere; }
.check-row details { border-bottom: 0; }
.check-row summary { min-height: 40px; padding-block: var(--s2); font-size: 11px; font-weight: 400; }
.not-recorded { border-left: 2px solid var(--line-strong); padding-left: var(--s4); color: var(--muted); font-size: 13px; }
.report-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) var(--s8); background: var(--paper); border-top: 1px solid var(--line); }
.report-footer p { font-size: 10px; color: var(--muted); margin: 0; }
.evidence-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); padding: var(--s8) 0; color: var(--muted); }
.evidence-notes p { font-size: 12px; margin-bottom: var(--s2); }
.evidence-notes .eyebrow { font-size: 10px; color: var(--ink); }
#source-commit { font-size: 10px; overflow-wrap: anywhere; }
.site-footer { display: flex; gap: var(--s8); align-items: center; border-top: 1px solid var(--ink); padding-block: var(--s6) var(--s8); }
.footer-brand { font-size: 18px; font-weight: 800; letter-spacing: -.8px; }
.footer-brand span { color: var(--fail); }
.site-footer p, .site-footer a { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.site-footer a { margin-left: auto; min-height: 40px; display: inline-flex; align-items: center; gap: var(--s2); }
.message { padding: var(--s6); border: 1px solid var(--line-strong); background: var(--surface); margin-block: var(--s5); }
.message-error { border-color: var(--fail); color: var(--fail); background: var(--fail-bg); font-size: 13px; }
.message h3 { margin-bottom: var(--s3); }
.message p { color: var(--muted); max-width: 80ch; }
.loading-state { padding: var(--s10); min-height: 320px; border: 1px solid var(--line); color: var(--muted); }
.skeleton { height: 24px; width: 75%; background: var(--wash); margin-top: var(--s6); }
.skeleton.short { width: 45%; }
.empty-state { text-align: center; padding: var(--s16) var(--s6); border: 1px solid var(--line-strong); }
.empty-state p { max-width: 55ch; margin-inline: auto; color: var(--muted); }
.empty-mark { display: block; font: 42px var(--mono); color: var(--muted); margin-bottom: var(--s6); }
.noscript { padding: var(--s6); background: var(--fail-bg); color: var(--fail); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  button, a { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
  .stage-content { animation: appear 180ms ease-out; }
  @keyframes appear { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1500px) { .hero { padding-block: 80px 64px; } }
@media (max-width: 1050px) {
  .page-width { width: calc(100% - 56px); }
  .hero { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s4); }
  .artifact-drawing { transform: scale(.83); transform-origin: center; }
  .header-caption { display: none; }
  .browser-layout { grid-template-columns: 238px minmax(0, 1fr); }
  .report-header, .stage-content { padding: var(--s6); }
  .stage-tabs { padding-inline: var(--s6); gap: var(--s4); }
  .report-footer { padding-inline: var(--s6); flex-wrap: wrap; }
  .facts { grid-template-columns: 112px minmax(0, 1fr); }
  .comparison-case { padding: var(--s6); }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 84px; gap: var(--s3); }
  .wordmark { font-size: 23px; gap: var(--s2); }
  .wordmark svg { width: 25px; }
  .header-actions { gap: var(--s2); }
  .header-actions .button { padding-inline: var(--s3); font-size: 11px; }
  .hero { padding-block: var(--s12) var(--s10); grid-template-columns: 1fr; }
  h1 { font-size: clamp(48px, 9vw, 72px); }
  .hero-description { font-size: 15px; max-width: 58ch; }
  .artifact-drawing { display: none; }
  .comparison { margin-bottom: var(--s10); }
  .section-heading > p { max-width: 170px; font-size: 11px; }
  .comparison-case { padding: var(--s5); }
  .comparison-case h3 { font-size: 20px; }
  .comparison-top { align-items: flex-start; gap: var(--s2); flex-direction: column; }
  .file-evidence { flex-direction: column; gap: var(--s1); }
  .browser-layout { grid-template-columns: 1fr; }
  .case-sidebar { border-right: 0; border-bottom: 1px solid var(--line-strong); padding-bottom: 0; }
  .case-filters { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s2); padding: var(--s4); }
  .case-filters > label:not(.visually-hidden) { grid-column: 1/-1; margin: 0; }
  .case-filters select { margin-top: 0; }
  #case-list { display: flex; overflow-x: auto; padding-bottom: var(--s2); scroll-snap-type: x proximity; }
  .case-button { flex: 0 0 215px; width: 215px; border-left: 0; border-top: 3px solid transparent; padding: var(--s3) var(--s4); scroll-snap-align: start; border-right: 1px solid var(--line); }
  .case-button[aria-current="true"] { border-top-color: var(--ink); }
  .case-list-label { padding: var(--s3) var(--s4) var(--s2); }
  .sidebar-note { margin: var(--s3) var(--s4); padding-top: var(--s3); }
  .report-header, .stage-content { padding: var(--s6) var(--s5); }
  .stage-tabs { padding-inline: var(--s5); justify-content: space-between; }
  .report-footer { padding: var(--s5); }
  .evidence-notes { grid-template-columns: 1fr; gap: var(--s5); }
  .site-footer { gap: var(--s5); flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; padding-block: var(--s4); }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  #reset-data { max-width: 110px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-case + .comparison-case { border-left: 0; border-top: 1px solid var(--line-strong); }
  .comparison-top { flex-direction: row; align-items: center; }
  .comparison-case > p { min-height: 0; }
  .file-evidence { flex-direction: row; }
  .section-heading { gap: var(--s3); }
  .section-heading > p { max-width: 120px; }
  .eyebrow { font-size: 10px; }
  .report-kicker { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 2px; }
  .stage-tabs { gap: var(--s3); }
  .stage-tab { font-size: 11px; }
  .stage-tab span { font-size: 9px; }
  .outcome-summary { flex-direction: column; }
  .site-footer p { order: 3; width: 100%; }
}
