/* blog.css - the post layer. Loads after yaara.css (tokens) and
   shell.css (rhythm, halo .h2, header, footer, .rv/.wipe motion). */
main.post{padding-top:64px}

/* ---- post hero ---- */
.phero{padding-block:clamp(40px,6vh,84px) clamp(30px,4vh,54px)}
.phero .in{display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(28px,4vw,64px);align-items:center}
@media(max-width:900px){.phero .in{grid-template-columns:1fr;gap:26px}}
.phead h1{font-size:clamp(30px,3.8vw,58px);line-height:1.14}
.byline{margin:20px 0 0;font:500 16.5px/1.7 var(--f);color:var(--ink-3)}
.phead .sub{margin-top:18px;max-width:34em}
.phf{margin:0;border-radius:5px;overflow:hidden;box-shadow:var(--glow-soft);background:var(--card)}
.phf img{width:100%;aspect-ratio:4/5;object-fit:cover}
@media(max-width:900px){.phf img{aspect-ratio:3/2}}

/* ---- the editorial measure: a 62ch column that figures may break out of ---- */
.body{display:grid;grid-template-columns:1fr min(62ch,100%) 1fr;padding-bottom:clamp(30px,5vh,60px)}
.body>*{grid-column:2}
.body>.wide{grid-column:1/-1;justify-self:center;width:min(100%,880px)}
.body p{font-size:17.5px;line-height:1.95;color:var(--ink);margin:0 0 20px}
.body p.lead{font-size:19px;line-height:1.9;color:var(--ink-2)}
.body a{color:var(--honey-deep);text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:1px;text-decoration-color:rgba(142,107,57,.4);
  transition:text-decoration-color var(--t-ui) var(--ease-out),color var(--t-ui) var(--ease-out)}
.body a:hover{color:var(--ink);text-decoration-color:var(--honey)}
.body h2{margin:clamp(46px,6vh,74px) 0 18px}
.body h3{font:600 clamp(19px,1.7vw,24px)/1.4 var(--f);color:var(--ink);
  letter-spacing:-.01em;margin:38px 0 14px}
.body>*:first-child{margin-top:0}

/* inline link row for a link the paragraph never names out loud */
.ilinks{margin:0 0 24px !important;font-size:16px;line-height:1.9;color:var(--ink-3)}
.ilinks i{font-style:normal;margin:0 10px;opacity:.55}

/* ---- figures ---- */
.fig{margin:clamp(30px,4vh,50px) auto;border-radius:5px;overflow:hidden;
  box-shadow:var(--glow-soft);background:var(--card)}
.fig img{width:100%;aspect-ratio:16/10;object-fit:cover}
.ba2{margin:clamp(30px,4vh,50px) auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ba2 .sh{position:relative;border-radius:5px;overflow:hidden;box-shadow:var(--glow-soft);background:var(--card)}
.ba2 img{width:100%;aspect-ratio:1;object-fit:cover}
.ba2 .lab{position:absolute;top:12px;inset-inline-start:12px;font:500 15px/1 var(--f);
  color:var(--ink);background:rgba(250,247,242,.92);border-radius:3px;padding:7px 11px}
.ba2 .lab-a{color:var(--honey-deep)}

/* pack shots for a product the block discusses. No box, no border, no chip. */
.packs{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.8vw,26px);
  margin:10px auto clamp(30px,4.5vh,50px)}
@media(max-width:760px){.packs{grid-template-columns:repeat(2,1fr)}}
.pk{display:block;text-align:center;color:var(--ink);text-decoration:none !important}
.pk .ph{display:block;position:relative;aspect-ratio:1;overflow:hidden;
  transition:transform var(--t-ui) var(--ease-out)}
.pk:hover .ph{transform:translateY(-5px)}
.pk img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.pk .nm{font:600 16px/1.5 var(--f);color:var(--ink);margin-top:12px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em;
  transition:color var(--t-ui) var(--ease-out)}
