/* =====================================================================
   Paper and Ink · essays/the-patch-is-not-the-finish-line.css
   "The Patch Is Not the Finish Line": 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:
   a maintenance work order with separate installation and acceptance entries (Figure 1)
   and a dated evidence strip, February 12 to 26 (Figure 2).
   Gold = the installed change; blue = verified service behavior; dates, today and the future are graphite. */

/* ---- 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); }
/* function and query names in the running text */
.prose code { font-family: var(--mono); font-size: .84em; }

/* ---- Figure 1: the maintenance work order -------------------------------- */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.wofig { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px 44px; align-items: start; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.wo {
  position: relative; background: var(--noise), var(--sheet); padding: 1.2rem 1.3rem 1.3rem; transform: rotate(-.8deg);
  font-family: var(--mono); font-size: .74rem; line-height: 1.55; border-top: 6px solid var(--graphite);
  animation: fade .6s ease .1s both;
}
.wh { font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .8; }
.wn { font-size: .68rem; opacity: .65; margin: .1rem 0 .7rem; }
.wrow { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid color-mix(in srgb, var(--slip-ink) 22%, transparent); padding: .2rem 0; }
.wrow span { opacity: .75; }
.wrow b { font-weight: 500; text-align: right; }
.wsec { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 1.1rem 0 .35rem; padding-bottom: .25rem; border-bottom: 1.5px solid currentColor; }
.wsec.once { color: var(--slip-once); animation: fade .6s ease .5s both; }
.wsec.life { color: var(--slip-life); animation: fade .6s ease 2.1s both; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .18rem 0; }
.wl.once li { color: var(--slip-once); }
.wl.life li { color: var(--slip-life); }
.wl.once li:nth-child(1) { animation: fade .5s ease .7s both; }
.wl.once li:nth-child(2) { animation: fade .5s ease .95s both; }
.wl.once li:nth-child(3) { animation: fade .5s ease 1.2s both; }
.wl.life li:nth-child(1) { animation: fade .5s ease 2.3s both; }
.wl.life li:nth-child(2) { animation: fade .5s ease 2.5s both; }
.wl.life li:nth-child(3) { animation: fade .5s ease 2.7s both; }
.wl .ok { flex: none; font-family: var(--serif); font-size: 1.05rem; line-height: 1; color: var(--slip-ink); }
.wl .box { flex: none; width: .95rem; height: .95rem; border: 1.4px solid currentColor; }
/* the stamp lands on the installation half only */
.wo .stamp.s1 { display: table; margin: .5rem .2rem .1rem auto; color: var(--slip-once); transform: rotate(-6deg); animation-delay: 1.6s; }
.wsig { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 5rem); gap: .3rem .6rem; align-items: end; margin-top: 1rem; color: var(--slip-life); animation: fade .6s ease 2.9s both; }
.wsig small { font-family: var(--sans); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.wsig span { border-bottom: 1px solid currentColor; height: 1.2rem; }
.wnotes { display: grid; gap: 92px; padding-top: 196px; }
.wnotes .mnote p { color: var(--ink); }
.wnotes .n1 { animation: fade .7s ease 1.9s both; }
.wnotes .n2 { animation: fade .7s ease 3.2s both; }
.wnotes .n1 .pen path { animation-delay: 1.9s; }
.wnotes .n2 .pen path { animation-delay: 3.2s; }
.wnotes .n2 b { color: var(--life); }

/* ---- Figure 2: the evidence strip ---------------------------------------- */
.strip {
  position: relative; background: var(--noise), var(--slip); padding: 1.1rem 1.1rem 1.2rem; transform: rotate(.4deg);
  display: grid; grid-template-columns: 1.5fr .42fr .42fr .42fr 1.5fr 1.15fr .3fr 1.45fr; gap: 0;
  overflow-x: clip; overflow-clip-margin: 14px;
}
.strip::before, .strip::after { content: ""; position: absolute; top: -11px; width: 80px; height: 24px; background: var(--noise), var(--tape); }
.strip::before { left: 20px; transform: rotate(-5deg); }
.strip::after { right: 20px; transform: rotate(4deg); }
.day { position: relative; padding: 0 .5rem; border-left: 1px dashed color-mix(in srgb, var(--slip-ink) 30%, transparent); min-width: 0; }
.day:first-child { border-left: 0; }
.dd { font-family: var(--mono); font-size: .66rem; line-height: 1.35; letter-spacing: .04em; color: var(--graphite); margin: 0 0 .6rem; }
.dd b { display: block; font-weight: 500; font-size: .76rem; color: var(--slip-ink); }
.ev { font-family: var(--mono); font-size: .7rem; line-height: 1.45; padding: .55rem .6rem .6rem; border: 1.5px solid currentColor; background: var(--noise), var(--sheet); animation: thump .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.ev p { margin: 0; }
.ev .et { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.2; margin-bottom: .3rem; }
.ev.rel { color: var(--slip-once); transform: rotate(-1.2deg); animation-delay: .4s; }
.ev.reg { color: var(--slip-life); transform: rotate(1deg); animation-delay: 1.3s; }
.ev.now { color: var(--slip-ink); border-style: solid; border-width: 1.5px 0 0; background: none; padding-inline: 0; animation-delay: 2.1s; }
.ev.fut { color: var(--graphite); border-style: dashed; background: none; transform: rotate(-.6deg); animation-delay: 2.7s; }
.ev .vs { opacity: .8; font-size: .64rem; }
.gapday { display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--graphite); border-left: 0; }
.quiet-sum { display: none; }
.again { margin-top: 1rem; }

@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  .day.quiet, .gapday { display: none; }
}
@media (max-width: 640px) {
  .wofig { grid-template-columns: minmax(0, 1fr); }
  .wnotes { gap: .9rem; padding-top: 0; }
  .wnotes .pen { display: none; }
}

/* Phone mode: the work order and its notes stack; the evidence strip turns into a dated column, one row per
   notice, with the three quiet days folded into a single line. */
@media (max-width: 560px) {
  .wo { padding: 1rem 1rem 1.1rem; font-size: .7rem; }
  .strip { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: 1.1rem .9rem 1rem; }
  .day { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .6rem; border-left: 0; padding: 0; }
  .day .dd { margin: .2rem 0 0; }
  .quiet-sum { display: block; font-family: var(--mono); font-size: .66rem; color: var(--graphite); margin: 0; }
}
