/* lineage.slopped.site. The brand (slopped-brand): paper, ink, hairlines, Archivo Black headings, acid as a
   highlighter (never as text on paper). The tree is drawn like a family tree on paper: ink lines between cards, and
   the line you're tracing gets an acid highlighter stroke behind the ink. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root { color-scheme: light; --paper: #f4f1e8; --ink: #171815; --acid: #e3ff59; --muted: #6b6b62; --line: #d4d2c9; --card: #fbfaf5; --head: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Arial, Helvetica, sans-serif; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible, .viewport:focus-visible, .dnode:focus-visible { outline: 3px solid #728600; outline-offset: 4px; }
[hidden] { display: none !important; }
html:not(.can-install) [data-install] { display: none !important; }
h1, h2, h3 { font-synthesis: none; }
code, pre { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wrap { max-width: 1440px; margin: auto; padding: 0 5%; }
.muted { color: var(--muted); }

/* header: the masthead (slopped-brand, "Subsite header") */
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100px; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; min-width: 0; }
.masthead .brand { display: block; flex: none; }
.masthead .brand img { display: block; width: auto; height: 30px; }
.site-name { display: inline-flex; align-items: center; min-height: 42px; margin-left: 16px; padding-left: 17px; background: linear-gradient(var(--line), var(--line)) left center / 1px 22px no-repeat; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; white-space: nowrap; }
.site-name:hover { text-decoration: underline; text-underline-offset: 4px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 42px; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 30px; background: transparent; font-size: 14px; text-decoration: none; }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.install-icon { width: 42px; padding: 0; }
@media (max-width: 760px) {
  header { height: 80px; }
  .masthead .brand img { height: 24px; }
  .site-name { margin-left: 11px; padding-left: 12px; font-size: 15px; background-size: 1px 18px; }
  nav { gap: 14px; }
}
@media (max-width: 430px) { nav a[href="/#method"] { display: none; } }

/* type */
h1 { margin: 0; font-family: var(--head); font-weight: 1000; letter-spacing: -.07em; line-height: 1; }
h2 { font-family: var(--head); font-weight: 1000; letter-spacing: -1px; line-height: 1.05; }
.lede { max-width: 760px; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; letter-spacing: -.4px; }
.facts { color: var(--muted); font-size: 14px; }
.facts code { color: var(--ink); }
q { quotes: "“" "”"; }

/* home */
.home .hero { padding: 60px 0 36px; }
.home h1 { font-size: clamp(64px, 12vw, 170px); }
.home .lede { margin: 26px 0 12px; }
.trees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.tree-card { border-bottom: 1px solid var(--line); }
.tree-card > a { display: block; padding: 28px 0 22px; text-decoration: none; }
.tree-card h2 { margin: 0 0 4px; font-size: clamp(26px, 2.6vw, 36px); }
.tree-card > a:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tree-card .task { margin: 0 0 16px; color: var(--muted); }
.strip { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.strip li { position: relative; flex: 0 0 auto; width: 120px; margin-right: 26px; font-size: 12px; line-height: 1.3; }
.strip li + li::before { content: ""; position: absolute; top: 60px; left: -26px; width: 26px; border-top: 1.5px solid var(--ink); }
.strip img { display: block; width: 120px; height: 120px; border-radius: 9px; object-fit: cover; }
.strip span { display: block; margin-top: 7px; color: var(--muted); }
.strip .slip { display: flex; flex-direction: column; }
.strip .slip b, .strip .slip i { display: block; }
.strip .slip b { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.strip .slip i { height: 120px; margin-top: -16px; padding: 22px 10px 10px; overflow: hidden; border: 1px solid var(--ink); border-radius: 9px; background: var(--card); font-style: normal; font-size: 12px; }
.strip .slip b { position: relative; z-index: 1; align-self: flex-start; margin: 8px 0 0 8px; padding: 2px 7px; border-radius: 99px; background: var(--paper); }
.strip .slip.ok b { background: var(--acid); }
.strip .slip.plain i { margin-top: 0; padding-top: 10px; }
.strip .slip.bad b { background: var(--ink); color: var(--paper); }
.method { padding: 56px 0 30px; }
.method h2 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 52px); }
.method .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.method h3 { margin: 0 0 8px; font-size: 16px; }
.method p { margin: 0; color: #3d3d37; font-size: 15px; }
.method .models { margin-top: 26px; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .trees { grid-template-columns: minmax(0, 1fr); } .method .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .method .cols { grid-template-columns: 1fr; } .strip li { width: 96px; margin-right: 18px; } .strip li + li::before { top: 48px; left: -18px; width: 18px; } .strip img { width: 96px; height: 96px; } .strip .slip i { height: 96px; } }

/* tree page */
.tree-page .intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; padding: 44px 0 26px; }
.tree-page .intro > * { grid-column: 1; }
.tree-page h1 { font-size: clamp(42px, 6.4vw, 92px); letter-spacing: -.06em; }
.tree-page .task { margin: 18px 0 6px; font-size: 18px; }
.tree-page .lede { margin: 6px 0 8px; font-size: clamp(17px, 1.6vw, 20px); }
.subject { grid-column: 2 !important; grid-row: 1 / span 4; width: 200px; margin: 0; }
.subject img { display: block; width: 200px; height: auto; border-radius: 9px; }
.subject figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .subject { grid-column: 1 !important; grid-row: auto; display: flex; gap: 12px; align-items: flex-end; width: auto; margin-top: 14px; } .subject img { width: 110px; } }