.pk:hover .nm{color:var(--honey-deep)}

/* ---- pull quote ---- */
.pq{margin:clamp(34px,5vh,60px) auto;padding:0;position:relative;max-width:760px}
.pq p{font-family:var(--disp);font-weight:300;font-size:clamp(22px,2.5vw,34px);
  line-height:1.42;color:var(--ink);margin:0;padding-inline-start:26px;
  border-inline-start:2px solid var(--honey);letter-spacing:.004em;text-wrap:balance}

/* ---- checklist card ---- */
.card{margin:clamp(34px,5vh,58px) auto;background:var(--card);border:1px solid var(--line);
  border-radius:5px;padding:clamp(24px,3vw,38px);box-shadow:var(--glow-soft)}
.card .ct{font:600 clamp(20px,2vw,27px)/1.3 var(--f);color:var(--ink);margin:0 0 18px;letter-spacing:-.01em}
.card ul{list-style:none;margin:0;padding:0}
.card li{position:relative;padding-inline-start:30px;margin-bottom:13px;
  font-size:16px;line-height:1.8;color:var(--ink-2)}
.card li:last-child{margin-bottom:0}
.card li::before{content:"";position:absolute;inset-inline-start:4px;top:.42em;width:6px;height:11px;
  border-left:1.7px solid var(--honey);border-bottom:1.7px solid var(--honey);
  transform:rotate(-45deg)}

/* ---- faq ---- */
.faq{margin:clamp(40px,6vh,70px) auto 0}
.faq .h2{margin:8px 0 22px}
.faq details{border-top:1px solid var(--line)}
.faq details:last-of-type{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:20px 0 20px 34px;position:relative;
  font:600 16.5px/1.6 var(--f);color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;inset-inline-end:8px;top:28px;width:9px;height:9px;
  border-right:1.5px solid var(--honey);border-bottom:1.5px solid var(--honey);
  transform:rotate(45deg);transition:transform var(--t-ui) var(--ease-out)}
.faq details[open] summary::after{transform:rotate(225deg)}
.faq summary:hover{color:var(--honey-deep)}
.faq .a{padding:0 0 22px;font-size:16px;line-height:1.9;color:var(--ink-2);max-width:60ch}

/* ---- cta: a hairline and whitespace, never a panel ---- */
.pcta{border-top:1px solid var(--line);padding-block:clamp(52px,7.5vh,100px)}
.pcta .in{max-width:740px}
.pcta .sub{max-width:58ch;margin-top:16px}
.pcta .sub+.sub{margin-top:12px}
.pcta .cta{margin-top:30px;flex-wrap:wrap;gap:14px}

/* ---- post cards: the blog home, the end of a post, the landing teaser ---- */
.bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.4vw,36px);
  margin-top:clamp(38px,5vh,64px)}
.bgrid.two{grid-template-columns:repeat(2,1fr);gap:clamp(20px,2.8vw,44px)}
@media(min-width:961px){
  .bgrid>*:nth-child(3n+2){margin-top:46px}
  .bgrid>*:nth-child(3n+3){margin-top:18px}
  .bgrid.two>*:nth-child(2n){margin-top:46px}}
@media(max-width:960px){.bgrid,.bgrid.two{grid-template-columns:1fr;gap:34px}}
.bcard{display:block;color:var(--ink);text-decoration:none !important}
.bcard .ph{display:block;position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:5px;
  background:var(--card);box-shadow:0 18px 44px -30px rgba(60,40,26,.55);
  transition:transform .55s var(--ease-out),box-shadow .55s var(--ease-out)}
.bgrid.two .bcard .ph{aspect-ratio:3/2}
.bcard:hover .ph{transform:translateY(-6px);box-shadow:0 34px 64px -28px rgba(60,40,26,.6)}
.bcard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease-out)}
.bcard:hover img{transform:scale(1.045)}
.bcard .t{display:block;font:600 clamp(19px,1.55vw,25px)/1.38 var(--f);color:var(--ink);
  letter-spacing:-.015em;margin-top:20px;text-wrap:balance;
  transition:color var(--t-ui) var(--ease-out)}
