/* Devshin Online: the main website's tokens. The website wears the game's full-screen menus (menu-design SPEC.md, take
   B "sea-glass"), so its colours, tones and the slant are the game's own: css/game.css IS v2/client/tokens.css (linked
   into the site by Devshin.Main.csproj, never copied) and is loaded before this file. Here are only what a web page
   needs on top: the scale, the page's measures, type sizes and spaces. app.css builds everything from these names,
   and /styleguide shows them.

   Two tones, as in the menus: DARK (--dk, --dk-row, --dk-head) for what you move through, LIGHT (--lt, ink) for the
   one thing you read or act on. Choosing something flips it dark to light. The one ornament is the health bar's slant:
   the corner cut (--cut), the slanted tab before an eyebrow, the slanted bars. */

@font-face { font-family: 'Manrope Devshin'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: dark;

  /* The game scales its menus by the screen's height; a web page scales by its width: 1 on a phone, 1.15 wider. */
  --k: 1;

  /* THE CARDS' SHAPE. The game's slanted corner cut (top left and bottom right, the health bar's lean) is the default.
     For the square, sharp-edged cards of the loot panel and the buff cards, set this one value to 0px:
       --cut: 0px;                                                                                                  */
  --cut: calc(14px * var(--k));
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));

  /* The bars over a page that is read, and over anything on a phone: nearly solid, so no line shows through. */
  --bar-solid: rgb(6 11 17 / 0.95);

  /* Type: one face, the game's (Manrope), for reading too. */
  --text-xs: calc(12px * var(--k));
  --text-sm: calc(13.5px * var(--k));
  --text-base: calc(15px * var(--k));
  --text-md: calc(16.5px * var(--k));
  --text-read: calc(16.5px * var(--k));
  --text-lg: calc(20px * var(--k));
  --text-xl: clamp(24px, 2.6vw, 32px);
  --text-2xl: clamp(30px, 3.6vw, 44px);
  --text-hero: clamp(40px, 4.6vw, 60px);
  --leading: 1.55;
  --leading-read: 1.7;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Space: a 4 px step. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-section: clamp(48px, 8vh, 88px);
  --gutter: clamp(16px, 4vw, 48px);
  --page-max: 1200px;
  --read-max: 72ch;

  /* The bars' heights, so a page starts below the top one and ends above the bottom one. */
  --top-h: calc(56px * var(--k));
  --bottom-h: calc(58px * var(--k));

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
}
@media (min-width: 721px) { :root { --k: 1.15; } }
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }
