/* useharris.com/blog — same desk as the home page (v3): light paper, one deep violet, Hanken + Plex Mono.
   Built pages come from blog/build.mjs; edit the templates there, not the generated HTML. */
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-grotesk-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-grotesk-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F6F3; --ink: #16151F; --slate: #4B4A57; --violet: #4C1FD1; --violet-down: #3B16A8; --green: #0B7A55;
  --night: #16151F; --night-ink: #F6F6F3; --night-slate: #BDBCC9;
  --rule: #DCDBD3; --card: #FFFFFF; --tint: #ECE8FA;
  --body: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --pad: 16px; --max: 1180px; --measure: 700px;
}
@media (min-width: 720px) { :root { --pad: 40px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 18px/1.6 var(--body); overflow-x: hidden; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--violet-down); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono, .num { font-family: var(--mono); font-weight: 400; }
.skiplink { position: fixed; left: 16px; top: -80px; z-index: 60; background: var(--violet); color: #fff; font: 700 15px/1 var(--body); padding: 15px 20px; border-radius: 999px; text-decoration: none; }
.skiplink:focus { top: 12px; color: #fff; }
h1, h2, h3, h4 { font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 55; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246,246,243,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.stuck { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font: 700 18px/1 var(--body); }
.mark:hover { color: var(--ink); }
.mark i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--violet); color: #fff; font: 700 17px/1 var(--body); font-style: normal; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a:not(.pill) { display: none; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 700 15px/1 var(--body); }
.nav a:not(.pill):hover, .nav a[aria-current] { background: var(--tint); color: var(--violet); }
@media (min-width: 720px) { .nav a:not(.pill) { display: inline-flex; } }

/* pills: one filled per screen */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--violet); color: #fff; font: 700 16px/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: background .18s ease, transform .12s ease; }
.pill:hover { background: var(--violet-down); color: #fff; }
.pill:active { transform: scale(.98); }
.pill.sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.pill.light { background: var(--night-ink); color: var(--ink); }
.pill.light:hover { background: #fff; color: var(--violet); }
.quiet { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1.3 var(--body); color: var(--violet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; }

/* breadcrumbs */
.crumbs { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font: 400 13px/1.4 var(--mono); color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #A9A8A0; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ===== post hero ===== */
.phero { padding: 26px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 400 13px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--violet); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.phero h1 { font-size: clamp(34px, 6.2vw, 62px); line-height: 1.04; letter-spacing: -.025em; max-width: 17em; }
.dek { margin-top: 20px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--slate); max-width: 36em; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; font-size: 15px; color: var(--slate); }
.byline .who { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.byline .who b { display: block; font-size: 16px; line-height: 1.2; }
.byline .who small { display: block; font-size: 13px; color: var(--slate); }
.avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--tint); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px/1 var(--body); color: var(--violet); }
.byline .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 13px/1.4 var(--mono); }
.byline .meta span + span::before { content: "·"; margin-right: 14px; color: #A9A8A0; }
.cover { margin: 30px 0 0; border-radius: 22px; overflow: hidden; background: var(--tint); box-shadow: 0 1px 0 var(--rule), 0 24px 60px -32px rgba(22,21,31,.35); aspect-ratio: 1200 / 630; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .cover { border-radius: 28px; margin-top: 40px; } }

/* ===== article layout: TOC rail + measure ===== */
.layout { display: grid; gap: 34px; padding: 34px 0 20px; }
@media (min-width: 1080px) {
  .layout { grid-template-columns: 230px minmax(0, var(--measure)); justify-content: space-between; gap: 64px; padding-top: 56px; }
  .layout.nottoc { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
}
.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
  .toc p { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 0 0 12px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--rule); }
  .toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--slate); text-decoration: none; font-size: 14px; line-height: 1.4; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { color: var(--violet); border-left-color: var(--violet); font-weight: 700; }
}
.tocm { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 4px 18px; }
.tocm summary { cursor: pointer; list-style: none; min-height: 50px; display: flex; align-items: center; justify-content: space-between; font: 700 16px/1.3 var(--body); }
.tocm summary::-webkit-details-marker { display: none; }
.tocm summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--violet); }
.tocm[open] summary::after { content: "–"; }
.tocm ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
@media (min-width: 1080px) { .tocm { display: none; } }

