/* Paragraph colour (owner rule, 2026-11-12): body text always has a colour step from the heading above it.
   On a light background the paragraph is lighter (greyer) than the heading, on a dark background it is darker (greyer);
   a text link inside a paragraph has the colour of the heading. The step is calculated from the colour the text inherits,
   so it works in every section, light or dark, without a list of dark sections:
     paragraph lightness = heading lightness x scale + offset  (ink -> the grey of --muted, white -> the grey of --white-70)
     link lightness      = the inverse, which gives the heading colour back.
   Rules with a class or an id (components that set their own colour) win over this one, because every selector here has no specificity beyond `main`.
   Loaded on every page. Browsers without relative colours ignore it and show the heading colour, as before. Check: tools/effect-probe/check_text_colours.mjs */
:root {
  --para-l-scale: 0.386;
  --para-l-offset: 0.454;
}
@supports (color: oklch(from red l c h)) {
  main :where(p, li:not(:has(p, h1, h2, h3, h4, h5, h6))):not(.tools-item, .ab-skill, .cs-showcase-title, .pk-price, .home-kicker, .home-hero-intro, [class*="chip"], [class*="tag"]) {
    color: oklch(from currentColor calc(l * var(--para-l-scale) + var(--para-l-offset)) c h);
  }
  main :where(p, li:not(:has(p, h1, h2, h3, h4, h5, h6))):not(.tools-item, .ab-skill, .cs-showcase-title, .pk-price, .home-kicker, .home-hero-intro, [class*="chip"], [class*="tag"]) a:not([class*="pill"], [class*="button"], [class*="btn"]) {
    color: oklch(from currentColor calc((l - var(--para-l-offset)) / var(--para-l-scale)) c h);
  }
}
