/* Design tokens.
   Every colour, size and spacing value used anywhere in the theme comes from
   here. No literal colours and no literal font sizes in component CSS.

   The look is borrowed from the one object everyone in this business already
   reads without being taught: a departure board. Deep blue board, amber for
   the thing that is about to happen, times set in tabular figures so columns
   line up down the page. */

:root {
  /* Colour ------------------------------------------------------------- */
  --mb-primary:        #0B4DA2;   /* the company blue */
  --mb-primary-dark:   #062E63;
  --mb-board:          #0E1C30;   /* the dark bands: hero veil, footer */
  --mb-accent:         #F2A900;   /* departure-board amber */
  --mb-accent-ink:     #3A2800;   /* text that sits on the amber */

  --mb-text:           #10161F;
  --mb-text-muted:     #55606E;
  --mb-text-invert:    #F7FAFD;

  --mb-bg:             #FFFFFF;
  --mb-bg-alt:         #F6F8FB;   /* cool paper, never cream */

  --mb-success:        #1C7F55;
  --mb-warning:        #9A5B00;
  --mb-error:          #B3261E;

  --mb-border:         #D7DEE7;
  --mb-border-strong:  #AFBBC9;
  --mb-rule:           #1E3350;   /* rules inside the dark bands */

  /* There is deliberately no pink token. */

  /* Type ---------------------------------------------------------------
     No webfont: a CDN font would send every visitor's address abroad on
     every page view, and a self-hosted one is weight we have not earned.
     The personality comes from the setting, not the face — heavy display
     weights, tight tracking, and tabular figures everywhere a time or a
     fare appears. */
  --mb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mb-fs-xs:   0.8125rem;  /* 13 */
  --mb-fs-sm:   0.9375rem;  /* 15 — never smaller for body copy */
  --mb-fs-base: 1.0625rem;  /* 17 */
  --mb-fs-md:   1.1875rem;  /* 19 */
  --mb-fs-lg:   1.4375rem;  /* 23 */
  --mb-fs-xl:   1.875rem;   /* 30 */
  --mb-fs-2xl:  2.375rem;   /* 38 */
  --mb-fs-3xl:  3rem;       /* 48 */
  --mb-fs-4xl:  4rem;       /* 64 */

  --mb-lh-tight: 1.08;
  --mb-lh-snug:  1.3;
  --mb-lh-base:  1.6;

  --mb-track-tight: -0.022em;
  --mb-track-wide:   0.01em;

  /* Space -------------------------------------------------------------- */
  --mb-sp-1: 0.25rem;
  --mb-sp-2: 0.5rem;
  --mb-sp-3: 0.75rem;
  --mb-sp-4: 1rem;
  --mb-sp-5: 1.5rem;
  --mb-sp-6: 2rem;
  --mb-sp-7: 3rem;
  --mb-sp-8: 4rem;
  --mb-sp-9: 6rem;

  /* Shape -------------------------------------------------------------- */
  --mb-radius:     12px;
  --mb-radius-sm:  8px;
  --mb-radius-pill: 999px;
  --mb-shadow:     0 1px 2px rgba(16, 22, 31, .06), 0 6px 18px rgba(16, 22, 31, .07);
  --mb-shadow-lg:  0 12px 40px rgba(6, 46, 99, .22);

  /* The smallest a tappable thing may be. Specification R-7.4.2. */
  --mb-tap: 44px;

  --mb-container: 1180px;
  --mb-gutter: var(--mb-sp-5);

  --mb-ease: cubic-bezier(.22, .68, .3, 1);
}

@media (min-width: 60rem) {
  :root { --mb-gutter: var(--mb-sp-6); }
}