/* ===== prose ===== */
.prose { min-width: 0; font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(27px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.018em; margin-top: 2.1em; scroll-margin-top: 84px; }
.prose h3 { font-size: 22px; line-height: 1.3; margin-top: 1.7em; scroll-margin-top: 84px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p, .prose li { color: #24232E; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--violet); font-weight: 700; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--violet); font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose blockquote p { color: inherit; }
.prose code { font: 400 .86em/1.4 var(--mono); background: var(--tint); color: var(--violet-down); padding: .12em .38em; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { margin-left: 0; margin-right: 0; padding: 18px 20px; border-radius: 16px; background: var(--night); color: var(--night-ink); overflow-x: auto; font: 400 14.5px/1.6 var(--mono); }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); min-width: 120px; }
.prose thead th { border-bottom: 1.5px solid var(--ink); font-size: 14px; letter-spacing: .01em; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img, .prose figure svg { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.prose figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.prose a[href^="http"]:not([href*="useharris.com"])::after { content: "↗"; font-size: .8em; margin-left: 2px; }

/* the short answer, at the top: written for people skimming and for answer engines */
.answer { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.answer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--violet); }
.answer .label { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin: 0 0 8px; }
.answer p { font-size: 19px; line-height: 1.6; color: var(--ink); }
.answer ul { margin: 10px 0 0; padding-left: 1.2em; }
.answer li { font-size: 17px; }

/* callouts */
.callout { border-radius: 18px; padding: 18px 20px; background: var(--tint); }
.callout p { color: var(--ink); }
.callout.warn { background: #FBF1E4; }
.callout .label { display: block; font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin: 0 0 6px; }
.callout.warn .label { color: #8A4B08; }

/* steps */
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); margin: 0; }
.prose ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font: 400 12px/1 var(--mono); }

/* video facade: nothing from YouTube loads until a tap */
.video { margin: 1.6em 0; }
.video .vbtn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--night); cursor: pointer; aspect-ratio: 16 / 9; }
.video.short .vbtn, .video.short .vframe { aspect-ratio: 9 / 16; max-width: 340px; }
.video.short { display: grid; grid-template-columns: minmax(0, 300px); gap: 0 26px; }
@media (min-width: 640px) { .video.short { grid-template-columns: 300px minmax(0, 1fr); align-items: end; } }
.video .vbtn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s ease, opacity .3s ease; }
.video .vbtn:hover img { transform: scale(1.03); opacity: 1; }
.video .vbtn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,21,31,.72), rgba(22,21,31,0) 55%); }
.video .vchip { position: absolute; z-index: 1; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 12px; color: #fff; text-align: left; font: 700 16px/1.3 var(--body); }
.video .vchip i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night-ink); color: var(--violet); transition: transform .15s ease; }
.video .vbtn:hover .vchip i { transform: scale(1.07); }
.video .vchip svg { width: 20px; height: 20px; margin-left: 3px; }
.video .vframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.video .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 10px; font-size: 14.5px; color: var(--slate); }
.video.short figcaption { margin-top: 12px; }

/* in-article call to action: the one dark band on the page */
.ctabox { border-radius: 24px; background: var(--night); color: var(--night-ink); padding: 26px 22px; display: grid; gap: 14px; position: relative; overflow: hidden; margin: 2em 0; }
.ctabox::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.5), rgba(124,92,255,0) 70%); pointer-events: none; }
.ctabox .label { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #B9A6FF; margin: 0; }
.ctabox h3 { font-size: 24px; line-height: 1.2; color: var(--night-ink); margin: 0; max-width: 22em; }
.ctabox p { color: var(--night-slate); font-size: 17px; margin: 0; max-width: 34em; }
.ctabox .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; position: relative; z-index: 1; }
.ctabox .quiet { color: var(--night-ink); }
@media (min-width: 720px) { .ctabox { padding: 34px 34px; } }

/* sign-up (same transport as the home page: /assets/signup.js) */
.signup { width: 100%; max-width: 560px; position: relative; z-index: 1; }
.form { display: flex; flex-wrap: wrap; gap: 8px; }
.form input[type=email] { flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 999px; border: 1.5px solid #B9B7AE; background: var(--card); color: var(--ink); font: 500 17px/1 var(--body); padding: 0 22px; }
.form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(76,31,209,.25); }
.form .hp { position: absolute; left: -9999px; }
.fine { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--night-slate); }
.fine a { color: var(--night-ink); }
.msg { margin: 8px 0 0; font-size: 15px; color: #FFB4A8; font-weight: 700; }
.msg:empty { display: none; }
.done { display: none; border-radius: 18px; background: rgba(246,246,243,.08); padding: 16px 18px; }
.done h3 { font-size: 20px; margin: 0 0 4px; }
.done p { margin: 0 0 12px; font-size: 15px; }
.ts { margin-top: 10px; }
.signup.sent .form, .signup.sent .fine, .signup.sent .msg, .signup.sent .ts { display: none; }
.signup.sent .done { display: block; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); margin-top: .8em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 12px 0; font: 700 18px/1.4 var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C1FD1' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--slate); }
.faq .a p { color: var(--slate); font-size: 17px; }

/* author */
.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 3em; padding: 24px 0 0; border-top: 1.5px solid var(--ink); }
.author .avatar { width: 72px; height: 72px; }
.author b { display: block; font-size: 18px; }
.author p { font-size: 16px; color: var(--slate); margin-top: 4px; line-height: 1.55; }

