/* ==========================================================================
   LOOP site-starter — design tokens.
   THE SINGLE SOURCE OF TRUTH FOR COLOUR, SIZE AND DURATION. Nothing
   downstream (site.css, panel.css, inline markup) may hard-code a raw hex,
   px size, or ms duration outside this file — check_no_raw_hex() in build.py
   fails the build on a literal #hex found in site.css or panel.css.

   ⛔ THIS FILE MUST BE LINKED BY EVERY PAGE. The client build this starter
   was skeletonised from shipped a tokens.css that called itself "the single
   source of truth" and was never linked by build.py — it never shipped a
   single byte, for months, and every review of it was a review of dead code.
   check_stylesheets_linked() in build.py exists ONLY because of that: it
   asserts, from the emitted bytes of every page, that tokens.css, site.css
   AND panel.css are all three actually referenced. A stylesheet nobody
   requests is not a source of truth, it is a file.

   PROVENANCE CONVENTION — every token below is tagged:
     SAMPLED  — read off a real client asset (a logo, a photo, a PDF); a
                client build replaces the value AND keeps the citation.
     OURS     — a LOOP design decision, not a client fact. Safe to keep as
                a starting point for a new build; still a decision, not
                something to skip re-examining.
   A token with neither tag is a bug in this file.
   ========================================================================== */

:root {
  /* --- Colour: OURS, a neutral starting palette --------------------------- */
  --ink:        #0e1116;   /* OURS — near-black ground for dark surfaces */
  --paper:      #ffffff;   /* OURS — page background on light surfaces */
  --line:       #d8d9dc;   /* OURS — hairline borders on light ground */
  --line-dark:  #2a2d34;   /* OURS — hairline borders on dark ground */
  --ink-soft:   #4a4e57;   /* OURS — secondary text on light ground */
  --paper-soft: #c7cad0;   /* OURS — secondary text on dark ground */
  --accent:     #2f6fed;   /* OURS — the single accent colour; a client build
                               replaces this with a SAMPLED brand colour and
                               cites where it was sampled from */

  /* --- Type: OURS — system stack, zero web-font requests by default ------ */
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;  /* OURS */
  --font-text:    system-ui, -apple-system, "Segoe UI", sans-serif;  /* OURS */

  /* --- Scale: OURS ---------------------------------------------------------*/
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: 3.5rem;

  /* --- Spacing rhythm: OURS, 4px base -------------------------------------*/
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.5rem;
  --sp-6: 4rem;

  /* --- Radius / border: OURS ------------------------------------------------ */
  --radius: 10px;
  --border: 1px solid var(--line);

  /* --- Look tokens: OURS (BRIEF-245 j-2789-u3) -----------------------------
     A pack's tokens.css (packs/<id>/tokens.css, linked AFTER this file) may
     set these and the existing colour/type/radius tokens above. Every one is
     defined HERE with a neutral default, because an undefined var() deletes
     the declaration that uses it: with no pack the starter renders exactly as
     it did before these existed. The two --banner-* tokens are the exception:
     a pack must NOT set them (tools/check_packs.py refuses a pack that does),
     so the sample banner looks the same on every sample. */
  --surface-sunk:    color-mix(in srgb, var(--line) 30%, var(--paper));  /* OURS: ground of a sunk band (the value site.css used before) */
  --accent-2:        var(--accent);   /* OURS: decorative second colour, fills and rules; a look says whether text may sit on it */
  --on-accent:       var(--paper);    /* OURS: text colour on a --accent ground */
  --banner-bg:       #ffe27a;         /* OURS: sample banner ground, the same on every sample, not a pack's to set */
  --banner-ink:      #1b1b1b;         /* OURS: sample banner text, not a pack's to set */
  --display-weight:  700;             /* OURS: weight of h1-h3 and the brand; a look pins a weight its display font really has */
  --display-tracking: normal;         /* OURS: letter-spacing of h1-h3 */
  --radius-btn:      var(--radius);   /* OURS: button corner radius */
  --band-pad:        var(--sp-6);     /* OURS: vertical padding of a band and the hero (section rhythm) */
  --img-radius:      0;               /* OURS: corner radius of a pack picture */
  --img-filter:      none;            /* OURS: CSS filter on a pack picture band */
  --hero-img-ratio:  16 / 10;         /* OURS: aspect ratio of a photo hero */

  /* --- Motion: OURS — pinned durations, see assets/js/main.js ------------ */
  --dur-fast: 180ms;
  --dur-med:  420ms;
  --dur-slow: 900ms;
  --ease: cubic-bezier(.16,.84,.32,1);
}
