/* Inno Setup brand kit: typeface, named palette, and type scale */

/* The latin rule comes last, so that a browser takes the code points that both
   ranges have from the latin file */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  /* Named palette. Each color has a light value and a dark value, and
     light-dark() picks the one for the color scheme of the element that uses
     it, so color-scheme on an element shows either value. */
  --is-sphere: light-dark(#0068c9, #4fb8ee);
  --is-glow: light-dark(#e3f4fd, #0f3047);
  --is-ink: light-dark(#002437, #dceefa);
  --is-paper: light-dark(#ffffff, #1f1f1f);
  --is-spark: light-dark(#c94a00, #ff7a2e);
  --is-shade: light-dark(#636e73, #8c979c);

  /* Body text has the text color of the documentation and the revision
     history. Headings are in Ink. */
  --is-text: light-dark(#282828, #d6d6d6);

  /* The code background of the documentation and the revision history, for
     code blocks and for code in a sentence */
  --is-code-background: light-dark(#f0f0f0, #353135);

  /* The border color of the tables of the documentation, for all lines */
  --is-line: light-dark(#e0e0e0, #403e41);

  /* Links under the pointer: Sphere with its lightness 10 points lower, and 7
     points lower in dark mode, as the documentation darkens its link color */
  --is-link-hover: light-dark(#004e96, #2eabeb);

  --is-font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --is-font-text: "Segoe UI", system-ui, sans-serif;
  --is-font-code: Consolas, "Cascadia Mono", ui-monospace, monospace;

  /* Type scale: a major third (1.25) from 14px, the body text size of the
     documentation and the revision history. Step 0, for small print, is
     outside the ratio: it's 12px, as in the documentation. */
  --is-size-1: calc(14rem / 16);
  --is-size-0: calc(12rem / 16);
  --is-size-2: calc(var(--is-size-1) * 1.25);
  --is-size-3: calc(var(--is-size-2) * 1.25);
  --is-size-4: calc(var(--is-size-3) * 1.25);
  --is-size-5: calc(var(--is-size-4) * 1.25);
  --is-size-6: calc(var(--is-size-5) * 1.25);
  --is-size-7: calc(var(--is-size-6) * 1.25);

  /* The line height of body text and the code size of the documentation and
     the revision history */
  --is-line-height-text: 1.5;
  --is-size-code: calc(13rem / 16);
}
