/* Variable fonts, self-hosted Fontsource builds: latin + cyrillic subsets.
   Source Serif 4 carries the opsz axis — display sizes get the display cut
   via the default font-optical-sizing: auto. Ranges are disjoint per subset. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-cyrillic-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --fg: #16181d;
  --muted: #4d525a;
  --accent: #3390ec;
  --accent-fg: #10141a;
  --accent-hover: #5aabf2;
  --link: #1a6fbe;
  --surface: #ffffff;
  --surface-2: #e7ebf0;
  --line: rgba(16, 16, 16, 0.1);
  --bubble: #e1f0fb;
  --shadow: 0 4px 18px rgba(16, 16, 16, 0.08);
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  /* the one full-colour field (download band, privacy lead tile):
     light carries the accent itself; dark mixes it deep into the ground
     so a full-bleed slab never outshines the content it closes */
  --field-bg: var(--accent);
  --field-ink: var(--accent-fg);
  --field-pill-bg: var(--accent-fg);
  --field-pill-ink: var(--accent);
  /* the five type roles: display (h1), heading (h2), lead, body, small */
  --size-body: 1rem;
  --size-lead: 1.25rem;
  --size-small: 0.875rem;
  --measure: 72rem;
  --header: 4rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f0f14;
    --fg: #f2f2f5;
    --muted: #a6a6b0;
    --accent: #5aa2e6;
    --accent-fg: #0e141c;
    --accent-hover: #7db4ec;
    --link: #5aa2e6;
    --surface: #181820;
    --surface-2: #1c1c26;
    --line: rgba(244, 244, 244, 0.1);
    --bubble: #2b5278;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    --field-bg: color-mix(in srgb, var(--accent) 18%, var(--bg));
    --field-ink: var(--fg);
    --field-pill-bg: var(--accent);
    --field-pill-ink: var(--accent-fg);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh; /* taste-skill-ignore: h-screen — fallback, svh follows */
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--fg);
}

body > a:first-child {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.5rem 1rem;
}
body > a:first-child:focus { top: 1rem; }

body > header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0 1.25rem;
  padding-top: env(safe-area-inset-top);
  /* separation is a tone step, not a line: the page ground is --bg */
  background: var(--surface);
}

body > header > a:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}
body > header > a:first-of-type img { width: 2rem; height: 2rem; }

body > header > nav {
  display: flex;
  gap: 0.25rem;
}
body > header > nav a,
body > header details a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
body > header > nav a:hover,
body > header details a:hover { color: var(--fg); }
body > header a[aria-current="page"] { color: var(--fg); }

body > header > a[href="#download"],
body > header > a[href="/#download"] {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 500;
  text-decoration: none;
}
body > header > a[href="#download"]:hover,
body > header > a[href="/#download"]:hover { background: var(--accent-hover); }
body > header > a[href="#download"] span:first-child,
body > header > a[href="/#download"] span:first-child { display: none; }

body > header details { display: none; }
body > header summary {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}
body > header summary::-webkit-details-marker { display: none; }
/* open state relabels the button — CSS-only text swap (no markup change);
   the "/ """ form keeps the screen-reader name as "Menu" */
body > header details[open] summary { font-size: 0; }
body > header details[open] summary::before {
  content: "Close" / "";
  font-size: 1rem;
}

/* Scroll-spy: while a home section crosses the viewport, its nav link
   lights up. Pure CSS — the sections' named view-timelines are hoisted to
   body via timeline-scope so the header links (DOM siblings) can read
   them. Chromium only; browsers without scroll-driven animations simply
   show no highlight, same as text-wrap: balance. */
