/* ==========================================================================
   tokens.base.css  -  load FIRST, on every site. Defaults only.
   Each site then loads tokens.site.css (a copy of tokens.<site>.css) which
   overrides ONLY the primary brand values.
   Components must only ever use these names, never raw colours.

   Derived tokens (--color-text, --color-border, --color-focus, --color-link ...)
   are var() references to the primaries. var() resolves AFTER the cascade, so a
   site that overrides --color-brand automatically re-colours them: site files no
   longer need to repeat those lines.
   ========================================================================== */
:root {
  /* ---- Brand ---- */
  --color-brand:        #2a7fc7;   /* buttons, fills, panels, icons */
  --color-brand-light:  #3ea9d9;
  --color-brand-dark:   #28489a;
  --color-brand-tint:   #94d0e3;   /* pale wash / gradients */
  --color-brand-alt:    #153865;   /* second brand colour (dark panels) */
  --color-accent:       #e84d0e;   /* highlight / call-to-action */
  --color-on-accent:    #ffffff;   /* text on --color-accent fills (card bars, buttons) */

  /* ---- Text ---- */
  --color-text:            var(--color-brand);   /* body copy, list items (was a literal copy of brand) */
  --color-text-dark:       #222;                 /* menu text, dark tooltips, hover text on pale buttons */
  --color-text-secondary:  #383b3f;
  --color-text-muted:      #6a6e7c;  /* placeholders, captions, meta */
  --color-text-inverse:    #ffffff;  /* text on brand/dark backgrounds */
  --color-text-inverse-soft: #f2f2f2;
  --color-heading:         var(--color-text);
  --color-link:            var(--color-brand);
  --color-link-hover:      var(--color-brand);

  /* ---- Surfaces ---- */
  --color-surface:        #ffffff;
  --color-surface-alt:    rgba(248, 241, 238, .7);
  --color-surface-muted:  #f4f4f6;
  --bg-page:              linear-gradient(to right, #8fb0cc 0%, #f1dfc6 50%, #eba56b 100%);
/*  --bg-page:              linear-gradient(to right, #c5d8e3 0%, #f2e8da 50%, #efc79f 100%);*/

  /* ---- Borders & focus ---- */
  --color-border:        var(--color-brand);    /* inputs, dividers, outlined buttons */
  --color-focus:         var(--color-brand);
  --color-border-light:  #ccc;                  /* dialogs, dividers */
  --color-border-soft:   #ddd;                  /* panels, recipe boxes */
  --color-border-subtle: rgba(46, 46, 46, .15); /* swatch rings */

  /* ---- Overlays ---- */
  --color-overlay:       rgba(0, 0, 0, .4);     /* image overlays */

  /* ---- Status (messages, alerts) ---- */
  --color-success:    rgb(54, 163, 103);
  --color-success-bg: #e8f5e9;
  --color-warning:    rgb(233, 160, 10);
  --color-warning-bg: #ffecb3;
  --color-error:      rgb(227, 49, 49);
  --color-error-bg:   #ffcdd2;

  /* ---- Footer ---- */
  --color-footer-bg:    #5c5c5c;
  --color-footer-text:  #ffffff;

  /* ---- Neutral scale (sand/stone/greys) ---- */
  --color-neutral-soft:   #c9c0ba;
  --color-neutral:        #b0a69e;
  --color-neutral-strong: #978a7e;

  /* ---- Rounded corners ---- */
  --radius-4:     4px;
  --radius-8:     8px;
  --radius-16:    16px;
  --radius-20:    20px;    /* speech boxes, pill buttons, overlay chips */
  --radius-pill:  50px;
  --radius-round: 50%;     /* swatches, circle cards */

  /* ---- Shadows ---- */
  --shadow-sm:   0 2px 4px rgba(0, 0, 0, .1);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, .2);
  --shadow-lg:   0 16px 32px rgba(0, 0, 0, .15);
  --shadow-card: 0 16px 32px 5px rgba(128, 128, 128, .15);
  --shadow-text: 0 0 7px rgba(0, 0, 0, .25);   /* hero text on images */

  /* ---- Layout ---- */
  --container-max:     1200px;
  --container-content: 1170px;

  /* ---- Motion ---- */
  --transition-fast: .3s ease-in-out;
  --transition-base: .5s ease-in-out;
  --transition-slow: 1.2s ease-in-out;

  /* ---- Stacking ---- */
  --z-dialog:  1260;

  /* ---- Type ---- */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-body:           "montserrat", "Josefin Sans", "raleway", "essonnes-display", "Dosis", "Futura PT Light", var(--font-system);
  --font-heading:        "montserrat", "Josefin Sans", var(--font-system);
  --font-heading-medium: "montserrat", "Josefin Sans", "Futura PT Medium", var(--font-system);
  --font-display:        var(--font-heading);   /* slider / hero headlines */
  --font-icons:          "xander icons";
  --font-mono:           SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* ---- Font weights (names for the numbers the files already use) ---- */
  --fw-thin:   100;
  --fw-medium: 500;

  /* ---- Bootstrap-4 names: the parent theme may read these. Aliased to the above where it is safe. ---- */
  --font-family-sans-serif: var(--font-body);
  --font-family-monospace:  var(--font-mono);
  --font-family-headers:    var(--font-heading);   /* footer.css uses this name; it was undefined (text silently inherited) */
  --white: #fff; --gray: #757575; --gray-dark: #424242; --gray-darker: #373738; --gray-light: #a6a6a6;
  --primary: #2196f3; --secondary: #757575; --success: #4caf50; --info: #00bcd4;
  --warning: #ffeb3b; --danger: #f44336; --light: #f5f5f5; --dark: #424242;
  --breakpoint-xs: 0; --breakpoint-sm: 576px; --breakpoint-md: 768px; --breakpoint-lg: 992px; --breakpoint-xl: 1200px;
}

/* NOTE: media queries cannot read custom properties, so --breakpoint-* above are
   documentation only. Standardise @media on these literals everywhere:
   max-width: 575.98px | 767.98px | 991.98px | 1199.98px
   min-width: 576px    | 768px    | 992px    | 1200px */
