/* =====================================================================
   Paper and Ink · essays/a-familiar-name-can-deliver-unfamiliar-code.css
   "A Familiar Name Can Deliver Unfamiliar Code": 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 dependency manifest with a requested half and a resolved half (Figure 1)
   and a five-step evidence path from source to deployed artifact (Figure 2).
   Gold = trust in the project; blue = verification of the release artifact; the unfamiliar line is plain ink. */

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

/* ---- Figure 1: the dependency manifest ----------------------------------- */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.mfig { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px 44px; align-items: start; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.man {
  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;
}
.mh { font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .8; }
.mn { font-size: .68rem; opacity: .65; margin: .1rem 0 .4rem; }
.msec { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 1rem 0 .3rem; padding-bottom: .25rem; border-bottom: 1.5px solid currentColor; }
.msec.once { color: var(--slip-once); animation: fade .6s ease .4s both; }
.msec.life { color: var(--slip-life); animation: fade .6s ease 1.8s both; }
.mrow { display: flex; justify-content: space-between; gap: .8rem; padding: .16rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.mrow span { opacity: .75; }
.mrow b { font-weight: 500; text-align: right; }
.mrow.once { color: var(--slip-once); animation: fade .5s ease .6s both; }
.mrow.life { color: var(--slip-life); animation: fade .5s ease 2s both; }
.mrow .pk { font-size: .9rem; }
/* the stamp lands on the requested half only */
.man .stamp.s1 { display: table; margin: .55rem .2rem 0 auto; color: var(--slip-once); transform: rotate(-6deg); animation-delay: 1.2s; }
/* the unfamiliar line: plain ink, set off by a pencil box, arriving last */
.mnew {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; align-items: baseline;
  margin: .9rem 0 0; padding: .5rem .6rem; border: 1.5px dashed var(--slip-ink); color: var(--slip-ink);
  transform: rotate(.6deg); animation: thump .45s cubic-bezier(.3, 1.6, .5, 1) 2.8s both;
}
.mnew .nt { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; padding: .05rem .3rem; }
.mnew span:nth-child(2) { font-weight: 500; }
.mnew small { grid-column: 2; font-size: .64rem; opacity: .75; }
.mev { list-style: none; margin: .9rem 0 0; padding: 0; color: var(--slip-life); animation: fade .6s ease 3.3s both; }
.mev li { display: flex; gap: .55rem; align-items: center; padding: .14rem 0; }
.mev .box { flex: none; width: .9rem; height: .9rem; border: 1.4px solid currentColor; }
.mnotes { display: grid; gap: 64px; padding-top: 70px; }
.mnotes .mnote p { color: var(--ink); }
.mnotes .n1 { animation: fade .7s ease 1.4s both; }
.mnotes .n2 { animation: fade .7s ease 2.4s both; }
.mnotes .n3 { animation: fade .7s ease 3.2s both; }
.mnotes .n1 .pen path { animation-delay: 1.4s; }
.mnotes .n2 .pen path { animation-delay: 2.4s; }
.mnotes .n3 .pen path { animation-delay: 3.2s; }
.mnotes .n1 b { color: var(--once); }
.mnotes .n2 b { color: var(--life); }

/* ---- Figure 2: the evidence path ----------------------------------------- */
.path {
  position: relative; background: var(--noise), var(--slip); padding: 1.3rem 1.1rem 1.2rem; transform: rotate(.4deg);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  overflow-x: clip; overflow-clip-margin: 14px;
}
.path::before, .path::after { content: ""; position: absolute; top: -11px; width: 80px; height: 24px; background: var(--noise), var(--tape); }
.path::before { left: 20px; transform: rotate(-5deg); }
.path::after { right: 20px; transform: rotate(4deg); }
.step { position: relative; min-width: 0; padding: 0 .6rem; border-left: 1px dashed color-mix(in srgb, var(--slip-ink) 30%, transparent); animation: fade .6s ease both; }
.step:first-child { border-left: 0; }
.step p { margin: 0; }
.s-src { animation-delay: .3s; }
.s-pub { animation-delay: .8s; }
.s-res { animation-delay: 1.3s; }
.s-bld { animation-delay: 1.8s; }
.s-dep { animation-delay: 2.3s; }
.sn { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slip-ink); margin-bottom: .45rem; }
.sf i { font-family: var(--serif); font-size: 1.1em; }
.sq { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.25; color: var(--slip-life); min-height: 3.8em; }
.sf { font-family: var(--mono); font-size: .66rem; line-height: 1.45; color: var(--slip-ink); margin-top: .5rem; padding-top: .4rem; border-top: 1px solid color-mix(in srgb, var(--slip-ink) 25%, transparent); }
.s-bld .sf, .s-dep .sf { color: var(--graphite); }
.sc { display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; color: var(--slip-life); border: 1.4px solid currentColor; padding: .15rem .35rem; margin-top: .6rem; transform: rotate(-1.5deg); }

@media (max-width: 760px) {
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 0; }
  .step:nth-child(odd) { border-left: 0; }
  .sq { min-height: 0; }
}
@media (max-width: 640px) {
  .mfig { grid-template-columns: minmax(0, 1fr); }
  .mnotes { gap: .9rem; padding-top: 0; }
  .mnotes .pen { display: none; }
}

/* Phone mode: the manifest and its notes stack; the evidence path becomes one column, the step name
   in a narrow left gutter and its question, fact and control to the right. */
@media (max-width: 560px) {
  .man { padding: 1rem 1rem 1.1rem; font-size: .7rem; }
  .path { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: 1.2rem .9rem 1rem; }
  .step { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .1rem .6rem; border-left: 0; padding: 0 0 .8rem; border-bottom: 1px dashed color-mix(in srgb, var(--slip-ink) 30%, transparent); }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .sn { grid-row: span 3; margin: .15rem 0 0; }
  .sf, .sc, .mn, .mnew small { font-size: .72rem; }
  .sq, .sf, .sc { grid-column: 2; }
  .sc { justify-self: start; }
}
