/* Sikt blog: index and article pages. Loads after /style.css and reuses its tokens. */

.blog-main { padding-top: calc(var(--bar) + clamp(40px, 7vh, 80px)); padding-bottom: clamp(72px, 10vw, 120px); }

/* index hero */
.blog-hero { max-width: 760px; }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.kicker::before { content: ""; flex: none; width: 30px; height: 9px; background-image: var(--speed); background-repeat: no-repeat; background-size: 100% 1px, 64% 1px, 38% 1px; background-position: right 4px, right 0, right 8px; }
.blog-h1 { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; }
.blog-sub { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text-2); }

/* post cards */
.post-list { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 20px; }
.post-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.post-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--scan), var(--s1); overflow: hidden; transition: border-color .25s, transform .3s var(--ease); }
.post-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.post-link { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); min-height: 100%; }
.post-list.two .post-link { grid-template-columns: 1fr; }
.post-art { display: grid; place-items: center; min-height: 200px; background: radial-gradient(70% 70% at 50% 50%, rgba(57, 255, 20, .05), transparent 70%), var(--s2); border-right: 1px solid var(--line); }
.post-list.two .post-art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 170px; }
.post-cover { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 36px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.post-title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.post-desc { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.post-more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; color: var(--acc); }
.post-card:hover .post-more span { display: inline-block; transform: translateX(3px); transition: transform .2s var(--ease); }

/* empty state */
.empty { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--scan), var(--s1); }
.empty img { width: clamp(120px, 16vw, 200px); height: auto; }
.empty .h { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.025em; }
.empty p:not(.h):not(.empty-cta) { margin-top: 10px; max-width: 36em; color: var(--text-2); }
.empty-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* article */
.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.a-head { margin-top: 26px; max-width: 860px; }
.a-h1 { margin-top: 16px; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.a-lede { margin-top: 20px; max-width: 40em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text-2); }
.a-grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.a-side { position: sticky; top: calc(var(--bar) + 28px); }
.toc { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--scan), var(--s1); }
.toc-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; color: var(--text-2); transition: background .2s, color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; padding-top: 2px; color: var(--text-3); }
.toc a:hover { color: var(--text); background: var(--s2); }
.toc a.on { color: var(--text); background: var(--s2); }
.toc a.on::before { color: var(--acc); }

/* prose: long-form reading */
.prose { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.72; color: #d3d9e0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.025em; color: var(--text); scroll-margin-top: calc(var(--bar) + 24px); }
.prose h3 { margin-top: 1.7em; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.015em; color: var(--text); scroll-margin-top: calc(var(--bar) + 24px); }
.prose h4 { margin-top: 1.5em; font-size: 1em; font-weight: 600; color: var(--text); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(57, 255, 20, .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--acc); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-3); }
.prose ul li::marker { color: var(--acc); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 2px solid var(--acc); border-radius: 0 14px 14px 0; background: var(--scan), var(--s1); font-family: var(--display); font-size: 1.1em; line-height: 1.5; color: var(--text); }
.prose code { font-family: var(--mono); font-size: .86em; padding: .12em .4em; border-radius: 6px; background: var(--s2); border: 1px solid var(--line); color: var(--text); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.prose pre code { padding: 0; border: 0; background: none; font-size: .82em; line-height: 1.6; }
.prose img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose hr { margin: 2.4em 0; border: 0; height: 1px; background: var(--line-2); }
.tbl { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: .72em; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--s1); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { font-variant-numeric: tabular-nums; }

/* end-of-article call to action */
.a-cta { margin-top: clamp(48px, 7vw, 80px); max-width: 720px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: var(--r); border: 1px solid rgba(57, 255, 20, .3); background: var(--scan), var(--s1); }
.a-cta .h { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.a-cta .t { margin-top: 6px; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.015em; }

.related { margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.rel-h { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; }

@media (max-width: 1000px) {
  .a-grid { grid-template-columns: 1fr; }
  .a-side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .post-link { grid-template-columns: 1fr; }
  .post-art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 170px; }
  .post-list.two { grid-template-columns: 1fr; }
  .empty { grid-template-columns: 1fr; justify-items: start; }
  .a-cta { flex-direction: column; align-items: flex-start; }
}

/* /about call to action: full width, buttons side by side */
.a-cta.about-cta { max-width: none; margin-top: clamp(56px, 8vw, 96px); }
.about-cta-btns { flex: none; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- readability upgrade: higher contrast, calmer measure ---------- */
.prose { font-size: clamp(17.5px, 1.25vw, 19.5px); line-height: 1.75; color: #e6eaef; max-width: 68ch; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { color: #fff; }
.prose h3 { color: #fff; }
.prose li::marker { color: #9aa4b2; }
.prose a { color: #7dff5a; text-decoration-color: rgba(125, 255, 90, .55); text-decoration-thickness: 1px; }
.prose a:hover { color: #b4ff9f; text-decoration-color: currentColor; }
.prose blockquote { color: #fff; }
.prose th { color: #b9c2cd; }
.prose td { color: #e6eaef; }
.a-lede { color: #c9d1db; }
.post-meta, .crumbs { color: #9aa4b2; }
.post-desc { color: #c3ccd6; }

/* byline */
.byline { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: #c3ccd6; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-2); }
.byline span { display: grid; line-height: 1.3; }
.byline a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.byline small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9aa4b2; }

/* cover art under the header */
.a-cover { margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 80% at 50% 50%, rgba(57, 255, 20, .06), transparent 70%), var(--scan), var(--s1); }
.a-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }

/* "Key takeaways" becomes a summary box */
.prose h2#key-takeaways { padding-top: 0; }
.prose h2#key-takeaways + ul { list-style: none; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(57, 255, 20, .35); background: var(--scan), var(--s1); }
.prose h2#key-takeaways + ul li { position: relative; padding-left: 26px; }
.prose h2#key-takeaways + ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }

/* FAQ questions */
.prose h2#faq ~ h3, .prose h2#frequently-asked-questions ~ h3 { font-size: clamp(18px, 1.4vw, 21px); }

/* sources: smaller, quieter, still legible */
.prose h2#sources { font-size: clamp(20px, 1.8vw, 24px); }
.prose h2#sources + ul { font-size: .86em; line-height: 1.6; color: #c3ccd6; }
.prose h2#sources + ul a { word-break: break-word; }
