/* site.css — propingtt.com on top of THE token sheet (tokens.css, copied at build).
   Design pilot: docs/design/web/propingtt_web.dc.html, option 2a "Dossier" —
   IBM Plex, hairlines, generous, reads as a permanent record. Everything here
   is plain CSS over the tokens; a treatment that needs more than that is out
   (design_language.md P4). Status colours are for status only.               */

@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap;
  src: url(fonts/IBMPlexSans-variable-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexMono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url(fonts/IBMPlexMono-500-latin.woff2) format("woff2"); }

:root {
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dim: #5f6b78;               /* below --sub: axis labels, empty ladders */
  --measure: 1100px;
}

/* ---------- base ---------- */
html { background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: var(--fs-2);
  line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--sp-5); box-sizing: border-box; }
main.narrow { max-width: 820px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 var(--sp-2); }
h1 { font-size: 38px; letter-spacing: -0.025em; }
h2 { font-size: 22px; }
h3 { font-size: var(--fs-3); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sub { color: var(--sub); }
.fg { color: var(--fg); }
.fine { font-size: var(--fs-0); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub); margin-bottom: var(--sp-3); }
.unit { font-size: 0.55em; color: var(--sub); margin-left: 2px; }
.dotsep { color: var(--line); margin: 0 10px; }
ul.plain { padding-left: 1.2em; margin: 0 0 var(--sp-4); }
ul.plain li { margin-bottom: var(--sp-2); }

/* ---------- header / nav ---------- */
.site-header { display: flex; align-items: center; gap: 30px; padding: 15px var(--sp-5);
  border-bottom: 1px solid var(--line); max-width: var(--measure); margin: 0 auto; width: 100%; box-sizing: border-box; }
