/* ==========================================================================
   SUPPORTING PAGES (2026-10-08): Changelog, What works so far, About, Contact,
   Questions. One sheet, prefixed sx- (sp- is Solarpunk's room namespace).

   One motif across the five: the node from the homepage OS hero, a thin
   square with a lilac arrow out of it. A lit node (lilac edge) is something
   real now. Each page uses it once, in a different job: a release on the
   changelog spine, a stage on the status strip, a layer in About's diagram.

   Every size and gap is a house token (site.css); the only new values are
   the node size, named below.
   ========================================================================== */

.sx { --sx-node: 2.75rem; container: sx / inline-size; max-width: 72rem; padding-block-start: var(--s6); }
.sx a { text-underline-offset: 0.18em; }
.sx section { scroll-margin-top: var(--s6); }

/* ---- page head: text, then the margin note -------------------------------- */
.sx-head {
  display: flex; flex-wrap: wrap; gap: var(--s6) var(--s7);
  align-items: flex-end; padding-block-end: var(--s7);
}
.sx-head > :first-child { flex: 3 1 28rem; min-width: 0; }
.sx-head > .sx-note { flex: 1 1 13rem; max-width: 22rem; }
.sx-head .display { margin-bottom: var(--s4); }
.sx-head .lead { margin: 0; }
.sx-note { font-size: var(--t-sm); color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: var(--s4); }
.sx-note > * + * { margin-top: var(--s3); }
.sx-note h2, .sx-note h3 { font-size: var(--t-base); margin: 0 0 var(--s2); }
.sx-note .subscribe { margin-top: var(--s2); }

.sx-sec { border-top: 1px solid var(--rule); padding-block: var(--s7); }
.sx-sec > h2 { font-size: var(--t-section); line-height: 1.05; margin: 0 0 var(--s3); max-width: 22ch; text-wrap: balance; }
.sx-sec > .sx-intro { color: var(--ink-2); max-width: var(--measure); margin: 0 0 var(--s6); }
.sx-go { font-size: var(--t-sm); margin: var(--s3) 0 0; }
.sx-go a::after { content: " \2192"; }
.sx-quiet { color: var(--ink-3); font-size: var(--t-sm); }

/* ---- the node --------------------------------------------------------------- */
.sx-node {
  display: grid; place-items: center;
  width: var(--sx-node); height: var(--sx-node); flex: none;
  border: 1.5px solid var(--rule-firm); color: var(--ink-2);
  font: var(--t-xs)/1 var(--mono);
}
.sx-node--lit { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }

/* ---- the workflow strip (What works so far) --------------------------------- */
.sx-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5) var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr)); }
.sx-flow li { position: relative; }
.sx-flow a { display: grid; gap: var(--s3); justify-items: start; text-decoration: none; color: var(--ink); padding-block: var(--s1); }
.sx-flow a:hover .sx-node, .sx-flow a:focus-visible .sx-node { background: var(--brand-wash); }
.sx-flow b { font-weight: 600; font-size: var(--t-base); }
.sx-flow span.sx-flow__file { font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); overflow-wrap: break-word; }
/* The arrow out of each node. Drawn only when all eight fit on one row (container ≥ 56rem); below that the strip
   turns vertical (see the container query at the end) so no arrow ever points at nothing. */
.sx-flow li:not(:last-child) .sx-node::after {
  content: ""; position: absolute; left: calc(var(--sx-node) + var(--s2)); right: var(--s2);
  top: calc(var(--s1) + var(--sx-node) / 2); height: 1.5px; background: var(--brand);
}
.sx-flow li:not(:last-child) .sx-node::before {
  content: ""; position: absolute; right: var(--s2); top: calc(var(--s1) + var(--sx-node) / 2 - 3px);
  border: 3.5px solid transparent; border-left: 6px solid var(--brand); border-right: 0;
}

