/*
  Mowbuddy Design System, Tokens
  All design tokens as CSS custom properties.
  Every token is prefixed --mb- so it can't collide with variables from host
  apps or third party libraries. Partner app specific tokens will use --mbp-.
  Import this file before global.css and any component CSS.
*/

:root {

  /* ============================================================
     BRAND COLOURS
     ============================================================ */
  --mb-color-green:          #72B272;   /* Mowbuddy green, primary brand */
  --mb-color-green-medium:   #A1C44E;   /* Supportive green */
  --mb-color-green-pale:     #DFEAC2;   /* Supportive green, tint */

  /* ============================================================
     SYSTEM COLOURS
     ============================================================ */
  --mb-color-action:         #1179C8;   /* Buttons, links. Darkened from #159BFF so white text passes AA (4.57:1) */
  --mb-color-danger:         #DA3739;   /* Danger, alerts. Darkened from #FF4042 so white text passes AA (4.58:1) */
  --mb-color-warning:        #FFD530;   /* Warnings, sale */

  /* Pale tints of the system colours, for tinted backgrounds such as
     inline notes. Darkest grey text passes AAA on all three. */
  --mb-color-action-pale:    #E7F2FA;   /* Action at 10% on white */
  --mb-color-danger-pale:    #FBEBEB;   /* Danger at 10% on white */
  --mb-color-warning-pale:   #FFF7D6;   /* Warning at 20% on white, yellow is already light */

  /* ============================================================
     NEUTRAL COLOURS
     ============================================================ */
  --mb-color-darkest-grey:   #222222;
  --mb-color-darker-grey:    #666666;
  --mb-color-dark-grey:      #999999;
  --mb-color-medium-grey:    #CCCCCC;
  --mb-color-light-grey:     #E6E6E6;
  --mb-color-pale-grey:      #F5F5F5;
  --mb-color-white:          #FFFFFF;
  --mb-color-negative:       #FFFFFF;   /* Text on dark backgrounds */

  /* ============================================================
     TYPOGRAPHY
     Bitter is the only typeface for UI and content.
     Mobile first: these are the base (mobile) sizes. Headings step
     up at the md breakpoint (768px), see the media query below.
     ============================================================ */
  --mb-font-family:          'Bitter', Georgia, 'Times New Roman', serif;

  /* Type styles, use as: font: var(--mb-type-xxx); */
  --mb-type-h1:              700 36px/1.2 var(--mb-font-family);
  --mb-type-h2:              700 28px/1.2 var(--mb-font-family);
  --mb-type-h3:              700 24px/1.25 var(--mb-font-family);
  --mb-type-h4:              700 20px/1.3 var(--mb-font-family);
  --mb-type-h5:              700 18px/1.3 var(--mb-font-family);
  --mb-type-h6:              700 16px/1.4 var(--mb-font-family);

  --mb-type-body-large:      400 16px/1.5 var(--mb-font-family);   /* Only when specifically asked for, default to body-base */
  --mb-type-body-base:       400 14px/1.5 var(--mb-font-family);   /* DEFAULT for body and UI text: labels, values, descriptions, copy */
  --mb-type-body-small:      400 12px/1.5 var(--mb-font-family);

  --mb-type-price:           700 32px/1.1 var(--mb-font-family);
  --mb-type-button-label:    600 14px/1   var(--mb-font-family);
  --mb-type-button-label-sm: 600 12px/1   var(--mb-font-family);
  --mb-type-input:           400 14px/1.4 var(--mb-font-family);
  --mb-type-input-label:     600 14px/1.4 var(--mb-font-family);
  --mb-type-tag-label:       600 12px/1   var(--mb-font-family);

  /* ============================================================
     SPACING
     4px base unit. Token number is the pixel value.
     ============================================================ */
  --mb-space-4:    4px;
  --mb-space-6:    6px;
  --mb-space-8:    8px;
  --mb-space-12:   12px;
  --mb-space-16:   16px;
  --mb-space-24:   24px;
  --mb-space-32:   32px;
  --mb-space-48:   48px;

  /* ============================================================
     BORDER RADIUS
     ============================================================ */
  --mb-radius-sm:    8px;
  --mb-radius-md:    16px;
  --mb-radius-lg:    24px;
  --mb-radius-pill:  999px;   /* Fully round ends at any height */

  /* ============================================================
     ELEVATION / SHADOWS
     ============================================================ */
  --mb-shadow-1: 0 0 2px rgba(0, 0, 0, 0.12);
  --mb-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.14);
  --mb-shadow-3: 0 8px 24px rgba(0, 0, 0, 0.16);

}

/* Headings step up on tablet and desktop. Body sizes stay the same. */
@media (min-width: 768px) {
  :root {
    --mb-type-h1:            700 48px/1.15 var(--mb-font-family);
    --mb-type-h2:            700 36px/1.2 var(--mb-font-family);
    --mb-type-h3:            700 28px/1.25 var(--mb-font-family);
    --mb-type-h4:            700 22px/1.3 var(--mb-font-family);
    --mb-type-price:         700 40px/1.1 var(--mb-font-family);
  }
}