.wordmark { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.wordmark:hover { text-decoration: none; }
.wordmark-tt { color: var(--sub); }
.nav { display: flex; gap: 22px; font-size: 13.5px; flex-wrap: wrap; }
.nav-item { color: #a8b4c0; padding-bottom: 2px; }
.nav-item.is-active { color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-item.is-disabled { color: var(--dim); cursor: help; }
.nav-item.is-disabled::after { content: " ·"; color: var(--line); }
a.nav-item:hover { text-decoration: none; color: var(--fg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: var(--sp-5); max-width: var(--measure);
  margin-left: auto; margin-right: auto; width: 100%; box-sizing: border-box; font-size: var(--fs-1); color: var(--sub); }
.footer-line { color: var(--fg); margin-bottom: var(--sp-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.footer-build { font-size: var(--fs-0); }

/* ---------- hero / sections ---------- */
.hero { padding: 72px 0 40px; max-width: 760px; }
.hero-page { padding: 48px 0 24px; }
.hero-line { font-size: 44px; margin-bottom: var(--sp-4); }
.lede { font-size: 17px; line-height: 1.6; color: #c4ccd5; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-s); font-size: var(--fs-1); transition: background var(--t-fast) var(--ease); }
.button:hover { text-decoration: none; background: #7fbcff; }
.button-quiet { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--panel); border-color: var(--sub); }
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: var(--sp-5); max-width: 720px; }
.section-head h2 { margin-bottom: 4px; }
.section-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.narrow-left { max-width: 760px; }
.soul { border-left: 2px solid var(--accent); margin: var(--sp-5) 0 0; padding: var(--sp-2) var(--sp-4);
  font-size: 19px; line-height: 1.5; color: var(--fg); }
.prose h2 { margin-top: var(--sp-5); font-size: 19px; }
.prose h3 { margin-top: var(--sp-4); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--sp-2); }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { grid-template-columns: 1.25fr 1fr; gap: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; }
.card h3 { margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }
.card-link { color: var(--fg); display: block; transition: border-color var(--t-fast) var(--ease); }
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.card-link h3 { color: var(--fg); }
.card-state { background: var(--inset); }
.card-dashed { border-style: dashed; }
.card-reconstructed { border-left: 3px dashed var(--warn); }
.card-inferred { border-left: 3px dotted var(--sub); }
.kv { display: grid; grid-template-columns: max-content 1fr; column-gap: 18px; row-gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; margin-bottom: var(--sp-3); }
.row { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-1); margin-bottom: 9px; }

/* ---------- provenance marks / honesty states (design reference) ---------- */
.mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; color: var(--sub); white-space: nowrap; }
.mark-measured { color: var(--ok); border-color: var(--ok); }
.mark-reconstructed { color: var(--warn); border-color: var(--warn); border-style: dashed; }
.mark-inferred { color: var(--sub); border-style: dotted; }
.mark-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.mark-row .num { font-size: 20px; }
.num-dim { color: var(--sub); font-weight: 400; }
.state { display: flex; align-items: baseline; gap: 10px; font-size: 14px; padding: var(--sp-3) 0; }
.state-word { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; border: 1px solid currentColor; }
.state-ready .state-word { color: var(--ok); }
.state-loading .state-word { color: var(--sub); }
.state-error .state-word { color: var(--err); }
.state-disabled .state-word { color: var(--dim); }
.banner { max-width: var(--measure); margin: var(--sp-4) auto 0; padding: 10px var(--sp-4); box-sizing: border-box;
  border: 1px dashed var(--warn); border-radius: var(--radius-s); color: var(--warn); font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- the ladder (home) ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); counter-reset: rung; }
.ladder-beside { grid-template-columns: repeat(4, 1fr); margin-top: var(--sp-3); }
.ladder-beside li { grid-column: span 2; }
.ladder li a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; color: var(--fg);
  transition: border-color var(--t-fast) var(--ease); }
.ladder li a:hover { text-decoration: none; border-color: var(--accent); }
.ladder:not(.ladder-beside) li a::before { counter-increment: rung; content: counter(rung); font-family: var(--font-mono);
  font-size: var(--fs-0); color: var(--dim); }
.ladder-verb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ladder-name { font-weight: 600; font-size: var(--fs-3); }
.ladder-short { font-size: var(--fs-1); color: var(--sub); flex: 1; }
.ladder-status { font-family: var(--font-mono); font-size: 11px; color: var(--sub); }

/* ---------- the record (player) ---------- */
.record { padding-top: var(--sp-4); }
.identity { padding: 32px 0 26px; border-bottom: 1px solid var(--line); }
.identity-row { display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.portrait { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel);
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.4; box-sizing: border-box; }
.identity-main { flex: 1; min-width: 320px; }
.identity-name { margin: 0; }
.identity-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; color: var(--sub); }
.marks { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.identity-status { border-left: 1px solid var(--line); padding-left: 26px; min-width: 200px; }
.identity-status .eyebrow { margin-bottom: 10px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); }
.tabs { display: flex; border-bottom: 1px solid var(--line); font-size: 13.5px; overflow-x: auto; }
.tab { padding: 13px 15px 12px; color: var(--sub); white-space: nowrap; }
.tab:hover { text-decoration: none; color: var(--fg); }
.tab.is-active { color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.record-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-value { font-family: var(--font-mono); font-size: 42px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-1); color: var(--sub); margin-top: 6px; }
.ladder-card .num-l { font-size: 28px; font-weight: 500; margin: 10px 0 8px; }
.ladder-card .fine { margin-top: 4px; }
.audit { margin-top: 14px; }
.audit summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.audit summary::-webkit-details-marker { display: none; }
.audit summary .mark { border-color: var(--line); color: var(--sub); }
.audit summary .mark:hover { border-color: var(--accent); color: var(--fg); }
.l3 { margin-top: 12px; background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; }
.l3 .eyebrow { margin-bottom: 14px; }
.l3-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; font-family: var(--font-mono); }
.bar { margin-bottom: 15px; font-size: 13.5px; }
.bar-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bar-track { height: 5px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--fg); }
.bar-fill-sub { background: var(--sub); }
.hist { display: flex; gap: 3px; align-items: flex-end; height: 46px; }
.hist-bin { flex: 1; background: var(--line); }
.hist-mode { background: var(--accent); }
.hist-axis { display: flex; justify-content: space-between; color: var(--dim); margin-top: 5px; font-size: 10.5px; }
.method-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.verdict { margin-bottom: 10px; }
.verdict-ok { border-left: 2px solid var(--ok); }
.verdict-insufficient { border-left: 2px dotted var(--sub); }
.verdict-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.verdict-nums { display: flex; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 8px; }
.verdict-nums .num-m { font-size: 22px; font-weight: 500; color: var(--fg); }
.verdict .bar-track { margin: 12px 0 9px; }
.irl-title { font-size: 15px; font-weight: 600; margin-top: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .ladder, .glance { grid-template-columns: repeat(2, 1fr); }
  .section-split, .grid-split { grid-template-columns: 1fr; }
  .ladder-beside li { grid-column: span 1; }
}
@media (max-width: 560px) {
  h1 { font-size: 30px; } .hero-line { font-size: 32px; }
  .grid-2, .grid-3, .grid-4, .ladder, .ladder-beside, .glance { grid-template-columns: 1fr; }
  .identity-status { border-left: 0; padding-left: 0; }
  main, .site-header, .site-footer { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}

/* ---------- alpha: the landing and the invitation ---------- */
.site-header-alpha { border-bottom: 0; }
.landing { max-width: 760px; }
.landing .hero { padding-top: 56px; }
.landing-visual { margin: 40px 0 8px; }
.landing-visual svg { width: 100%; height: auto; display: block; }
.landing-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--dim); margin-top: 8px; }
.landing-invite { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 32px; }
.qform .q { display: block; margin-bottom: 18px; }
.qform .q > span { display: block; font-size: 13.5px; margin-bottom: 6px; }
.qform input[type=text], .qform select { width: 100%; box-sizing: border-box; background: var(--inset); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 10px; font: inherit; }
.qform input[type=text]:focus, .qform select:focus { outline: none; border-color: var(--accent); }
.qform .radios { display: flex; gap: 18px; font-size: 13.5px; }
.qform .q-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--sub); margin: 22px 0; }
.q-consent input { margin-top: 4px; }
