/* ==========================================================================
   popkern landing site
   Single stylesheet, no build step. Dark-first with a full light palette.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg:            #0a0c0f;
  --bg-soft:       #0f1216;
  --surface:       #14181d;
  --surface-2:     #1b1f25;
  --border:        #262c33;
  --border-strong: #39404a;

  --text:       #e6ecf5;
  --text-dim:   #97a3b3;
  --text-faint: #6d7885;

  --brand:     #2ec4b6;
  --brand-ink: #13897e;
  --blue:      #5c9df7;
  --cyan:      #63d2ec;
  --green:     #6fe8a9;
  --accent:     var(--brand);

  /* Warm accent: the logo arc and the primary call to action. */
  --amber:     #f5a524;
  --amber-hi:  #ffbf4d;
  --amber-ink: #1d1404;

  --glow: radial-gradient(60% 60% at 50% 40%, rgba(40, 190, 175, .18), transparent 70%);
  --glow-warm: radial-gradient(38% 42% at 76% 46%, rgba(245, 165, 36, .13), transparent 70%);

  --radius:    14px;
  --radius-sm: 9px;
  --container: 1140px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            #f9fbfd;
    --bg-soft:       #f1f5fa;
    --surface:       #ffffff;
    --surface-2:     #eef3f9;
    --border:        #dae2ec;
    --border-strong: #b8c4d3;

    --text:       #14181d;
    --text-dim:   #515a66;
    --text-faint: #7a8593;

    --brand:     #0b8378;
    --brand-ink: #08665d;
    --blue:      #1b5fd0;
    --cyan:      #0d7fa6;
    --green:     #14875a;

    --glow: radial-gradient(60% 60% at 50% 40%, rgba(20, 160, 145, .12), transparent 70%);
    --glow-warm: radial-gradient(38% 42% at 76% 46%, rgba(245, 165, 36, .16), transparent 70%);
    --amber:     #f2a01c;
    --amber-hi:  #f7b23f;
    color-scheme: light;
  }
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; margin: 0; font-weight: 650; text-wrap: balance; }
/* Paragraphs never end on a lone word. */
p, li, figcaption { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: .7rem 1rem; border: 1px solid var(--border-strong); border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---- Section furniture ------------------------------------------------- */
section { padding-block: clamp(64px, 9vw, 116px); }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p {
  color: var(--text-dim);
  font-size: 1.06rem;
  margin: 16px 0 0;
}

.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* One-line positioning statement. The argument behind it lives in the launch
   post; this is only here so the page is not silent about the "why". */
.lede { padding-block: clamp(40px, 5vw, 60px) 0; }
.lede p {
  margin: 0; max-width: 62ch;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.6; color: var(--text-dim);
}
.lede a { white-space: nowrap; }

/* ---- Nav --------------------------------------------------------------- */
/* The bar is always dark, in light mode too, so its colours are fixed rather
   than taken from the theme tokens. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f242b;
  color-scheme: dark;
}
.nav .brand, .nav .brand:hover { color: #e6ecf5; }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 680; letter-spacing: -.03em; font-size: 1.12rem;
  color: var(--text); text-decoration: none; flex: none;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 22px; height: 22px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a {
  color: #a3aebd; text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #e6ecf5; }

.nav-links a.nav-cta {
  background: var(--amber); color: var(--amber-ink); font-weight: 620;
  padding: 7px 14px; border-radius: 9px; white-space: nowrap;
  transition: background .15s ease;
}
.nav-links a.nav-cta:hover { background: var(--amber-hi); color: var(--amber-ink); }

.nav-soon {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase;
  color: #6d7885; border: 1px solid #39404a;
  border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}

.nav-icons { display: flex; align-items: center; gap: 4px; padding-left: 6px; border-left: 1px solid #262c33; }
.icon-link {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; color: #a3aebd; transition: background .15s ease, color .15s ease;
}
.icon-link:hover { background: #1b1f25; color: #fff; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 860px) {
  .nav-links a[data-optional] { display: none; }
}
@media (max-width: 620px) {
  .nav-links { gap: 14px; }
  .nav-icons { display: none; }
}
@media (max-width: 480px) {
  .nav-links a[data-wide] { display: none; }
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 10px;
  font-size: .95rem; font-weight: 560; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.btn-primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); font-weight: 620; }
.btn-primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: var(--amber-ink); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-faint); }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 780px;
  background: var(--glow-warm), var(--glow); pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .02em;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 5px 13px 5px 9px; margin-bottom: 24px; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.badge:hover { color: var(--text); border-color: var(--text-faint); }
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.9rem);
  letter-spacing: -.035em; font-weight: 690;
  margin-bottom: 22px;
}
/* The headline breaks between phrases only ("kernel for", "everyone
   who", "makes things."): a free wrap stranded "for" at 320 px and
   "things." from 414 to 480 px. */
.hero h1 .grad {
  background: linear-gradient(96deg, var(--brand) 8%, var(--blue) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.04rem, 1.7vw, 1.19rem); color: var(--text-dim); max-width: 54ch; margin: 0 0 32px; }
.hero-sub strong { color: var(--text); font-weight: 560; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-meta {
  margin-top: 26px; font-family: var(--mono); font-size: .8rem;
  color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong);
}

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-art img {
  width: 100%; height: auto; max-width: 620px;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .5));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-art img { filter: drop-shadow(0 24px 44px rgba(20, 50, 100, .2)); }
}
.hero-art figcaption {
  margin-top: 14px; font-family: var(--mono); font-size: .74rem;
  color: var(--text-faint); text-align: center;
}
/* Lead with the headline on narrow screens. A full-bleed render at the top
   pushed the entire pitch below the fold. */