@supports (animation-timeline: --x) {
  body {
    timeline-scope: --sec-hero, --sec-product, --sec-features, --sec-privacy,
      --sec-platforms, --sec-help, --sec-support;
  }
  /* home only: the hero already carries a Download button, so the header
     pill stays quiet until the hero scrolls out of view */
  #hero { view-timeline: --sec-hero; }
  body > header > a[href="/#download"] {
    animation: cta linear both;
    animation-timeline: --sec-hero;
  }
  @keyframes cta {
    0%, 60% { background: transparent; color: var(--muted); }
    100% { background: var(--accent); color: var(--accent-fg); }
  }
  #product { view-timeline: --sec-product; }
  #features { view-timeline: --sec-features; }
  #privacy { view-timeline: --sec-privacy; }
  #platforms { view-timeline: --sec-platforms; }
  #help { view-timeline: --sec-help; }
  #support { view-timeline: --sec-support; }
  /* the shorthand must come first — it resets animation-timeline */
  body > header > nav a[href^="/#"] {
    animation: spy linear both;
  }
  body > header > nav a[href="/#product"] { animation-timeline: --sec-product; }
  body > header > nav a[href="/#features"] { animation-timeline: --sec-features; }
  body > header > nav a[href="/#privacy"] { animation-timeline: --sec-privacy; }
  body > header > nav a[href="/#platforms"] { animation-timeline: --sec-platforms; }
  body > header > nav a[href="/#help"] { animation-timeline: --sec-help; }
  body > header > nav a[href="/#support"] { animation-timeline: --sec-support; }
  @keyframes spy {
    0% { color: var(--muted); }
    30%, 70% { color: var(--fg); }
    100% { color: var(--muted); }
  }
}

main { display: block; }

main > section,
body > main > header.page {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

#hero {
  display: grid;
  /* Two real columns, not content-plus-leftover: the shot owns a fixed
     38rem column, the text owns the rest, and the gutter breathes with the
     viewport (2.5rem floor, 4.5rem cap) instead of hugging the image. */
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 42rem);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 2.5rem 4rem;
  border-top: 0;
}
#hero .shot { max-width: 100%; }
#hero h1 {
  max-width: 12ch;
  margin: 0.75rem 0 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
}
.kicker { /* taste-skill-ignore: eyebrow - lives on CMS-assembled post/secondary pages, outside this homepage redesign */
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#hero > div > p.lead { max-width: 38rem; }

p > strong > a,
p > strong + a {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0 1rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
}
/* The :is(main, main.page) prefix is load-bearing: the generic
   `main.page a { color: var(--link) }` rule outranks a bare
   `p > strong > a`, leaving accent-on-accent pill text on secondary pages. */
:is(main, main.page) p > strong > a {
  background: var(--accent);
  color: var(--accent-fg);
}
:is(main, main.page) p > strong > a:hover { background: var(--accent-hover); }
:is(main, main.page) p > strong + a {
  border: 1px solid var(--line); /* taste-skill-ignore: outlined-box - a real secondary button control */
  background: var(--surface);
  color: var(--fg);
}
:is(main, main.page) p > strong + a:hover { background: var(--surface-2); }

#hero dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin: 1.5rem 0 0;
}
#hero dt { color: var(--muted); font-size: 0.875rem; }
#hero dd { margin: 0; font-weight: 500; }

figure.shot {
  margin: 0;
  justify-self: center;
  max-width: 100%;
}
/* the image carries its own tilt; natural size, never upscaled */
figure.shot img { display: block; width: auto; max-width: 100%; height: auto; }
body { overflow-x: clip; }

/* brand lockup: logo and wordmark on one center line */
body > footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

/* mark external links */
a[href^="http"]:not([href*="velta.cc"])::after {
  content: "↗";
  margin-left: 0.25em;
  font-size: 0.75em;
  color: var(--muted);
  vertical-align: 0.15em;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Sections separate by space and by composition — no hairlines.
   The five type roles: display (h1), heading (h2), lead, body, small. */
main > section { padding-block: 7rem; }
main > section h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 24ch;
}
.lead {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: var(--size-lead);
  line-height: 1.55;
}