/* series box: the guide this post belongs to */
.series { margin-top: 2.6em; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 22px; }
.series .label { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin: 0 0 6px; }
.series h3 { font-size: 20px; }
.series ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: s; }
.series li { counter-increment: s; }
.series li a, .series li span.here { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 16px; line-height: 1.4; }
.series li a::before, .series li span.here::before { content: counter(s, decimal-leading-zero); font: 400 12px/1.9 var(--mono); color: var(--slate); }
.series li a:hover { background: var(--tint); color: var(--violet); }
.series li span.here { background: var(--tint); font-weight: 700; }

/* ===== cards (index + related) ===== */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; } }
@media (min-width: 1080px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card .thumb { border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--tint); box-shadow: 0 1px 0 var(--rule); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.035); }
.card .k { font: 400 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--violet); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card:hover h3 a { color: var(--violet); }
.card p { font-size: 16px; line-height: 1.5; color: var(--slate); }
.card .d { font: 400 12.5px/1.3 var(--mono); color: var(--slate); }
.related { padding: 40px 0 10px; }
.related h2 { font-size: 28px; margin-bottom: 24px; }

/* ===== blog index ===== */
.bhero { padding: 34px 0 30px; }
.bhero h1 { font-size: clamp(38px, 6.8vw, 72px); line-height: 1.02; letter-spacing: -.03em; max-width: 13em; }
.bhero .dek { max-width: 34em; }
.feature { display: grid; gap: 22px; padding: 10px 0 44px; position: relative; }
.feature .thumb { border-radius: 24px; overflow: hidden; aspect-ratio: 1200 / 630; box-shadow: 0 24px 60px -34px rgba(22,21,31,.4); }
.feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .thumb img { transform: scale(1.025); }
.feature h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.feature h2 a { color: var(--ink); text-decoration: none; }
.feature h2 a::after { content: ""; position: absolute; inset: 0; }
.feature:hover h2 a { color: var(--violet); }
.feature p { color: var(--slate); font-size: 18px; max-width: 34em; }
.feature .tag { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--violet); font: 400 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; } .feature .txt { display: grid; gap: 16px; } }
@media (max-width: 959px) { .feature .txt { display: grid; gap: 12px; } }
.shelf { padding: 40px 0; border-top: 1.5px solid var(--ink); }
.shelf h2 { font-size: 26px; margin-bottom: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shelf h2 span { font: 400 13px/1 var(--mono); color: var(--slate); }

/* footer */
footer { margin-top: 60px; padding: 28px 0 44px; border-top: 1px solid var(--rule); }
footer ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 8px; padding: 0; list-style: none; }
footer ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; }
footer p { font-size: 14px; color: var(--slate); margin: 0 0 6px; max-width: 60em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ===== figure kit for writers (see blog/WRITING.md) ===== */
/* a window: a file, a terminal or a note, with a title bar */
.win { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), 0 18px 44px -30px rgba(22,21,31,.35); }
.win .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--rule); background: #FBFBF9; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #DCDBD3; }
.win .bar span { margin-left: 8px; font: 400 12.5px/1.2 var(--mono); color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prose .win pre { margin: 0; border-radius: 0; background: var(--card); color: var(--ink); font-size: 14px; line-height: 1.65; padding: 16px 18px; white-space: pre-wrap; }
.win.dark { background: var(--night); box-shadow: 0 18px 44px -26px rgba(22,21,31,.55); }
.win.dark .bar { background: #201F2B; border-bottom-color: #2E2D3A; }
.win.dark .bar i { background: #3A3946; }
.win.dark .bar span { color: var(--night-slate); }
.prose .win.dark pre { background: var(--night); color: var(--night-ink); }
.win .hl { color: var(--violet); font-weight: 400; }
.win.dark .hl { color: #B9A6FF; }
.win .ok { color: var(--green); }
.win.dark .ok { color: #6EE7B7; }
.win .dim { color: #8B8A96; }
/* a diagram: inline SVG drawn with the site colours */
.diagram { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 18px; }
.prose .diagram svg { display: block; width: 100%; height: auto; box-shadow: none; border-radius: 0; background: none; }
.diagram svg text { font-family: var(--body); }
.diagram svg .m { font-family: var(--mono); }
/* two-up comparison */
.vs { display: grid; gap: 14px; }
@media (min-width: 640px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs > div { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 18px 18px 16px; }
.vs > div.win-side { box-shadow: inset 0 0 0 2px var(--violet); }
.vs h4 { font-size: 17px; margin: 0 0 8px; }
.vs ul { margin: 0; padding-left: 1.1em; font-size: 16px; }
.vs li + li { margin-top: .35em; }
/* stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats div { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); padding: 16px; }
.stats b { display: block; font: 400 30px/1.05 var(--mono); letter-spacing: -.02em; color: var(--violet); }
.stats span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.4; color: var(--slate); }