@media (max-width: 940px) {
  .hero-art { min-height: 0; margin-top: 8px; }
  .hero-art img { max-width: 340px; }
}

/* ---- Stats band -------------------------------------------------------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-soft); padding-block: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat dt {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 660;
  letter-spacing: -.02em; font-family: var(--mono); color: var(--text);
}
.stat dd {
  margin: 6px 0 0; font-size: .78rem; color: var(--text-faint);
  letter-spacing: .05em; text-transform: uppercase;
}
@media (max-width: 780px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---- Prose ------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { color: var(--text-dim); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 580; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Capability cards -------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card p { margin: 0; color: var(--text-dim); font-size: .92rem; line-height: 1.6; }
.card .crate {
  display: block; margin-top: 14px; font-family: var(--mono);
  font-size: .74rem; color: var(--text-faint);
}
.card-icon { width: 17px; height: 17px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.7; }

/* ---- Code -------------------------------------------------------------- */
.code-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono); font-size: .78rem; color: var(--text-faint);
}
.code-head .fname { margin-right: auto; }
.copy-btn {
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 3px 9px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-faint); }
.copy-btn[data-copied="1"] { color: var(--green); border-color: var(--green); }

pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font-family: var(--mono); font-size: .855rem; line-height: 1.72;
  tab-size: 4;
}
pre code { font: inherit; color: var(--text); }
code { font-family: var(--mono); font-size: .92em; }

p code, li code, td code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: .08em .38em; color: var(--text);
}

/* token colours */
.t-kw  { color: var(--brand); }
.t-fn  { color: var(--cyan); }
.t-str { color: var(--green); }
.t-num { color: #e8b56f; }
.t-cmt { color: var(--text-faint); font-style: italic; }
.t-ty  { color: #6ed3d3; }

.install {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; font-family: var(--mono); font-size: .84rem; color: var(--text-dim);
}

/* ---- Gallery ----------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin: 0;
  display: flex; flex-direction: column; height: 100%;
}
.shot-img {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; min-height: 0;
  background:
    radial-gradient(70% 70% at 50% 42%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 72%),
    var(--bg-soft);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 15px;
}
/* Pinned to the padded box: a percentage max-height inside an auto grid
   row has nothing to resolve against, so a tall render overflowed. */
.shot-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.shot figcaption { font-size: .88rem; color: var(--text-dim); }
.shot figcaption b { display: block; color: var(--text); font-weight: 560; margin-bottom: 3px; font-size: .93rem; }

.gallery-note {
  margin-top: 22px; font-size: .87rem; color: var(--text-faint); max-width: 68ch;
}

/* ---- Agents / feature panel -------------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px, 3.4vw, 38px);
}

.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ledger li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-dim); font-size: .95rem; }
.ledger svg { width: 17px; height: 17px; flex: none; margin-top: 4px; stroke: var(--green); fill: none; stroke-width: 2; }
.ledger b { color: var(--text); font-weight: 560; }

/* ---- Licence table ----------------------------------------------------- */
.lic-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.lic-table th, .lic-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lic-table th { color: var(--text); font-weight: 580; width: 42%; }
.lic-table td { color: var(--text-dim); }
.lic-table tr:last-child th, .lic-table tr:last-child td { border-bottom: 0; }
.yours { color: var(--green); font-weight: 560; }

/* ---- Playground -------------------------------------------------------- */
.pg {
  position: relative; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--bg-soft);
  padding: clamp(30px, 5vw, 56px); text-align: center;
}
.pg h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 14px; }
.pg p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 24px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font-family: var(--mono); font-size: .76rem; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 5px 12px;
}

/* ---- CTA --------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta p { color: var(--text-dim); max-width: 54ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 52px 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px; font-weight: 560;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-dim); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--text); }
.footer-about p { color: var(--text-faint); font-size: .89rem; margin: 12px 0 0; max-width: 34ch; }

.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: .84rem; color: var(--text-faint);
}
.footer-bottom .spacer { margin-left: auto; }
/* Where to find popkern: one icon per place, in the footer's colours
   (the nav's icon links are dark-bar colours). */
