/* The llama blog: one look for the list of posts (/blog) and every post (/blog/<post>).
   Epic Llama brand (brand/BRAND.md): cream paper, ink, Bricolage for the big words, Newsreader to read,
   Plex Mono for labels. Electric blue leads; mango is the highlighter. Photos are prints: a white border,
   a soft shadow, a slight tilt. Posts link to this file by its full path (/blog/blog.css). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#F2EDE4;color:#121212;font:400 1.25rem/1.6 'Newsreader',Georgia,serif;overflow-x:hidden}
a{color:inherit}
img,video{max-width:100%;height:auto;display:block}
:focus-visible{outline:3px solid #3751FF;outline-offset:3px;border-radius:6px}
.label{font:600 .74rem/1.4 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.11em;text-transform:uppercase}
.wrap{max-width:74rem;margin:0 auto;padding-inline:1.25rem}

.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:1.5rem}
.top img{height:2.1rem;width:auto}
.top nav{display:flex;align-items:center;gap:.9rem;white-space:nowrap}
@media (max-width:420px){.top img{height:1.8rem}.top nav{gap:.6rem;font-size:.66rem}.top nav a.pill{padding:.5rem .7rem}}
.top nav a{text-decoration:none}
.top nav a:hover{text-decoration:underline;text-underline-offset:.25em}
.top nav a.pill{padding:.55rem .9rem;border:2px solid #121212;border-radius:999px}
.top nav a.pill:hover{background:#121212;color:#F2EDE4;text-decoration:none}

/* a photo as a print */
.print{background:#fff;padding:.5rem;border-radius:6px;box-shadow:0 1px 0 rgba(18,18,18,.08),0 18px 30px -16px rgba(18,18,18,.45)}
.print img,.print video{border-radius:3px;width:100%}

/* ── a post ── */
.post-head{max-width:54rem;margin:0 auto;padding:3rem 1.25rem 0}
.post-head .label a{text-decoration:none;color:#3751FF}
.post-head h1{margin:.9rem 0 0;font:800 clamp(2.9rem,10.5vw,5.6rem)/.9 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 75,"opsz" 96;letter-spacing:-.015em;text-wrap:balance}
.post-head .dek{margin:1rem 0 0;font:italic 400 clamp(1.35rem,4.6vw,1.8rem)/1.3 'Newsreader',Georgia,serif;color:#3a3a3a;text-wrap:balance}
.by{display:flex;align-items:center;gap:.8rem;margin-top:1.6rem}
.by img{width:3rem;height:3rem;border-radius:50%;object-fit:cover;border:2px solid #121212;background:#FFC500}
.by span{display:block}
.cover{max-width:62rem;margin:2.4rem auto 0;padding-inline:1.25rem}
.cover .print{transform:rotate(-.8deg)}

.post{max-width:41rem;margin:0 auto;padding:2.6rem 1.25rem 1rem}
.post>p{margin:0 0 1.15em}
.post strong{font-weight:600}
.post a{color:#3751FF;text-decoration-thickness:.08em;text-underline-offset:.18em}
.post h2{margin:2.6em 0 .7em;font:800 clamp(1.9rem,6.6vw,2.6rem)/1 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 88,"opsz" 96;letter-spacing:-.015em;text-wrap:balance;scroll-margin-top:1.5rem}
/* the line a paragraph was building up to: big, with a swipe of highlighter */
.post .pull{margin:1.5em 0;font:700 clamp(1.5rem,5.4vw,1.95rem)/1.2 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 90,"opsz" 48;letter-spacing:-.01em;text-wrap:balance}
.post .pull span{background:linear-gradient(transparent 62%,#FFC500 62%,#FFC500 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em}
.post .aside{font-style:italic;color:#3a3a3a}
.post .sign{margin-top:2em;font:italic 500 1.35rem/1.4 'Newsreader',Georgia,serif}
/* numbered points (how-to posts): the number is the loudest thing */
.post h2 .no{display:block;margin-bottom:.12em;font:800 2.1em/.8 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 75,"opsz" 96;color:#3751FF}
/* years (the story): a mango stamp above the chapter */
.post h2 .yr{display:inline-block;margin:0 0 .5em -.2em;padding:.38em .7em .3em;background:#FFC500;border:2.5px solid #121212;border-radius:10px;box-shadow:3px 3px 0 #121212;transform:rotate(-2.5deg);font:600 .78rem/1 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.12em}
.post h2 .yr+br{display:block}

.post figure{margin:2.2em 0}
.post figcaption{margin-top:.8rem;color:#4a4a4a;text-align:center}
.post figure.small{max-width:24rem;margin-inline:auto}
.post figure.tall{max-width:27rem;margin-inline:auto}
.post figure:nth-of-type(odd) .print{transform:rotate(.7deg)}
.post figure:nth-of-type(even) .print{transform:rotate(-.6deg)}
/* photos side by side step outside the column of text */
.post .row{display:grid;gap:1.1rem;margin:2.4em 0;grid-template-columns:repeat(2,minmax(0,1fr))}
.post .row figure{margin:0}
.post .row.three figure:first-child{grid-column:1/-1}
.post .row img{aspect-ratio:var(--r,auto);object-fit:cover}

.end{max-width:54rem;margin:2.5rem auto 0;padding-inline:1.25rem}
.cta{background:#3751FF;color:#F2EDE4;border:2.5px solid #121212;border-radius:18px;box-shadow:6px 6px 0 #121212;padding:2rem 1.5rem 2.1rem}
.cta h2{margin:.5rem 0 0;font:800 clamp(2.1rem,8vw,3.4rem)/.92 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 75,"opsz" 96;letter-spacing:-.015em}
.cta p{margin:.9rem 0 0;max-width:30rem;font-size:1.15rem;line-height:1.45}
.btns{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}
.btn{display:inline-flex;align-items:center;min-height:3.25rem;padding:.9rem 1.4rem;border:2.5px solid #121212;border-radius:999px;background:#FFC500;color:#121212;text-decoration:none;box-shadow:4px 4px 0 #121212;transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #121212}
.btn.quiet{background:transparent;color:#F2EDE4;border-color:#F2EDE4;box-shadow:none}
.btn.quiet:hover{background:#F2EDE4;color:#121212;transform:none}
.next{display:grid;gap:1.2rem;align-items:center;margin-top:2.6rem;padding:1.2rem;background:#fff;border:2.5px solid #121212;border-radius:18px;text-decoration:none;transition:transform .2s cubic-bezier(.2,1.5,.4,1),box-shadow .2s}
.next:hover{transform:translate(-2px,-3px);box-shadow:6px 7px 0 #121212}
.next img{border-radius:10px;aspect-ratio:16/10;object-fit:cover;width:100%}
.next strong{display:block;margin-top:.4rem;font:800 clamp(1.5rem,5.6vw,2rem)/1 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 85,"opsz" 96;letter-spacing:-.01em}
.next .label{color:#3751FF}

/* ── the list of posts ── */
.shelf-head{padding-top:2.6rem}
.shelf-head h1{margin:.6rem 0 0;font:800 clamp(3.6rem,17vw,9rem)/.84 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 75,"opsz" 96;letter-spacing:-.02em}
.shelf-head h1 em{font-style:normal;position:relative;display:inline-block;z-index:0}
.shelf-head h1 em svg{position:absolute;left:-2%;bottom:.02em;width:104%;height:.2em;overflow:visible;z-index:-1}
.shelf-head .lede{margin:1.2rem 0 0;max-width:31rem;font-size:clamp(1.15rem,4.6vw,1.4rem);line-height:1.4}
.shelf{list-style:none;margin:0;padding:2.6rem 0 1rem;display:grid;gap:3rem}
.card{display:grid;gap:1.4rem;align-items:center;text-decoration:none}
.card .print{transition:transform .25s cubic-bezier(.2,1.5,.4,1)}
.shelf li:nth-child(odd) .print{transform:rotate(-1.5deg)}
.shelf li:nth-child(even) .print{transform:rotate(1.3deg)}
.card:hover .print{transform:rotate(0) scale(1.015)}
.card .print img{aspect-ratio:3/2;object-fit:cover}
.card .label{color:#3751FF}
.card h2{margin:.5rem 0 0;font:800 clamp(2rem,8vw,3.3rem)/.94 'Bricolage Grotesque',system-ui,sans-serif;font-variation-settings:"wdth" 80,"opsz" 96;letter-spacing:-.015em;text-wrap:balance}
.card p{margin:.8rem 0 0;font-size:1.15rem;line-height:1.45;color:#2c2c2c;max-width:32rem}
.card .go{display:inline-block;margin-top:1rem;padding-bottom:.15rem;border-bottom:2.5px solid #FFC500;color:#121212}
.more{margin:2rem 0 0;padding:1.4rem 1.5rem;border:2.5px dashed rgba(18,18,18,.4);border-radius:18px;font-size:1.15rem;line-height:1.45}
.more a{color:#3751FF}

.foot{margin-top:3.5rem;background:#121212;color:#F2EDE4;padding-block:2rem 2.2rem}
.foot .wrap{display:flex;flex-wrap:wrap;gap:1rem 1.6rem;align-items:center;justify-content:space-between}
.foot nav{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem}
.foot a{text-decoration:none}
.foot a:hover{color:#FFC500}
.foot p{margin:0;opacity:.7}

@media (min-width:760px){
  .wrap{padding-inline:2.5rem}
  .top{padding-top:2rem}
  .post-head{padding-top:4.5rem}
  .post{padding-top:3.4rem}
  .post .row{margin-inline:-7rem;gap:1.4rem}
  .post .row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .post .row.three figure:first-child{grid-column:auto}
  .post .row.four{grid-template-columns:repeat(4,minmax(0,1fr));margin-inline:-9rem}
  .post figure.wide{margin-inline:-4rem}
  .cta{padding:2.8rem 2.6rem 3rem}
  .next{grid-template-columns:15rem minmax(0,1fr);padding:1.4rem}
  .card{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:3rem}
  .shelf li:nth-child(even) .card .print{order:2}
  .shelf{gap:4.5rem;padding-top:3.6rem}
}
@media (max-width:1100px) and (min-width:760px){.post .row,.post .row.four{margin-inline:-2rem}.post figure.wide{margin-inline:-1rem}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.next,.card .print{transition:none}}
