/* ============================================================
   TOKENS — colours, fonts and key sizes used across the site.
   Change a value here and it updates everywhere.
   ============================================================ */

/* Fonts are stored in /assets/fonts (SIL Open Font License). */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Archivo again, held at its condensed width, for the numbers on the Coaching hero's bike computer.
   Same file as above, so nothing extra downloads. */
@font-face {
  font-family: "Archivo Condensed";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kumbh Sans";
  src: url("/assets/fonts/kumbh-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colours */
  --dark: #262626;          /* graphite (6 Nov 2026; was #191817): heroes, rail, dark cards, text */
  --light: #F5F2EC;         /* warm off-white (6 Nov 2026; was #F5F2EC): light text on dark, light buttons */
  --page: #E3DFD7;          /* the page behind the cards: Stone (6 Nov 2026; the page was #F5F2EC) */
  --grey: #B3AFA6;          /* fills, tags, lines — not for text (darker for the Stone boxes; was #C6C4BE) */
  --grey-ink: #4E4D4A;      /* secondary text on light (on Stone and the white cards; was #6B6964) */
  --grey-on-dark: #A6A6A3;  /* secondary text on dark */
  --grey-mid: #9C9993;      /* dotted reference lines in the sketches */
  --grey-box: #ECEAE5;      /* light text on dark (hero paragraphs, hero box titles); the page strip under its art */
  --accent: #FF5A1F;        /* vivid orange (6 Nov 2026; was #E07A45), used on dark and in the drawings */
  --accent-ink: #B23A0A;    /* darker orange for text/links on light (4.5 : 1 on Stone) */
  --green: #6F9A5B;         /* soft green from the Athlete Portal ("Steady"): an occasional on-plan accent */

  /* Soft cards (every page): no outline, a warm off-white on the darker Stone page (6 Nov 2026: the page
     and card colours swapped, so the cards lift off the page), a soft shadow and a faint deepening
     towards the base of each card. Boxes inside cards (--inset) and the price panel take the page
     colour again and sit on a hairline shadow. */
  --card: #F5F2EC;                /* card fill (every card, the Motion note, the light sketch fills) */
  --inset: #E3DFD7;               /* boxes inside a card, in the page colour: drawings, tiles, icons, the coach rows, the price controls */
  --panel: #E3DFD7;               /* the darker side, in the page colour: the price panel, the coach photo's ground */
  --light-hover: #D8D4CB;         /* an inset button pointed at (the price stepper's − and +) */
  --card-r: 10px;                 /* card corners */
  --card-rule: rgba(38,38,38,.10); /* lines between list items, inside cards */
  --card-shadow: 0 1px 2.5px rgba(38,38,38,.055), 0 14px 34px -14px rgba(38,38,38,.22);   /* every card, light and dark (3 Nov 2026: a little stronger) */
  --card-sheen: linear-gradient(to bottom, rgba(38,38,38,0) 30%, rgba(38,38,38,.035));
  --inner-shadow: 0 1px 2px rgba(38,38,38,.05);   /* the white boxes inside a card */

  /* Fonts */
  --display: "Archivo", "Arial Black", sans-serif;
  --text: "Kumbh Sans", system-ui, sans-serif;
  /* The display face's weights and widths, so every heading of a kind changes together */
  --heavy: 850;              /* card and box headings, titles, prices */
  --bold: 800;               /* section headings, buttons */
  --stretch-card: 118%;      /* card and box headings: service cards, coach names, dark boxes, Athlete Portal, menu title */
  --stretch-title: 112%;     /* hero and page titles, prices */
  --stretch-section: 110%;   /* section headings: Overview, Price, FAQ…, legal page headings, the Motion note */
  /* Letter spacing of the small uppercase words */
  --track: .06em;            /* labels, tags, menu rows, Step 1… */
  --track-micro: .07em;      /* the smallest words in the hero boxes */

  /* Hero controls and boxes, over the dark heroes (Home, About, Coaching, Gym) */
  --hud: rgba(38,38,38,.72);              /* box and button fill */
  --hud-soft: rgba(38,38,38,.6);          /* the small square buttons, the weight box */
  --on-dark-line: rgba(245,242,236,.24);  /* button outlines */
  --on-dark-line-hi: rgba(245,242,236,.5);/* … pointed at or switched on */
  --on-dark-faint: rgba(245,242,236,.14); /* box outlines, the loading bar's track */
  --on-dark-rule: rgba(245,242,236,.1);   /* rules inside the boxes */
  --on-dark-hover: rgba(245,242,236,.08); /* a box button pointed at */
  --on-dark-off: rgba(245,242,236,.25);   /* a box button that can't be used */

  /* Motion */
  --ease: cubic-bezier(.7, 0, .2, 1);

  /* Layout */
  --rail: 0px;        /* width of the left rail — none on phones (header instead), 100px on desktop */
  --col-pb: 24px;     /* bottom padding in the rail */
  --btn-h: 56px;      /* height of the big buttons */
  --logo: 34px;       /* TL logo size */
  --header-h: 80px;   /* phone header: the 20px gap above the floating bar plus the 60px bar (pages start below it) */
  /* The rail's bottom padding is calculated from these three so the
     logo's centre always lines up with the centre of the buttons. */

  /* "Phone" and "desktop" across the site: phone = narrower than 768px, or a touch screen
     shorter than 500px (a phone turned on its side), so turning a phone keeps the phone layout.
     Every phone / desktop media query in the CSS uses this same pair of conditions:
       phone:   (max-width: 767px), (max-height: 500px) and (pointer: coarse)
       desktop: (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) */

  /* Type scale — phone sizes here, desktop sizes in the media query below.
     Change a size here and it changes everywhere it's used. */
  --fs-display: 36px;   /* page titles: Privacy, Terms, Not found */
  --fs-hero: 38px;      /* hero titles: Team Lobigs, Coaching, Gym */
  --fs-menu-title: 29px; /* "Team Lobigs" in the menu card */
  --fs-heading: 20px;   /* section headings, service card titles, Athlete Portal */
  --fs-subhead: 17px;   /* tile and step titles (What we offer, Our focus, Get started) */
  --fs-body: 16px;      /* reading text */
  --fs-small: 15px;     /* the lines under a price */
  --fs-meta: 13px;      /* meta lines, menu rows, the credit line */
  --fs-label: 12px;     /* labels, tags, Step 1, legal dates, hero meta */
  --fs-micro: 11px;     /* hero boxes, the smallest buttons */
}

@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  :root {
    --rail: 100px; --col-pb: 40px; --logo: 34px;
    --fs-display: 44px; --fs-hero: 44px; --fs-menu-title: 34px; --fs-heading: 22px;
    --fs-subhead: 19px; --fs-body: 15px; --fs-small: 16px;
  }
}
