/* Rinse blog: hub (/blog) and posts (/blog/<slug>).
   Builds on /styles.css tokens (violet accent, Geist, .btn, .reveal). Self-contained for posts,
   which load only this file. Cover art and the table of contents are added by /js/blog.js. */

:root {
  --b-ink: #0d0f14;
  --b-text: #2b303a;
  --b-muted: #5d6472;
  --b-line: #e7e5ef;
  --b-soft: #f8f7fc;
  --b-violet: #7c3aed;
  --b-violet-d: #5b21b6;
  --b-violet-s: #f3effe;
  --b-pink: #db2777;
  --b-red: #b42318; --b-red-s: #ffe9e6;
  --b-amber: #9a5b06; --b-amber-s: #fff3dc;
  --b-green: #0b6b38; --b-green-s: #e3f6ea;
}

/* ---------- Reading progress ---------- */
.read-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 80; pointer-events: none; }
.read-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #7c3aed, #c026d3 70%, #ec4899); }

/* ===================================================================== */
/* Post page                                                             */
/* ===================================================================== */
.post-page { position: relative; isolation: isolate; overflow-x: clip; }
.post-page::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 560px; background-image: linear-gradient(#eeecf5 1px, transparent 1px), linear-gradient(90deg, #eeecf5 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 15%, transparent 72%); }
.post-page::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1100px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .12), rgba(124, 58, 237, 0)); pointer-events: none; }

.post { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); }
.post > .wrap { max-width: none; padding-inline: 0; margin: 0; }

/* Head */
.post-head { padding-block: 44px 40px; display: grid; gap: 0 56px; grid-template-columns: minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--b-line); }
.post-head > * { grid-column: 1; }
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 13.5px var(--font); color: var(--b-muted); }
.crumbs a { color: var(--b-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3.5L5.5 8l4.5 4.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3.5L5.5 8l4.5 4.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs a:hover { color: var(--b-violet-d); }
.crumbs span[aria-hidden] { color: #c9c6d6; }
.crumbs span:last-child { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--b-violet-d); background: var(--b-violet-s); border-radius: 999px; padding: 6px 10px; }
.post-head h1 { margin-top: 18px; font-size: clamp(32px, 4.3vw, 52px); font-weight: 760; letter-spacing: -0.038em; line-height: 1.06; color: var(--b-ink); max-width: 22ch; }
.post-lede { margin-top: 18px; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.55; color: #4a5060; max-width: 60ch; }
.post-meta { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; color: var(--b-muted); }
.post-by { display: inline-flex; align-items: center; gap: 9px; color: var(--b-ink); font-weight: 600; margin-right: 4px; }
.post-by img { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--b-line); padding: 3px; }
.post-by + .sep { color: #c9c6d6; }
.post-art { display: none; }

/* Body */
.post-body { padding-block: 40px 8px; min-width: 0; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(25px, 2.5vw, 31px); font-weight: 730; letter-spacing: -0.03em; line-height: 1.15; color: var(--b-ink); margin: 56px 0 0; text-align: left; scroll-margin-top: 96px; }
.post-body h3 { font-size: 19.5px; font-weight: 680; letter-spacing: -0.015em; color: var(--b-ink); margin: 32px 0 0; scroll-margin-top: 96px; }
:where(.post-body) p, :where(.post-body) li { font-size: 17.5px; line-height: 1.75; color: var(--b-text); }
:where(.post-body) p { margin: 16px 0 0; }
:where(.post-body) :is(h2, h3) + p { margin-top: 12px; }
.post-body strong, .post-body b { color: var(--b-ink); font-weight: 650; }
.post-body a { color: #6d28d9; font-weight: 550; text-decoration: underline; text-decoration-color: rgba(109, 40, 217, .32); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.post-body a:hover { color: #4c1d95; text-decoration-color: currentColor; }
.post-body ul, .post-body ol { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.post-body ul > li { position: relative; padding-left: 26px; }
.post-body ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--b-violet); transform: rotate(45deg); opacity: .85; }
.post-body ol { counter-reset: n; }
.post-body ol > li { position: relative; padding-left: 36px; counter-increment: n; }
.post-body ol > li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 8px; background: var(--b-violet-s); color: var(--b-violet-d); font: 600 13px/24px var(--mono); text-align: center; }
.post-body code { font: 500 .86em var(--mono); background: #f3f1f8; color: #3b2a6b; border: 1px solid #ebe7f4; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.post-body pre { margin: 18px 0 0; background: #0f1117; color: #e6e8ef; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.65 var(--mono); }
.post-body pre code { background: none; border: 0; color: inherit; padding: 0; font: inherit; overflow-wrap: normal; }
.post-body blockquote { margin: 26px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--b-violet); }
.post-body blockquote p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--b-ink); font-weight: 520; letter-spacing: -0.01em; }
.post-body blockquote cite { display: block; margin-top: 10px; font: 500 13.5px var(--font); font-style: normal; color: var(--b-muted); }
.post-body sup { line-height: 0; }

