/* Nitida blog: the list of articles and the article page. Tokens and base styles come from nitida.css */

/* list */
.blog-hero{padding-bottom:40px}
.blog-hero h1{max-width:13em}
.posts{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.post-row{display:grid;grid-template-columns:200px minmax(0,1fr) 220px;gap:40px;padding:40px 0;border-bottom:1px solid var(--line);align-items:start}
.post-row .when{display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--graphite);padding-top:8px}
.post-row h2{font-size:clamp(30px,3.2vw,44px);max-width:18em}
.post-row h2 a{text-decoration:none;background:linear-gradient(var(--lime),var(--lime)) 0 92%/0 .18em no-repeat;transition:background-size .25s}
.post-row h2 a:hover{background-size:100% .18em}
.post-row .desc{margin-top:16px;font-size:18px;color:var(--graphite);max-width:36em}
.post-row .topic{padding-top:10px;text-align:right}
.post-row .topic a{display:inline-block;font-size:14px;font-weight:600;text-decoration:none;padding:7px 14px;border-radius:999px;background:var(--mist);color:var(--ink)}
.post-row .topic a:hover{background:var(--lime-soft)}

/* article head */
.post-head{padding-top:40px;padding-bottom:56px}
.post-head .kicker{font-size:15px;font-weight:600;color:var(--green);margin-bottom:18px}
.post-head .kicker a{text-decoration:none}
.post-head .kicker a:hover{text-decoration:underline}
.post-head h1{font-size:clamp(40px,5vw,72px);max-width:15em}
.byline{display:flex;align-items:center;flex-wrap:wrap;gap:14px 16px;margin-top:36px;font-size:15px}
.byline img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.byline p{display:flex;flex-direction:column;line-height:1.35}
.byline p a{font-weight:600;text-decoration:none}
.byline p a:hover{text-decoration:underline}
.byline p span{color:var(--graphite)}
.byline .dates{flex-direction:row;flex-wrap:wrap;gap:4px 20px;margin-left:auto;color:var(--graphite)}

/* article body: summary on the left, text on the right */
.post-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:72px;align-items:start;padding-bottom:40px}
.brief{position:sticky;top:96px;background:var(--lime-soft);border:1px solid #DDE9B4;border-radius:24px;padding:26px 26px 28px}
.brief h2{font-size:15px;font-weight:600;letter-spacing:0;margin-bottom:14px;color:#3F4436}
.brief ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.brief li{font-size:16px;line-height:1.5;color:#2B2F25;padding-left:18px;position:relative}
.brief li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--green)}
.brief code{font-size:.86em;word-break:break-word}

.post-body{max-width:40em;font-size:19px;line-height:1.65;color:#33363B}
.post-body>*+*{margin-top:22px}
.post-body h2{font-size:clamp(28px,2.6vw,36px);font-stretch:80%;letter-spacing:-.03em;line-height:1.05;color:var(--ink);margin-top:64px}
.post-body h3{font-size:22px;color:var(--ink);margin-top:40px}
.post-body h2+*,.post-body h3+*{margin-top:18px}
.post-body strong{color:var(--ink);font-weight:600}
.post-body a{color:var(--ink);text-decoration-color:var(--green);text-decoration-thickness:1.5px;text-underline-offset:3px}
.post-body a:hover{text-decoration-color:var(--ink)}
.post-body ul,.post-body ol{margin:22px 0 0;padding-left:1.3em;display:flex;flex-direction:column;gap:10px}
.post-body li::marker{color:var(--green);font-weight:600}
.post-body code{font:500 .84em/1.4 "JetBrains Mono",ui-monospace,monospace;background:var(--mist);border-radius:6px;padding:.12em .38em;color:var(--ink)}
.post-body pre{margin-top:26px;background:var(--ink);color:#E8EADF;border-radius:20px;padding:22px 24px;overflow-x:auto;font:400 15px/1.6 "JetBrains Mono",ui-monospace,monospace}
.post-body pre code{background:none;padding:0;color:inherit;font:inherit}

/* end of article */
.post-end{padding-top:24px}
.post-end-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:start}
.author-card{display:flex;gap:24px;align-items:flex-start;padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff}
.author-card img{width:96px;height:96px;border-radius:20px;object-fit:cover;flex:none}
.author-card .who{font-size:22px;font-weight:700;letter-spacing:-.02em}
.author-card .who a{text-decoration:none}
.author-card .who a:hover{text-decoration:underline}
.author-card .role{font-size:15px;color:var(--green);font-weight:600;margin:4px 0 12px}
.author-card p{font-size:16px;color:var(--graphite)}
.next{display:flex;flex-direction:column;gap:12px}
.next a{display:flex;flex-direction:column;gap:6px;padding:22px 26px;border:1px solid var(--line);border-radius:20px;text-decoration:none;color:var(--ink);transition:border-color .2s}
.next a:hover{border-color:var(--ink)}
.next a>span:first-child{font-size:14px;color:var(--graphite)}
.next b{font-size:20px;line-height:1.2;letter-spacing:-.02em}
.next .svc{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.next .svc:hover{border-color:var(--ink);background:#2C2E31}
.next .svc>span{color:var(--night-text)!important;font-size:15px}
.next .svc>span:first-child{font-size:14px}

@media (max-width:1000px){
  .post-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:32px 0}
  .post-row .when{flex-direction:row;gap:16px;padding-top:0;order:-1}
  .post-row .topic{text-align:left;padding-top:4px}
  .post-head{padding-top:28px;padding-bottom:36px}
  .byline .dates{margin-left:0;width:100%}
  .post-grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .brief{position:static}
  .post-body{font-size:18px}
  .post-body h2{margin-top:48px}
  .post-end-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .author-card{flex-direction:column}
  .post-body pre{font-size:13.5px;padding:18px;border-radius:16px}
}
@media (prefers-reduced-motion:reduce){.post-row h2 a{transition:none}}
/* long article titles stay on one line in the breadcrumb */
.crumbs ol{flex-wrap:nowrap}
.crumbs li{flex:none;white-space:nowrap}
.crumbs li:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
