/* Lingways colours: the one place where the site's colours are set, for every page.
   A soft dark slate, not lingways.com's deep navy (owner, 2026-11-21: "a muted bg colour"), and secondary text in
   a neutral grey, so it reads grey on the slate, not blue.
   Every text colour meets WCAG AAA (7:1 for text, 4.5:1 for large headlines) and gives the same contrast on both
   backgrounds: the raised panel is lighter than the slate, so text on it takes a lighter shade of the same colour
   (owner, 2026-11-22). Grey body text is 7:1 on both, as dark as AAA allows, so a word set in ivory inside it
   still stands out without bold (ivory against grey 1.9:1).
   The home pages get this file built into them (build.py); every other page links it. One deliberate dark look. */
:root {
  color-scheme: dark;
  --slate: #1b2530;        /* the page */
  --slate-raised: #232f3c; /* cards, panels and every second chapter */
  --slate-rule: #40505f;   /* lines and borders */
  --deep: #0d1724;         /* the menu bar and the footer, which frame every page */
  --grey: #afafaf;         /* secondary text: 7.07:1 on the slate */

  /* the same text colours on the raised panel, a shade lighter, so they keep their contrast there */
  --ivory-raised: #fefdfd; /* 13.40:1 on the panel, as ivory is 13.39:1 on the slate */
  --grey-raised: #bababa;  /*  7.01:1, as the grey is 7.07:1 */
  --sky-raised: #a1c7e0;   /*  7.62:1, as sky is 7.57:1 */

  /* the names the pages use. --ivory is ivory text; --ivory-fill is ivory as a surface (buttons, the closing band),
     which stays the same wherever it sits */
  --navy: var(--slate); --panel: var(--slate-raised); --line: var(--slate-rule);
  --ivory: #f1eee7; --ivory-fill: #f1eee7; --muted: var(--grey); --sky: #8dbbd9;
}

/* surfaces raised on the panel: their text takes the raised shades. Containers whose words simply inherit the
   page's text colour pick the raised ivory up again here. */
.chapter:nth-of-type(even), .chips li, .f-alt, .steps a {
  --ivory: var(--ivory-raised); --muted: var(--grey-raised); --sky: var(--sky-raised); }
.chapter:nth-of-type(even), .chips li, .f-alt { color: var(--ivory); }
/* a slate card inside a raised section is back on the slate */
.f-alt .f-cards li { --ivory: #f1eee7; --muted: var(--grey); --sky: #8dbbd9; color: var(--ivory); }

/* ---- older pages ----
   The pages copied from lingways.com (body.site-page) name their colours in several ways: variables on the page
   and on the body, and plain values inside rules. Below, each of those takes the palette above. This file is the
   last stylesheet on those pages. Their footer keeps its own deeper navy, as on the home pages. */
:root { --site-navy: var(--slate); --site-panel: var(--slate-raised); --site-line: var(--slate-rule); }
:root body.site-page { --paper: var(--slate); --paper-deep: var(--slate-raised); --line: var(--slate-rule); background: var(--navy); }

/* the page, and what sits flat on it */
:root .site-page :is(.site-context, .layers > span) { background: var(--navy); }

/* cards and panels */
:root .site-page :is(.panel, .practice-card, .guide, .next-guide, .steps-grid article, .join-form, .support, .lw-copy input[type="email"]) { background: var(--panel); }

/* lines and borders */
:root .site-page :is(.section, .articles, .support, .site-context, .grid,
  .panel, .practice-card, .guide, .next-guide, .steps-grid article, .join-form, .founder-portrait img) { border-color: var(--line); }

/* secondary text; the pages mark some of theirs !important, so these must be too */
:root .site-page :is(.lead, .intro, .fine, .muted, .byline, .site-context p, .support p) { color: var(--muted); }
:root .site-page :is(.status-grid, .steps-grid, .guide, .next-guide) p,
:root .site-page .section .fine { color: var(--muted) !important; }

/* their raised cards take the raised shades, as on the other pages; their own names for ivory follow */
:root .site-page :is(.panel, .practice-card, .guide, .next-guide, .steps-grid article, .join-form, .support) {
  --ivory: var(--ivory-raised); --ink: var(--ivory-raised); --site-ink: var(--ivory-raised);
  --muted: var(--grey-raised); --sky: var(--sky-raised); --blue: var(--sky-raised); --burgundy: var(--sky-raised);
  --site-blue: var(--sky-raised); color: var(--ivory); }
/* their labels name the sky colour as a plain value, not a variable */
:root .site-page .eyebrow { color: var(--sky); }
/* the large step numbers on Our approach: 4.5:1 on the panel, the AAA mark for large text */
:root .site-page .step-number { color: #5c9bc5; }
/* the date on the blog's white article cards (the embed's own grey #888 was 3.5:1): 7:1 on white */
:root .site-page time.holo-blog-card-date { color: #595959; }
