/* julienpalliere.com: long-form pages (essays, republished posts) */
.post{padding-block:clamp(1.5rem,4vw,3rem) clamp(2.5rem,6vw,4.5rem)}
.post-body{--col:12;max-width:48rem;overflow-wrap:anywhere;font-size:var(--fs-read);line-height:1.65;color:var(--ink-2)}
.post-body>*+*{margin-top:1em}
.post-body h1,.post-body h2,.post-body h3,.post-body h4{font-family:var(--display);font-weight:300;letter-spacing:var(--ls-display-tight);line-height:1.25;margin-top:1.8em}
.post-body h1{font-size:clamp(1.7rem,1.3rem + 1.4vw,2.3rem)}
.post-body h2{font-size:clamp(1.45rem,1.2rem + 1vw,1.9rem)}
.post-body h3{font-size:clamp(1.2rem,1.05rem + .6vw,1.5rem)}
.post-body h4{font-size:1.15rem}
.post-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--u-color);text-decoration-thickness:1px;text-underline-offset:var(--u-offset)}
.post-body a:hover{color:var(--red-ink);text-decoration-color:var(--red)}
.post-body p:empty{min-height:1em}
.post-body blockquote{margin:1.75em 0;padding-left:1.25rem;border-left:3px solid var(--red);font-family:var(--display);font-weight:300;font-size:clamp(1.25rem,1.05rem + .6vw,1.55rem);line-height:1.5;color:var(--ink-2)}
.post-body hr{width:26px;height:12px;margin:2.25em 0;border:0;border-radius:6px;background:var(--red)}
.post-body ul,.post-body ol{padding-left:1.4em}
.post-body ul{list-style:disc}
.post-body ol{list-style:decimal}
.post-body li::marker{color:var(--red)}
.post-body li+li{margin-top:.35em}
.post-body figure{margin:1.75em 0}
.post-body img{height:auto}
.post-body figure img{border-radius:var(--r-card);transition:border-radius .3s}
.post-body figure img:hover{border-radius:var(--r-hover)}
.post-body figcaption .small{font-size:inherit}
.post-body figcaption{margin-top:.5rem;font-family:var(--mono);font-size:var(--fs-mono-sm);line-height:1.45;color:var(--muted)}
.post-body figure.float-right{float:right;width:calc(var(--span,4) / var(--col) * 100%);margin:.3rem 0 1rem 1.5rem}
.post-body figure.float-left{float:left;width:calc(var(--span,4) / var(--col) * 100%);margin:.3rem 1.5rem 1rem 0}
.post-body .row{display:flex;gap:1.5rem;clear:both}
.post-body .row::after{content:"";display:table;clear:both}
.post-body .col{flex:1 1 calc(var(--span) / 12 * 100%);min-width:0}
.post-body::after{content:"";display:table;clear:both}
.post-body .tc-white{color:inherit}
.post-body .tc-red{color:var(--red-ink)}
.post-body .small{font-size:.875em}
.textcolumn{column-count:2;column-gap:2.5rem;text-align:justify;hyphens:auto}
.textcolumn h1{font-weight:400}
.textcolumn h3{text-decoration:underline;text-decoration-color:var(--red)}
.textcolumn p{word-break:break-word}
/* LinkedIn posts: the homepage grid. Date, type and the LinkedIn link in the left column; title and text in the right */
.post-grid{display:grid;grid-template-columns:minmax(0,1fr);row-gap:clamp(1rem,2vw,1.5rem)}
.post-side{display:flex;flex-wrap:wrap;align-items:center;column-gap:18px;font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}
.post-orig{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-family:var(--mono);font-size:var(--fs-mono);color:var(--red-ink);text-decoration:none}
.post-orig:hover{color:var(--ink);animation:text-flicker var(--flicker) linear reverse}
.post-orig svg{width:14px;height:14px}
.post-main h1{max-width:24em;font-family:var(--display);font-weight:300;font-size:var(--fs-h2);line-height:1.2;letter-spacing:var(--ls-display-tight);text-wrap:pretty}
.post-main .post-body{margin-top:clamp(1.75rem,4vw,2.5rem);max-width:36em}
.post-main .post-body--wide{max-width:48rem}
@media (min-width:960px){
  .post-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap)}
  .post-side{grid-column:1/4;grid-row:1;flex-direction:column;align-items:flex-start;align-self:start;position:sticky;top:calc(var(--head-h) + 1.25rem)}
  .post-side .page-back{margin-bottom:.75rem}
  .post-main{grid-column:4/13;grid-row:1;padding-top:6px}
}
@media (max-width:720px){
  .post-body .row{flex-direction:column;gap:0}
  .textcolumn{column-count:1}
  .post-body figure.float-right,.post-body figure.float-left{float:none;width:100%;margin:1.5rem 0}
}
@media (prefers-reduced-motion:reduce){.post-body figure img{transition:none}}

/* date and type sit under the title; the link to the original moves below the text on phones */
.post-meta-line{margin-top:.75rem;font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}
.post-end{display:none;margin-top:1.5rem}
@media (max-width:959.98px){
  .post-side .post-orig{display:none}
  .post-end{display:block}
  .post-main{padding-top:clamp(.5rem,2vw,1rem)}
}

/* podcast episode pages: artwork in the left column, the episode in the right, the player in its own strip */
.ep{padding-block:clamp(1.5rem,4vw,3rem) clamp(2.5rem,6vw,4.5rem)}
.ep-grid{display:grid;grid-template-columns:minmax(0,1fr);row-gap:clamp(1rem,3vw,1.5rem);margin-top:.5rem}
.ep-art{display:block;width:clamp(112px,22vw,168px);height:auto;aspect-ratio:1;border-radius:var(--r-card);object-fit:cover;background:var(--dark)}
.ep-main h1{font-family:var(--display);font-weight:300;font-size:var(--fs-h1);line-height:1.05;letter-spacing:var(--ls-display);text-wrap:balance}
.ep-meta{margin-top:.9rem;font-family:var(--mono);font-size:var(--fs-mono);line-height:1.5;color:var(--muted)}
.ep-summary{margin-top:1.25rem;max-width:34em;font-size:var(--fs-lead);line-height:1.5;color:var(--ink)}
.ep-strip{margin-top:clamp(1.75rem,4vw,2.5rem);padding:clamp(14px,2.4vw,22px) clamp(16px,3vw,28px);border-radius:var(--r-card);background:var(--cream-deep)}
.ep-strip .tracks{margin-top:0}
.ep-also{margin-top:1rem}
@media (min-width:960px){
  .ep-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap)}
  .ep-art{grid-column:1/4;grid-row:1;align-self:start}
  .ep-main{grid-column:4/13;grid-row:1}
}
.ep-body{margin-top:clamp(2rem,5vw,3rem);max-width:36em}
.ep-body h3{font-family:var(--display);font-weight:300;font-size:clamp(1.2rem,1.05rem + .6vw,1.5rem);letter-spacing:var(--ls-display-tight);line-height:1.25;margin-top:1.8em}
.ep-also{font-family:var(--mono);font-size:var(--fs-mono);color:var(--muted)}
.ep-also .post-orig{min-height:44px}