.bcard:hover .t{color:var(--honey-deep)}
.bcard .x{font:400 16.5px/1.75 var(--f);color:var(--ink-2);margin-top:10px;max-width:38em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:960px){.bcard .ph,.bgrid.two .bcard .ph{aspect-ratio:4/3}}

/* ---- the blog home ---- */
.ihero{padding-block:clamp(52px,9vh,120px) 0}
.ihero h1{font-size:clamp(44px,6vw,88px)}
.ihero .sub{margin-top:18px;max-width:36em}
.ilist{padding-bottom:clamp(46px,7vh,92px)}
.bhome .pcta{padding-block:clamp(52px,7.5vh,100px) clamp(64px,9vh,120px)}

/* ---- the end of a post: the next two, then the way back ---- */
.pnav{border-top:1px solid var(--line);padding-block:clamp(48px,7vh,90px)}
.pnav .h2{margin:0}
.pnav .more{margin-top:clamp(34px,4.5vh,52px)}

/* ---- a heading a link jumps to must clear the fixed header ---- */
.body h2,.body h3,.faq,.pnav,.pcta,article [id]{scroll-margin-top:96px}

/* ------------------------------- the phone -------------------------------
   Everything the desktop post carries stays: the hero photograph, every
   figure, the before/after pair, the pack shots, the pull quotes, the FAQ and
   both closing cards. Only the boxes change size, and every action grows to a
   thumb. */
@media(max-width:860px){
  .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;
    padding-inline:22px;text-align:center}
  .pcta .cta{gap:12px}
  .pcta{padding-bottom:calc(clamp(52px,7.5vh,100px) + env(safe-area-inset-bottom,0px))}
  .bhome .pcta{padding-bottom:calc(clamp(64px,9vh,120px) + env(safe-area-inset-bottom,0px))}

  /* the row of links a paragraph never names out loud: each one its own row */
  .ilinks{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}
  .ilinks a{display:inline-flex;align-items:center;min-height:44px}
  .ilinks i{margin:0 6px}

  /* the post's own measure: a little more air per line on a narrow column */
  .body p{font-size:17px;line-height:1.9}
  .body p.lead{font-size:18.5px}
  .phead h1{line-height:1.16}
  .byline{margin-top:16px}

  /* the two closing cards read as two large photographs, not two thumbnails */
  .bgrid,.bgrid.two{gap:30px}
  .bcard .t{font-size:22px;margin-top:16px}
  .bcard .x{-webkit-line-clamp:3}
  .pnav .more{margin-top:30px}

  /* the FAQ is the one place a finger opens something */
  .faq summary{padding:19px 0 19px 32px;min-height:52px}
  .faq summary::after{top:26px}
}

@media(max-width:640px){
  /* her before and after stay side by side, which is the whole point of the
     pair, and the labels stay legible */
  .ba2{gap:8px}
  .ba2 .lab{top:9px;inset-inline-start:9px;padding:6px 9px;font-size:14px}
  .fig img{aspect-ratio:4/3}
  .phf img{aspect-ratio:4/3}
  /* two pack shots per row, with room for a three line name underneath */
  .packs{gap:16px}
  .pk .nm{font-size:15.5px;min-height:4.4em;-webkit-line-clamp:3}
  .card{padding:22px 20px}
  .pq p{padding-inline-start:18px}
}

/* a touchscreen has no hover: the lift and the crop push are mouse manners */
@media(hover:none){
  .bcard:hover .ph{transform:none;box-shadow:0 18px 44px -30px rgba(60,40,26,.55)}
  .bcard:hover img{transform:none}
  .pk:hover .ph{transform:none}
  .bcard:active .ph{transform:translateY(-3px)}
}