/* the vertical lineage (phones, no JS) */
.lineage { padding-bottom: 20px; }
.node { position: relative; margin: 0 0 18px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.node[data-depth="1"] { margin-left: 14px; } .node[data-depth="2"] { margin-left: 28px; } .node[data-depth="3"] { margin-left: 42px; } .node[data-depth="4"] { margin-left: 56px; }
.node:not([data-depth="0"])::before { content: ""; position: absolute; top: -19px; left: -9px; width: 9px; height: 46px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); border-bottom-left-radius: 8px; }
.node:target { border-color: var(--ink); }
.gen { margin: 0 0 2px; color: var(--muted); font-size: 12px; letter-spacing: .3px; }
.node h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.8px; }
.applied { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { max-width: 100%; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border: 1px solid var(--ink); border-radius: 99px; font-size: 12.5px; line-height: 1.25; text-decoration: none; }
a.chip:hover { background: var(--ink); color: var(--paper); }
.chip.mod { background: var(--acid); border-color: var(--acid); }
.chip.file { border-color: var(--line); color: var(--muted); }
.out { display: block; width: 100%; max-width: 512px; height: auto; border-radius: 9px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 0; }
.pair img { display: block; width: 100%; height: auto; border-radius: 9px; }
.pair figcaption { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.text { padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--paper); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.text.spec, .text.sound, .raw .text { max-height: 420px; overflow: auto; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.check { margin: 0 0 10px; padding: 10px 14px; border-radius: 9px; font-size: 14px; }
.check.ok { background: var(--acid); }
.check.bad { background: var(--ink); color: var(--paper); }
.check p { margin: 0; }
.check ul { margin: 8px 0 0; padding: 0; list-style: none; }
.check li { margin: 3px 0; font-size: 13px; }
.check li span { display: inline-block; min-width: 34px; font-weight: 700; }
.play { margin: 8px 0; }
.play canvas { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 10px; border-radius: 9px; touch-action: none; }
.note { margin: 14px 0 6px; }
.lbl { margin: 10px 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.note .lbl { margin-top: 0; }
.verdict { margin: 0; font-size: 15px; }
.verdict b { margin-right: 4px; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 99px; font-size: 13px; }
.v-better b { background: var(--acid); border-color: var(--acid); }
.v-worse b, .v-broken b { background: var(--ink); color: var(--paper); }
details { margin: 10px 0 0; }
summary { min-height: 30px; padding: 4px 0; cursor: pointer; font-size: 14px; font-weight: 700; }
details.before summary, details.raw summary, .steps details summary { font-weight: 400; color: #3d3d37; }
pre { margin: 0; padding: 10px 12px; max-height: 340px; overflow: auto; border-radius: 6px; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.diffsum { margin: 4px 0 6px; font-size: 13px; }
.diffsum .plus { padding: 0 5px; background: var(--acid); }
.diffsum .minus { text-decoration: line-through; color: var(--muted); }
.diff { padding: 10px 12px; border-radius: 6px; background: var(--paper); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto; }
.diff ins { background: var(--acid); text-decoration: none; }
.diff del { color: var(--muted); text-decoration: line-through; }
.diff .fold { color: var(--muted); font-style: italic; }
.diff details.big { display: inline; margin: 0; }
.diff details.big summary { display: inline; padding: 0 6px; background: var(--acid); font-weight: 700; font-size: 12px; }
.diff details.big.del summary { background: var(--line); }
.steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps > li { margin: 0 0 12px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.step { margin: 0; font-size: 14px; }
.step code { font-size: 12px; }
.meta { margin: 2px 0 6px; color: var(--muted); font-size: 12px; }
.refs { display: flex; gap: 6px; margin: 0; }
.refs img, .steps li > img { display: block; border-radius: 6px; object-fit: cover; }
.queued { padding: 14px; border: 1px dashed var(--muted); border-radius: 9px; color: var(--muted); }
.wall { margin: 10px 0 0; padding: 22px 0; border-top: 1px solid var(--line); }
.wall h2 { margin: 0 0 6px; font-size: 22px; }
.wall p { margin: 0; max-width: 760px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 10px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; min-width: 0; min-height: 42px; font-weight: 700; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager a:hover { text-decoration: underline; }

/* the diagram (desktop, tree.js) */
.stage { position: relative; }
.viewport { -webkit-user-select: none; user-select: none; position: relative; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper) radial-gradient(circle, #d4d2c9 1px, transparent 1.2px) 0 0 / 22px 22px; cursor: grab; touch-action: none; }
.viewport.drag { cursor: grabbing; }
.canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.canvas svg { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.canvas .hl { fill: none; stroke: var(--acid); stroke-width: 12; stroke-linecap: round; }
.canvas .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.canvas .ln.q { stroke-dasharray: 4 4; stroke: var(--muted); }
.dnode { position: absolute; width: 176px; padding: 0; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); text-align: left; box-shadow: 0 1px 0 var(--ink); }
.dnode:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--ink); }
.dnode.on { box-shadow: 0 0 0 4px var(--acid), 0 3px 0 4px var(--ink); }
.dnode img { display: block; width: 174px; height: 174px; border-radius: 9px 9px 0 0; object-fit: cover; }
.dnode .snip { display: block; height: 110px; padding: 10px 11px 0; overflow: hidden; border-radius: 9px 9px 0 0; font-size: 12px; line-height: 1.35; color: #3d3d37; }
.dnode .res { display: inline-block; margin: 10px 11px 0; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.dnode .res.ok { background: var(--acid); }
.dnode .res.bad { background: var(--ink); color: var(--paper); }
.dnode .lab { display: block; padding: 8px 11px 9px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.dnode .vd { display: block; padding: 0 11px 9px; margin-top: -4px; color: var(--muted); font-size: 12px; }
.dnode .vd b { padding: 0 6px; border-radius: 99px; color: var(--ink); }
.dnode .vd.better b { background: var(--acid); }
.dnode .vd.worse b, .dnode .vd.broken b { background: var(--ink); color: var(--paper); }
.controls { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; gap: 6px; }
.controls .pill { min-width: 42px; padding: 0 12px; background: var(--paper); font-size: 16px; }
@media (min-width: 1000px) {
  body.diagram .work { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 22px; align-items: start; }
  body.diagram .stage { position: sticky; top: 16px; height: calc(100vh - 32px); min-height: 520px; }
  body.diagram .lineage { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 0; overscroll-behavior: contain; }
  body.diagram .node { display: none; margin: 0; }
  body.diagram .node.on { display: block; }
  body.diagram .node::before { display: none; }
}

footer { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding-top: 30px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .brand img { display: block; width: auto; height: 30px; }
footer p { margin: 0; }
@media (max-width: 600px) { footer { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .dnode:hover { transform: none; } }
