/* =====================================================================
   Paper and Ink · essays/the-phone-was-part-of-the-system.css
   "The Phone Was Part of the System": the figure only this dispatch uses.
   Loaded after the shared stylesheets; everything shared lives in css/.
   ===================================================================== */

/* Layout: one 64ch reading column on grained paper; one paper object breaks out to 860px:
   a critical systems register whose last column, and a handwritten missing row, show the phone
   it never listed, with a note from Wednesday afternoon clipped beside it (Figure 1).
   Gold = the systems on your list; blue = the phone in every pocket; other ink is plain. */

/* ---- 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 register and the note ------------------------------------ */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.regfig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: 28px 34px; align-items: start; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.regfig .reg {
  position: relative; background: var(--noise), var(--sheet); color: var(--slip-ink); padding: 1.2rem 1.3rem 1.3rem; transform: rotate(-.5deg);
  font-family: var(--mono); font-size: .74rem; line-height: 1.5; border-top: 6px solid var(--graphite);
  box-shadow: 0 1px 1px var(--shadow), 0 10px 24px -12px var(--shadow-deep); animation: fade .6s ease .1s both;
}
.regfig .rh { font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .8; }
.regfig .rn { font-size: .68rem; opacity: .75; margin: .1rem 0 .8rem; }
.regfig .rrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1fr); gap: .7rem; padding: .3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--slip-ink) 22%, transparent); }
.regfig .rhead { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; }
.regfig .once { color: var(--slip-once); }
.regfig .life { color: var(--slip-life); }
/* the blue column is filled in after the review, so it inks in later */
.regfig .rrow .life { animation: fade .5s ease 1.4s both; }
.regfig .rhead .life { animation-delay: 1.2s; }
.regfig .addline { margin: .9rem 0 0; color: var(--slip-life); font-size: 1.12rem; line-height: 1.3; animation: fade .7s ease 2.4s both; }
.regfig .addline b { font-style: normal; font-weight: 500; }
.regfig .rstamps { display: flex; justify-content: flex-end; gap: 1.4rem; margin-top: .8rem; }
.regfig .stamp.s1 { color: var(--slip-once); transform: rotate(-6deg); animation-delay: .7s; }
.regfig .stamp.s2 { color: var(--slip-life); transform: rotate(5deg); animation-delay: 3s; }
/* the note clipped beside the register: a small yellowed slip, taped at the top */
.regfig .memo {
  position: relative; margin-top: 46px; background: var(--noise), var(--slip); color: var(--slip-ink); padding: 1.1rem 1rem 1rem;
  transform: rotate(2deg); box-shadow: 0 1px 1px var(--shadow), 0 10px 24px -12px var(--shadow-deep);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; animation: fade .7s ease 1.9s both;
}
.regfig .memo::before, .regfig .memo::after { content: ""; position: absolute; top: -11px; width: 70px; height: 22px; background: var(--noise), var(--tape); }
.regfig .memo::before { left: 18px; transform: rotate(-4deg); }
.regfig .memo::after { right: 18px; transform: rotate(4deg); }
.regfig .memo p { margin: 0; }
.regfig .memo .mh { font-family: var(--mono); font-style: normal; font-size: .7rem; letter-spacing: .08em; margin-bottom: .4rem; opacity: .8; }
#fig1 + figcaption .btn { margin-left: 4px; }

@media (max-width: 760px) {
  .regfig { grid-template-columns: minmax(0, 1fr); }
  .regfig .memo { margin: 0 6px 0 auto; max-width: 300px; }
}

/* Phone mode: the register loses its tilt, and each row puts the system name on its own line above
   where it runs, its owner and whether it needs a phone; the note sits below. Small text stays 11px or more. */
@media (max-width: 560px) {
  .regfig .reg { padding: 1rem .9rem 1.1rem; font-size: .7rem; transform: none; }
  .regfig .rrow { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); gap: .15rem .6rem; }
  .regfig .rrow > span:first-child { grid-column: 1 / -1; }
  .regfig .rhead > span:first-child { display: none; }
  .regfig .rhead { font-size: .7rem; letter-spacing: .06em; }
  .regfig .rh, .regfig .rn, .regfig .memo .mh { font-size: .7rem; }
  .regfig .addline { font-size: 1.05rem; }
}
