/* ============================================================
   BARBS · Design Tokens
   Bajan-to-the-bone. Sunny, cheeky, confident.
   ============================================================ */

/* Brand fonts.
   - Roc Grotesk Regular  (body)   → local OTF
   - Roc Grotesk Wide     (med)    → local OTF
   - Roc Grotesk Wide Bold (heads) → local OTF
   - Mushmouth            (wordmark display) → local TTF
     The wordmark itself is still supplied as SVG — prefer the SVG for
     "Barbs" wherever possible. Use Mushmouth font for live display copy.
*/
@font-face {
  font-family: 'Mushmouth';
  src: url('fonts/Mushmouth.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roc Grotesk';
  src: url('fonts/RocGrotesk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roc Grotesk Wide';
  src: url('fonts/RocGrotesk-Wide.otf') format('opentype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roc Grotesk Wide';
  src: url('fonts/RocGrotesk-WideBold.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ────────────────  CORE BRAND PALETTE  ────────────────
     Verbatim from the Brand Toolkit V1.0 (May 2023).         */
  --barbs-burnt-orange:    #F96726;   /* PRIMARY — most loud surface  */
  --barbs-sunshine-yellow: #FFD41D;   /* HERO — Sunny mascot, joy     */
  --barbs-bajan-cherry:    #E21F46;   /* ACCENT — sparingly, sauces   */
  --barbs-light-sand:      #FAF3E4;   /* GROUND — page bg, neutrals   */
  --barbs-off-black:       #282828;   /* INK — type, line art         */
  --barbs-pure-white:      #FFFFFF;

  /* ────────────────  HERITAGE ACCENTS  ────────────────
     Reserved for moments where Barbs explicitly points at Barbados —
     origin marks, independence-day campaigns, heritage press kits, the
     "Made in Bridgetown" badge. NOT a sixth brand colour.            */
  --barbs-bajan-blue:      #00267F;   /* Bajan flag · ultramarine     */
  --barbs-bajan-gold:      #FFC726;   /* Bajan flag · gold band       */

  /* A single tint per brand colour — for hovers / soft fills only.
     Mixed with sand so they stay inside the family.                  */
  --barbs-orange-tint:     #FFDCC8;
  --barbs-yellow-tint:     #FFF1A8;
  --barbs-cherry-tint:     #FAD2DA;
  --barbs-sand-shade:      #EFE4C9;
  --barbs-ink-soft:        #4A4A4A;

  /* ────────────────  SEMANTIC SURFACE / INK  ──────────────── */
  --bg:                    var(--barbs-light-sand);
  --bg-elev:               var(--barbs-pure-white);
  --bg-inverse:            var(--barbs-off-black);
  --bg-loud:               var(--barbs-burnt-orange);
  --bg-sun:                var(--barbs-sunshine-yellow);

  --fg:                    var(--barbs-off-black);
  --fg-muted:              var(--barbs-ink-soft);
  --fg-inverse:            var(--barbs-light-sand);
  --fg-on-orange:          var(--barbs-pure-white);  /* primary button + key surfaces — toolkit-aligned */
  --fg-on-orange-alt:      var(--barbs-sunshine-yellow); /* legacy yellow-on-orange (hero mega-type still uses this) */
  --fg-on-yellow:          var(--barbs-off-black);
  --fg-on-cherry:          var(--barbs-light-sand);

  --line:                  var(--barbs-off-black);
  --line-soft:             color-mix(in srgb, var(--barbs-off-black) 18%, transparent);

  --accent:                var(--barbs-burnt-orange);
  --accent-2:              var(--barbs-bajan-cherry);

  --focus-ring:            var(--barbs-bajan-cherry);

  /* ────────────────  TYPE FAMILIES  ──────────────── */
  --font-display:  "Mushmouth", "Bagel Fat One", "Lilita One", system-ui, sans-serif;
  --font-sans:     "Roc Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-wide:     "Roc Grotesk Wide", "Roc Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono:     ui-monospace, "JetBrains Mono", Menlo, monospace;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;
  --weight-black:   900;

  /* Roc Grotesk per toolkit: tracking -20 (~-0.02em); UPPERCASE detail
     copy uses the same -20, or a more open +200 (~0.2em).               */
  --track-tight:   -0.02em;
  --track-detail:  -0.02em;
  --track-loose:    0.2em;

  /* ────────────────  TYPE SCALE  ────────────────
     Roc Grotesk Wide Bold for displays/heads, Regular for body.         */
  --t-mega:    clamp(64px, 9vw, 140px);  /* hero "GOOD MOOD FOOD" */
  --t-display: clamp(48px, 6vw, 88px);
  --t-h1:      clamp(36px, 4.4vw, 64px);
  --t-h2:      clamp(28px, 3.2vw, 44px);
  --t-h3:      24px;
  --t-h4:      20px;
  --t-body:    16px;
  --t-small:   14px;
  --t-detail:  12px;   /* UPPERCASE supporting details */

  --lh-tight:  0.95;
  --lh-snug:   1.05;
  --lh-body:   1.45;

  /* ────────────────  SPACING  ────────────────
     4-step scale, doubled. No 5px nonsense.                             */
  --s-0: 0;
  --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;
  --s-10: 128px;

  /* ────────────────  RADIUS  ────────────────
     Barbs is a little chunky. Pills for buttons; soft cards.            */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ────────────────  BORDERS  ────────────────
     The brand is line-light. When borders appear, they're solid ink.    */
  --border:        1.5px solid var(--barbs-off-black);
  --border-thick:  3px   solid var(--barbs-off-black);
  --border-loud:   3px   solid var(--barbs-burnt-orange);

  /* ────────────────  SHADOWS  ────────────────
     Hard offset "sticker" shadow > soft Material shadow.                */
  --shadow-sticker: 4px 4px 0 var(--barbs-off-black);
  --shadow-sticker-lg: 8px 8px 0 var(--barbs-off-black);
  --shadow-soft: 0 6px 20px -8px rgba(40,40,40,0.25);
  --shadow-pop: 0 12px 32px -12px rgba(40,40,40,0.35);

  /* ────────────────  MOTION  ──────────────── */
  --ease-pop:   cubic-bezier(.34,1.56,.64,1);   /* slight overshoot */
  --ease-out:   cubic-bezier(.2,.7,.2,1);
  --dur-fast:   120ms;
  --dur-base:   220ms;
  --dur-slow:   420ms;

  /* ────────────────  LAYOUT  ──────────────── */
  --max-w:     1240px;
  --gutter:    24px;
}

/* ================================================================
   SEMANTIC TYPE STYLES — apply directly OR copy into a class.
   ================================================================ */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-tight);
  -webkit-font-smoothing: antialiased;
}

/* Mega display — "GOOD MOOD FOOD" treatment. Use sparingly.            */
.t-mega, h1.mega {
  font-family: var(--font-display);
  font-weight: 400; /* Bagel Fat One is single-weight */
  font-size: var(--t-mega);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Display — section heroes.                                            */
.t-display {
  font-family: var(--font-wide);
  font-weight: var(--weight-black);
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
}

h1, .t-h1 {
  font-family: var(--font-wide);
  font-weight: var(--weight-black);
  font-size: var(--t-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  margin: 0;
}

h2, .t-h2 {
  font-family: var(--font-wide);
  font-weight: var(--weight-bold);
  font-size: var(--t-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  margin: 0;
}

h3, .t-h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: var(--track-tight);
  margin: 0;
}

h4, .t-h4 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--t-h4);
  line-height: 1.3;
  letter-spacing: var(--track-tight);
  margin: 0;
}

p, .t-body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-tight);
  text-wrap: pretty;
}

.t-small { font-size: var(--t-small); }

/* UPPERCASE supporting detail — eyebrows, micro-labels, badges.        */
.t-detail, .eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--t-detail);
  text-transform: uppercase;
  letter-spacing: var(--track-loose);
}

code, kbd, .t-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* Selection — bold, in-brand. */
::selection { background: var(--barbs-sunshine-yellow); color: var(--barbs-off-black); }

/* Focus ring — Bajan cherry, visible against everything.               */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
