/* /software-factory in the crayon language: the kit (kit/kit.css) frames the drawings and the
   generic Par UI; this file only lays them out on the page. Every picture comes from the image
   model; nothing here draws one. */

.sfi .sf-h1 { max-width: 13em; }
.sfi .sf-hero .pil-art { max-width: 1120px; }
.sfi .sf-answer { margin-top: 20px; }

/* the five steps: drawn icons instead of the old digital ones */
.sfi .sfi-steps { margin-top: 44px; }
.sfi .sfi-steps::before { top: 64px; }
.sfi .sfi-steps img { height: 128px; width: auto; object-position: left bottom; }

/* whole apps: the drawing beside the three steps, then Mei's own app */
.sfi-apps-build { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 40px; }
.sfi-apps-build .pil-art { margin-top: 0; }

/* voice: words beside the drawing */
.sfi-split { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sfi-split .pil-art { margin-top: 0; }

/* the generic Par UI: the board and the message Par writes */
.sfi-ui { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 36px; max-width: 1080px; }
.sfi-live { margin-left: auto; }
.sfi-ui .pil-ui-list li > img:first-child { height: 40px; width: 44px; object-fit: contain; }
.sfi-msg { align-self: center; }
.sfi-msg .pil-ui-top { padding-block: 10px; }
.sfi-msg-brain { width: 54px; height: auto; margin: -6px 0; }
.sfi-msg-text { margin: 0; padding: 16px 18px 4px; font: 400 21px/1.35 var(--pil-display); }
.sfi-msg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 14px 18px 20px; }
.sfi-btn-quiet { background: var(--pil-paper); }

.sfi .sfi-wide { max-width: 1120px; }
.sfi .sfi-facts { margin-top: 32px; max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }

@media (max-width: 860px) {
  .sfi-apps-build, .sfi-split, .sfi-ui, .sfi .sfi-facts { grid-template-columns: minmax(0, 1fr); }
  .sfi .sfi-steps img { height: 96px; }
}

/* home: the whole-apps line under the factory drawing */
@media (min-width: 861px) { .par-sf-home.sfi .sf-home-apps { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.par-sf-home .sf-home-apps .pil-art { margin: 0; }
.par-sf-home.sfi .sf-band-grid .pil-art { margin-top: 0; }

/* the steps never fade their words: only the drawn icon moves when the row comes into view */
.sfi .sf-line[data-step] li[data-later] { opacity: 1; transform: none; }

/* chapter 03: "Vibe coding vibing." with the old word crossed out, right above the h2 */
.sfi .sfi-vibe { margin: 0 0 10px; }

/* why build it with Par: the site's comparison table (the pattern of How Par works, section 08), thin rules,
   short sentences, Par's column tinted under a dark tag; on phones each row becomes a list with the column
   name on every cell */
.par-sf { --sf-faint: #72674f; }
.sf-table { width: 100%; margin-top: clamp(32px, 4vw, 48px); border-collapse: collapse; font-size: 14.5px; line-height: 1.42; }
.sf-table th, .sf-table td { text-align: left; vertical-align: top; padding: 13px 14px; border-top: 1px solid var(--sf-border); }
.sf-table thead th { font: 400 19px var(--sf-display); border-top: 0; padding-bottom: 10px; }
.sf-table thead td { border-top: 0; }
.sf-table thead th.is-par { background: var(--sf-ink); color: #fff8ee; border-radius: 10px 10px 0 0; }
.sf-table tbody th { font: 12px/1.45 var(--sf-mono); color: var(--sf-muted); font-weight: 400; width: 17%; }
.sf-table td { color: var(--sf-muted); }
.sf-table td.is-par { color: var(--text, #211a10); background: rgba(43, 35, 27, .05); width: 24%; }
.sf-note-win { margin: 22px 0 0; max-width: 62em; font: 13px/1.6 var(--sf-mono); color: var(--sf-faint); }
.sf-note-win + .sf-note-ill { margin-top: 8px; }
.sf-note-ill { margin: 18px 0 0; font: 11.5px/1.6 var(--sf-mono); color: var(--sf-faint); }
@media (max-width: 859px) {
  .sf-table, .sf-table tbody, .sf-table tr, .sf-table th, .sf-table td { display: block; width: auto !important; }
  .sf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sf-table tr { padding: 4px 0 10px; border-top: 1px solid var(--sf-border); }
  .sf-table tbody th { border-top: 0; padding: 12px 0 4px; font-size: 12px; color: var(--text, #211a10); }
  .sf-table td { border-top: 0; padding: 6px 0 6px 132px; position: relative; min-height: 28px; }
  .sf-table td::before { content: attr(data-col); position: absolute; left: 0; top: 7px; width: 120px; font: 11px/1.4 var(--sf-mono); color: var(--sf-muted); }
  .sf-table td.is-par { padding: 9px 12px 9px 132px; border-radius: 8px; }
  .sf-table td.is-par::before { left: 12px; top: 10px; color: var(--sf-ink); }
}
@media (max-width: 419px) {
  .sf-table td, .sf-table td.is-par { padding: 22px 0 6px; }
  .sf-table td.is-par { padding: 24px 12px 9px; }
  .sf-table td::before { top: 4px; width: auto; }
  .sf-table td.is-par::before { top: 7px; }
}
