/* ==========================================================================
   Brand tokens: Maple Hollow Roofing

   This is the only file a brand change needs to touch. Every colour and font
   on the site comes from a name in this file. Change a value here and it
   changes on every page. Keep the names as they are: site.css looks them up
   by name.

   Rules for this file:
   - Only tokens go here (plus @font-face, if the brand has its own font
     files). No other styles.
   - Write the colours used for text and backgrounds as plain hex, like
     #1a2b3c, so the contrast check can read them.
   - After any change run:  python tools/check.py
     It fails if a text colour is too faint against its background.

   Where the values come from: the logo file.
     Spruce  #10302A   the dark green
     Stone   #B9B2A3   the warm grey
     Maple   #DC5A36   the red-orange of a maple leaf in October
     Slate   #49635B   the grey-green

   How the red-orange is used. Pure Maple is the colour of bands, rules, rings
   and big numerals. It is too light to sit under small white words, and too
   dark to be small words on Spruce. So:
     - buttons use a shade one step darker (--color-accent), so their white
       labels pass;
     - small red-orange words on Spruce use a shade one step lighter
       (--color-accent-on-dark);
     - on the Maple band itself only large type is used (24 px and up, or
       bold from 19 px), and buttons, which bring their own background.
   ========================================================================== */

:root {
  /* Backgrounds: four bands that never repeat back to back */
  --color-bg: #ffffff;                 /* the page, and the white bands */
  --color-bg-alt: #eeeae1;             /* the pale band: a tint of Stone, strong enough to see */
  --color-surface: #ffffff;            /* cards, form fields */
  --color-dark: #10302a;               /* Spruce: the dark bands, the header, the footer */
  --color-dark-raised: #173c33;        /* Spruce, one step lighter: panels that sit on Spruce */

  /* Slate as a surface: one strip on the home page. White marks only on
     Slate. Maple on Slate is too faint. */
  --color-steel: #49635b;
  --color-on-steel: #ffffff;

  /* Text on the light bands */
  --color-text: #10302a;               /* body text: Spruce */
  --color-heading: #10302a;            /* headings, labels, bold text: Spruce */
  --color-muted: #49635b;              /* small print and secondary text: Slate */
  --color-link: #10302a;               /* links in running text */

  /* Text on Spruce */
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #dcd8cd;      /* secondary text on Spruce: light Stone */

  /* Lines */
  --color-line: #d6d1c5;               /* hairlines and card edges on the light bands */
  --color-line-on-dark: #49635b;       /* hairlines on Spruce: Slate */
  --color-field-border: #49635b;       /* the outline of form fields: Slate */

  /* The red-orange */
  --color-brand-mark: #dc5a36;         /* Maple itself: the band, rules, rings, big numerals */
  --color-on-brand-mark: #ffffff;      /* large type only on Maple */
  --color-accent: #b23f22;             /* buttons: Maple, one step darker, so white labels pass */
  --color-accent-hover: #9a351b;
  --color-on-accent: #ffffff;
  --color-accent-on-dark: #f08462;     /* small red-orange words on Spruce: Maple, one step lighter */

  /* Header */
  --color-header-bg: #10302a;          /* Spruce, so the white and red-orange logo sits on it */
  --color-header-text: #ffffff;
  --color-header-line: #49635b;

  /* The call plate on top of the estimate card */
  --color-band: #10302a;               /* Spruce */
  --color-on-band: #ffffff;

  /* Keyboard focus rings */
  --color-focus: #10302a;
  --color-focus-on-dark: #ffffff;

  /* Form errors */
  --color-error: #991b1b;
  --color-error-bg: #fef2f2;

  /* Type. Headings are a sturdy slab face, text a plain sans. The site uses
     fonts that are already on the visitor's device, so nothing has to be
     downloaded.
       Headings: Rockwell on Windows and Mac, Roboto Slab on Android where
       it is installed, Georgia everywhere else.
       Text: Avenir Next on Apple devices, Segoe UI on Windows, Roboto on
       Android. */
  --font-heading: Rockwell, "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight-body: 400;
  --font-weight-strong: 700;
  --font-weight-heading: 700;

  /* Corners: slightly eased */
  --radius: 4px;                       /* cards, photos and form fields */
  --radius-button: 4px;                /* buttons */
}