/* Short answer / key takeaways */
.tldr { margin: 0; border-radius: 20px; padding: 24px 26px 26px; background: linear-gradient(180deg, #faf7ff, #fff 80%); border: 1px solid #e6defb; box-shadow: 0 30px 60px -48px rgba(91, 33, 182, .55); }
.tldr-h { display: flex; align-items: center; gap: 10px; margin: 0 !important; font: 600 12px var(--mono) !important; text-transform: uppercase; letter-spacing: .1em; color: var(--b-violet-d) !important; }
.tldr-h::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--b-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.tldr ul { margin-top: 14px; gap: 9px; }
.tldr li { font-size: 16.5px !important; line-height: 1.6 !important; }

/* Callouts */
.note { margin: 24px 0 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; border-radius: 16px; padding: 16px 18px; background: var(--b-soft); border: 1px solid var(--b-line); }
.note::before { content: "i"; width: 22px; height: 22px; border-radius: 50%; background: var(--b-violet); color: #fff; font: 700 13px/22px var(--font); text-align: center; margin-top: 2px; }
.note p { margin: 0; font-size: 16px; line-height: 1.65; }
.note.warn { background: #fffaf0; border-color: #f5e0b8; }
.note.warn::before { content: "!"; background: #b45309; }

/* Tables (stack into cards on phones; labels added by blog.js) */
.tbl { margin: 24px 0 0; border: 1px solid var(--b-line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -44px rgba(30, 20, 60, .5); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl thead th { text-align: left; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--b-muted); background: var(--b-soft); padding: 12px 16px; border-bottom: 1px solid var(--b-line); }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--b-line); vertical-align: top; line-height: 1.55; color: var(--b-text); }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl td:first-child { font-weight: 640; color: var(--b-ink); }
.tbl td code { font-size: 13px; white-space: nowrap; }
.tbl figcaption, .fig figcaption { padding: 12px 16px; font-size: 13.5px; line-height: 1.5; color: var(--b-muted); border-top: 1px solid var(--b-line); background: #fcfbfe; }
.tag { display: inline-block; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.tag.yes { background: var(--b-green-s); color: var(--b-green); }
.tag.no { background: #eef0f3; color: #4a5160; }
.tag.part { background: var(--b-amber-s); color: var(--b-amber); }
.tag.red { background: var(--b-red-s); color: var(--b-red); }
.tag.vio { background: var(--b-violet-s); color: var(--b-violet-d); }

/* Figures and diagrams */
.fig { margin: 28px 0 0; border: 1px solid var(--b-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -50px rgba(30, 20, 60, .55); }
.fig-body { padding: 24px; background: radial-gradient(120% 100% at 0% 0%, #faf7ff, #fff 60%); }
.fig-title { font: 600 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); margin: 0 0 16px !important; }

/* bar chart */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) 54px; gap: 14px; align-items: center; }
.bar > span { font-size: 14.5px; color: var(--b-text); line-height: 1.35; }
.bar .track { height: 14px; border-radius: 999px; background: #f0eef6; overflow: hidden; }
.bar .fill { height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c026d3); transform-origin: 0 50%; }
.bar b { font: 650 15px var(--mono); color: var(--b-ink); text-align: right; font-variant-numeric: tabular-nums; }
.bar.lo .fill { background: linear-gradient(90deg, #a78bfa, #f0abfc); }
.js .fig.reveal .fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .fig.reveal.in .fill { transform: none; }
.bars-sub { margin: 18px 0 8px !important; font: 600 12px var(--mono) !important; text-transform: uppercase; letter-spacing: .07em; color: var(--b-muted) !important; }

/* word-choice diagram */
.pick { display: grid; gap: 18px; }
.pick-line { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--b-ink); letter-spacing: -0.01em; }
.pick-line .gap { display: inline-block; min-width: 4.6em; border-bottom: 2px dashed #b9a7f0; color: var(--b-violet-d); font-weight: 650; text-align: center; }
.cands { display: flex; flex-wrap: wrap; gap: 8px; }
.cand { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--b-line); background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 15px; color: var(--b-text); }
.cand i { font: 500 12px var(--mono); font-style: normal; color: var(--b-muted); }
.cand.on { border-color: #c4b5fd; background: var(--b-violet-s); color: var(--b-violet-d); font-weight: 650; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.cand.off { opacity: .45; text-decoration: line-through; }
.pick-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: var(--b-muted); }
.pick-key .pk-key { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--mono); color: #fff; background: var(--b-ink); border-radius: 8px; padding: 6px 9px; }
.pick-key .pk-key::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14a5 5 0 1 1 4.6-7H22v4h-2v3h-3v-3h-5.4A5 5 0 0 1 7 14zm0-3a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14a5 5 0 1 1 4.6-7H22v4h-2v3h-3v-3h-5.4A5 5 0 0 1 7 14zm0-3a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pick-key .plus { font-weight: 700; color: #b3adc6; }

/* layers diagram (visible / metadata / watermark) */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--b-line); border-radius: 16px; padding: 14px 16px; background: #fff; }
.layer .ly-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font: 700 18px var(--font); }
.layer b { display: block; font-size: 16px; color: var(--b-ink); }
.layer span { display: block; font-size: 14.5px; color: var(--b-muted); line-height: 1.5; margin-top: 2px; }
.layer:nth-child(1) .ly-ic { background: #fdeef6; color: var(--b-pink); }
.layer:nth-child(2) .ly-ic { background: #eaf1ff; color: #2563eb; }
.layer:nth-child(3) .ly-ic { background: var(--b-violet-s); color: var(--b-violet); }

/* invisible character strip */
.zw-line { font-size: clamp(18px, 2.4vw, 23px); line-height: 2.1; color: var(--b-ink); letter-spacing: -0.005em; overflow-wrap: anywhere; }
.zw-pill { display: inline-block; font: 700 10.5px/1 var(--mono); color: #fff; background: var(--b-pink); border-radius: 6px; padding: 4px 5px; margin: 0 3px; vertical-align: 4px; box-shadow: 0 0 0 4px rgba(219, 39, 119, .14); }
.zw-pill.sp { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.zw-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--b-muted); }
.zw-legend span { display: inline-flex; align-items: center; gap: 8px; }
.zw-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--b-pink); }
.zw-legend i.sp { background: #7c3aed; }

/* highlighted tells */
.tells { font-size: 17.5px; line-height: 1.9; color: var(--b-text); }
.tells mark { background: linear-gradient(transparent 55%, #ffe58a 55%, #ffe58a 92%, transparent 92%); color: inherit; padding: 0 1px; }
.tells mark.st { background: linear-gradient(transparent 55%, #ddd3ff 55%, #ddd3ff 92%, transparent 92%); }
.tells mark.fm { background: linear-gradient(transparent 55%, #ffd2e6 55%, #ffd2e6 92%, transparent 92%); }
.tells-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--b-muted); }
.tells-key span { display: inline-flex; align-items: center; gap: 8px; }
.tells-key i { width: 18px; height: 10px; border-radius: 3px; background: #ffe58a; }
.tells-key i.st { background: #ddd3ff; } .tells-key i.fm { background: #ffd2e6; }

/* strength rows */
.sig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sig > div { border-radius: 16px; padding: 16px 16px 14px; border: 1px solid var(--b-line); background: #fff; }
.sig h4 { margin: 0 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sig .s-hi h4 { color: var(--b-green); } .sig .s-lo h4 { color: var(--b-amber); } .sig .s-no h4 { color: #4a5160; }
.sig .s-hi { background: linear-gradient(180deg, var(--b-green-s), #fff 70%); border-color: #cdebd9; }
.sig .s-lo { background: linear-gradient(180deg, var(--b-amber-s), #fff 70%); border-color: #f5e0b8; }
.sig .s-no { background: linear-gradient(180deg, #f1f2f5, #fff 70%); }
.post-body .sig ul { margin: 0; gap: 7px; }
.post-body .sig li { font-size: 14.5px; line-height: 1.5; padding-left: 16px; }
.post-body .sig li::before { left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; transform: none; background: currentColor; opacity: .35; }

/* check list */
.post-body ul.checks > li { padding-left: 34px; }
.post-body ul.checks > li::before { left: 0; top: .28em; width: 22px; height: 22px; border-radius: 7px; transform: none; opacity: 1; background: var(--b-violet-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236d28d9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* In-body tool card */
.tool-card { margin: 30px 0 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 18px 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #faf7ff, #fff 60%); border: 1px solid #e3d9fb; }
.tool-card .tc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid #e3d9fb; box-shadow: 0 10px 22px -14px rgba(91, 33, 182, .6); }
.tool-card .tc-ic::after { content: ""; width: 22px; height: 22px; background: var(--b-violet); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tool-card b { display: block; font-size: 16.5px; color: var(--b-ink); }
.tool-card span { display: block; font-size: 14.5px; color: var(--b-muted); margin-top: 2px; line-height: 1.5; }
.post-body .tool-card a.btn { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.post-body .tool-card a.btn:hover { color: #fff; }
.tc-scan { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v2H4zm0 6h10v2H4zm0 6h16v2H4zm13-6.5h3v3h-3z'/%3E%3C/svg%3E"); }
.tc-hum { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c3 4 6 7.2 6 10.5a6 6 0 0 1-12 0C6 10.2 9 7 12 3z'/%3E%3C/svg%3E"); }
.tc-det { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.9 12.1l4.3 4.3-1.4 1.4-4.3-4.3A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E"); }
.tc-img { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4zm2 2v9.6l3.5-3.5 3 3 2.5-2.5 3 3V6zm9 1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); }

/* FAQ */
.faqs { margin-top: 18px; border-top: 1px solid var(--b-line); }
.faqs details { border-bottom: 1px solid var(--b-line); }
.faqs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 2px; font-size: 17px; font-weight: 640; color: var(--b-ink); letter-spacing: -0.01em; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: ""; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--b-violet-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%235b21b6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s ease; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs summary:hover { color: var(--b-violet-d); }
.faqs details p { margin: 0 0 18px; padding-right: 40px; font-size: 16.5px; }
.faqs details[open] p { animation: faqin .25s ease; }
@keyframes faqin { from { opacity: 0; transform: translateY(-4px); } }

/* Sources + disclosure */
.sources { margin-top: 14px !important; gap: 8px !important; }
.post-body .sources li { font-size: 14.5px; line-height: 1.55; color: var(--b-muted); padding-left: 34px; }
.post-body .sources li::before { top: .05em; width: 24px; height: 22px; font-size: 11.5px; line-height: 22px; border-radius: 6px; }
.post-body .sources a { font-weight: 550; }
.about-post { margin-top: 30px !important; padding: 16px 18px; border-radius: 14px; background: var(--b-soft); border: 1px solid var(--b-line); font-size: 14.5px !important; line-height: 1.6 !important; color: var(--b-muted) !important; }
.about-post b { color: var(--b-ink); }

/* Sidebar CTA (built into every post) */
.post-cta { margin: 48px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; border-radius: 22px; padding: 26px 28px; color: #fff; background: radial-gradient(500px 220px at 0% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #a855f7 100%); box-shadow: 0 40px 80px -46px rgba(76, 29, 149, .85); }
.post-cta > div { display: grid; gap: 6px; max-width: 540px; }
.post-cta b { font-size: 21px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
.post-cta span { font-size: 15.5px; color: rgba(255, 255, 255, .84); line-height: 1.5; }
.post-cta .btn { background: #fff; color: #4c1d95; border-color: #fff; }
.post-cta .btn:hover { background: #f3e8ff; box-shadow: none; }
.post-cta .cta-pts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.post-cta .cta-pts li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.4; }
.post-cta .cta-pts li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Table of contents */
.post-toc { display: none; }
.toc-m { margin: 22px 0 0; border: 1px solid var(--b-line); border-radius: 16px; background: #fff; }
.toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #8b84a3; border-bottom: 2px solid #8b84a3; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc-m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc-m ol { margin: 0 !important; padding: 2px 10px 12px !important; border-top: 1px solid var(--b-line); gap: 0 !important; counter-reset: t; }
.post-body .toc-m li { padding: 0; font-size: 15px; counter-increment: t; }
.post-body .toc-m li::before { display: none; }
.post-body .toc-m a { display: flex; gap: 10px; padding: 9px 6px; border-radius: 9px; text-decoration: none; color: var(--b-text); font-weight: 500; line-height: 1.4; }
.post-body .toc-m a::before { content: counter(t, decimal-leading-zero); font: 500 12px/1.6 var(--mono); color: #a59fbb; }
.post-body .toc-m a:hover { background: var(--b-soft); }

/* Related */
.post-related { padding-block: 64px 96px; border-top: 1px solid var(--b-line); margin-top: 64px !important; }
.post-related h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 730; letter-spacing: -0.03em; text-align: left; margin: 0; }
.post-related .post-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- Wide layout: contents | article | sticky CTA ---------- */
@media (min-width: 1100px) {
  .post-head { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding-block: 56px 52px; }
  .post-head .post-art { display: block; grid-column: 2; grid-row: 1 / span 4; }
  .post.has-toc { grid-template-columns: 200px minmax(0, 1fr) 272px; column-gap: 52px; }
  .post.has-toc > .post-head, .post.has-toc > .post-related { grid-column: 1 / -1; }
  .post.has-toc > .post-toc { display: block; grid-column: 1; grid-row: 2; }
  .post.has-toc > .post-body { grid-column: 2; grid-row: 2; max-width: 720px; }
  .post.has-toc > .post-cta { grid-column: 3; grid-row: 2; align-self: start; position: sticky; top: 92px; margin-top: 40px; display: grid; gap: 16px; padding: 24px 22px; border-radius: 22px; }
  .post.has-toc > .post-cta b { font-size: 20px; }
  .post.has-toc > .post-cta .btn { width: 100%; }
  .post.has-toc .toc-m { display: none; }
  .post-toc { position: sticky; top: 92px; align-self: start; margin-top: 40px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
  .post-toc::-webkit-scrollbar { display: none; }
  .post-toc b { display: block; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--b-muted); margin-bottom: 10px; }
  .post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--b-line); }
  .post-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--b-muted); text-decoration: none; transition: color .15s, border-color .15s; }
  .post-toc a:hover { color: var(--b-ink); }
  .post-toc a.on { color: var(--b-violet-d); border-left-color: var(--b-violet); font-weight: 600; }
  .post-toc .toc-meter { margin-top: 18px; height: 4px; border-radius: 4px; background: var(--b-line); overflow: hidden; }
  .post-toc .toc-meter i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--b-violet); }
  .post-toc .toc-top { display: inline-flex; margin-top: 12px; font: 500 13px var(--font); color: var(--b-muted); text-decoration: none; }
  .post-toc .toc-top:hover { color: var(--b-violet-d); }
  .post-related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .post-body, .post-cta { max-width: 760px; margin-inline: auto !important; width: 100%; }
  .post-head { max-width: 760px; margin-inline: auto !important; width: 100%; }
  .post-head .post-art { display: block; margin-top: 28px; }
}
@media (max-width: 759px) {
  .post-head { padding-block: 28px 30px; }
  .post-head .post-art { display: block; margin-top: 24px; }
  .post-body { padding-top: 28px; }
  :where(.post-body) p, :where(.post-body) li { font-size: 17px; line-height: 1.72; }
  .post-body h2 { margin-top: 46px; }
  .tldr { padding: 20px 18px; border-radius: 18px; }
  .fig-body { padding: 18px 16px; }
  .bar { grid-template-columns: minmax(0, 1fr) 48px; gap: 6px 12px; }
  .bar > span { grid-column: 1 / -1; font-size: 14px; }
  .sig { grid-template-columns: minmax(0, 1fr); }
  .layer { grid-template-columns: 40px minmax(0, 1fr); }
  .layer .ly-ic { width: 40px; height: 40px; }
  .layer .tag { grid-column: 2; justify-self: start; }
  .tool-card { grid-template-columns: 44px minmax(0, 1fr); }
  .tool-card .tc-ic { width: 44px; height: 44px; }
  .tool-card .btn { grid-column: 1 / -1; width: 100%; }
  .tbl thead { display: none; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 16px; border-top: 1px solid var(--b-line); }
  .tbl tbody tr:first-child { border-top: 0; }
  .tbl td { padding: 4px 0; border: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--b-muted); margin: 6px 0 2px; }
  .tbl td:first-child::before { display: none; }
  .tbl td:first-child { font-size: 16.5px; padding-bottom: 2px; }
  .tbl.compact tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
  .tbl.compact td { padding: 0; }
  .tbl.compact td::before { display: none; }
  .tbl.compact td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl.compact td:nth-child(n+3) { grid-column: 1 / -1; }
  .tbl.compact td:nth-child(3) { font-size: 15px; }
  .faqs details p { padding-right: 0; }
  .post-cta { padding: 24px 20px; }
  .post-cta .btn { width: 100%; }
  .post-related { padding-block: 48px 72px; margin-top: 48px !important; }
  .post-related .post-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===================================================================== */
/* Cards (hub + related)                                                 */
/* ===================================================================== */
.post-card { position: relative; display: flex; flex-direction: column; gap: 0; min-width: 0; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--b-line); border-radius: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; box-shadow: 0 1px 2px rgba(20, 16, 40, .04); }
.post-card:hover { transform: translateY(-3px); border-color: #d9cffa; box-shadow: 0 30px 60px -36px rgba(76, 29, 149, .45); }
.post-card > .post-cat, .post-card > b, .post-card > .post-desc, .post-card > .post-when { margin-inline: 22px; }
.post-card > .post-cat { margin-top: 20px; align-self: flex-start; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--b-violet-d); }
.post-card > b { margin-top: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.28; color: var(--b-ink); text-wrap: pretty; }
.post-card > .post-desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--b-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card > .post-when { margin-top: auto; padding: 18px 0 20px; font-size: 13.5px; color: #8a8f9c; }
.post-card > .post-desc + .post-when { margin-top: auto; }
.post-card:hover > b { color: var(--b-violet-d); }

/* Cover art (HTML, drawn by blog.js; scales with the card through container units) */
.post-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: var(--cv-bg, linear-gradient(135deg, #f3effe, #fdf2f8)); border-bottom: 1px solid var(--b-line); }
.post-art .post-cover { border: 1px solid #e6e0f6; border-bottom-color: #e6e0f6; border-radius: 24px; box-shadow: 0 50px 90px -50px rgba(76, 29, 149, .55), 0 2px 6px rgba(20, 16, 40, .05); }
.post-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124, 58, 237, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .07) 1px, transparent 1px); background-size: 7cqw 7cqw; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000, transparent 75%); }
.cv { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font); color: var(--b-ink); }
.cv-card { position: relative; width: 78cqw; background: #fff; border-radius: 3.2cqw; box-shadow: 0 6cqw 10cqw -6cqw rgba(60, 30, 120, .45), 0 0 0 1px rgba(60, 30, 120, .06); padding: 4cqw 4.6cqw; }
.cv-top { display: flex; align-items: center; gap: 1.6cqw; font: 600 2.7cqw/1 var(--font); color: #3b3f4a; }
.cv-top .dot { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #10a37f; }
.cv-chip { margin-left: auto; font: 600 2.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 1.2cqw 1.6cqw; border-radius: 99px; background: var(--b-violet-s); color: var(--b-violet-d); }
.cv-txt { margin-top: 3cqw; font-size: 3.5cqw; line-height: 1.55; color: #3d4250; letter-spacing: -0.01em; }
.cv-txt u { text-decoration: none; background: linear-gradient(transparent 62%, rgba(124, 58, 237, .3) 62%); color: var(--b-ink); }
.cv-foot { margin-top: 3cqw; display: flex; gap: 1.4cqw; flex-wrap: wrap; }
.cv-foot span { font: 600 2.2cqw/1 var(--mono); padding: 1.2cqw 1.6cqw; border-radius: 99px; background: #f4f3f8; color: #5d6472; }
.cv-foot span.hot { background: var(--b-ink); color: #fff; }
/* synthid tiles */
.cv-tiles { display: grid; grid-template-columns: repeat(3, 22cqw); gap: 3cqw; }
.cv-tile { position: relative; height: 26cqw; border-radius: 3.4cqw; background: #fff; box-shadow: 0 5cqw 9cqw -6cqw rgba(60, 30, 120, .5), 0 0 0 1px rgba(60, 30, 120, .06); overflow: hidden; display: grid; place-items: end start; padding: 2.4cqw; }
.cv-tile em { font: 600 2.2cqw/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: #5d6472; position: relative; }
.cv-tile.img { background: linear-gradient(160deg, #c7d2fe 0%, #a78bfa 45%, #f0abfc 100%); }
.cv-tile.img em { color: #fff; }
.cv-tile.img::before { content: "✦"; position: absolute; right: 2.4cqw; bottom: 1.6cqw; color: rgba(255, 255, 255, .95); font-size: 4.4cqw; }
.cv-tile.img::after { content: ""; position: absolute; left: 3cqw; top: 3cqw; width: 8cqw; height: 8cqw; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.cv-tile.aud { background: #fff; }
.cv-wave { position: absolute; inset: 5cqw 2.4cqw auto; height: 11cqw; display: flex; align-items: center; gap: .9cqw; }
.cv-wave i { flex: 1; border-radius: 1cqw; background: linear-gradient(180deg, #7c3aed, #c026d3); }
.cv-lines { position: absolute; inset: 3.4cqw 2.6cqw auto; display: grid; gap: 1.8cqw; }
.cv-lines i { height: 1.5cqw; border-radius: 1cqw; background: #e9e5f5; }
.cv-lines i.m { background: linear-gradient(90deg, #e9e5f5 0 30%, #c4b5fd 30% 52%, #e9e5f5 52%); }
.cv-badge { position: absolute; left: 50%; bottom: 8cqw; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 1.4cqw; font: 650 2.8cqw/1 var(--font); color: #fff; background: var(--b-ink); padding: 1.8cqw 2.6cqw; border-radius: 99px; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .5); white-space: nowrap; }
.cv-badge::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 .8cqw rgba(167, 139, 250, .3); }
.cv-synth .cv-tiles { transform: translateY(-3cqw); }
/* zero-width */
.cv-zw .cv-card { width: 80cqw; padding: 5cqw; }
.cv-big { font-size: 6.2cqw; font-weight: 650; letter-spacing: -0.03em; line-height: 1.5; color: var(--b-ink); }
.cv-big .p { display: inline-block; font: 700 2.3cqw/1 var(--mono); color: #fff; background: var(--b-pink); border-radius: 1cqw; padding: 1.1cqw 1.2cqw; margin: 0 .9cqw; vertical-align: 1.2cqw; box-shadow: 0 0 0 .9cqw rgba(219, 39, 119, .16); letter-spacing: 0; }
.cv-big .p.v { background: #7c3aed; box-shadow: 0 0 0 .9cqw rgba(124, 58, 237, .16); }
.cv-codes { margin-top: 3cqw; display: flex; gap: 1.4cqw; flex-wrap: wrap; }
.cv-codes span { font: 500 2.4cqw/1 var(--mono); color: #5d6472; background: #f4f3f8; border-radius: 1cqw; padding: 1.2cqw 1.4cqw; }
/* tells */
.cv-tells .cv-txt { font-size: 3.7cqw; line-height: 1.75; }
.cv-tells mark { color: var(--b-ink); background: linear-gradient(transparent 52%, #ffe58a 52%, #ffe58a 94%, transparent 94%); }
.cv-tells mark.v { background: linear-gradient(transparent 52%, #ddd3ff 52%, #ddd3ff 94%, transparent 94%); }
.cv-tells mark.p { background: linear-gradient(transparent 52%, #ffc9df 52%, #ffc9df 94%, transparent 94%); }
/* claude */
.cv-cl .cv-top .dot { background: #d97757; }
.cv-cl .cv-txt { font-size: 4.6cqw; color: var(--b-ink); font-weight: 560; letter-spacing: -0.02em; }
.cv-cl .gap { display: inline-block; min-width: 15cqw; border-bottom: .5cqw dashed #b9a7f0; }
.cv-opts { margin-top: 3cqw; display: flex; gap: 1.6cqw; align-items: center; flex-wrap: wrap; }
.cv-opts span { font-size: 3cqw; padding: 1.6cqw 2.2cqw; border-radius: 1.8cqw; border: 1px solid #e7e5ef; color: #4a5060; background: #fff; }
.cv-opts span.on { border-color: #c4b5fd; background: var(--b-violet-s); color: var(--b-violet-d); font-weight: 650; box-shadow: 0 0 0 .7cqw rgba(124, 58, 237, .12); }
.cv-opts .key { font: 600 2.3cqw/1 var(--mono); color: #fff; background: var(--b-ink); border: 0; padding: 1.6cqw 2cqw; margin-left: auto; }
/* removal */
.cv-rm .cv-card { width: 82cqw; }
.cv-rm .rows { display: grid; gap: 2.2cqw; margin-top: 3cqw; }
.cv-rm .row { display: grid; grid-template-columns: 30cqw minmax(0, 1fr) 9cqw; gap: 2cqw; align-items: center; font-size: 2.8cqw; color: #3d4250; }
.cv-rm .row b { font: 650 2.8cqw var(--mono); text-align: right; color: var(--b-ink); }
.cv-rm .tr { height: 2.4cqw; border-radius: 99px; background: #f0eef6; overflow: hidden; }
.cv-rm .tr i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c026d3); }
/* generic */
.cv-gen .cv-glyph { font-size: 22cqw; font-weight: 800; letter-spacing: -0.06em; background: linear-gradient(135deg, #7c3aed, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* per-category cover backgrounds */
.post-cover.c-wm { --cv-bg: radial-gradient(90% 90% at 100% 0%, #fbe7f3, transparent 60%), linear-gradient(135deg, #efe9ff, #f8f6ff); }
.post-cover.c-writing { --cv-bg: radial-gradient(90% 90% at 0% 100%, #fff3c4, transparent 60%), linear-gradient(135deg, #fff9ec, #f5efff); }
.post-cover.c-gpt { --cv-bg: radial-gradient(90% 90% at 100% 0%, #d9f5ec, transparent 60%), linear-gradient(135deg, #eef3ff, #f4efff); }
.post-cover.c-cl { --cv-bg: radial-gradient(90% 90% at 100% 0%, #fde3d6, transparent 60%), linear-gradient(135deg, #fff4ee, #f3effe); }
.post-cover.c-rm { --cv-bg: radial-gradient(90% 90% at 0% 0%, #e0e7ff, transparent 60%), linear-gradient(135deg, #f5f3ff, #fdf2f8); }

/* ===================================================================== */
/* Hub (/blog)                                                           */
/* ===================================================================== */
.blog-hub { position: relative; isolation: isolate; overflow-x: clip; }
.hub-head { position: relative; padding-block: 48px 18px; }
.hub-head::before { content: ""; position: absolute; z-index: -1; inset: 0 -50vw; background-image: linear-gradient(#eeecf5 1px, transparent 1px), linear-gradient(90deg, #eeecf5 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 10%, transparent 75%); }
.hub-head::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -240px; width: 1000px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .13), transparent); pointer-events: none; }
.hub-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.hub-top .eyebrow { text-align: left; }
.hub-head h1 { margin-top: 12px; font-size: clamp(34px, 4.8vw, 58px); font-weight: 770; letter-spacing: -0.045em; line-height: 1.02; color: var(--b-ink); max-width: 22ch; }
.hub-head .sub { margin: 16px 0 0; max-width: 640px; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; color: #4a5060; text-align: left; }
.hub-promise { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hub-promise li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.4; color: #4a5060; max-width: 300px; }
.hub-promise li b { display: block; color: var(--b-ink); font-weight: 650; }
.hub-promise li small { display: block; font-size: 13.5px; color: #5d6472; }
.hub-promise li::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: #fff var(--ic) center / 16px no-repeat; border: 1px solid #e3d9fb; box-shadow: 0 8px 18px -12px rgba(91, 33, 182, .6); }
.hub-promise .p-src { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3.17-3.17a4 4 0 0 0-5.66-5.66L12 6.34M14 10a4 4 0 0 0-5.66 0l-3.17 3.17a4 4 0 0 0 5.66 5.66L12 17.66' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hub-promise .p-date { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='5' width='16' height='15' rx='3' fill='none' stroke='%237c3aed' stroke-width='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4' stroke='%237c3aed' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hub-promise .p-lim { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-4' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.hub-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--b-line); }
.hub-bar h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--b-muted); text-align: left; }
.hub-bar h2 b { color: var(--b-ink); }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.chipset button { font: 500 14px var(--font); color: #3b424b; background: #fff; border: 1px solid var(--b-line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chipset button:hover { border-color: #cfc3f7; color: var(--b-ink); }
.chipset button[aria-pressed="true"] { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }
.chipset button i { font-style: normal; font: 500 12px var(--mono); margin-left: 6px; opacity: .6; }

.hub-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 20px; }
.hub-grid .post-card[hidden] { display: none; }
.hub-grid .post-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 0; border-radius: 24px; }
.hub-grid .post-card.is-featured > .post-cover { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; min-height: 360px; border-bottom: 0; border-right: 1px solid var(--b-line); }
.hub-grid .post-card.is-featured > :not(.post-cover) { grid-column: 2; margin-inline: 40px; }
.hub-grid .post-card.is-featured > .post-cat { grid-row: 2; margin-top: 32px; }
.hub-grid .post-card.is-featured > b { grid-row: 3; }
.hub-grid .post-card.is-featured > .post-desc { grid-row: 4; }
.hub-grid .post-card.is-featured > .post-when { grid-row: 5; }
.hub-grid .post-card.is-featured > .post-cat::before { content: "Featured · "; color: #a59fbb; }
.hub-grid .post-card.is-featured > b { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin-top: 14px; }
.hub-grid .post-card.is-featured > .post-desc { font-size: 16.5px; -webkit-line-clamp: 4; margin-top: 14px; }
.hub-grid .post-card.is-featured > .post-when { margin-top: 0; padding: 20px 0 32px; }
.hub-grid .post-card.is-featured > .post-when::after { content: "Read the post →"; display: block; margin-top: 18px; font: 600 15px var(--font); color: var(--b-violet-d); }
.post-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--b-muted); border: 1px dashed var(--b-line); border-radius: 20px; }

.hub-tools { padding-block: 72px 24px; }
.hub-tools h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; text-align: left; margin: 0; }
.hub-tools > .wrap > p { margin-top: 10px; color: var(--b-muted); max-width: 620px; }
.tool-row { margin-top: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tool-row a { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--b-line); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool-row a:hover { border-color: #d9cffa; transform: translateY(-2px); box-shadow: 0 24px 50px -36px rgba(76, 29, 149, .5); }
.tool-row .dd-ic { margin-bottom: 6px; }
.tool-row b { font-size: 16px; color: var(--b-ink); }
.tool-row span { font-size: 14px; color: var(--b-muted); line-height: 1.5; }
.tool-row em { font-style: normal; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--b-violet-d); margin-top: 6px; }
.hub-cta { padding-block: 48px 104px; }
.hub-cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff; background: radial-gradient(900px 400px at 15% -10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 45%, #a855f7 100%); box-shadow: 0 50px 100px -50px rgba(76, 29, 149, .8); }
.hub-cta-card h2 { color: #fff; margin: 0; font-size: clamp(28px, 3.6vw, 42px); }
.hub-cta-card p { margin: 14px auto 0; max-width: 560px; color: rgba(255, 255, 255, .84); font-size: 17.5px; }
.hub-cta-card .row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hub-cta-card .btn { background: #fff; color: #4c1d95; border-color: #fff; }
.hub-cta-card .btn:hover { background: #f3e8ff; }
.hub-cta-card .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hub-cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .18); }

@media (max-width: 1000px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid .post-card.is-featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hub-grid .post-card.is-featured > * { grid-row: auto !important; }
  .hub-grid .post-card.is-featured > .post-cover { grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--b-line); }
  .hub-grid .post-card.is-featured > :not(.post-cover) { grid-column: 1; margin-inline: 24px; }
  .hub-grid .post-card.is-featured > .post-cat { margin-top: 22px; }
  .hub-grid .post-card.is-featured > .post-when { padding-bottom: 24px; }
  .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row a:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hub-head { padding-block: 30px 6px; }
  .hub-head h1 { font-size: 34px; }
  .hub-head .sub { font-size: 16px; }
  .hub-head .hm { display: none; }
  .hub-promise { margin-top: 12px; gap: 0; flex-wrap: wrap; }
  .hub-promise li { display: inline-flex; font-size: 13px; white-space: nowrap; }
  .hub-promise li::before { display: none; }
  .hub-promise li + li::after { content: none; }
  .hub-promise li:not(:last-child) b::after { content: "·"; margin: 0 8px; color: #b9b3cc; font-weight: 400; }
  .hub-promise li b { font-weight: 600; color: #3b3f4a; }
  .hub-bar h2 { display: none; }
  .hub-grid .post-card.is-featured > .post-cover { aspect-ratio: 16 / 8.5; }
  .hub-promise li::before { width: 22px; height: 22px; border-radius: 7px; background-size: 13px; }
  .hub-promise li small { display: none; }
  .hub-bar { margin-top: 18px; padding-top: 14px; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hub-grid .post-card.is-featured > b { font-size: 23px; }
  .chipset { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; width: calc(100% + 40px); }
  .chipset::-webkit-scrollbar { display: none; }
  .chipset button { flex: none; }
  .hub-cta-card { padding: 44px 22px; border-radius: 24px; }
  .tool-row { grid-template-columns: minmax(0, 1fr); }
}

/* Hub: 6-column grid so a short last row of two cards fills the width */
@media (min-width: 1001px) {
  .hub-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hub-grid > .post-card { grid-column: span 2; }
  .hub-grid > .post-card.is-featured { grid-column: 1 / -1; }
  .hub-grid:not(.filtered) > .post-card:nth-child(3n+2):nth-last-child(2),
  .hub-grid:not(.filtered) > .post-card:nth-child(3n+2):nth-last-child(2) + .post-card { grid-column: span 3; }
  .hub-grid:not(.filtered) > .post-card:nth-child(3n+2):nth-last-child(2) .post-cover,
  .hub-grid:not(.filtered) > .post-card:nth-child(3n+2):nth-last-child(2) + .post-card .post-cover { aspect-ratio: 16 / 7.4; }
}
/* Related: a closing tile that links back to the hub */
.post-more { display: grid; align-content: space-between; gap: 18px; min-height: 100%; padding: 26px 24px; border-radius: 20px; text-decoration: none; color: #fff; background: radial-gradient(400px 200px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(150deg, #1b1033 0%, #4c1d95 60%, #7c3aed 100%); box-shadow: 0 30px 60px -40px rgba(76, 29, 149, .8); transition: transform .2s ease, box-shadow .2s ease; }
.post-more:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -40px rgba(76, 29, 149, .9); }
.post-more small { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #c4b5fd; }
.post-more b { display: block; margin-top: 12px; font-size: 22px; font-weight: 720; letter-spacing: -0.025em; line-height: 1.2; }
.post-more span { font-size: 15px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.post-more em { font-style: normal; font-weight: 650; font-size: 15px; }
@media (max-width: 1099px) { .post-more { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover, .tool-row a:hover { transform: none; transition: none; }
  .js .fig.reveal .fill { transform: none; transition: none; }
}
