/* The Escapement Project's design tokens, generated by design/build.py from design/tokens.toml.
   Edit the tokens and rebuild rather than this file. */
@font-face { font-family: "Saira"; src: url("fonts/saira-expanded.woff2") format("woff2"); font-weight: 500 600; font-stretch: 125%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 500; font-stretch: 100% 112.5%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"); font-weight: 100 449; size-adjust: 99.88%; ascent-override: 100.12%; descent-override: 30.34%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Grotesk fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"); font-weight: 450 549; size-adjust: 100.41%; ascent-override: 99.6%; descent-override: 30.18%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Grotesk fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"); font-weight: 550 1000; size-adjust: 94.47%; ascent-override: 105.85%; descent-override: 32.07%; line-gap-override: 0%; }
@font-face { font-family: "Saira fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"); font-weight: 100 549; size-adjust: 118.14%; ascent-override: 96.07%; descent-override: 37.16%; line-gap-override: 0%; }
@font-face { font-family: "Saira fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"); font-weight: 550 1000; size-adjust: 111.59%; ascent-override: 101.71%; descent-override: 39.34%; line-gap-override: 0%; }
@font-face { font-family: "Martian Mono fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("LiberationMono"), local("Cousine"); font-weight: 100 1000; font-stretch: 100%; size-adjust: 116.65%; ascent-override: 85.73%; descent-override: 17.15%; line-gap-override: 0%; }
@font-face { font-family: "Martian Mono fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("LiberationMono"), local("Cousine"); font-weight: 100 1000; font-stretch: 112.5%; size-adjust: 124.98%; ascent-override: 80.01%; descent-override: 16%; line-gap-override: 0%; }
:root {
  --page: #dce8ed;
  --surface: #eef4f6;
  --raised: #ffffff;
  --sunken: #cbd9e0;
  --hair: #bccbd3;
  --rule: #738691;
  --ink: #11171d;
  --ink-2: #525f6a;
  --lume: #c4f03c;
  --on-lume: #11171d;
  --plate: #11171d;
  --plate-line: #aab5be;
  --hand: #c8102e;
  --ring: #eef4f6;
  --face: #dce8ed;
  --window-edge: #11171d;
  --fault-ink: #b81c20;
  --fault-fill: #ef4b4b;
  --attention-ink: #924a03;
  --attention-fill: #f1710d;
  --on-status: #11171d;
  --series-verge: #0f8a6c;
  --series-nxp: #2a78d6;
  --series-context: #47525c;
  --code-keyword: #8839ef;
  --code-type: #df8e1d;
  --code-function: #1e66f5;
  --code-number: #fe640b;
  --code-builtin: #d20f39;
  --code-operator: #179299;
  --code-escape: #ea76cb;
  --code-string: #40a02b;
  --code-parameter: #e64553;
  /* Interaction: a focus ring, and a wash of ink over what the pointer is on */
  --focus-width: 2px;
  --wash: color-mix(in srgb, var(--ink) 12%, transparent);
  /* Line patterns: dash arrays as stroke-dasharray values at a 2 px line */
  --dash-second-build: 6 3;
  --dash-misread: 2 4;
  --dash-reference: 8 3 2 3;
  --dash-capture-second: 12 4;
  --capture-opacity: 0.6;
  --capture-width: 1.5px;
  /* Type */
  --font-display: "Saira", "Saira fallback", "Hanken Grotesk", "Hanken Grotesk fallback", sans-serif; --display-stretch: 125%; --display-weight: 500;
  --font-text: "Hanken Grotesk", "Hanken Grotesk fallback", "Helvetica Neue", "Arial", sans-serif;
  --font-figures: "Martian Mono", "Martian Mono fallback", ui-monospace, monospace; --figures-stretch: 112.5%; --figures-weight: 500;
  --font-code: "Martian Mono", "Martian Mono fallback", ui-monospace, monospace; --code-stretch: 100%; --code-weight: 500;
  /* The project's mark in motion: header.js plays it, from [motion.project-mark] */
  --project-mark-inner: 23;
  --project-mark-outer: 29;
  --project-mark-width: 6;
  --project-mark-riser: 32;
  --project-mark-low: 41;
  --project-mark-high: 23;
  --project-mark-low-bottom: 44;
  --project-mark-speed: 180;
  --project-mark-again: 240;
  --project-mark-ramp: 20;
  --project-mark-densest: 7;
  --project-mark-dense: 6;
  --project-mark-growth: 1.12;
  --project-mark-fill: 26;
  --project-mark-lead: 60;
  --project-mark-tick: 1.5;
  --project-mark-spacing: 3;
  --project-mark-raised: 4;
  --project-mark-lower: 2.3;
  --project-mark-line: 50;
  --project-mark-clear: 1.5;
  --project-mark-cut: 28;
  --project-mark-gap-px: 1.6;
  --project-mark-tick-px: 1;
  --project-mark-spacing-px: 3;
  --project-mark-raised-px: 2.5;
  --project-mark-lower-px: 1.4;
  --project-mark-fade-in: 0.18;
  --project-mark-fade-out: 0.36;
  --project-mark-lower-opacity: 0.75;
  --project-mark-raised-colour: var(--lume);
  --project-mark-lower-colour: var(--plate-line);
  color-scheme: light;
}
/* A face on any element that carries one: the face chosen on <html>, and the faces the
   switch's turn shows over the page (face.js). The wash follows the element's own ink. */
[data-face="day"] {
  --page: #dce8ed;
  --surface: #eef4f6;
  --raised: #ffffff;
  --sunken: #cbd9e0;
  --hair: #bccbd3;
  --rule: #738691;
  --ink: #11171d;
  --ink-2: #525f6a;
  --lume: #c4f03c;
  --on-lume: #11171d;
  --plate: #11171d;
  --plate-line: #aab5be;
  --hand: #c8102e;
  --ring: #eef4f6;
  --face: #dce8ed;
  --window-edge: #11171d;
  --fault-ink: #b81c20;
  --fault-fill: #ef4b4b;
  --attention-ink: #924a03;
  --attention-fill: #f1710d;
  --on-status: #11171d;
  --series-verge: #0f8a6c;
  --series-nxp: #2a78d6;
  --series-context: #47525c;
  --code-keyword: #8839ef;
  --code-type: #df8e1d;
  --code-function: #1e66f5;
  --code-number: #fe640b;
  --code-builtin: #d20f39;
  --code-operator: #179299;
  --code-escape: #ea76cb;
  --code-string: #40a02b;
  --code-parameter: #e64553;
  --wash: color-mix(in srgb, var(--ink) 12%, transparent);
  color-scheme: light;
}
[data-face="night"] {
  --page: #0e1216;
  --surface: #151b21;
  --raised: #1b232b;
  --sunken: #0a0d10;
  --hair: #29333c;
  --rule: #636e79;
  --ink: #e6ebee;
  --ink-2: #aab5be;
  --lume: #c4f03c;
  --on-lume: #11171d;
  --plate: #11171d;
  --plate-line: #aab5be;
  --hand: #ef3b4a;
  --ring: #1b232b;
  --face: #11171d;
  --window-edge: transparent;
  --fault-ink: #f24e4d;
  --fault-fill: #ef4b4b;
  --attention-ink: #f1710d;
  --attention-fill: #f1710d;
  --on-status: #11171d;
  --series-verge: #1aa384;
  --series-nxp: #3987e5;
  --series-context: #aab5be;
  --code-keyword: #cba6f7;
  --code-type: #f9e2af;
  --code-function: #89b4fa;
  --code-number: #fab387;
  --code-builtin: #f38ba8;
  --code-operator: #94e2d5;
  --code-escape: #f5c2e7;
  --code-string: #a6e3a1;
  --code-parameter: #eba0ac;
  --wash: color-mix(in srgb, var(--ink) 12%, transparent);
  color-scheme: dark;
}
/* Night followed from the system, until the page chooses */
@media (prefers-color-scheme: dark) {
  :root:not([data-face="day"]) {
    --page: #0e1216;
    --surface: #151b21;
    --raised: #1b232b;
    --sunken: #0a0d10;
    --hair: #29333c;
    --rule: #636e79;
    --ink: #e6ebee;
    --ink-2: #aab5be;
    --lume: #c4f03c;
    --on-lume: #11171d;
    --plate: #11171d;
    --plate-line: #aab5be;
    --hand: #ef3b4a;
    --ring: #1b232b;
    --face: #11171d;
    --window-edge: transparent;
    --fault-ink: #f24e4d;
    --fault-fill: #ef4b4b;
    --attention-ink: #f1710d;
    --attention-fill: #f1710d;
    --on-status: #11171d;
    --series-verge: #1aa384;
    --series-nxp: #3987e5;
    --series-context: #aab5be;
    --code-keyword: #cba6f7;
    --code-type: #f9e2af;
    --code-function: #89b4fa;
    --code-number: #fab387;
    --code-builtin: #f38ba8;
    --code-operator: #94e2d5;
    --code-escape: #f5c2e7;
    --code-string: #a6e3a1;
    --code-parameter: #eba0ac;
    color-scheme: dark;
  }
}
/* Code colours at 4.5:1 when the reader's system asks for more contrast, in the same order
   as the faces above, so each selector still picks its face */
@media (prefers-contrast: more) {
  :root {
    --code-keyword: #7a22dd;
    --code-type: #855103;
    --code-function: #024edc;
    --code-number: #a13c03;
    --code-builtin: #ba0530;
    --code-operator: #03686e;
    --code-escape: #9c2d83;
    --code-string: #1b6c02;
    --code-parameter: #950324;
  }
  [data-face="day"] {
    --code-keyword: #7a22dd;
    --code-type: #855103;
    --code-function: #024edc;
    --code-number: #a13c03;
    --code-builtin: #ba0530;
    --code-operator: #03686e;
    --code-escape: #9c2d83;
    --code-string: #1b6c02;
    --code-parameter: #950324;
  }
  [data-face="night"] {
    --code-keyword: #cba6f7;
    --code-type: #f9e2af;
    --code-function: #89b4fa;
    --code-number: #fab387;
    --code-builtin: #f38ba8;
    --code-operator: #94e2d5;
    --code-escape: #f5c2e7;
    --code-string: #a6e3a1;
    --code-parameter: #eba0ac;
  }
}
