/* Nightingale Nursing Home, Littlehampton - design tokens
   Tier: Homely (worn with a little gravitas: nursing + 1949).
   Preset: "Nightingale" (preset 5). Type set T1 "Hearth": Fraunces + Nunito Sans.

   The home has no logo, but it does have an identity worth honouring: deep green and
   cream, heritage serif caps (old site header). The palette below is that green and
   cream, derived per reference/design-engine.md and measured, not eyeballed.
   Every ratio in the comments was computed (see BUILD_NOTES.md, "Palette").
   Distance check against the two portfolio-adjacent builds: Gratwick House (same town)
   is plum + terracotta; Elm Lodge (Eastbourne) is mid sage #66875F + baked clay. This
   primary is far deeper than Elm's sage and the accent is aged gold, not clay or coral. */
:root{
  /* ---- palette: deep laurel green + aged gold on warm cream ---- */
  --primary:      #2E5244;   /* laurel/pine green - large surfaces, chips, icon fields (8.2:1 on surface) */
  --primary-ink:  #24473A;   /* darkened for text and links (9.7:1 on surface, 8.9:1 on tint) */
  --primary-deep: #182F27;   /* near forest - footer, deep bands, nav on scroll (white 14.2:1) */
  --band-tint:    #E9F0E4;   /* green over cream, nudged to the green side so bands read warm-sage */
  --accent-tint:  #F8F0DC;   /* gold over cream - the care and reviews bands */
  --surface:      #FBF8F0;   /* warm cream paper, never white */
  --card:         #FFFFFF;
  --ink:          #22302A;   /* near black, tinted green (13.0:1 on surface) */
  --ink-soft:     #57655A;   /* 5.8:1 on surface, 5.3:1 on band-tint, 5.4:1 on accent-tint */

  /* Gold is a light accent, so buttons carry INK text on the gold fill rather than white
     (white on this gold is 3.1:1 and fails). design-engine.md allows either. */
  --cta:          #B98A2E;   /* aged gold fill - with --btn-ink text, 4.57:1 */
  --cta-hover:    #CCA044;   /* hover LIGHTENS the fill, so the dark label gets clearer (5.9:1) */
  --btn-ink:      #182F27;   /* the label colour on a gold fill */
  --gold-ink:     #7A5612;   /* gold-family TEXT on light bands (6.3:1 on surface, 5.8:1 on gold band) */
  --accent-line:  #C79A34;   /* line art and ornaments only, never text */
  --cqc-good:     #1E7B4C;   /* the word "Good" in the CQC heading. 4.8:1 on the cream,
                                clear of the 3:1 large-text floor; CQC-family green kept
                                deliberately quieter than the regulator's own #009639 */
  --accent-soft:  #E7C67E;   /* gold tint for text on the deep green band (8.7:1) */
  --accent-on-photo: #F2C96C;/* the italic hero word over the scrim. Lifted from #E9B44C after
                                measuring: on the lightest pixels behind the compact heroes the old
                                value fell to 2.68:1 and needs 3:1. Now 3.5:1 worst case. */

  --rule:         rgba(34,48,42,.13);
  --shadow-rgb:   24,47,39;
  --scrim:        linear-gradient(180deg, rgba(24,47,39,.72) 0%, rgba(24,47,39,.58) 45%, rgba(24,47,39,.86) 100%);

  /* ---- type: T1 "Hearth" ----
     Fraunces is an old-style display face with warmth in the letterforms, which suits a
     1949 house and reads nothing like Gratwick's Didone Playfair down the road. */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- width system (shared across the library) ---- */
  --w1: clamp(16px, 5.2vw, 92px);
  --w2: calc(var(--w1) * 2);
  --hold: 1300px;

  /* ---- scale: Homely - soft radius, lifted shadow, cosier density ---- */
  --sp: clamp(4.5rem, 9vw, 7rem);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 40px 80px -50px rgba(24,47,39,.5);
  --shadow-sm: 0 20px 44px -28px rgba(24,47,39,.42);
  --ease: cubic-bezier(.22,.61,.36,1);
  --good: var(--cqc-good);   /* alias, so the shared .cqc-cert component (Yelverton,
                                Stanley Lodge) works unchanged in this build */
  --ca-frame: 830px;         /* care-accordion frame: the photo is this tall and the
                                panel column is capped to match, so the picture never
                                changes size and no open panel runs past its bottom.
                                MEASURED for this build, 7 Sep 2026: five heads = 388px,
                                tallest body renders 414px once the uniform floor below applies, so
                                802px is the real need and 830 leaves 28px. The inherited 640 would have
                                CLIPPED the two tallest panels behind overflow:hidden, and
                                a clipped accordion looks exactly like a short one.
                                RE-MEASURE with round4/tools/cap.js if a panel is added
                                or its copy grows. */
}
