/* Section website: the one sheet of tokens.

   Every colour, text size, line height, corner radius, line width and font family on
   every page takes its value from here: the Astro pages (src/styles/landing.css and
   their own <style> blocks), the made offence and mnemonic pages (section-offence.css,
   section-offence-family.css, section-mnemonic.css) and the shared header, footer and
   download block (section-download.css).

   Night shift: the values are Night shift's, from design/night-shift-tokens.json (the
   same file the apps use): Night on :root, Day in the prefers-color-scheme: light block,
   so the site follows the device's setting. scripts/check-style-tokens.mjs fails the build when a
   token here differs from that file, when a token is neither in the file nor on its
   list of site-only tokens, or when a page sets one of these outside this sheet.

   Text sizes: the file writes type as one shorthand ("700 22px/1.18 face"). The pages
   set size and line height on their own (their weights and faces are step 6), so each
   type token comes here as two parts, -size and -lh, taken from the shorthand.
   The website's own sizes (t-wh1, t-wh2, t-wbody, t-wlead, t-wbrand) switch to their
   phone values (-m in the file) at 640 px and under, as on the design board. */

:root {
  /* Faces (today's faces) */
  --s-f: 'Inter', system-ui, -apple-system, sans-serif;
  --s-fm: 'JetBrains Mono', ui-monospace, monospace;
  --s-ft: var(--s-f);
  --s-fm-sys: ui-monospace, monospace;

  /* Pages, cards and lines */
  --s-bg: #07090E;
  --s-card: #131A28;
  --s-raised: #1B2436;
  --s-card-b: 1px solid rgba(255, 255, 255, .09);
  --s-rule: 1px solid rgba(255, 255, 255, .1);

  /* Text */
  --s-ink: #EEF1F6;
  --s-ink2: #AAB3C5;
  --s-ink3: #8E98AC;
  --s-link: #8FA8FF;
  --s-accent-t: #8FA8FF;
  --s-warn: #F5A524;

  /* The highlighted box: one line all the way round (Andy, 23 Nov 2026) */
  --s-hl: #8FA8FF;
  --s-hl-warn: #F5A524;
  --s-hl-w: 1.5px;
  /* A number badge (points to prove) and its number */
  --s-n-bg: #1B2436;
  --s-n-ink: #8FA8FF;

  /* Buttons and the support form */
  --s-btn: #3D5ADE;
  --s-on-btn: #FFFFFF;
  --s-btn-b: 0;
  --s-btn2: #131A28;
  --s-btn2-ink: #EEF1F6;
  --s-btn2-b: 1px solid #5F6A80;
  --s-field: #131A28;
  --s-field-b: 1px solid #5F6A80;
  --s-focus-w: 2px;

  /* The website's header */
  --s-w-head: #07090E;
  --s-w-head-b: 1px solid rgba(255, 255, 255, .1);
  --s-w-max: 1120px;
  --s-w-hero: #0D1220;
  --s-w-hero-ink: #EEF1F6;
  --s-w-hero-ink2: #AAB3C5;
  --s-w-hero-k: #8FA8FF;
  --s-w-foot: #030407;
  --s-w-foot-ink: #AAB3C5;

  /* Space in running text on the text pages */
  --s-gap: 16px;
  --s-gap-s: 8px;
  --s-gap-h: 24px;

  /* Corners */
  --s-r: 14px;
  --s-r-btn: 14px;
  --s-r-field: 12px;
  --s-r-rnd: 22px;
  --s-r-pill: 999px;
  --s-r-shot: 28px;
  --s-r-bars: 2px;

  /* Type: size and line height of each type token */
  --s-t-wh1-size: 64px;
  --s-t-wh1-lh: 1.04;
  --s-tr-h1: -.02em;
  --s-t-home-h1-size: min(var(--s-t-wh1-size), 9.8vw);
  --s-tr-h2: -.012em;
  --s-t-wh2-size: 32px;
  --s-t-wh2-lh: 1.15;
  --s-t-wlead-size: 21px;
  --s-t-wlead-lh: 1.5;
  --s-t-wbody-size: 18px;
  --s-t-wbody-lh: 1.6;
  --s-t-wbrand-size: 24px;
  --s-t-wnav-size: 17px;
  --s-t-h3-size: 19px;
  --s-t-h3-lh: 1.22;
  --s-t-body-size: 17px;
  --s-t-body-lh: 1.38;
  --s-t-read-size: 17px;
  --s-t-read-lh: 1.45;
  --s-t-row-size: 17px;
  --s-t-row-lh: 1.25;
  --s-t-sub-size: 15px;
  --s-t-sub-lh: 1.32;
  --s-t-lab-size: 13px;
  --s-t-lab-lh: 1.2;
  --s-tr-lab: .01em;
  --s-t-btn-size: 17px;
  --s-t-btn-lh: 1;
  --s-t-btn-s-size: 16px;
  --s-t-code-size: 13px;
  --s-t-cjs-title: var(--s-t-wh2-size);
}

/* Day: a device set to light gets the look's Day values (design/night-shift-tokens.json, "day").
   Only colours change; sizes, corners, type and faces are the same by day. */
@media (prefers-color-scheme: light) {
  :root {
    --s-bg: #F3F5F9;
    --s-card: #FFFFFF;
    --s-raised: #FFFFFF;
    --s-n-bg: #E4E9FB;
    --s-n-ink: #2743C4;
    --s-card-b: 1px solid rgba(11, 16, 32, .1);
    --s-rule: 1px solid rgba(11, 16, 32, .1);
    --s-ink: #0B1020;
    --s-ink2: #475066;
    --s-ink3: #667085;
    --s-link: #2743C4;
    --s-accent-t: #2743C4;
    --s-warn: #8A5A00;
    --s-hl: #2743C4;
    --s-hl-warn: #8A5A00;
    --s-btn: #3D5ADE;
    --s-on-btn: #FFFFFF;
    --s-btn2: #FFFFFF;
    --s-btn2-ink: #0B1020;
    --s-btn2-b: 1px solid #7B8498;
    --s-field: #FFFFFF;
    --s-field-b: 1px solid #7B8498;
    --s-w-head: #FFFFFF;
    --s-w-head-b: 1px solid rgba(11, 16, 32, .1);
    --s-w-hero: #FFFFFF;
    --s-w-hero-ink: #0B1020;
    --s-w-hero-ink2: #475066;
    --s-w-hero-k: #2743C4;
    --s-w-foot: #0B1020;
    --s-w-foot-ink: #D5DAE3;
  }
}

/* Phones: the website's own sizes take their -m values. */
@media (max-width: 640px) {
  :root {
    --s-t-wh1-size: 36px;
    --s-t-wh1-lh: 1.08;
    --s-t-wh2-size: 24px;
    --s-t-wh2-lh: 1.2;
    --s-t-wlead-size: 17px;
    --s-t-wlead-lh: 1.38;
    --s-t-wbody-size: 17px;
    --s-t-wbody-lh: 1.55;
    --s-t-wbrand-size: 20px;
  }
}
