/* ==========================================================================
   FSN / Shortprint — design tokens
   The one file with raw values. Every other stylesheet reads these.

   The idea (brand-brief.md, 2026-09-05): the card company for your league.
   Materials, not badges — cardstock cream, printer's black, one foil
   gradient that means rarity and nothing else. Numbers as ornament. A
   condensed sports-card face for names, a plain grotesk for everything
   else, monospace for serials. Inside a league, the league's colours and
   name are always bigger than ours: the club identity block that fsn.css
   generates ([data-team]) sits on top of all of this.

   How to change the look: change a value here. How to add a token: add it
   here, show it on /styleguide/, name it in docs/DESIGN.md. Nothing below
   this file may carry a raw colour, font size, box-shadow, border-radius or
   width breakpoint — scripts/lint-css.mjs fails the test run if it does
   (scripts/lint-css.allow.json lists the few exceptions, each with a reason).

   Loaded first on every page; fsn.css, binder.css, nav.css and today.css
   assume it is there.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------- paper & ink
     One warm neutral scale, light to dark. Paper is cardstock, not screen
     white; ink is printer's black, not #000. The scale carries the roles
     fsn.css always used, so nothing downstream had to be renamed. */
  --white:        #ffffff;   /* the one true white: glints, rings, type on red */
  --paper:        #fcfaf5;   /* cardstock: cards, panels, table rows */
  --paper-2:      #f5f2eb;   /* a second sheet: hover rows, quiet panels */
  --paper-3:      #ebe7de;   /* pressed paper: neutral chips, wells */
  --canvas:       #f1ede4;   /* the desk the cards sit on (the page) */
  --gray-rule:    #e2ddd2;   /* hairlines */
  --gray-rule-2:  #c9c3b6;   /* a firmer rule, input borders */
  --gray-text:    #655f55;   /* secondary text — 6.0:1 on paper */
  --ink-2:        #3a3631;   /* body text that is not the headline */
  --ink:          #15130f;   /* printer's black */
  --black-3:      #26231e;   /* a rule or a hover on the black bar */
  --black-2:      #181612;   /* raised black surfaces */
  --black:        #0d0c09;   /* the top bar, the footer */

  /* type and glass on dark surfaces */
  --on-dark:      var(--paper);
  --on-dark-2:    rgba(252,250,245,.72);
  --on-dark-3:    rgba(252,250,245,.5);
  --paper-glass:  rgba(252,250,245,.94);   /* a blurred bar over content */
  --scrim:        rgba(13,12,9,.36);        /* behind a sheet or a panel */

  /* -------------------------------------------------------------- brand
     FSN red stays the accent until the Shortprint rename. One red; its
     dark for pressed states, its ink for text, its wash for fills. */
  --fsn-red:        #d40026;
  --fsn-red-dark:   #a80020;
  --fsn-red-ink:    #8d001b;
  --fsn-red-wash:   #fdf0f2;
  --fsn-red-line:   rgba(212,0,38,.28);
  --fsn-red-light:  #ff7d90;   /* the red where it sits on black (a link on the bar) */
  --on-red:         var(--white);

  /* roles in a matchup: your side, their side (Today). Theirs is the house
     indigo, used when two club colours are too close to tell apart. */
  --you:            var(--fsn-red);
  --them:           #3b2e8c;

  /* ------------------------------------------------------------- status
     Always shipped with a word, never colour alone. Each has a wash. The
     blue "info" pair is the keeper/flex/pick chip; the gold pair is the
     golden-eligible chip (not a medal, not a rarity). */
  --good:           #17663a;  --good-wash: #e7f4ec;
  --warn:           #8a5a00;  --warn-wash: #fdf3e0;
  --bad:            #a3202c;  --bad-wash:  #fdeef0;
  --info:           #1c4a80;  --info-wash: #e8eef7;
  --gold-ink:       #7a5a06;  --gold-wash: #fbf0d8;

  /* medals (standings, trophies) */
  --gold:           #b8860b;
  --silver:         #6f757e;
  --bronze:         #96552a;

  /* ----------------------------------------------------- data viz, unchanged
     Validated against #ffffff in fsn.css v5.5 (white on --seq-4 clears
     4.5:1; every adjacent ramp gap ≥ 0.06 in lightness). Cardstock is
     within 2% of white in luminance, so the figures hold. The default series
     is step 5 of the one ramp every grade, tier and carry-over bar uses, so a
     bar means the same thing on every page; --series-2 is the genuine second
     category. Text on a light ramp cell is --seq-6. */
  --series-1:       #2264ab;
  --series-2:       #8a5a00;
  --grid:           #e6e8ec;
  --track:          #e9ebef;
  --seq-1: #dbe7f6; --seq-2: #b3cdec; --seq-3: #7fabde;
  --seq-4: #3d76b8; --seq-5: #2264ab; --seq-6: #123f70;

  /* ----------------------------------------------------- rarity: the foil
     Rarity is a material. The four tier hues were the binder's; they are
     named here once, and the ONE foil gradient is what a Special Art card
     or a one-of-one wears. Nothing else on the site may be foil. */
  --tier-common:    #8b929c;
  --tier-rare:      #4cc4d6;
  --tier-epic:      #8b5cc9;
  --tier-legendary: #e6b95c;
  --tier-oddball:   #5fa89a;   /* as binder.js and league.js colour the tag */
  --tier-spectrum:  #ff7ad9;   /* the fifth hue in the Full Spectrum rim */
  --foil: linear-gradient(135deg, #e6b95c 0%, #f6e3b4 20%, #4cc4d6 45%, #8b5cc9 72%, #e6b95c 100%);

  /* the display case: a navy vitrine with gilt trim and warm lamps. The six
     rooms a GM can pick and the twenty "looks" a set bonus brings are
     materials of their own (binder.css, allowlisted); these are the default. */
  --gilt:           #c8a24b;
  --gilt-light:     #e8c878;
  --gilt-dark:      #8a6a1e;
  --case:           #0c121b;   /* the velvet */
  --case-hi:        #1d2836;   /* where the lamp falls */
  --case-lo:        #07090e;   /* the corners */
  --case-ink:       #fff3cc;   /* lettering in the case: a pale gold */
  --case-sub:       #7e8ea0;   /* the case's small print */
  --lamp:           rgba(255,214,150,.55);
  --lamp-soft:      rgba(255,214,150,.18);

  /* -------------------------------------------------------------- faces
     Condensed for names and numbers that shout, a grotesk for everything
     that is read, serif for prose only, mono for serials and figures. */
  --cond:  "Archivo Narrow", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono:  "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --------------------------------------------------------- type scale
     Thirteen sizes, closed. A half-pixel size snaps to the step above. The
     name is the pixel value because this stylesheet thinks in optical sizes;
     if a value ever moves, rename the token. */
  --fs-10: 10px;  --fs-11: 11px;  --fs-12: 12px;  --fs-13: 13px;  --fs-14: 14px;
  --fs-15: 15px;  --fs-16: 16px;  --fs-18: 18px;  --fs-20: 20px;  --fs-24: 24px;
  --fs-28: 28px;  --fs-34: 34px;  --fs-44: 44px;

  /* the roles, as font shorthands (Today's --f-* pattern): weight, size,
     line height and face in one word. New rules reach for these first. */
  --f-display:  700 var(--fs-44)/1 var(--cond);          /* a hero number, a page title */
  --f-headline: 700 var(--fs-34)/1.05 var(--cond);
  --f-title:    700 var(--fs-24)/1.1 var(--cond);        /* a section head */
  --f-name:     700 var(--fs-18)/1.15 var(--cond);       /* a player, a card, a club */
  --f-score:    700 var(--fs-28)/1 var(--cond);          /* a number that shouts */
  --f-kicker:   700 var(--fs-12)/1.2 var(--cond);        /* uppercase, tracked .06em */
  --f-lede:     400 var(--fs-18)/1.45 var(--serif);      /* the standfirst */
  --f-prose:    400 var(--fs-18)/1.6 var(--serif);
  --f-body:     400 var(--fs-16)/1.55 var(--sans);
  --f-body-b:   600 var(--fs-16)/1.55 var(--sans);
  --f-sub:      400 var(--fs-14)/1.45 var(--sans);       /* the second line */
  --f-sub-b:    600 var(--fs-14)/1.45 var(--sans);
  --f-cap:      400 var(--fs-12)/1.4 var(--sans);        /* a caption, a meta line */
  --f-micro:    600 var(--fs-10)/1.2 var(--sans);        /* a chip's word */
  --f-num:      500 var(--fs-14)/1.2 var(--mono);        /* tabular figures */
  --f-serial:   500 var(--fs-12)/1.2 var(--mono);        /* 7/14, #352, 1 of 1 */

  /* ------------------------------------------------------------ spacing */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px;
  --gutter: 20px;      /* the page's side gutter */
  --wrap:   1280px;    /* the page's measure */

  /* -------------------------------------------------------------- radii
     Three, plus the pill. A printed card's corner is small. */
  --radius-sm:   3px;    /* chips, tags, inputs' inner corners */
  --radius:      6px;    /* cards, buttons, panels */
  --radius-lg:   12px;   /* the card face, sheets, the big panels */
  --radius-pill: 999px;

  /* ------------------------------------------------------------ shadows
     Three elevations; everything else is a flat edge or a ring, which take
     their colour from a token:  box-shadow: var(--edge) var(--team); */
  --sh-1: 0 1px 2px rgba(30,25,15,.05), 0 1px 1px rgba(30,25,15,.04);
  --sh-2: 0 2px 4px rgba(30,25,15,.06), 0 4px 12px rgba(30,25,15,.07);
  --sh-3: 0 8px 24px rgba(30,25,15,.12), 0 2px 6px rgba(30,25,15,.07);
  /* on the velvet (the display case, the shelves, a sheet over the page)
     paper's shadows vanish; a card there rests on --sh-case and lifts on
     --sh-case-up. Five shadows in all, nothing else. */
  --sh-case:    0 10px 26px -12px rgba(0,0,0,.6);
  --sh-case-up: 0 26px 40px -16px rgba(0,0,0,.9), 0 3px 8px rgba(0,0,0,.4);
  --edge:     inset 3px 0 0;      /* a club's or a status's leading edge */
  --edge-b:   inset 0 -3px 0;     /* the underline a tab or a head carries */
  --ring:     0 0 0 3px;          /* focus and selection */
  --ring-sm:  0 0 0 2px;
  --hairline: inset 0 0 0 1px;    /* a border that costs no layout */

  /* --------------------------------------------------------- breakpoints
     CSS cannot var() a media query, so these are documentation and a hook
     for scripts; the lint enforces them. Phones are under 600, the nav
     collapses and tables stack under 900, the rails fold under 1100.

        @media (max-width: 600px)   phone        (min-width: 601px)
        @media (max-width: 900px)   tablet, nav  (min-width: 901px)
        @media (max-width: 1100px)  small desk   (min-width: 1101px)

     Nothing else. A rule that needs a fourth width goes in the allowlist
     with a reason. */
  --bp-phone:  600px;
  --bp-tablet: 900px;
  --bp-desk:   1100px;

  /* -------------------------------------------------------------- motion
     One easing, two durations. Taps and hovers take --dur-1; a sheet, a
     fold or a card turning takes --dur-2. prefers-reduced-motion is
     honoured in fsn.css. */
  --ease:  cubic-bezier(.32,.72,0,1);
  --dur-1: .15s;
  --dur-2: .35s;

  /* ------------------------------------------------------------- layers
     z-index steps. Local stacking inside a component (1–5) is not a layer
     and stays as a number. */
  --z-raised:  1;
  --z-sticky:  40;    /* the top bar, a stuck tab strip, the rip's HUD */
  --z-menu:    60;    /* nav panels, the portal menu */
  --z-overlay: 90;    /* a veil, a drag ghost */
  --z-modal:   100;   /* the card viewer, a sheet */
  --z-toast:   1000;

  color-scheme: light;
}
