/* =====================================================================
   Paper and Ink · essays/a-readable-filing-can-still-resist-comparison.css
   "A Readable Filing Can Still Resist Comparison": the figures only this dispatch uses.
   Loaded after the shared stylesheets; everything shared lives in css/.
   ===================================================================== */

/* Layout: one 64ch reading column on grained paper; two paper objects break out to 860px:
   two extracted slips, each tied to a paper tag with its context (Figure 1),
   and a comparison ledger with three pairs and their verdicts (Figure 2).
   Gold = machine readability (the value); blue = economic comparability (the context). */

/* ---- footnote markers -------------------------------------------------- */
sup.ref { font-family: var(--sans); font-size: .62em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; color: var(--life); padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }
.sources li:target { color: var(--ink); background: var(--life-soft); }

/* ---- Figure 1: two slips and their tags ---------------------------------- */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.fact { display: grid; justify-items: center; min-width: 0; }
.slip-sm {
  position: relative; width: min(100%, 250px); background: var(--noise), var(--slip); padding: 1rem 1.1rem 1.5rem;
  font-family: var(--mono); font-size: .82rem; line-height: 1.6;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  animation: fade .5s ease .1s both;
}
.fa .slip-sm { transform: rotate(-1.4deg); }
.fb .slip-sm { transform: rotate(1.1deg); }
.sh { font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem; opacity: .75; text-align: center; }
.val { display: flex; justify-content: space-between; align-items: baseline; margin: 0; color: var(--slip-once); border-top: 1px dashed currentColor; border-bottom: 1px dashed currentColor; padding: .4rem 0; }
.val b { font-size: 1.6rem; font-weight: 500; }
.slip-sm .stamp.s1 { position: absolute; right: .7rem; bottom: .5rem; color: var(--slip-once); font-size: .62rem; transform: rotate(-7deg); animation-delay: .7s; }
/* the string that ties each tag to its slip */
.string { width: 0; height: 26px; border-left: 1.5px dashed var(--graphite); animation: fade .4s ease 1.2s both; }
.fact .tag {
  width: min(100%, 290px); margin: 0; background: var(--noise), var(--sheet); padding: .7rem .9rem .8rem;
  border: 1.4px solid var(--slip-life); color: var(--slip-life); font-family: var(--mono); font-size: .72rem; line-height: 1.45;
  animation: fade .6s ease 1.4s both;
}
.fa .tag { transform: rotate(1.5deg); }
.fb .tag { transform: rotate(-1.5deg); animation-delay: 1.8s; }
.fact .tag div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .5rem; padding: .14rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.fact .tag div:last-child { border-bottom: 0; }
.fact .tag dt { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; padding-top: .1rem; }
.fact .tag dd { margin: 0; }
.pnotes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.4rem; text-align: center; }
.pnotes .hand { margin: 0; max-width: 26ch; color: var(--ink); }
.pnotes .n1 { animation: fade .7s ease 1s both; }
.pnotes .n2 { animation: fade .7s ease 2.4s both; }
.pnotes .n1 b { color: var(--once); }
.pnotes .n2 b { color: var(--life); }
.pnotes .stamp.s2 { color: var(--life); transform: rotate(4deg); animation-delay: 3s; }

/* ---- Figure 2: the comparison ledger -------------------------------------- */
.ledger {
  position: relative; background: var(--noise), var(--slip); padding: 1.4rem 1.3rem 1.2rem; transform: rotate(-.4deg);
  overflow-x: clip; overflow-clip-margin: 14px;
}
.ledger::before, .ledger::after { content: ""; position: absolute; top: -11px; width: 80px; height: 24px; background: var(--noise), var(--tape); }
.ledger::before { left: 20px; transform: rotate(-5deg); }
.ledger::after { right: 20px; transform: rotate(4deg); }
.lh { font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; opacity: .75; }
.lrow { display: grid; grid-template-columns: 8.5rem repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: .4rem 1rem; align-items: start; padding: .8rem 0; border-top: 1px solid color-mix(in srgb, var(--slip-ink) 25%, transparent); animation: fade .6s ease both; }
.lhead { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); padding: .2rem 0; border-top: 0; animation: none; }
.r1 { animation-delay: .3s; }
.r2 { animation-delay: 1.1s; }
.r3 { animation-delay: 1.9s; }
.ln { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding-top: .2rem; }
.lf { display: grid; gap: .15rem; min-width: 0; }
.lf b { font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--slip-once); }
.lf small { font-family: var(--mono); font-size: .66rem; line-height: 1.45; color: var(--slip-life); }
.lf em { font-style: normal; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.lr { display: grid; justify-items: start; gap: .5rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--slip-ink); }
.calc { font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--slip-life); }
.calc b { font-weight: 600; }
.lr .stamp.sv { color: var(--slip-life); font-size: .62rem; transform: rotate(-4deg); font-style: normal; }
.r1 .stamp.sv { animation-delay: .8s; }
.r2 .stamp.sv { animation-delay: 1.6s; }
.r3 .stamp.sv { animation-delay: 2.4s; transform: rotate(3deg); }

@media (max-width: 760px) {
  .lrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhead { display: none; }
  .ln, .lr { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
}

/* Phone mode: the two slips stack, each with its tag below; ledger rows read top to bottom,
   pair name, the two facts side by side, then the rule and its stamp. Small text rises to 11px or more. */
@media (max-width: 560px) {
  .fact .tag, .lf small, .calc { font-size: .72rem; }
  .fact .tag dt, .lh, .ln, .sh, .slip-sm .stamp.s1, .lr .stamp.sv, .lhead { font-size: .7rem; }
  .ledger { padding: 1.3rem .95rem 1rem; }
  .lrow { gap: .5rem .8rem; }
  .pnotes { flex-direction: column; gap: .8rem; }
}
