/* ============================================================================
   The blog's own layer.

   site.css is loaded first and carries everything shared — the tokens, the
   faces, .wrap, .mono, .logo, .cbtn, the cursor, the scrollbar, the cookie
   notice. This file styles only what exists nowhere else: the article page
   and the index. Everything here is prefixed bl- so nothing can collide with
   the landing page's classes.

   The entrance is CSS-only. These pages deliberately do not load app.js, so
   the section-entrance engine is not here to call on — a keyframe on load
   reads as considered and costs no script.
   ========================================================================== */

.bl-body{background:var(--ink);color:var(--white)}

/* ------------------------------------------------------------------ header */
.bl-nav{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-2);
}
.bl-nav .wrap{
  display:flex;align-items:center;gap:clamp(14px,3vw,34px);
  height:var(--nav-h);
}
.bl-nav-links{display:flex;gap:clamp(12px,2.2vw,26px);margin-left:auto}
.bl-nav-links a{
  font-size:13.5px;color:var(--dim);letter-spacing:-.01em;
  transition:color .35s var(--ease);
}
.bl-nav-links a:hover{color:var(--white)}
.bl-back::before{content:'←  ';color:var(--orange)}
.bl-cta .cbtn-label{font-size:13px}

/* -------------------------------------------------------------------- head */
.bl-main{padding-top:clamp(48px,9vh,110px);padding-bottom:clamp(56px,9vh,120px)}
.bl-head{max-width:820px;margin-bottom:clamp(40px,7vh,84px)}
.bl-kicker{color:var(--orange);display:inline-block}
.bl-h1{
  font-family:var(--display);font-weight:500;letter-spacing:-.035em;line-height:1.02;
  font-size:clamp(34px,5.4vw,72px);
  margin:18px 0 0;
  animation:bl-rise .9s var(--ease) both;
}
.bl-blurb{
  font-size:clamp(15.5px,1.35vw,18px);line-height:1.65;color:var(--dim);
  max-width:56ch;margin:22px 0 0;
  animation:bl-rise .9s var(--ease) .08s both;
}
@keyframes bl-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* -------------------------------------------------------------------- list */
.bl-list{display:flex;flex-direction:column;border-top:1px solid var(--line-2)}
.bl-card{
  display:block;position:relative;
  padding:clamp(26px,4vh,44px) 0;
  border-bottom:1px solid var(--line-2);
  animation:bl-rise .8s var(--ease) both;
}
.bl-card:nth-child(2){animation-delay:.06s}
.bl-card:nth-child(3){animation-delay:.12s}
.bl-card:nth-child(4){animation-delay:.18s}
.bl-card:nth-child(5){animation-delay:.24s}
.bl-meta{display:flex;align-items:center;gap:10px;color:var(--dim)}
.bl-dot{width:3px;height:3px;border-radius:50%;background:var(--orange);flex:none}
.bl-card-t{
  font-family:var(--display);font-weight:500;letter-spacing:-.03em;line-height:1.08;
  font-size:clamp(22px,3vw,40px);
  margin:14px 0 0;max-width:24ch;
  transition:color .35s var(--ease);
}
.bl-card.is-lead .bl-card-t{font-size:clamp(28px,4vw,54px)}
.bl-card-x{
  font-size:15px;line-height:1.65;color:var(--dim);
  max-width:64ch;margin:12px 0 0;
}
.bl-card-go{
  display:inline-block;margin-top:16px;color:var(--dimmer);
  transition:color .35s var(--ease), transform .35s var(--ease);
}
.bl-card-go::after{content:'  →'}
@media (hover:hover) and (pointer:fine){
  .bl-card:hover .bl-card-t{color:var(--orange-soft)}
  .bl-card:hover .bl-card-go{color:var(--orange);transform:translateX(6px)}
}

/* ----------------------------------------------------------------- article */
.bl-article{max-width:min(var(--maxw),100%)}
.bl-art-head{max-width:820px}
.bl-lede{
  font-size:clamp(16px,1.5vw,19px);line-height:1.65;color:var(--dim);
  max-width:58ch;margin:22px 0 0;
  animation:bl-rise .9s var(--ease) .08s both;
}
.bl-cover{
  margin:clamp(32px,5vh,56px) 0 0;
  animation:bl-rise 1s var(--ease) .12s both;
}
.bl-cover img{width:100%;height:auto;border-radius:var(--r)}

