/* tokens.css — the one file every snazzy.ie page loads first.

   Colours, type, shape, space and motion live here and nowhere else. site.css
   and every page sheet express their values in terms of these tokens, so no
   component declares a hex. The brand ramp is taken from the mark itself
   (assets/img/snazzy-mark.svg) and the semantic values from snazzy.host's
   marketing system, so the parent and the product read as one family.

   BANDS. A band re-points the semantic tokens (--ground, --ink, --accent …)
   and nothing else. Components only ever read the semantic tokens, so a card
   placed in .band-night re-skins itself without a modifier class.

   Contrast floors are noted beside each ink and accent: text 4.5:1, UI edges
   and large display 3:1 (WCAG 2.2 1.4.3 and 1.4.11). */

/* Baloo 2 stands in for VAG until the Adobe kit lands, and if it never does.
   It renders at 700 because VAG's single 400 cut reads as a heavy weight. */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  /* metric overrides measured against VAG at 100px: Baloo 700 runs 2.8% wider
     and its default line box is 160 vs 118, so the swap would shift layout. */
  size-adjust: 97.25%;
  ascent-override: 90%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  /* ------------------------------------------------ brand: fixed, from the mark */
  --c-sun:     #f9c726;
  --c-orange:  #f5841f;
  --c-magenta: #de1b76;
  --c-purple:  #482e8f;
  --c-navy:    #191530;
  /* The disc's yellow #f7ec13 and red #ee1d49 live only inside the gradients
     below. They are not standalone brand colours. */

  --grad-brand:  linear-gradient(115deg, #f7ec13 0%, #f5841f 32%, #ee1d49 64%, #482e8f 100%);
  --grad-warm:   linear-gradient(100deg, #f9c726, #f5841f);
  /* Heading ramps run top to bottom so every word on a line wears the same
     colour, even when a line-mask splits words into separate boxes. */
  --grad-head-paper: linear-gradient(180deg, #f5841f 0%, #ee1d49 42%, #c2105f 72%, #6a2c8f 100%);
  --grad-head-night: linear-gradient(180deg, #ffd84a 0%, #f5841f 40%, #ee1d49 75%, #ff3d91 100%);

  /* ------------------------------------------------ semantic: paper (default) */
  --ground:    #f5f3ef;
  --ground-2:  #ebe7e0;
  --ground-3:  #e2ddd4;
  --surface:   #ffffff;           /* cards and form fields sitting on the ground */
  --ink:       #151225;           /* 16.5:1 on paper */
  --ink-soft:  #3a3552;           /* 10.6:1 */
  --ink-mute:  #5f5a7c;           /* 5.8:1 on paper, 5.3:1 on paper-2 */
  --ink-faint: #938ea8;           /* icons and rules only, never text */
  --line:        rgba(21, 18, 37, .11);
  --line-strong: rgba(21, 18, 37, .22);
  --control-edge: #8a84a3;        /* input and checkbox borders: 3.6:1 on white */
  --accent:      #c2105f;         /* 5.4:1 on paper */
  --accent-hi:   #a90e54;
  --accent-soft: rgba(222, 27, 118, .12);
  --grad-head:   var(--grad-head-paper);
  --logo:        url("../img/snazzy-digital-logo.svg");

  /* the one button, the same on every ground */
  --btn:        #c2105f;          /* white on it 5.9:1 */
  --btn-fill:   #7a0a3d;          /* hover fill that rises through it */
  --btn-ink:    #ffffff;

  /* state: never a resting button, never the only signal */
  --ok:   #2e750e;
  --warn: #b45a09;
  --crit: #d32535;

  /* the night, available to every band */
  --night:   #0d0b1a;
  --night-2: #161230;
  --night-3: #221c44;
  --on-night-mute: #9c96c0;       /* 7.0:1 on night */

  /* ------------------------------------------------ type */
  --font-display: "vag-rundschrift-d", "VAG-Rundschrift-D", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body:    "vag-rundschrift-d", "VAG-Rundschrift-D", "Baloo 2", ui-rounded, system-ui, sans-serif;   /* one family: 300 for text, 400 for everything emphasised or display */
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-mega:    clamp(2.9rem, 8vw, 7rem);
  --fs-h1:      clamp(2.5rem, 5.8vw, 5rem);
  --fs-h2:      clamp(2rem, 4.6vw, 3.6rem);
  --fs-h3:      1.4rem;
  --fs-h4:      1.1rem;
  --fs-lede:    clamp(1.12rem, 1.5vw, 1.3rem);
  --fs-body:    1rem;
  --fs-sm:      .92rem;
  --fs-xs:      .84rem;           /* floor: 14.3px at the 17px root */
  --fs-eyebrow: .76rem;           /* uppercase, .16em, 600 only */
  --lh-body:    1.6;
  --lh-tight:   .95;
  --track-display: -.03em;

  /* ------------------------------------------------ shape */
  --r:      8px;                  /* buttons, inputs, pills inside cards */
  --r-lg:   12px;                 /* frames, process media, menus */
  --r-card: 10px;                 /* the showcase card: white, 8px padding, soft shadow */
  --shadow-card: 0 14px 34px rgba(13, 11, 26, .10);
  --shadow-card-up: 0 26px 48px rgba(13, 11, 26, .16);
  --r-pill: 999px;                /* every button, every pill, the nav capsule */
  --btn-edge: 2px;                /* secondary button outline */

  /* ------------------------------------------------ space (8px step) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --wrap:      1320px;
  --gutter:    clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 9vw, 7rem);
  --nav-h: 78px;
  --nav-grad: linear-gradient(135deg, #dc0c54 0%, #7d2c7b 50%, #24184c 100%);
  --c-whatsapp: #25d366; --c-whatsapp-hi: #1ebe5a; --c-whatsapp-ink: #0b3d22;
  --control-h: 48px;

  /* ------------------------------------------------ elevation */
  --shadow-long: 0 50px 90px -40px rgba(13, 11, 26, .55);
  --shadow-pop:  0 18px 44px -18px rgba(25, 21, 48, .45);
  --focus-ring:  2px solid var(--accent-hi);

  /* ------------------------------------------------ motion */
  --d-fast: 320ms;
  --d-base: 620ms;
  --d-slow: 1200ms;
  --e-signature: cubic-bezier(.16, 1, .3, 1);
  --e-out:       cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ bands */

.band-paper {
  --ground: #f5f3ef; --ground-2: #ebe7e0; --ground-3: #e2ddd4; --surface: #fff;
}
.band-white {
  --ground: #ffffff; --ground-2: #f7f6f3; --ground-3: #ebe7e0; --surface: #fff;
}
.band-paper, .band-white {
  --ink: #151225; --ink-soft: #3a3552; --ink-mute: #5f5a7c; --ink-faint: #938ea8;
  --line: rgba(21, 18, 37, .11); --line-strong: rgba(21, 18, 37, .22); --control-edge: #8a84a3;
  --accent: #c2105f; --accent-hi: #a90e54; --accent-soft: rgba(222, 27, 118, .12);
  --ok: #2e750e; --warn: #b45a09; --crit: #d32535;
  --grad-head: var(--grad-head-paper);
  --logo: url("../img/snazzy-digital-logo.svg");
}
.band-night {
  --ground: var(--night); --ground-2: var(--night-2); --ground-3: var(--night-3); --surface: var(--night-2);
  --ink: #f3f1fa;                         /* 17.4:1 on night */
  --ink-soft: rgba(243, 241, 250, .78);
  --ink-mute: var(--on-night-mute);
  --ink-faint: #6c6790;
  --line: rgba(243, 241, 250, .12); --line-strong: rgba(243, 241, 250, .24); --control-edge: #6f6a94;
  --accent: #ff3d91;                      /* 5.9:1 on night */
  --accent-hi: #ff6aab;
  --accent-soft: rgba(255, 61, 145, .14);
  --ok: #3ccf6d; --warn: #f5b73c; --crit: #ff6b78;
  --grad-head: var(--grad-head-night);
  --logo: url("../img/snazzy-digital-logo-white.svg");
}
/* Sun: once per page at most, plus the closing call to action. */
.band-sun {
  --ground: #f9c726; --ground-2: rgba(255, 255, 255, .35); --ground-3: rgba(255, 255, 255, .55); --surface: #fff;
  --ink: #151225; --ink-soft: #2a2440; --ink-mute: #2e2846;   /* 4.5:1+ even at the orange end */
  --line: rgba(21, 18, 37, .16); --line-strong: rgba(21, 18, 37, .3); --control-edge: #5f5a7c;
  --accent: #191530; --accent-hi: #000; --accent-soft: rgba(25, 21, 48, .1);
  --grad-head: linear-gradient(180deg, #191530, #482e8f);
  --logo: url("../img/snazzy-digital-logo.svg");
}
.band-paper, .band-white, .band-night, .band-sun { background: var(--ground); color: var(--ink); }
.band-sun { background: var(--grad-warm); }

@media (prefers-reduced-motion: reduce) {
  :root { --d-fast: 1ms; --d-base: 1ms; --d-slow: 1ms; }
}
