/* sf-readable.css - the website readability rule (founder, 30 Nov 2026; docs/WEBSITE_DESIGN_STANDARD.md,
   "Readability", measured in docs/WEBSITE_READABILITY_AUDIT.md). One file, so every page that loads it gets the same
   text darkness, sizes and control edges together. Website only: inside the SanoobFit apps (html.sf-app, set by
   sf-menu.js before anything is drawn) nothing here applies.

   The numbers are contrast against the background (WCAG): small text (under 14px) at least 7:1, other text at least
   4.5:1, the edge of a control (chip, outline button, row button, field) at least 3:1. */
html:not(.sf-app) {
  /* On white (#fff) and the warm panel (#f6f4ee) */
  --rd-head:   #15171c;   /* headings                      17.9:1 / 16.3:1 */
  --rd-text:   #3f444d;   /* body text                      9.8:1 /  8.9:1 */
  --rd-muted:  #4b5160;   /* secondary and small text       7.9:1 /  7.2:1 */
  --rd-label:  #64501d;   /* small gold labels              7.8:1 /  7.05:1 */
  --rd-edge:   #8f897c;   /* control edges                  3.5:1 /  3.2:1 */
  /* On black (#0a0b0d to #15171c) */
  --rd-text-d:  #c4c9d0;  /* body text                     11.8:1 */
  --rd-muted-d: #a7adb5;  /* secondary and small text       8.7:1 */
  --rd-edge-d:  #6a6f77;  /* control edges                  3.9:1 */
  /* On colour */
  --rd-on-lime: #15171c;  /* text on lime                  13.8:1 */
  --rd-on-wa:   #0b2914;  /* text on WhatsApp green         7.9:1 (white is 2.0:1) */
  /* Button corners (founder, 30 Nov 2026): every main button, filled or outline, the blog's "Read article" rounding.
     Capsule chips and capsule switches stay capsules. */
  --rd-btn-radius: 11px;
  /* Cards are not controls: they keep their soft line and show their edge with a shadow (a fine ring plus the blog's lift). */
  --rd-card-shadow: 0 0 0 1px rgba(20,18,10,.07), 0 12px 30px -20px rgba(20,18,10,.5);
  /* Sizes */
  --rd-min:    12px;      /* nothing smaller, anywhere */
  --rd-label-size: 12px;  /* spaced capitals: labels, chips, row buttons (weight 700) */
}

/* Form fields: an edge you can see (3:1). */
html:not(.sf-app) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), select, textarea) {
  border-color: var(--rd-edge);
}

/* The pages that name their colours --muted, --gold-deep (the 23 Weight Gain, Weight Loss and calculator pages through
   calculators/calc-style.css, and the blog): once they load this file, these two lines darken every use at once. */
html:not(.sf-app) { --muted: var(--rd-muted); --gold-deep: var(--rd-label); }

/* The menu's Start Free (sf-menu.css, every page with the burger): the same rounding as every main button. */
html:not(.sf-app) .sfm-big { border-radius: var(--rd-btn-radius); }
