/* =========================================================
   Blog: listing (blog.html) + article pages (blog/*.html)
   Builds on style.css / pages.css tokens (1rem = 10 design px)
   ========================================================= */

/* ---------- shared bits ---------- */
.bchip{display:inline-flex;align-items:center;height:3.4rem;padding:0 1.6rem;border-radius:10rem;background:#FFE6DC;color:#B23A0B;font-size:1.4rem;font-weight:600;letter-spacing:.02em}
.bmeta{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.4rem;font-size:1.5rem;color:var(--mute)}
.bmeta i{width:.5rem;height:.5rem;border-radius:50%;background:currentColor;opacity:.5}

/* ---------- listing hero ---------- */
.bl{padding-top:19rem}
.bl__top{display:flex;justify-content:space-between;align-items:flex-end;gap:6rem}
.bl__t{font-family:"Anton";font-weight:400;font-size:20rem;line-height:.95;margin-top:2rem}
.bl__t .o{color:var(--or)}
.bl__lead{font-family:"Familjen Grotesk";font-weight:600;font-size:3rem;line-height:4rem;max-width:66rem}
.bl__filters{display:flex;flex-wrap:wrap;gap:1rem;margin-top:6rem}
.bl__f{all:unset;cursor:pointer;height:5rem;padding:0 2.4rem;border-radius:10rem;border:.15rem solid rgba(20,20,20,.18);font-size:1.6rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}
.bl__f:hover{border-color:var(--ink)}
.bl__f.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.bl__f:focus-visible{outline:.3rem solid var(--or);outline-offset:.3rem}

/* featured (latest) post */
.bfeat{display:grid;grid-template-columns:1.25fr 1fr;gap:0;margin-top:5rem;border-radius:1.6rem;overflow:hidden;background:#141414;color:#fff}
.bfeat__img{overflow:hidden;min-height:52rem}
.bfeat__img img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.bfeat:hover .bfeat__img img{transform:scale(1.04)}
.bfeat__txt{padding:6rem 5.6rem;display:flex;flex-direction:column;justify-content:space-between;gap:4rem}
.bfeat__new{font-size:1.4rem;letter-spacing:.22em;color:var(--or)}
.bfeat h2{font-family:"Anton";font-weight:400;font-size:5.6rem;line-height:1.08;margin-top:2rem}
.bfeat p{font-weight:400;font-size:2rem;line-height:3.2rem;color:#CDBFB9;margin-top:2.4rem}
.bfeat .bmeta{color:#A39792}
.bfeat .bchip{background:#2A2522;color:#FFB79A}
.bread{display:inline-flex;align-items:center;gap:1.2rem;font-size:1.8rem;font-weight:600;color:var(--or)}
.bread svg{width:2rem;height:2rem;transition:transform .4s cubic-bezier(.16,1,.3,1)}
a:hover .bread svg{transform:translateX(.5rem)}

/* grid */
.bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:3.2rem 2.4rem;margin-top:4rem}
.bcard{display:flex;flex-direction:column;border-radius:1.6rem;overflow:hidden;background:var(--card);transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .5s}
.bcard:hover{transform:translateY(-.8rem);box-shadow:0 3rem 6rem -3rem rgba(20,20,20,.35)}
.bcard__img{aspect-ratio:16/10;overflow:hidden;background:#EFE6E2}
.bcard__img img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform 1s cubic-bezier(.16,1,.3,1)}
.bcard:hover .bcard__img img{transform:scale(1.06)}
.bcard__txt{padding:3rem 3rem 3.4rem;display:flex;flex-direction:column;gap:1.8rem;flex:1}
.bcard h3{font-family:"Familjen Grotesk";font-weight:600;font-size:2.6rem;line-height:3.3rem}
.bcard p{font-weight:400;font-size:1.7rem;line-height:2.7rem;color:var(--mute)}
.bcard .bread{margin-top:auto;font-size:1.6rem}
.bcard.is-hidden,.bfeat.is-hidden{display:none}
.bl__empty{display:none;margin-top:4rem;font-size:2rem;color:var(--mute)}

/* ---------- article ---------- */
.bprog{position:fixed;left:0;top:0;height:.5rem;width:100%;background:var(--or);transform-origin:0 50%;transform:scaleX(0);z-index:200;pointer-events:none}
.bp__hero{padding-top:18rem;max-width:132rem}
.bp__crumbs{font-size:1.5rem;color:var(--mute);display:flex;flex-wrap:wrap;gap:.8rem}
.bp__crumbs a{color:var(--ink);text-decoration:underline;text-underline-offset:.3rem;text-decoration-color:rgba(20,20,20,.25)}
.bp__crumbs a:hover{color:var(--or)}
.bp__hero .bchip{margin-top:4rem}
.bp__t{font-family:"Anton";font-weight:400;font-size:8.4rem;line-height:1.06;margin-top:2.4rem}
.bp__lead{font-family:"Familjen Grotesk";font-weight:600;font-size:2.8rem;line-height:3.8rem;margin-top:3rem;max-width:100rem;color:#3A2E2A}
.bp__by{display:flex;align-items:center;gap:1.6rem;margin-top:4rem}
.bp__av{width:5.6rem;height:5.6rem;border-radius:50%;background:var(--or);color:#fff;display:grid;place-items:center;font-family:"Anton";font-size:2.2rem;flex:none}
.bp__by b{display:block;font-size:1.7rem}
.bp__by .bmeta{margin-top:.4rem;font-size:1.5rem}
.bp__cover{margin-top:6rem}
.bp__cover img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center;border-radius:1.6rem;background:var(--card)}
.bp__grid{display:grid;grid-template-columns:34rem 1fr;gap:10rem;margin-top:8rem;align-items:start}
.bp__side{position:sticky;top:12rem;display:grid;gap:2.4rem}
.btoc{background:var(--card);border-radius:1.4rem;padding:3rem}
.btoc p{font-size:1.3rem;letter-spacing:.2em;color:var(--or)}
.btoc ol{list-style:none;margin-top:1.8rem;display:grid;gap:1.2rem;counter-reset:t}
.btoc a{display:block;font-size:1.5rem;line-height:2.2rem;color:var(--mute);padding-left:1.6rem;border-left:.2rem solid transparent;transition:color .3s,border-color .3s}
.btoc a:hover{color:var(--ink)}
.btoc a.is-on{color:var(--ink);border-color:var(--or);font-weight:600}
.bside-cta{background:#141414;color:#fff;border-radius:1.4rem;padding:3.2rem}
.bside-cta b{display:block;font-family:"Anton";font-weight:400;font-size:3.4rem;line-height:1.1}
.bside-cta p{font-weight:400;font-size:1.6rem;line-height:2.5rem;color:#CDBFB9;margin-top:1.4rem}
.bside-cta a{display:inline-flex;margin-top:2.4rem;height:5.2rem;padding:0 2.6rem;border-radius:10rem;background:var(--or);color:#fff;align-items:center;font-size:1.6rem;font-weight:600;transition:transform .3s}
.bside-cta a:hover{transform:translateY(-.3rem)}
.bshare{display:flex;align-items:center;gap:1rem;font-size:1.4rem;color:var(--mute)}
.bshare a,.bshare button{all:unset;cursor:pointer;width:4.4rem;height:4.4rem;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--ink);transition:background .3s,color .3s}
.bshare a:hover,.bshare button:hover{background:var(--ink);color:#fff}
.bshare svg{width:1.9rem;height:1.9rem}
.bshare .ok{background:var(--or);color:#fff}

.bp__body{max-width:80rem;font-size:2.1rem;line-height:3.6rem;color:#3A2E2A}
.bp__body > * + *{margin-top:2.6rem}
.bp__body h2{font-family:"Familjen Grotesk";font-weight:600;font-size:3.8rem;line-height:4.6rem;color:var(--ink);margin-top:7rem;scroll-margin-top:12rem}
.bp__body h3{font-family:"Familjen Grotesk";font-weight:600;font-size:2.6rem;line-height:3.4rem;color:var(--ink);margin-top:4.4rem}
.bp__body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--or);text-decoration-thickness:.2rem;text-underline-offset:.4rem;transition:color .3s}
.bp__body a:hover{color:var(--or)}
.bp__body ul,.bp__body ol{display:grid;gap:1.4rem;padding-left:0;list-style:none}
.bp__body ul li,.bp__body ol li{position:relative;padding-left:4.2rem}
.bp__body ul li::before{content:"";position:absolute;left:.8rem;top:1.3rem;width:1rem;height:1rem;border-radius:50%;background:var(--or)}
.bp__body ol{counter-reset:n}
.bp__body ol li{counter-increment:n}
.bp__body ol li::before{content:counter(n);position:absolute;left:0;top:.2rem;width:3rem;height:3rem;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:1.4rem;font-weight:600;line-height:1}
.bp__body b{color:var(--ink)}
.bfig{margin-top:4.4rem!important;margin-bottom:1.4rem}
.bfig a{display:block;border-radius:1.4rem;overflow:hidden;background:#EFE6E2;text-decoration:none}
.bfig img{display:block;width:100%;max-height:60rem;object-fit:contain;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.bfig a:hover img{transform:scale(1.02)}
.bfig figcaption{display:flex;justify-content:space-between;gap:2rem;margin-top:1.4rem;font-size:1.5rem;line-height:2.3rem;color:var(--mute)}
.bfig figcaption a{background:none;flex:none;font-weight:600;color:var(--or);text-decoration:none}
.btip{background:#FFE6DC;border-left:.5rem solid var(--or);border-radius:0 1.4rem 1.4rem 0;padding:3rem 3.4rem}
.btip b{display:block;font-size:1.4rem;letter-spacing:.2em;text-transform:uppercase;color:#B23A0B}
.btip p{margin-top:1rem}
.bcta{display:flex;justify-content:space-between;align-items:center;gap:3rem;background:#141414;color:#fff;border-radius:1.6rem;padding:4.4rem 4.8rem;margin-top:6rem!important}
.bcta b{display:block;font-family:"Anton";font-weight:400;font-size:4rem;line-height:1.1}
.bcta p{font-size:1.7rem;line-height:2.6rem;color:#CDBFB9;margin-top:1rem}
.bcta__btns{display:flex;flex-direction:column;gap:1rem;flex:none}
.bcta__btns a{height:5.4rem;padding:0 2.8rem;border-radius:10rem;display:inline-flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:600;text-decoration:none;transition:transform .3s}
.bcta__btns a:first-child{background:var(--or);color:#fff}
.bcta__btns a:last-child{border:.15rem solid rgba(255,255,255,.35);color:#fff}
.bcta__btns a:hover{transform:translateY(-.3rem);color:#fff}
.bfaq{margin-top:7rem!important;border-top:.15rem solid rgba(20,20,20,.12);padding-top:5rem}
.bfaq h2{margin-top:0}
.bfaq details{border-bottom:.15rem solid rgba(20,20,20,.12);padding:2.4rem 0}
.bfaq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:2rem;font-family:"Familjen Grotesk";font-weight:600;font-size:2.3rem;line-height:3.1rem;color:var(--ink)}
.bfaq summary::-webkit-details-marker{display:none}
.bfaq summary::after{content:"+";flex:none;width:3.6rem;height:3.6rem;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:2.2rem;line-height:1;transition:transform .3s,background .3s}
.bfaq details[open] summary::after{transform:rotate(45deg);background:var(--or)}
.bfaq details p{margin-top:1.4rem}
.bauthor{display:flex;gap:2.6rem;align-items:flex-start;background:var(--card);border-radius:1.6rem;padding:3.6rem;margin-top:6rem!important}
.bauthor .bp__av{width:8rem;height:8rem;font-size:3rem}
.bauthor b{display:block;font-size:2rem;color:var(--ink)}
.bauthor p{font-size:1.7rem;line-height:2.7rem;margin-top:.8rem!important}
.bauthor__links{display:flex;flex-wrap:wrap;gap:1.6rem;margin-top:1.4rem;font-size:1.5rem}
.brel{padding-top:14rem}
.brel .bgrid{margin-top:5rem}

@media (max-width:1023px){
  .bl{padding-top:14rem}
  .bl__top{flex-direction:column;align-items:flex-start;gap:3rem}
  .bl__t{font-size:13rem}
  .bl__lead{font-size:3rem;line-height:4rem}
  .bl__f{font-size:2.2rem;height:6rem}
  .bfeat{grid-template-columns:1fr}
  .bfeat__img{min-height:auto;aspect-ratio:16/10}
  .bfeat__txt{padding:4rem 3rem}
  .bfeat h2{font-size:5rem}
  .bfeat p{font-size:2.4rem;line-height:3.6rem}
  .bgrid{grid-template-columns:1fr}
  .bcard h3{font-size:3.2rem;line-height:4rem}
  .bcard p,.bmeta{font-size:2.2rem;line-height:3.4rem}
  .bchip{font-size:2rem;height:4.4rem}
  .bread{font-size:2.4rem}
  .bp__hero{padding-top:14rem}
  .bp__crumbs{font-size:2.2rem}
  .bp__t{font-size:6.4rem}
  .bp__lead{font-size:3rem;line-height:4.2rem}
  .bp__by b{font-size:2.4rem}
  .bp__cover img{aspect-ratio:16/10}
  .bp__grid{grid-template-columns:1fr;gap:4rem;margin-top:5rem}
  .bp__side{position:static;order:-1}
  .btoc{display:none}
  .bside-cta,.bshare{display:none}
  .bp__body{font-size:2.6rem;line-height:4.2rem}
  .bp__body h2{font-size:4.2rem;line-height:5rem}
  .bfig figcaption{font-size:2.2rem;line-height:3.2rem;flex-direction:column;gap:.6rem}
  .bcta{flex-direction:column;align-items:flex-start;padding:4rem 3.2rem}
  .bcta p{font-size:2.4rem;line-height:3.4rem}
  .bcta__btns{width:100%}
  .bcta__btns a{font-size:2.4rem;height:7rem}
  .bfaq summary{font-size:2.8rem;line-height:3.8rem}
  .bauthor{flex-direction:column;padding:3.6rem 3rem}
  .bauthor p{font-size:2.4rem;line-height:3.6rem}
  .bauthor__links{font-size:2.2rem}
}

/* polish */
.bp__hero .bchip{background:var(--ink);color:#fff}
@media (min-width:1024px){
  .bp__body{max-width:92rem}
}
.bcard__img img[src*="images/blog/"],.bfeat__img img[src*="images/blog/"]{object-position:center}
.bfig img[src*="images/blog/"]{border-radius:1.4rem;background:var(--card)}
.bcard__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:1.6rem}
.bcard__foot .bread{margin-top:0}
@media (max-width:1023px){.bcard__foot .bmeta,.bcard__foot .bread{font-size:2.2rem}}