.footer-social { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-about .footer-social { margin: 14px 0 0 -8px; }
.footer-social .icon-link { color: var(--text-dim); }
.footer-social .icon-link:hover { color: var(--text); background: var(--surface); }

/* ---- Placeholder link marker (unset socials) --------------------------- */
a[href^="#TODO"] { position: relative; }
a[href^="#TODO"]::after {
  content: "?"; font-family: var(--mono); font-size: .58rem;
  position: absolute; top: -2px; right: -6px; color: var(--text-faint);
}

/* ---- Blog -------------------------------------------------------------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.post-list li { border-bottom: 1px solid var(--border); }
.post-list li:first-child { border-top: 1px solid var(--border); }
.post-link {
  display: grid; grid-template-columns: 128px 1fr; gap: 22px;
  padding: 24px 4px; text-decoration: none; color: inherit; align-items: baseline;
}
.post-link:hover { color: inherit; }
.post-link time { font-family: var(--mono); font-size: .82rem; color: var(--text-faint); }
.post-link h3 { font-size: 1.15rem; margin-bottom: 7px; }
.post-link:hover h3 { color: var(--brand); }
.post-link p { margin: 0; color: var(--text-dim); font-size: .94rem; }
@media (max-width: 620px) {
  .post-link { grid-template-columns: 1fr; gap: 8px; }
}

.article { max-width: 44rem; margin-inline: auto; }
.article-head { margin-bottom: 40px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.article-meta { font-family: var(--mono); font-size: .82rem; color: var(--text-faint); }
.article-body { font-size: 1.04rem; }
.article-body h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.article-body h3 { font-size: 1.13rem; margin: 32px 0 10px; }
.article-body p { color: var(--text-dim); margin: 0 0 20px; }
.article-body ul, .article-body ol { color: var(--text-dim); padding-left: 1.2em; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); font-weight: 580; }
.article-body .code-wrap { margin: 28px 0; }
.article-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--brand); color: var(--text-dim); font-style: italic;
}

/* A project timeline in a post. The weekly commit histogram, the month
   axis and the lanes share one horizontal scale: --at and --from are
   fractions of the whole span, --h a week's share of the busiest. */
.timeline {
  margin: 28px 0 32px; padding: 20px 22px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.tl-weeks {
  display: flex; align-items: flex-end; gap: 2px; height: 56px;
}
.tl-weeks i {
  flex: 1; height: calc(var(--h) * 100%); min-height: 2px;
  border-radius: 2px 2px 0 0; background: var(--brand);
}
.tl-axis {
  position: relative; height: 1.4em; margin: 6px 0 14px;
  border-top: 1px solid var(--border-strong);
  font-family: var(--mono); font-size: .72rem; color: var(--text-faint);
}
.tl-axis span { position: absolute; left: calc(var(--at) * 100%); top: 4px; }
.timeline .tl-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.timeline .tl-lanes li { margin: 0; display: grid; gap: 3px; }
.tl-label { font-size: .84rem; line-height: 1.3; color: var(--text-dim); }
.tl-track {
  position: relative; height: 6px; border-radius: 3px;
  background: var(--surface-2);
}
.tl-span {
  position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--from) * 100%);
  min-width: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--brand-ink), var(--brand));
}
.timeline figcaption {
  margin-top: 16px; font-size: .82rem; line-height: 1.5; color: var(--text-faint);
}
@media (max-width: 560px) {
  .timeline { padding: 16px 14px 14px; }
  .tl-weeks { gap: 1px; height: 44px; }
  .tl-axis { font-size: .64rem; }
  /* The project starts mid-March: its label would run into April's. */
  .tl-axis span:first-child { display: none; }
}

/* High-visibility "how to help" callout at the top of a post. */
.support {
  margin: 0 0 44px;
  padding: 22px 26px 24px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}
.support h2.support-title {
  font-size: 1rem; margin: 0 0 4px; letter-spacing: -.01em;
}
.support > p {
  margin: 0 0 16px; font-size: .9rem; color: var(--text-faint);
}
/* A two-column table: the action, then what it means. The action
   column is a fixed width (the longest action, "Join the Discord.",
   fits), so every row lines up without subgrid. */
.support ul { list-style: none; margin: 14px 0 0; padding: 0; }
.support li {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0 18px;
  margin: 0 0 11px; font-size: .95rem; color: var(--text-dim); line-height: 1.5;
}
.support li:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .support { padding: 18px 18px 20px; }
  .support li { display: block; margin-bottom: 12px; }
  .support li > b, .support li > span { display: block; }
}
.support b { color: var(--text); font-weight: 580; }

.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; color: var(--text-dim); text-decoration: none; margin-bottom: 28px;
}
.back-link:hover { color: var(--text); }

/* ---- Simple pages (homepage extras, install, support) ------------------ */
.hero-post { margin: 18px 0 0; font-size: .95rem; }
.hero-post a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-dim); text-decoration: none;
}
.hero-post a:hover { color: var(--amber); }
.hero-post svg { width: 15px; height: 15px; }

.small-h2 { font-size: 1.3rem; margin: 0 0 14px; color: var(--text); }
.prose p + .small-h2 { margin-top: 36px; }

.article-body .code-wrap.cmd { margin: 14px 0 28px; }
.article-body .code-wrap.cmd pre { padding: 14px 18px; }
.article-body h2:first-child { margin-top: 0; }
.article-body .cards { margin: 0 0 28px; }
.article-body .card p { font-size: .95rem; }
.card .btn { margin-top: 18px; }