/* ---- feature cards (What works so far) -------------------------------------- */
.sx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s7) var(--s6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.sx-card { display: flex; flex-direction: column; min-width: 0; }
.sx-card figure { margin: 0 0 var(--s4); aspect-ratio: 1200 / 744; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-deep); }
.sx-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sx-card h3 { margin: 0 0 var(--s2); font-size: var(--t-md); }
.sx-card h3 a { color: inherit; text-decoration: none; }
.sx-card h3 a::after { content: " \2192"; color: var(--brand); }
.sx-card h3 a:hover, .sx-card h3 a:focus-visible { text-decoration: underline; }
.sx-card p { margin: 0; color: var(--ink-2); }
.sx-card .sx-limit { margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink); border-left: 2px solid var(--brand); padding-left: var(--s3); }
.sx-card--wide { grid-column: 1 / -1; display: grid; gap: var(--s4) var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.sx-card--wide figure { margin: 0; }

/* A compact list for the things that need no picture. */
.sx-rows { margin: var(--s7) 0 0; display: grid; gap: 0; }
.sx-rows > div { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s6); padding-block: var(--s4); border-top: 1px solid var(--rule); }
.sx-rows dt { font-weight: 600; flex: 1 1 12rem; }
.sx-rows dt a { color: inherit; }
.sx-rows dd { margin: 0; color: var(--ink-2); flex: 3 1 24rem; max-width: var(--measure); }

/* In development: two plain lines, no chips. */
.sx-dev { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.sx-dev li { padding-block: var(--s4); border-top: 1px solid var(--rule); color: var(--ink-2); }
.sx-dev strong { color: var(--ink); font-weight: 600; }

/* ---- Changelog: the date spine ---------------------------------------------- */
.cl-index { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: var(--s4) 0 0; list-style: none; font: var(--t-sm)/var(--lh-meta) var(--mono); }
.cl-index a { color: var(--ink-2); }
.cl-rel { position: relative; display: grid; grid-template-columns: var(--sx-node) minmax(0, 1fr); gap: 0 clamp(var(--s4), 3vw, var(--s7)); padding-block: var(--s7) var(--s8); }
/* The spine itself: one 1px line through the node column, down every release. */
.cl-rel::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--sx-node) / 2); width: 1px; background: var(--rule-firm); }
.cl-rel:first-of-type::before { top: calc(var(--s7) + var(--sx-node) / 2); }
.cl-when { position: relative; }
.cl-when .sx-node { background: var(--paper); }
.cl-date { margin: 0; }
.cl-date time, .cl-date a { font: var(--t-sm)/var(--lh-meta) var(--mono); color: var(--ink-2); text-decoration: none; }
.cl-date a:hover, .cl-date a:focus-visible { color: var(--ink); text-decoration: underline; }
.cl-body { min-width: 0; }
.cl-body .wk__h { font-size: var(--t-display-md); line-height: 1.02; letter-spacing: -0.028em; margin: var(--s1) 0 var(--s3); max-width: 20ch; text-wrap: balance; }
.cl-body .wk__intro { font-size: var(--t-md); max-width: 40rem; margin: 0 0 var(--s6); }
.cl-lead { margin: 0 0 var(--s7); max-width: 52rem; }
.cl-lead img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.cl-lead figcaption { margin-top: var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); }
.cl-group { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-block: var(--s4); border-top: 1px solid var(--rule); max-width: 52rem; }
.cl-group > .wk__list { flex: 1 1 20rem; min-width: 0; }
.cl-group .wk__cat { flex: 0 0 7rem; margin: 0; padding-top: 0.15rem; font: var(--t-sm)/var(--lh-meta) var(--mono); color: var(--brand); }
.cl-group .wk__list { list-style: none; margin: 0; padding: 0; }
.cl-group .wk__item + .wk__item { margin-top: var(--s5); }
.cl-group .wk__t { margin: 0 0 var(--s1); }
.cl-group .wk__d { margin: 0; color: var(--ink-2); }
.cl-group .wk__go { margin: var(--s2) 0 0; font-size: var(--t-sm); }
.cl-group .wk__go a::after { content: " \2192"; }
.cl-group .wk__fig { margin: var(--s4) 0 0; }
.cl-group .wk__fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.cl-group .wk__fig figcaption { margin-top: var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); }
/* Current status, added later and labelled as such; the original text above it is untouched. */
.wk__now { margin: var(--s2) 0 0; font-size: var(--t-sm); color: var(--ink-2); border-left: 2px solid var(--rule-firm); padding-left: var(--s3); }
.wk__now b { font-weight: 600; color: var(--ink); }
.wk__state { font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--brand); margin-left: var(--s2); white-space: nowrap; }
.wk__draft { color: var(--brand); font: var(--t-xs)/var(--lh-meta) var(--mono); }

