/* julienpalliere.com: project write-ups (/work/<project>). Pieces every write-up shares; spacing comes from v2.css */
.sec-body > * + *{margin-top:clamp(.9rem,1.8vw,1.15rem)}
.sec-body p:not(.lead):not(.meta):not(.label):not(.entry-meta):not(.entry-text),.steps li,.bullets li{max-width:36em;font-size:var(--fs-read);line-height:1.65;color:var(--ink-2)}
.sec-body p a,.sec-body li a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--u-color);text-decoration-thickness:1px;text-underline-offset:var(--u-offset)}
.sec-body p a:hover,.sec-body li a:hover{color:var(--red-ink);text-decoration-color:var(--red)}
.sec-body strong{color:var(--ink)}
.sec-body code{font-family:var(--mono);font-size:.9em}
.lead{max-width:34em;font-size:var(--fs-lead);line-height:1.5;color:var(--ink)}
.meta{font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}
.label{font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}

/* numbered points, read top to bottom */
.steps{display:grid;gap:.3rem;max-width:36em;margin-bottom:0;padding:0;list-style:none;counter-reset:step}
.steps li{position:relative;padding-left:2.4rem;color:var(--ink-2)}
.steps li::before{counter-increment:step;content:counter(step,decimal-leading-zero);position:absolute;left:0;top:.2em;font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--red-ink)}

/* plain points */
.bullets{display:grid;gap:.15rem;max-width:36em;margin-bottom:0;padding:0;list-style:none}
.bullets li{position:relative;padding-left:1.4rem;color:var(--ink-2)}
.bullets li::before{content:"";position:absolute;left:.2rem;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--red)}

/* video, screenshot and code */
.video-frame{padding:clamp(6px,1.2vw,10px);border-radius:var(--r-card);background:var(--dark)}
.video-frame video{display:block;width:100%;height:auto;aspect-ratio:16/10;border-radius:var(--r-inner);background:var(--dark)}
.shot img{display:block;width:100%;height:auto;border-radius:var(--r-card);background:var(--dark)}
.shot figcaption{margin-top:.5rem;font-family:var(--mono);font-size:var(--fs-mono-sm);line-height:1.45;color:var(--muted)}
.code{max-width:100%;overflow-x:auto;padding:clamp(14px,2.4vw,22px);border-radius:var(--r-card);background:var(--dark);color:var(--cream);font-family:var(--mono);font-size:var(--fs-mono-sm);line-height:1.55;white-space:pre}
.code code{font-size:inherit}

/* an image floated to the right of a section's first paragraph */
.float-shot{float:right;width:min(42%,280px);margin:.3rem 0 1rem clamp(1rem,2.4vw,1.75rem)}
.float-shot img{display:block;width:100%;height:auto;border-radius:var(--r-card);background:var(--dark)}
.sec-body > .float-shot + p{margin-top:0}
.sec-body::after{content:"";display:table;clear:both}

/* a tool stack: whole names only, dots between on wide screens, one per line on phones */
.stack{display:flex;flex-wrap:wrap;row-gap:.2rem;margin-bottom:0;padding:0;list-style:none;font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}
.stack li{white-space:nowrap}
.stack li + li::before{content:"\00b7";margin-inline:.6em}
.stack a{color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--u-color);text-decoration-thickness:1px;text-underline-offset:var(--u-offset)}
.stack a:hover{color:var(--red-ink);text-decoration-color:var(--red)}
@media (max-width:719.98px){
  .stack{display:grid}
  .stack li + li::before{content:none}
}