/* --- #product: the two routes — a ledger --- */
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 3.5rem;
  margin-top: 3.5rem;
}
.route { border-top: 2px solid var(--fg); padding-top: 1.1rem; }
.route h3 { margin: 0; font-size: 1.55rem; }
.route .sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.route dl { margin: 1.1rem 0 0; }
.route dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.2rem 1.4rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}
.route dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}
.route dd { margin: 0; line-height: 1.5; }

/* --- #features: numbered blocks with provenance + a sticky real shot --- */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}
.blocks { border-top: 1px solid var(--line); }
.block {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.25rem 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.block .no {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.block h3 { margin: 0; font-size: 1.35rem; }
.block .tag {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.5rem;
  white-space: nowrap;
}
.block p { grid-column: 2; margin: 0.45rem 0 0; color: var(--muted); max-width: 52ch; }
.sidefig { grid-column: 2; position: sticky; top: calc(var(--header) + 1rem); margin: 0; }
.sidefig img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); } /* taste-skill-ignore: outlined-box - frame for a real device shot */
.sidefig figcaption { margin: 0.7rem 0.2rem 0; color: var(--muted); font-size: 0.8125rem; }

/* --- inventory: the additions as a ruled index (shared .row language) --- */
.inventory { margin-top: 7rem; }
.idx { margin-top: 3rem; }
.grp {
  margin: 2.8rem 0 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.idx .grp:first-child { margin-top: 0; }
.row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.2rem 1.5rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.row .no {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.row h3 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.row h3 img { width: 1.3rem; height: 1.3rem; flex: none; }
.row p { grid-column: 2; margin: 0.35rem 0 0; color: var(--muted); max-width: 56ch; }
.row p code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.row .val {
  grid-row: 1;
  grid-column: 3;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- #privacy: the promises as ruled rows (rows share .row) --- */
.priv-note {
  margin: 2.4rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

/* --- #platforms: the band — the page's one full-colour field.
   #download stays as an anchor target inside it (header pill, hero link) --- */
#platforms {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-block: 6.5rem;
  padding-inline: max(1.25rem, calc((100% - var(--measure)) / 2));
  background: var(--field-bg);
  color: var(--field-ink);
}
#platforms h2 { margin: 0; color: inherit; max-width: none; }
#platforms .lead { color: inherit; opacity: 0.85; }
#platforms a { color: inherit; }
#platforms a[href^="http"]:not([href*="velta.cc"])::after { color: inherit; opacity: 0.65; }
#platforms :focus-visible { outline-color: var(--field-ink); }
.dl-version { margin: 1.5rem 0 0; font-size: 0.9375rem; }
.dl-version a { color: inherit; font-weight: 500; }
.brows { margin-top: 2rem; }
.brow {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding-block: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--field-ink) 22%, transparent);
}
/* the first row keeps the version line's air as its separator — no doubled
   rule (same lesson as the 10-25 #help fix) */
.brow:first-child { border-top: 0; }
.brow h3 { margin: 0; font-size: 1.4rem; }
.brow .meta {
  color: inherit;
  opacity: 0.75;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.brow .act { grid-row: 1; grid-column: 3; justify-self: end; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--field-pill-bg);
  color: var(--field-pill-ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover,
.pill:focus-visible { background: var(--fg); }
@media (prefers-color-scheme: dark) {
  .pill:hover,
  .pill:focus-visible { background: var(--accent-hover); }
}
/* the ↗ marker is suppressed inside the band: the pill already names the
   action and the grid would strand the glyph */
#platforms .pill::after { content: none; }
.bnote { grid-column: 1 / -1; margin-top: 0.25rem; }
.brow:has(.bnote[open]) { padding-bottom: 1.15rem; }
.bnote summary {
  cursor: pointer;
  color: inherit;
  opacity: 0.8;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.bnote[open] summary { margin-bottom: 0.4rem; }
.bnote ul { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; font-size: 0.875rem; line-height: 1.5; opacity: 0.9; }
.bnote li { margin: 0.25rem 0; }
.bnote code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: color-mix(in srgb, var(--field-ink) 14%, transparent);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
.band-more { margin: 2rem 0 0; font-size: 0.9375rem; }
.band-more a { color: inherit; }

/* --- #notes: two-ended news rows; the date sits on the title line --- */
#notes > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
/* shared by the home #notes mirror and the news index — both lists carry
   class="news-list"; the home cards are JS-cloned from the index */
.news-list { list-style: none; margin: 3rem 0 0; padding: 0; }
.news-list li { border-top: 1px solid var(--line); padding-block: 1.5rem; } /* taste-skill-ignore: hairline - the ruled-index row rhythm, all pages */
.news-list li + li { margin-top: 0; }
/* ul+li: `main.page a` (404, posts) outranks a bare .news-list a and
   turned whole items blue there — titles stay ink, like home and /news */
ul.news-list li a span { display: contents; }
ul.news-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 2rem;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}
/* the arrow stays in the title's own face — a mid-line face swap is the
   "one italic word" tell */
.news-arrow { display: inline-block; transition: transform 0.15s ease, color 0.15s ease; }
.news-list a:hover .news-arrow, .news-list a:focus-visible .news-arrow { color: var(--link); transform: translateX(0.2em); }
ul.news-list li h2 { margin: 0; font-size: var(--size-lead); max-width: 40rem; grid-row: 1; }
.news-list a:hover h2 { color: var(--link); }
/* one meta line on the title row's right end: date · category tag —
   never a label above a heading */
ul.news-list li p.news-meta {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: var(--size-small);
  text-align: right;
  white-space: nowrap;
}
.news-tag { color: var(--fg); }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
ul.news-list li p:not(.news-meta) {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.5;
}
/* 404/posts: `main.page ul/li` indented the list and spaced its items;
   the rhythm now lives in the row padding, so only the indent is reset */
main.page ul.news-list { padding-left: 0; }
main.page ul.news-list li { margin: 0; }
/* news pagination (/news/ "Older news" + archive pages /news/page-N/):
   pages numbered from the oldest post; links only go to older pages */
.news-pager { margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; font-size: var(--size-body); }
.news-pager h2 { flex-basis: 100%; margin: 0; font-size: var(--size-lead); }
.news-pager p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: var(--size-small); }
.news-pager ol.news-pages { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
main.page .news-pager ol.news-pages li { margin: 0; }
.news-pager a { color: var(--link); text-decoration: none; }
.news-pager a:hover { text-decoration: underline; }
.news-pages a { /* taste-skill-ignore: outlined-box - real pagination controls */ display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 0.5rem; box-sizing: border-box; }
.news-pages a[aria-current="page"] { color: var(--fg); font-weight: 600; border-color: currentColor; }
.news-older, .news-newer, .news-latest { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* --- #help: the argument left, the five paths right --- */
#help {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
#help ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); } /* taste-skill-ignore: hairline - ruled-index frame */
#help li { padding-block: 1.3rem; border-bottom: 1px solid var(--line); } /* taste-skill-ignore: hairline - ruled-index row */
#help li + li { margin-top: 0; }
#help h3 { margin: 0; font-size: var(--size-lead); }
#help p { margin: 0.6rem 0 0; color: var(--fg); line-height: 1.55; max-width: 56ch; }

/* --- #support: the ask left, the tiers right --- */
#support {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: start;
}
#support h2 { margin-top: 0.75rem; }
#support h3 { margin: 0; font-size: var(--size-lead); }
#support dl { margin: 1.5rem 0 0; }
#support dl > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.25rem 1.4rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line); /* taste-skill-ignore: hairline - ruled-index row */
}
/* the head row above already separates — no doubled rule on the first tier */
#support dl > div:first-child { border-top: 0; padding-top: 0; }
#support dt { font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 1.5rem; }
#support dd { margin: 0; color: var(--muted); font-size: var(--size-small); line-height: 1.5; }
#support > div:last-child > p:last-child { margin: 1.5rem 0 0; color: var(--muted); font-size: var(--size-small); }

footer {
  /* the close: one tone step down, no rules */
  background: var(--surface);
  padding: 5rem 1.25rem 2rem;
}
footer > div, footer > p {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}
footer > div {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
footer li { margin: 0.4rem 0; }
footer h2 { font-family: var(--sans); font-size: var(--size-small); font-weight: 500; margin: 0; }
footer > p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  color: var(--muted);
  font-size: var(--size-small);
}
footer img { width: 2rem; height: 2rem; vertical-align: middle; }
footer .brand {
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
}
footer > div > div:first-child p { margin: 0.4rem 0 0; color: var(--muted); font-size: var(--size-small); }
footer .motto { font-family: var(--display); font-size: var(--size-body); }

main.page, main.news {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}
main.news { width: min(46rem, calc(100% - 2.5rem)); }
main.page h1, main.news h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
}
main.page > p, main.news > p { color: var(--muted); }
main.page .body { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); } /* taste-skill-ignore: hairline - news-post body layer, other pages */
main.page .body h2 { margin: 2rem 0 0.5rem; font-size: 1.6rem; }
main.page aside { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); } /* taste-skill-ignore: hairline - news-post aside layer, other pages */
main.page aside ul { list-style: none; margin: 0.5rem 0 0; padding: 0; border-block: 1px solid var(--line); }
main.page aside li { border-top: 1px solid var(--line); } /* taste-skill-ignore: hairline - news-post aside rows, other pages */
main.page aside li:first-child { border-top: 0; }
main.page aside a { display: block; padding: 0.9rem 0; color: inherit; text-decoration: none; }
main.page aside a strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }

@media (max-width: 64rem) {
  body > header > nav { display: none; }
  body > header details { display: block; }
  body > header details nav {
    display: none;
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem 0.75rem 1rem;
    background: var(--surface);
  }
  body > header details[open] nav { display: grid; }
  /* hero: one column, the product shot gets real presence */
  #hero { grid-template-columns: 1fr; padding-block: 2.5rem 4rem; }
  #hero .shot { width: min(34rem, 112%); margin-inline: -6%; }
  #hero dl { grid-template-columns: 1fr 1fr; }
  /* the ledger stacks; each route keeps its heavy top rule */
  .ledger { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidefig { grid-column: 1; position: static; max-width: 24rem; }
  .brow { grid-template-columns: 1fr auto; }
  .brow h3 { grid-row: 1; grid-column: 1; }
  .brow .meta { grid-row: 1; grid-column: 2; text-align: right; }
  .brow .act { grid-row: 2; grid-column: 1; justify-self: start; }
  /* footer link groups side by side on mobile; the brand block spans both */
  footer > div { grid-template-columns: 1fr 1fr; }
  footer > div > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  body > header > a[href="#download"] span:first-child,
  body > header > a[href="/#download"] span:first-child { display: inline; }
  body > header > a[href="#download"] span:last-child,
  body > header > a[href="/#download"] span:last-child { display: none; }
  main > section { padding-block: 4.5rem; }
  #hero .shot { width: 128%; margin-inline: -14%; }
  .block { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .row { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .row .val { grid-row: 2; grid-column: 2; justify-self: start; white-space: normal; }
  #help, #support { grid-template-columns: 1fr; gap: 2.5rem; }
  .news-list a, footer > p { grid-template-columns: 1fr; }
  /* the meta line drops under the title, before the summary */
  ul.news-list li p.news-meta { grid-row: 2; grid-column: 1; text-align: left; white-space: normal; }
  footer > p { flex-direction: column; }
}

/* --- motion (the last layer). Signature move: masked headline rise.
   Entrances are transform/opacity only, gated on html.js — a failed or
   absent script leaves every element visible. Reduced motion drops the
   travel and keeps the content. --- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
  }
  .js .lines [data-line] {
    display: block;
    transform: translateY(112%);
    animation: line-rise 0.9s var(--ease) forwards;
    animation-delay: calc(0.15s + var(--i, 0) * 0.11s);
  }
  @keyframes line-rise { to { transform: none; } }
  /* the hero shot settles from a slight scale (the one moving picture's
     load beat; its scroll-linked beat is the lens crop in #features) */
  .js #hero .shot img { animation: settle 1.4s var(--ease) 0.3s both; }
  @keyframes settle { from { transform: scale(1.03); } to { transform: none; } }
  /* section entrances: js/site.js marks .reveal and staggers via --d */
  .js .reveal { opacity: 0; transform: translateY(22px); }
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.55s var(--ease) var(--d, 0s);
  }
  /* feedback under the hand */
  .js :is(main) p > strong > a:active { transform: scale(0.98); }
  .js .pill { transition: transform 0.25s var(--ease); }
  .js .brow:hover .pill { transform: translateX(0.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-arrow { transition: none; }
}

/* --- generic page content (about, developing, comparison, 404, news posts) --- */

main.page h1 { font-family: var(--display); font-weight: 500; font-size: 2.6rem; line-height: 1.15; margin: 0.5rem 0 1.5rem; }
main.page h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
main.page h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
main.page p, main.page li { line-height: 1.65; }
main.page ul, main.page ol { padding-left: 1.25rem; margin: 0.75rem 0; }
main.page li { margin: 0.35rem 0; }
main.page a { color: var(--link); }
main.page hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; } /* taste-skill-ignore: hairline - authored hr on post pages */
main.page blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }

main.page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
main.page pre {
  background: var(--surface-2);
  border: 1px solid var(--line); /* taste-skill-ignore: outlined-box - real code block */
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
}
main.page pre code { background: none; padding: 0; font-size: 0.85rem; }

main.page table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
main.page th, main.page td { /* taste-skill-ignore: outlined-box - real table */ border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
main.page th { background: var(--surface-2); font-weight: 600; }

main.page dl { margin: 1rem 0; }
main.page dt { font-weight: 600; margin-top: 0.75rem; }
main.page dd { margin: 0.15rem 0 0; color: var(--muted); }

main.page details { /* taste-skill-ignore: outlined-box - real disclosure control, other pages */ border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.9rem; margin: 1rem 0; background: var(--surface); }
main.page details summary { cursor: pointer; font-weight: 500; }
main.page details[open] summary { margin-bottom: 0.5rem; }

/* post aside: download call styled as a quiet button */
main.page aside a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line); /* taste-skill-ignore: outlined-box - quiet button on post pages */
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}
main.page aside a:hover { border-color: var(--accent); color: var(--fg); }

velta-news-pager { display: block; }
/* <velta-share> (js/site.js): one icon button at the end of a post's meta
   row. Icon matches the text size; the 44px hit area comes from a negative
   margin so the line height does not change. */
.post-meta { overflow-wrap: anywhere; }
velta-share { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 0.6em; }
.share-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.35em;
  margin: 0; padding: 0.2em 0.7em; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--link) 10%, var(--bg));
  color: var(--fg); font: inherit; font-size: 0.875rem; line-height: 1.4; cursor: pointer;
  transition: background-color 0.15s ease;
}
/* 44px hit area without growing the meta row */
.share-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.share-btn svg { color: var(--link); font-size: 1.15em; flex: none; }
.share-btn:hover { background: color-mix(in srgb, var(--link) 16%, var(--bg)); }
.share-btn:active { background: color-mix(in srgb, var(--link) 22%, var(--bg)); }
.share-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* label + contrast (pill = --link 10% over --bg): text --fg 14.2:1 light /
   15.0:1 dark; icon --link 4.1:1 / 6.2:1 (hover 16%: 13.1/13.6, icon 3.8/5.6) */
.share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