/* ---- About -------------------------------------------------------------------- */
.ab-hero { padding-block: var(--s6) var(--s8); }
.ab-hero .display { font-size: var(--t-display-xl); max-width: 14ch; margin-bottom: var(--s6); }
.ab-hero .lead { max-width: 46rem; }
.ab-split { display: grid; gap: var(--s6) var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.ab-split p { max-width: var(--measure); }
.ab-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 var(--s6); }
.ab-files li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s3); padding-block: var(--s3); border-top: 1px solid var(--rule); }
.ab-files a { color: var(--ink); font-weight: 600; }
.ab-files code { font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.ab-shot { margin: 0; }
.ab-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.ab-shot figcaption { margin-top: var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); }
.ab-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6) var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); counter-reset: ab; }
.ab-layers li { position: relative; display: grid; gap: var(--s3); align-content: start; }
.ab-layers h3 { margin: 0; font-size: var(--t-md); }
.ab-layers p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.ab-layers li:not(:last-child) .sx-node::after { content: ""; position: absolute; left: calc(var(--sx-node) + var(--s2)); right: var(--s2); top: calc(var(--sx-node) / 2); height: 1.5px; background: var(--brand); }
.ab-founder { display: grid; gap: var(--s6) var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.ab-founder figure { margin: 0; max-width: 30rem; }
.ab-founder img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ab-founder figcaption { margin-top: var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); }
.ab-founder h2 { font-size: var(--t-section); line-height: 1.05; margin: 0 0 var(--s5); }
.ab-founder p { max-width: var(--measure); }
.ab-quote { margin: var(--s6) 0; padding-left: var(--s4); border-left: 2px solid var(--brand); font: 650 var(--t-lg)/1.2 var(--display); letter-spacing: -0.02em; max-width: 26ch; }
.ab-quote footer { margin-top: var(--s2); font: 400 var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); letter-spacing: 0; }
.ab-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s5) var(--s6); }
.ab-ways a { display: block; font: 650 var(--t-md)/var(--lh-tight) var(--display); color: var(--ink); text-decoration: none; }
.ab-ways a::after { content: " \2192"; color: var(--brand); }
.ab-ways a:hover, .ab-ways a:focus-visible { text-decoration: underline; }
.ab-ways span { display: block; margin-top: var(--s2); color: var(--ink-2); font-size: var(--t-sm); }

/* ---- Contact --------------------------------------------------------------------- */
.ct-address { margin: var(--s5) 0 var(--s4); font: 700 clamp(1.6rem, 6.4vw, 4.75rem)/1 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.ct-address a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--brand); text-underline-offset: 0.12em; }
.ct-address a:hover, .ct-address a:focus-visible { color: var(--brand); }
.ct-routes { list-style: none; margin: 0; padding: 0; counter-reset: ct; }
.ct-routes > li { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s7); padding-block: var(--s6); border-top: 1px solid var(--rule); }
.ct-routes > li > :first-child { flex: 1 1 14rem; }
.ct-routes > li > :last-child { flex: 2 1 22rem; min-width: 0; }
.ct-routes h3 { margin: 0; font-size: var(--t-lg); }
.ct-routes h3 span { display: block; margin-bottom: var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--brand); letter-spacing: 0; }
.ct-routes p { margin: 0 0 var(--s3); color: var(--ink-2); max-width: var(--measure); }
.ct-routes p.ct-include { color: var(--ink); font-size: var(--t-sm); }
.ct-routes .ct-mail { font-size: var(--t-sm); }
.ct-other { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s5) var(--s6); margin: 0; }
.ct-other dt { font-weight: 600; margin-bottom: var(--s1); }
.ct-other dd { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }

/* ---- Questions ---------------------------------------------------------------------- */
.fq-index { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; padding: 0; list-style: none; }
.fq-index a { display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: var(--s3); border: 1px solid var(--rule-firm); color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.fq-index a:hover, .fq-index a:focus-visible { border-color: var(--brand); color: var(--brand); }
.fq-tools { display: flex; justify-content: flex-end; margin: var(--s5) 0 0; }
.fq-toggle { font: var(--t-sm)/1 var(--ui); color: var(--ink-2); background: none; border: 0; padding: var(--s2) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.fq-toggle:hover { color: var(--ink); }
.fq-group { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); padding-block: var(--s6); border-top: 1px solid var(--rule); }
.fq-group > h2 { flex: 1 1 11rem; margin: 0; font-size: var(--t-lg); position: sticky; top: var(--s5); align-self: flex-start; }
.fq-list { flex: 4 1 26rem; min-width: 0; }
.fq-item { border-top: 1px solid var(--rule); }
.fq-item:first-child { border-top: 0; }
.fq-item h3 { margin: 0; font-size: var(--t-md); }
.fq-q { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; min-height: 3rem; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fq-q:hover { color: var(--brand); }
.fq-q::after { content: "+"; content: "+" / ""; flex: none; font: 400 var(--t-lg)/1 var(--mono); color: var(--brand); }
.fq-q[aria-expanded="true"]::after { content: "\2212"; content: "\2212" / ""; }
.fq-a { padding: 0 0 var(--s5); max-width: var(--measure); }
.fq-a p { color: var(--ink-2); margin: 0 0 var(--s3); }
.fq-a .sx-go { margin: 0; }
/* Without the script the question is a plain heading and every answer shows. */
.fq-item h3 .fq-text { display: block; padding: var(--s4) 0 var(--s2); }

@media (prefers-reduced-motion: no-preference) {
  .fq-q::after { transition: transform 120ms ease-out; }
}

/* Quiet sections: a closing block whose heading shouldn't compete with the page's one big moment. */
.sx-sec--quiet > h2 { font-size: var(--t-lg); }
.ct-routes > li:first-child { border-top: 0; padding-top: 0; }
.ct-other + .sx-quiet { margin-top: var(--s6); }

/* ---- below one row: the strip runs down the page, joined by a vertical line ------------------------------------- */
@container sx (max-width: 55.99rem) {
  .sx-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sx-flow a { grid-template-columns: var(--sx-node) minmax(0, 1fr); grid-template-areas: "n b" "n f"; align-items: center; gap: 0 var(--s4); padding-block: var(--s2); }
  .sx-flow a > .sx-node { grid-area: n; align-self: start; }
  .sx-flow a > b { grid-area: b; align-self: end; }
  .sx-flow a > .sx-flow__file { grid-area: f; align-self: start; }
  .sx-flow li:not(:last-child) .sx-node::before { display: none; }
  .sx-flow li:not(:last-child) .sx-node::after { left: calc(var(--sx-node) / 2); right: auto; width: 1.5px; height: auto;
    top: calc(var(--s2) + var(--sx-node)); bottom: calc(-1 * var(--s2)); }
}
/* About's four layers: an arrow only when all four sit on one row. */
@container sx (max-width: 55.99rem) {
  .ab-layers li:not(:last-child) .sx-node::after { display: none; }
}