.bl-prose{
  max-width:680px;
  margin-top:clamp(36px,6vh,64px);
  font-size:clamp(15.5px,1.3vw,17.5px);line-height:1.75;
}
.bl-prose > p{margin:0 0 1.5em;color:#c9c5c1}
.bl-prose a{
  color:var(--white);
  text-decoration:underline;text-decoration-color:rgba(255,122,77,.5);
  text-underline-offset:3px;transition:text-decoration-color .3s var(--ease);
}
.bl-prose a:hover{text-decoration-color:var(--orange)}
.bl-prose strong{color:var(--white);font-weight:600}
.bl-prose em{color:var(--white)}
.bl-prose h2{
  font-family:var(--display);font-weight:500;letter-spacing:-.03em;line-height:1.1;
  font-size:clamp(23px,2.4vw,32px);color:var(--white);
  margin:2.2em 0 .8em;padding-top:1.1em;
  border-top:1px solid var(--line-2);
  position:relative;
}
/* the accent hairline the landing sections carry, standing still */
.bl-prose h2::before{
  content:'';position:absolute;top:-1px;left:0;width:52px;height:1px;
  background:var(--orange);
}
.bl-prose h3{
  font-family:var(--display);font-weight:500;letter-spacing:-.02em;
  font-size:clamp(18px,1.8vw,22px);color:var(--white);
  margin:1.8em 0 .6em;
}
.bl-prose blockquote{
  margin:1.8em 0;padding:4px 0 4px 22px;
  border-left:2px solid var(--orange);
}
.bl-prose blockquote p{
  font-family:var(--display);font-weight:450;letter-spacing:-.015em;
  font-size:clamp(17px,1.7vw,21px);line-height:1.5;color:var(--white);margin:0;
}
.bl-prose ul{margin:0 0 1.5em;padding:0;list-style:none}
.bl-prose li{
  position:relative;padding-left:22px;margin-bottom:.65em;color:#c9c5c1;
}
.bl-prose li::before{
  content:'';position:absolute;left:2px;top:.72em;width:6px;height:1.5px;
  background:var(--orange);
}
.bl-prose figure{margin:2em 0}
.bl-prose figure img{width:100%;height:auto;border-radius:var(--r)}
.bl-prose figcaption{margin-top:10px;color:var(--dimmer)}

/* ------------------------------------------------------- after the article */
.bl-after{max-width:680px;margin-top:clamp(48px,8vh,96px)}
.bl-author{
  display:flex;gap:clamp(16px,2.4vw,24px);align-items:center;
  padding:clamp(18px,2.6vw,28px) 0;
  border-top:1px solid var(--line-2);
  margin-bottom:clamp(24px,4vh,40px);
}
.bl-author-img{
  width:clamp(56px,7vw,72px);height:clamp(56px,7vw,72px);
  border-radius:50%;object-fit:cover;flex:none;
  border:1px solid var(--line);
}
.bl-author-k{color:var(--dimmer);display:block}
.bl-author-n{
  font-family:var(--display);font-weight:500;letter-spacing:-.02em;
  font-size:clamp(17px,1.7vw,21px);display:block;margin-top:4px;
}
.bl-author-n a{color:var(--white)}
.bl-author-n a:hover{color:var(--orange-soft)}
.bl-author-b{font-size:14px;line-height:1.6;color:var(--dim);margin:8px 0 0;max-width:52ch}
.bl-cta-box{
  border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(24px,4vw,40px);
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;
}
.bl-cta-t{
  font-family:var(--display);font-weight:500;letter-spacing:-.03em;
  font-size:clamp(20px,2.2vw,28px);margin:0;
}
.bl-more{margin-top:clamp(40px,6vh,72px)}
.bl-more .bl-list{margin-top:18px}
.bl-more .bl-card-t{font-size:clamp(19px,2vw,26px)}

/* ------------------------------------------------------------------ footer */
.bl-foot{border-top:1px solid var(--line-2);margin-top:clamp(40px,7vh,90px)}
.bl-foot .wrap{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:26px;padding-bottom:34px;gap:16px;
}
.bl-foot .logo{font-size:16px}

/* -------------------------------------------------------------- responsive */
@media (max-width:640px){
  .bl-nav-links a:not(.bl-back){display:none}
  .bl-cta{display:none}
  .bl-nav-links{margin-left:auto}
}

@media (prefers-reduced-motion:reduce){
  .bl-h1,.bl-blurb,.bl-lede,.bl-cover,.bl-card{animation:none}
  .bl-card-go{transition:none}
}
