/* Destination palette — the one place AU and NZ differ.

   Before this sheet existed the destination difference was made three
   different ways: guide-au.css (a whole extra stylesheet on 17 pages),
   body.au/body.nz (honoured by family.css and family-eco.css only, on 16
   pages), and nothing at all on the remaining ~62 destination pages. A page
   was Australian because of which stylesheet it happened to link.

   Here the page says which destination it is — <body class="au"> — and the
   palette follows. Nothing below is a hue name: --accent is "the colour this
   destination accents with", which is raspberry on Australia and sage on New
   Zealand. Rules elsewhere use the token and stay country-agnostic, so an
   Australian page and its New Zealand twin are the same markup with one class
   changed.

   Load AFTER shell.css and BEFORE any page sheet that uses these tokens.

   Teal is the Ethicare brand and does not vary by destination. Only the
   accent and the surfaces it sits on do. */

/* Two accent tokens, not one, and the reason is contrast.

   --accent is the decorative accent: rules, bars, edges, borders, the little
   dash above a heading. Nothing depends on reading it.

   --accent-ink is the accent used as TEXT — eyebrows, small caps labels.
   On Australia these are the same colour. On New Zealand they are not, and
   must not be: Fern on cream measures 2.63:1, which fails WCAG AA for small
   text, so New Zealand's accent ink is the deep green instead at 6.79:1.
   The New Zealand eyebrow being a different green from the New Zealand rule
   is deliberate. Do not "fix" it by making them match. */

body.au{
  --accent:#9A2457;          /* Raspberry */
  --accent-ink:#9A2457;      /* 5.54:1 on cream */
  --accent-soft:#EBDFD3;     /* Clay, for edges and rules */
  --accent-wash:#F7F4EE;     /* the warm surface a block sits on */
  --band:#F3F7F4;            /* Pale Eucalyptus */
  --soft:#F3F7F4;
  --fern-text:#9A2457;       /* "small text on a light surface" — Clay here */
  --fam-accent:#9A2457;
  --fam-edge:#EBDFD3;
}

body.nz{
  --accent:#72A471;          /* Fern — decorative only */
  --accent-ink:#2F5E49;      /* 6.79:1 on cream; Fern would be 2.63:1 */
  --accent-soft:#C9DED3;
  --accent-wash:#F4F8F5;
  --band:#E3ECE5;            /* Soft Sage */
  --soft:#E3ECE5;
  --fam-accent:#72A471;
  --fam-edge:#C9DED3;
}

/* Pages that belong to neither destination — the homepage, About, tools.
   These take the New Zealand accent because it is the brand green, not
   because they are New Zealand pages. */
body.global{
  --accent:#72A471;
  --accent-ink:#2F5E49;
  --accent-soft:#C9DED3;
  --accent-wash:#F4F8F5;
  --band:#E6F1ED;
  --soft:#E6F1ED;
  --fam-accent:#72A471;
  --fam-edge:#C9DED3;
}

/* A destination page that forgets its class gets the global palette rather
   than an unstyled one. */
body:not(.au):not(.nz):not(.global){
  --accent:#72A471;
  --accent-ink:#2F5E49;
  --accent-soft:#C9DED3;
  --accent-wash:#F4F8F5;
}
