/* ==========================================================================
   The Accord Game: design tokens (redesign, Nov 2026)
   One source for colour, type, spacing and motion, taken from the website's
   "Terrain" system (thomasgaultier.com, src/styles/global.css), plus the few
   colours the game needs that the website does not.

   Colour carries one meaning each, and nothing else:
     --tier-big / --tier-mid / --tier-quick   the three cost groups of moves
     --chosen (orange)                        "in your plan" or "your next action"
     --gain / --risk                          what a move gains, what it risks
   Indicators stay neutral: a bar's length is the only thing that varies.
   ========================================================================== */

@font-face {
  font-family: "Archivo Variable";
  src: url("/shared/fonts/archivo-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/shared/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/shared/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* ground and ink (website palette) */
  --mylar: #E8E9E3;       /* page ground */
  --sheet: #F4F5F0;       /* surfaces */
  --paper: #FBFBF8;       /* raised surfaces, inputs */
  --graphite: #141B17;    /* text, dark panels */
  --ink-2: #29332D;       /* secondary text */
  --shale: #4F5A54;       /* tertiary text (6.3:1 on mylar) */
  --contour: #A9B0A2;     /* rules, borders, text on graphite */
  --rule: #CDD1C7;        /* hairlines */
  --rule-dark: #34403A;   /* hairlines on graphite */
  --on-dark: #D6DBD2;     /* body text on graphite */

  /* the one accent: chosen, or your next action */
  --chosen: #F2541B;
  --chosen-ink: #B83A0C;  /* orange as text on light grounds (5.2:1) */
  --chosen-tint: #FFE7DA;

  /* the three cost groups of moves */
  --tier-big: #2F4F8F;   --tier-big-tint: #E7ECF7;
  --tier-mid: #2A6B45;   --tier-mid-tint: #E3F0E7;
  --tier-quick: #8C6A12; --tier-quick-tint: #F6EFD9;

  /* what a move gains / risks (details box only) */
  --gain: #1F5A3C;  --gain-tint: #E3F0E7;
  --risk: #B83A0C;  --risk-tint: #FDE6DA;

  /* change between rounds, judged good or bad for this table */
  --better: #1F5A3C;  --better-on-dark: #8FD0A8;
  --worse: #B83A0C;   --worse-on-dark: #FF8A5C;

  /* type */
  --font: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-label: 0.6875rem;  /* 11px mono caps */
  --fs-small: 0.8125rem;  /* 13px */
  --fs-ui: 0.875rem;      /* 14px buttons, chips */
  --fs-body: 0.9375rem;   /* 15px */
  --fs-lead: 1.0625rem;   /* 17px */
  --fs-h3: 1.25rem;       /* 20px */
  --fs-h2: 1.75rem;       /* 28px */
  --fs-h1: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);   /* condensed caps titles */

  /* space (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --gut: clamp(16px, 2.2vw, 28px);
  --tap: 44px;            /* minimum height of anything you can press */

  /* motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .15s;
  --t-mid: .3s;
  --t-slow: .55s;
}
