/* =====================================================================
   Paper and Ink · essays/the-call-came-from-it.css
   "The Call Came from IT": 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 static paper objects break out to 860px:
   a single sign-on page with its one sign-in box and the grid of app tiles behind it (Figure 1)
   and a reach sheet for one role on taped graph paper (Figure 2).
   Gold = one sign-in; blue = every app behind it.
   Every rule below is scoped to its figure so none of it can restyle the generated Read next block.
   Labels stay at 11px or larger. */

/* ---- 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: the sign-on page ------------------------------------------------ */
.sso { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 1.4rem 1.8rem; max-width: 780px; padding: 1.3rem 1.3rem 1.2rem; background: var(--noise), var(--sheet); color: var(--slip-ink); border-top: 5px solid var(--graphite); transform: rotate(-.4deg); }
.sso .door { padding: .9rem .9rem 1rem; background: var(--noise), var(--slip); color: var(--slip-once); box-shadow: 0 1px 1px var(--shadow); align-self: start; animation: fade .5s ease both; }
.sso .dh, .sso .th { margin: 0 0 .6rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.sso .fld { display: flex; justify-content: space-between; gap: .6rem; margin: 0; padding: .35rem 0; border-top: 1px dashed var(--grid-major); font-family: var(--mono); font-size: .78rem; }
.sso .fld span { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.sso .fld b { font-weight: 600; }
.sso .pn { margin: .7rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.3; color: var(--graphite); transform: rotate(-2deg); }
.sso .tiles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.sso .tiles li { display: flex; align-items: end; min-height: 64px; padding: .5rem .55rem; font-family: var(--sans); font-size: .76rem; font-weight: 600; line-height: 1.25; color: var(--slip-life); background: var(--noise), linear-gradient(var(--life-soft), var(--life-soft)), var(--slip); border: 1px solid var(--grid-major); animation: fade .4s ease both; }
.sso .tiles li:nth-child(n+2) { animation-delay: .5s; }
.sso .tiles li:nth-child(n+5) { animation-delay: .8s; }

/* ---- Figure 2: the reach sheet ------------------------------------------------- */
.reach {
  position: relative; max-width: 560px; padding: 1.5rem 1.3rem 1.1rem; transform: rotate(.3deg); color: var(--slip-ink);
  background:
    var(--noise),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--sheet);
}
.reach::before, .reach::after { content: ""; position: absolute; top: -11px; width: 84px; height: 24px; background: var(--noise), var(--tape); }
.reach::before { left: 22px; transform: rotate(-5deg); }
.reach::after { right: 22px; transform: rotate(4deg); }
.reach .rh { margin: 0; font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.reach .rr { margin: .2rem 0 .8rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.reach table { width: 100%; border-collapse: collapse; }
.reach th { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-align: left; padding: 0 .4rem .4rem 0; color: var(--graphite); border-bottom: 1.5px solid var(--graphite); }
.reach td { padding: .38rem .4rem .38rem 0; border-bottom: 1px dashed var(--grid-major); font-family: var(--mono); font-size: .78rem; color: var(--slip-life); vertical-align: top; }
.reach td + td { width: 38%; font-family: var(--sans); font-size: .74rem; font-weight: 600; }
.reach .rv { color: var(--slip-once); }
.reach tr.cut td:first-child { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--slip-once); }
.reach tr.cut td + td { color: var(--slip-once); }

@media (max-width: 640px) {
  .sso { grid-template-columns: minmax(0, 1fr); padding: 1.1rem .85rem 1rem; }
  .sso .door { max-width: 300px; }
  .sso .tiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sso .tiles li { min-height: 48px; }
  .reach { padding: 1.3rem .85rem .9rem; }
}
