/* ============================================================
   SAFERISE RENDER CONTRACT · SR-528 (PASS-legibility-and-platform.md Part D)
   ------------------------------------------------------------
   One rule, linked on every live page directly after the canonical font
   link. It lives in its own file rather than css/saferise-system.css
   because nine pages do not load the system CSS: the seven member framework
   pages (saferise-method.css only), protocol.html and resource.html.
   Putting it here keeps it in one place instead of four copies.

   D2 · text-size-adjust: iOS Safari and Windows Chrome otherwise inflate
        text by their own rules, and a rotated iPhone resizes body copy.
   D3 · font-synthesis:none: a weight or style the font link does not load
        renders at the nearest loaded face instead of being faked. Faked
        faces differ by platform (macOS thins the 400 master, Windows
        substitutes it), so a gap now shows up in review rather than as
        a platform difference in production.
   D4 · font smoothing set once, here. It is inherited, so the scattered
        body- and scope-level declarations it replaced are gone.
   Part E · the ground tokens live here too, for the same reason: every
        value in docs/TYPE-AND-CONTRAST.md is measured against #0a0c14,
        and all 40 pages must resolve these.
   Part F · the rest of the §6 token block and the form-control font.
   Nothing else belongs in this file.
   ============================================================ */
/* E · the ground. --bg-ground is the ground itself and never changes with
   a theme: every surface that used to hard-code a dark ground points at it,
   so the light reading modes (body.rd-soft, [data-theme="sunrise"]), which
   override --bg to #465578, still repaint only what they always repainted.
   --bg is the ground the current theme paints. --bg-sunk is the only value
   darker than the ground and is never behind a paragraph. */
:root{
  --bg-ground:#0a0c14; /* the ground every published ratio is measured against */
  --bg:var(--bg-ground);
  --bg-raised:#101320; /* panels and cards that sit above the ground */
  --bg-sunk:#07080e;   /* wells, inputs, inset regions — the only thing darker */
}
/* F · docs/TYPE-AND-CONTRAST.md §6, moved here from saferise-system.css so
   the nine pages that do not load it resolve the same scale and colours.
   --text and --ink stay in saferise-system.css (see the note there). */
:root{
  --soft:#b3ada4; --dim:#948e86;
  --fs-display:clamp(2.1rem,3.7vw,3.1rem);
  --fs-title:1.7rem; --fs-sub:1.3rem; --fs-lead:1.05rem;
  --fs-body:0.95rem; --fs-caption:0.85rem; --fs-label:0.7rem; /* a floor: live labels run 11-13px */
  --lh-body:1.62; --lh-caption:1.55;
  --measure:62ch; --measure-lead:58ch; --measure-card:38ch;
  /* G · the spacing floor. A surface (background, ring or shadow) holding a
     paragraph pads at least --pad-card, --pad-narrow below 760px; a compact
     control (pill, chip, tag, row, badge) floors at --pad-tight. */
  --pad-card:24px; --pad-tight:16px; --pad-narrow:18px;
}
/* F · form controls inherit the page's face. Browsers give input, select,
   textarea and button their own system font (Arial on 19 pages), so a
   control never matched the copy around it. */
input,select,textarea,button{font-family:inherit}
html{
  -webkit-text-size-adjust:100%;
          text-size-adjust:100%;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
     -moz-osx-font-smoothing:grayscale;
}
