/* Design tokens: the single source of truth for colour, type, space and
   shape. Every other rule refers to these names, never to raw values. */

@font-face { font-family: "Jersey 10"; src: url("../fonts/jersey-10.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Palette: the OSRS interface's own vernacular, refined for the web. */
  --umber: #1d1812;          /* page */
  --umber-raised: #241e17;   /* cards */
  --stone: #3a3127;          /* skills-tab frame */
  --stone-cell: #2a231b;     /* skills-tab cells */
  --stone-lit: #3d3428;      /* hovered / selected cell */
  --edge: #0f0c09;           /* outlines, total-level bar */
  --parchment: #efe6cf;      /* primary text */
  --parchment-2: #b9ad92;    /* secondary text */
  --parchment-3: #8f846d;    /* tertiary text */
  --yellow: #ffd23f;         /* levels: the game's level-number yellow */
  --orange: #ff981f;         /* headings: the game's interface orange */
  --green: #5cbf4f;          /* gains */
  --red: #e0604f;            /* errors */
  --rule: rgba(239, 230, 207, .1);

  --font-text: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Jersey 10", "Alegreya Sans", system-ui, sans-serif;

  /* Type scale: a major third (1.25) from a 17px base. */
  --t-0: .8125rem;  --t-1: 1.0625rem; --t-2: 1.328rem;
  --t-3: 1.66rem;   --t-4: 2.075rem;  --t-5: 2.594rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  /* Radius follows hierarchy: the game frame is tight, cards are soft. */
  --r-cell: 2px; --r-frame: 6px; --r-card: 10px; --r-pill: 999px;

  --shadow-hard: 2px 2px 0 #000;   /* the in-game level-number shadow */
}
