/* Tint design tokens. The one source for every Tint surface: site, launcher (/play/), the web
   game's page, and later the phone and desktop apps. The game's own menus take the same values
   through the engine theme (see DESIGN.md, "In the game").
   Dark only. Every text colour here is full strength: there is no grey text (one exception: --t-ink-dim). */

@font-face { font-family: "Geist"; src: url(fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixel Operator 8"; src: url(fonts/PixelOperator8.woff2) format("woff2"); font-display: block; }

:root {
  color-scheme: dark;

  /* ---- colour: surfaces, darkest to lightest ---- */
  --t-sunken: #0a0b0d;   /* fields, progress tracks, code, wells */
  --t-page: #0d0e11;     /* the page */
  --t-surface: #181a1f;  /* cards, panels, sidebar, dialogs */
  --t-raised: #262931;   /* hover rows, the selected tab, toasts, chips */
  --t-line: #2b2e36;     /* the one hairline (1px) */
  --t-line-strong: #3d414c; /* a field's border on hover */

  /* ---- colour: text and meaning ---- */
  --t-ink: #ffffff;      /* all text */
  --t-ink-dim: #a9aeb8;  /* the ONE exception to "no grey text" (Sayer, 9 Nov): a mod tile's one-line description. Nothing else. */
  --t-accent: #7cc35b;   /* links, the selected tab's icon, progress, switches that are on */
  --t-warn: #f0b84f;     /* "Experimental", things to watch */
  --t-danger: #f07a68;   /* errors */
  --t-success: #45c27a;  /* done */
  --t-focus: #ffffff;    /* keyboard focus ring (the game's selected-button outline is white too) */

  /* ---- colour: buttons (face, hover, lip) ---- */
  --t-primary: #447f30;   --t-primary-hover: #4e9139;   --t-primary-lip: #2c541f;
  --t-secondary: #2b2e36; --t-secondary-hover: #353943; --t-secondary-lip: #17191d;
  --t-scene: #444c58;     --t-scene-hover: #586272;     --t-scene-lip: #272c34;   /* buttons over a game picture: the game's own menu button */
  --t-danger-face: #a8392b; --t-danger-hover: #b9432f; --t-danger-lip: #6a2219;
  --t-discord: #5865f2;   --t-discord-hover: #4752c4;   --t-discord-lip: #3b44a8; /* Discord's own colour, its button only */

  /* ---- type ---- */
  --t-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-pixel: "Pixel Operator 8", var(--t-mono); /* button labels only; always 16px (its 8px grid at 2x) */
  /* size / line height / tracking / weight */
  --t-display: 600 clamp(40px, 3.2vw + 26px, 72px)/1.02 var(--t-font);  --t-display-track: -0.035em;
  --t-title: 600 clamp(32px, 1.6vw + 24px, 48px)/1.08 var(--t-font);    --t-title-track: -0.028em;
  --t-heading: 600 clamp(22px, .6vw + 19px, 28px)/1.2 var(--t-font);    --t-heading-track: -0.018em;
  --t-subhead: 600 19px/1.3 var(--t-font);                              --t-subhead-track: -0.01em;
  --t-body: 400 17px/1.5 var(--t-font);                                 --t-body-track: -0.006em;
  --t-lead: 500 clamp(19px, .5vw + 16px, 23px)/1.4 var(--t-font);       --t-lead-track: -0.012em;
  --t-ui: 500 15px/1.35 var(--t-font);                                  /* tabs, chips, toasts, field text */
  --t-small: 400 14px/1.45 var(--t-font);                               /* footer, fine print (still white) */
  --t-code: 400 13px/1.5 var(--t-mono);
  --t-label: 16px/1 var(--t-pixel);                                     /* buttons */

  /* ---- space (4px steps) ---- */
  --t-1: 4px; --t-2: 8px; --t-3: 12px; --t-4: 16px; --t-5: 24px; --t-6: 32px; --t-7: 48px; --t-8: 64px; --t-9: 96px; --t-10: 128px;
  --t-gutter: clamp(16px, 4vw, 48px);  /* page edge to content */
  --t-page-w: 1440px;                  /* content width */
  --t-grid-w: 1680px;                  /* wide grids and full pictures */
  --t-measure: 62ch;                   /* longest line of running text */

  /* ---- shape ---- */
  --t-r-control: 8px;   /* buttons, sidebar tabs (the game's RADIUS) */
  --t-r-field: 12px;    /* fields, list rows, small tiles (the game's RADIUS_PLATE) */
  --t-r-card: 20px;     /* cards, panels, pictures */
  --t-r-dialog: 28px;   /* dialogs */
  --t-r-pill: 999px;    /* nav capsule, chips, switches, progress, toasts: true half circles */
  --t-hair: 1px solid var(--t-line);
  --t-lip: 3px;         /* the block lip under every button */

  /* ---- controls ---- */
  --t-h-lg: 56px;   /* the one main action on a screen (Play) */
  --t-h-md: 48px;   /* every other button, fields */
  --t-h-sm: 36px;   /* buttons inside a list row */
  --t-h-tab: 44px;  /* sidebar tabs, nav capsule */

  /* ---- motion (transform and opacity only) ---- */
  --t-quick: 120ms cubic-bezier(.2, .8, .2, 1);
  --t-move: 240ms cubic-bezier(.2, .8, .2, 1);
  --t-enter: 440ms cubic-bezier(.2, .8, .2, 1);

  /* ---- layers ---- */
  --t-z-nav: 50; --t-z-toast: 80; --t-z-dialog: 90; --t-z-game: 100;
}

/* Continuous (squircle) corners where the browser has them; the same corner needs a larger radius to look the same size. */
@supports (corner-shape: squircle) {
  :root { --t-r-card: 32px; --t-r-dialog: 44px; --t-r-field: 18px; --t-r-control: 12px; }
}
