/* Blog index + article. Loaded after style.css. */

[hidden] { display: none !important; }

/* category colours as rgb triplets */
.cat-linux { --c: 48,209,88; --c2: 61,155,255; }
.cat-privacy { --c: 48,209,88; }
.cat-comparisons { --c: 255,159,10; }
.cat-models { --c: 61,155,255; }
.cat-guides { --c: 61,155,255; --c2: 0,113,227; }

.tag-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: rgb(var(--c, 61,155,255));
}
.tag-cat::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 10px currentColor;
}
.meta { font: 500 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }

/* ── cover art ────────────────────────── */
.cover {
  --m: clamp(60px, 24cqw, var(--mmax, 136px));
  position: relative; container-type: inline-size; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; background: #0a0a0d;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cover::before {
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .8; transition: opacity .5s var(--ease);
  background:
    radial-gradient(52% 68% at 50% 56%, rgba(var(--c), .30), transparent 72%);
}
.cover::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(55% 65% at 50% 52%, #000, transparent 78%);
  mask-image: radial-gradient(55% 65% at 50% 52%, #000, transparent 78%);
}
.cv-kick {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgb(var(--c)); opacity: .92;
}
.cv-logo { position: absolute; right: 16px; bottom: 14px; width: 18px; height: 18px; opacity: .35; filter: grayscale(1) brightness(2); }
.cv-motif { position: relative; z-index: 1; font-size: var(--m); line-height: 1; transition: transform .6s var(--ease); }

.cv-wave { display: flex; align-items: center; gap: .075em; height: 1em; }
.cv-wave i {
  width: .095em; border-radius: 99px;
  background: linear-gradient(180deg, rgb(var(--c)), rgba(var(--c2, var(--c)), .65));
  box-shadow: 0 0 .5em rgba(var(--c), .4);
}
.cv-wave i:nth-child(1) { height: 30%; } .cv-wave i:nth-child(2) { height: 70%; }
.cv-wave i:nth-child(3) { height: 100%; } .cv-wave i:nth-child(4) { height: 62%; }
.cv-wave i:nth-child(5) { height: 24%; }

.cv-term {
  width: 1.5em; height: 1.02em; border-radius: .15em; padding: .2em .14em .14em;
  border: 1.5px solid rgba(255,255,255,.2);
  background: linear-gradient(180deg, #17171c, #0e0e11);
  box-shadow: 0 0 .7em -.1em rgba(var(--c), .35), inset 0 1px 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: .07em; position: relative;
}
.cv-term::before {
  content: ''; position: absolute; left: .13em; top: .1em; width: .3em; height: .05em;
  background: radial-gradient(circle .025em, rgba(255,255,255,.3) 98%, transparent) 0 0 / .1em .05em repeat-x;
}
.cv-term u { display: block; height: .03em; border-radius: 9px; background: rgba(255,255,255,.14); text-decoration: none; }
.cv-term u:nth-of-type(1) { width: 62%; } .cv-term u:nth-of-type(2) { width: 38%; }
.cv-term b { margin-top: auto; font: 500 .44em/1 var(--mono); color: rgb(var(--c)); text-shadow: 0 0 .6em rgba(var(--c), .7); }

.cv-lock {
  width: 1.4em; height: 1.1em; display: grid; place-items: center; border-radius: .26em;
  border: 2px dashed rgba(var(--c), .55); background: rgba(var(--c), .07);
  color: rgb(var(--c));
}
.cv-lock svg { width: .56em; height: .56em; filter: drop-shadow(0 0 .12em rgba(var(--c), .6)); }

.cv-vs { position: relative; display: flex; align-items: center; }
.cv-vs i { width: .8em; height: .8em; border-radius: 50%; border: 2px solid; flex: none; }
.cv-vs i:first-child { border-color: rgb(var(--c)); background: rgba(var(--c), .12); box-shadow: 0 0 .5em rgba(var(--c), .3); }
.cv-vs i:nth-child(2) { margin-left: -.26em; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.cv-vs b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 500 .15em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  padding: .3em .45em; border-radius: 99px; background: #0a0a0d; border: 1px solid var(--line-2);
}

.cv-chart {
  display: flex; align-items: flex-end; gap: .09em; height: 1em; padding-bottom: .05em;
  border-bottom: 1.5px solid rgba(255,255,255,.22);
}
.cv-chart i { width: .15em; height: var(--h); border-radius: .035em .035em 0 0; background: rgba(255,255,255,.13); }
.cv-chart i.hi { background: linear-gradient(180deg, rgb(var(--c)), rgba(var(--c), .35)); box-shadow: 0 0 .5em rgba(var(--c), .45); }

.cv-price { text-align: center; }
.cv-price b {
  display: block; font-size: .62em; font-weight: 650; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #9a9aa2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cv-price small {
  display: block; margin-top: .55em; font: 500 .13em/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--c));
}
.cv-price.was b { background: none; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255,69,58,.85); text-decoration-thickness: .06em; }

.cv-cloud { width: 1.5em; height: 1.1em; color: rgb(var(--c)); filter: drop-shadow(0 0 .2em rgba(var(--c), .4)); }
.cv-cloud svg { width: 100%; height: 100%; }

.cover.lg { --mmax: 176px; }
.art-cover .cover.lg { --mmax: 250px; }

/* ── blog header ──────────────────────── */
.b-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 44px); }
.b-head::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(45% 45% at 28% 35%, rgba(0,113,227,.22), transparent 70%),
    radial-gradient(30% 30% at 82% 30%, rgba(48,209,88,.07), transparent 70%);
}
.b-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(55% 70% at 35% 35%, #000, transparent 75%);
  mask-image: radial-gradient(55% 70% at 35% 35%, #000, transparent 75%);
}
.b-head h1 { margin: 22px 0 20px; max-width: 13em; text-wrap: balance; }
.b-head .lede { max-width: 30em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filters button {
  height: 36px; padding: 0 16px; border-radius: 99px; font-size: 14px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  transition: color .2s, border-color .2s, background .2s;
}
.filters button:hover { color: var(--ink); border-color: rgba(255,255,255,.28); }
.filters button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; font-weight: 560; }
.filters button:focus-visible, .card:focus-visible, .feat:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* ── featured ─────────────────────────── */
.b-feat { padding: clamp(20px, 3vw, 32px) 0 16px; }
.feat {
  display: grid; grid-template-columns: 1.22fr 1fr; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.feat .cover { min-height: 420px; border-radius: 0; }
.feat-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4.2vw, 60px); }
.feat-body h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 620; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.feat-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.feat-foot { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.go { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 540; color: var(--ink); }
.go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.feat:hover, .card:hover { border-color: var(--line-2); }
.feat:hover .cover::before, .card:hover .cover::before { opacity: 1; }
.feat:hover .cv-motif, .card:hover .cv-motif { transform: scale(1.05); }
.feat:hover .go svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat .cover { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ── card grid ────────────────────────── */
.b-grid { padding: 0 0 clamp(72px, 9vw, 120px); }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.card:hover { transform: translateY(-2px); }
.card .cover { aspect-ratio: 16 / 10; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card h3 { margin: 16px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.28; }
.card p {
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: auto; padding-top: 20px; }

/* ── closing cta (blog) ───────────────── */
.b-final { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.b-final .wave { height: 52px; gap: 7px; margin-bottom: 28px; }
.b-final .wave i { width: 8px; }
.b-final .h-2 { text-wrap: balance; }
.b-final .cta-row { margin-top: 32px; }

/* ── article ──────────────────────────── */
.art-top { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 0; }
.art-top::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 110%; z-index: -1;
  background: radial-gradient(45% 40% at 40% 30%, rgba(48,209,88,.10), transparent 70%), radial-gradient(40% 40% at 65% 25%, rgba(0,113,227,.16), transparent 70%);
}
.crumb { font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb span:last-child { color: var(--ink-2); }
.art-head { max-width: 820px; margin: 0 auto; }
.art-head .crumb { margin-bottom: 32px; }
.art-head h1 {
  margin: 20px 0 24px; font-size: clamp(36px, 5vw, 60px); font-weight: 640; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance;
}
.art-head .lede { max-width: none; font-size: clamp(18px, 1.7vw, 21px); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2); font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--ink);
}
.byline b { display: block; font-size: 15px; font-weight: 540; letter-spacing: -.01em; line-height: 1.3; }
.byline .meta { display: block; margin-top: 2px; }
.art-cover { margin-top: clamp(36px, 5vw, 56px); }
.art-cover .cover { aspect-ratio: 3 / 1; border-radius: var(--r-xl); border: 1px solid var(--line-2); box-shadow: 0 60px 140px -60px rgba(48,209,88,.25); }
@media (max-width: 640px) { .art-cover .cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); } }

.art-body {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; justify-content: center;
  padding: clamp(40px, 6vw, 72px) var(--gut) 0; max-width: var(--wrap); margin: 0 auto;
}
.art-main { min-width: 0; max-width: 680px; margin: 0 auto; width: 100%; }
.toc, .side { display: none; }
@media (min-width: 1100px) {
  .art-body { grid-template-columns: 180px minmax(0, 1fr) 208px; gap: 48px; }
  .toc, .side { display: block; position: sticky; top: 96px; align-self: start; }
  .toc-m { display: none; }
}

.toc h4, .toc-m summary {
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.toc h4 { margin-bottom: 16px; }
.toc ul { list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--ink-3); transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink-2); }
.toc a.on { color: var(--ink); border-left-color: var(--blue-hi); }

.toc-m { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); max-width: 680px; margin: 0 auto; width: 100%; }
.toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: '+'; font: 300 22px/1 var(--sans); color: var(--ink-3); transition: transform .3s; }
.toc-m[open] summary::after { transform: rotate(45deg); }
.toc-m ol { list-style: none; padding: 0 20px 14px; display: grid; }
.toc-m a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }

.side-card {
  padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, rgba(48,209,88,.12), transparent 65%), var(--surface);
}
.side-card svg.lx { width: 32px; height: 32px; margin-bottom: 16px; }
.side-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.side-card p { margin: 8px 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.side-card .btn { width: 100%; }

/* prose */
.prose { font-size: 18px; line-height: 1.75; color: #d6d6dc; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  margin-top: 2.2em; font-size: clamp(25px, 2.6vw, 29px); font-weight: 620; letter-spacing: -.025em; line-height: 1.2;
  color: var(--ink); scroll-margin-top: 90px; text-wrap: balance;
}
.prose h2 + * { margin-top: .9em; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(61,155,255,.4); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--blue-hi); }
.prose code {
  font: 500 .88em var(--mono); padding: .14em .42em; border-radius: 6px; color: #e8e8ee;
  background: #16161a; border: 1px solid var(--line); overflow-wrap: anywhere;
}
.prose kbd {
  display: inline-block; font: 500 .8em/1 var(--mono); padding: .3em .55em .34em; border-radius: 6px; color: #d8d8de;
  background: linear-gradient(180deg, #2a2a30, #1b1b20); border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 1.5px 0 #0b0b0d, inset 0 1px 0 rgba(255,255,255,.08); vertical-align: .06em;
}
.prose .kc { white-space: nowrap; }
.prose .kc i { font-style: normal; color: var(--ink-3); margin: 0 .22em; font-size: .85em; }
.prose ol, .prose ul { list-style: none; display: grid; gap: .7em; }
.prose ol { counter-reset: n; }
.prose li { position: relative; padding-left: 44px; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 500 12px/1 var(--mono); color: var(--blue-hi);
  background: rgba(61,155,255,.12); border: 1px solid rgba(61,155,255,.35);
}
.prose ul li::before { content: ''; position: absolute; left: 10px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }

.prose .pull {
  margin-block: 2em; padding-left: 24px; border-left: 2px solid var(--blue-hi);
  font-size: clamp(21px, 2.4vw, 24px); font-weight: 520; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); text-wrap: balance;
}
.prose .callout {
  padding: 22px 24px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--green);
}
.callout .co-lab {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}
.callout .co-lab svg { width: 14px; height: 14px; }
.callout p { font-size: 17px; line-height: 1.7; }

.tbl-wrap { border-radius: var(--r); border: 1px solid var(--line-2); overflow-x: auto; background: var(--surface); }
.prose .tbl-wrap { margin-block: 1.8em; }
.tbl-wrap .cmp { min-width: 560px; font-size: 14.5px; line-height: 1.5; }
.tbl-wrap .cmp th, .tbl-wrap .cmp td { vertical-align: top; }
.tbl-wrap .cmp code { font-size: .86em; }
.tbl-wrap .cmp td.y { color: var(--green); font-weight: 560; }
.tbl-wrap .cmp td.o { color: var(--orange); font-weight: 560; }
.tbl-wrap .cmp td.n { color: var(--ink-3); font-weight: 560; }
.tbl-wrap .cmp td.y strong, .tbl-wrap .cmp td.o strong { color: inherit; }

/* after the article */
.art-after { max-width: 820px; margin: clamp(64px, 8vw, 96px) auto 0; padding: 0 var(--gut); display: grid; gap: 20px; }
.art-cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 48px); border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(70% 110% at 50% 130%, rgba(0,113,227,.45), transparent 70%), var(--surface);
}
.art-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%);
}
.art-cta .wave { justify-content: center; height: 40px; gap: 6px; margin: 0 auto 24px; }
.art-cta .wave i { width: 6px; }
.art-cta .h-3 { font-size: clamp(26px, 3vw, 34px); font-weight: 620; letter-spacing: -.03em; line-height: 1.1; }
.art-cta p { margin: 12px auto 0; max-width: 30em; color: var(--ink-2); font-size: 16.5px; }
.art-cta .cta-row { justify-content: center; margin-top: 28px; }

.author { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.author .avatar { width: 52px; height: 52px; font-size: 16px; }
.author b { display: block; font-size: 16px; font-weight: 560; letter-spacing: -.01em; }
.author p { margin-top: 2px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.more { padding: clamp(72px, 9vw, 112px) 0 clamp(72px, 9vw, 120px); }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.more-head .go { color: var(--ink-2); }
.more-head .go:hover { color: var(--ink); }
@media (max-width: 480px) {
  .author { align-items: flex-start; }
  .art-cta .cta-row .btn { width: 100%; }
}
@media (min-width: 1100px) { .art-head { max-width: 860px; margin: 0 0 0 228px; } }

/* new motif + source note */
.cv-chip { width: 1.4em; height: 1.1em; display: grid; place-items: center; color: rgb(var(--c)); }
.cv-chip svg { width: 1.05em; height: 1.05em; filter: drop-shadow(0 0 .14em rgba(var(--c), .55)); }
.prose .src { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.tbl-wrap .cmp.wide { min-width: 0; font-size: 13.5px; }
.tbl-wrap .cmp.wide th, .tbl-wrap .cmp.wide td { padding: 12px 10px; }
@media (max-width: 700px) { .tbl-wrap .cmp.wide { min-width: 640px; } }
@media (min-width: 1024px) {
  .grid > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.22fr 1fr; }
  .grid > .card:last-child:nth-child(3n+1) .cover { aspect-ratio: auto; min-height: 260px; }
}
