/* Distorted Memories: Journal pages (blog.html and blog-*.html). Loaded after site.css, only on the Journal pages.
   Reuses the site tokens (--ink, --paper, --k1..--k4, --sh, --panel) so it follows the colour dots like every other page. */

/* hero: post titles are long sentences, so they get a calmer size than the 112px page titles */
.pg-post .hero{--hb:var(--k1)}
.pg-post .hero h1{font-size:clamp(32px,4.6vw,64px);line-height:1.02;letter-spacing:-.035em}
.pg-post .hero .lede{max-width:760px}

/* the post: one paper panel with ink text, so a long read stays easy on a phone */
.post{max-width:840px;margin:44px auto 0;padding:var(--panel);background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:28px;box-shadow:var(--sh)}
.post :focus-visible{outline-color:var(--ink)}
.post p{margin:0 0 1.1em;font-size:19px;line-height:1.65}
.post p.intro{font-size:21px;line-height:1.5;font-weight:500}
.post h2{font-size:clamp(26px,3.4vw,40px);line-height:1.05;letter-spacing:-.035em;margin:1.7em 0 .55em}
.post h2:first-child{margin-top:0}
.post h3{margin:1.4em 0 .4em}
.post ul{margin:0 0 1.2em;padding-left:1.2em}
.post li{margin:0 0 .7em;font-size:19px;line-height:1.6}
.post strong{font-weight:800}
.post a{text-decoration-color:var(--k1);text-decoration-thickness:3px;text-underline-offset:3px;overflow-wrap:anywhere}
.post>:last-child{margin-bottom:0}

/* quick answers sit under the post, on the page background */
.pg-post .qa{max-width:840px;margin-left:auto;margin-right:auto}
.pg-post section[aria-labelledby="qa"] h2{max-width:840px;margin-left:auto;margin-right:auto}
.pg-post .pager{max-width:840px;margin-left:auto;margin-right:auto}

/* the index: one card per post */
.posts{list-style:none;margin:40px 0 0;padding:0;display:grid;gap:28px;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr))}
.pcard .bar{display:block;height:16px;border-bottom:3px solid var(--ink);background:var(--k1);flex:none}
.posts li:nth-child(4n+2) .bar{background:var(--k2)}
.posts li:nth-child(4n+3) .bar{background:var(--k3)}
.posts li:nth-child(4n+4) .bar{background:var(--k4)}
.pcard .meta{padding:20px 22px 24px}
.pcard .sub{margin:0 0 10px}
.pcard .name{font-size:1.45rem;line-height:1.08;letter-spacing:-.025em;margin:0}
.pcard .d{margin:12px 0 0;font-size:16px;line-height:1.5}
.pcard .more{display:block;margin-top:16px;font:700 12px var(--mono);letter-spacing:.08em;text-transform:uppercase}

@media (max-width:760px){
  .post p,.post li{font-size:18px;line-height:1.6}
  .post p.intro{font-size:19px;line-height:1.5}
}
/* card titles are small, so they skip the big heading extrusion that site-fx.js puts on every h2 */
.fxon h2.name{text-shadow:none}
