/* Design tokens for the studio's site: the only place its colours, type sizes, radii and spacing are
   defined. Every page and rule reads them through var(--…). The values are the game's own (tokens.css
   at the top of the project), so the site and the game look like one thing. Dark is the default, as in
   the game; light follows the visitor's own setting. */

:root {
  color-scheme: dark;

  /* surfaces */
  --c-scene: #05070d;          /* the page's ground */
  --c-scene-glow: #101a33;     /* the glow at its top */
  --c-surface: #0d1220;        /* a picture's frame */
  --c-border: #27314d;

  /* text */
  --c-text: #e8edf9;
  --c-text-dim: #94a0bd;

  /* accents */
  --c-accent: #6cc4ff;

  /* type */
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* the game's narrow, technical face: already on a PC, an iPhone and an Android phone */
  --font-display: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --ls-label: 0.12em;          /* letter spacing for small capitals: labels, links */
  --ls-title: 0.22em;          /* and for the studio's name */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-hero: clamp(1.75rem, 6vw, 3rem);
  --lh-text: 1.6;

  /* shape and spacing */
  --r-md: 10px;
  --notch: 10px;               /* the corner cut off a frame, as off the game's tiles */
  --glow: 14px;                /* how far the glow round the title spreads */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 40px;
  --sp-7: 64px;
  --page-w: 60rem;             /* the widest the page's column gets */
  --measure: 38rem;            /* the widest a paragraph gets */
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --c-scene: #f4f6fb;
    --c-scene-glow: #dfe7f7;
    --c-surface: #ffffff;
    --c-border: #c9d2e3;

    --c-text: #131a2b;
    --c-text-dim: #55607a;

    --c-accent: #0b6fb8;
  }
}
