/* ltms.sh: the look's values. Every colour, font and size of spacing on the site is a custom
   property here, and site.css uses these properties and writes no value of its own, so another look is a
   change of this file only.

   The look now: direction 2, "Spec sheet", from the designer's board: one sentence of what it is, then
   the facts as rows. No hue: black, white and greys; a link is told from text by its underline alone. The
   contrast of each pair, computed: body text 18.88:1 light and 16.82:1 dark; text on the row headers' grey
   16.56:1 and 14.79:1; the lowest text pair 7.00:1 (muted on bg, light); the lowest interface pair 3.98:1
   (rule on th-bg, light).

   The logo: "3 · Rows", from the logo board, the horizontal lockup, 44 by 15 of the mark's units. At 3 px
   a unit it is 132 by 45 px at the default text size: each edge of the mark's cells falls on a whole pixel, and
   the name's x-height is 9.2 px (the board's floor for the name is 6 px, at 29.2 px tall). In the text's
   colour, 18.88:1 light and 16.82:1 dark. */

/* The fonts, served by the site itself (nothing is loaded from another host), each file as fetched, with its
   licence beside it. Assistant (SIL Open Font License 1.1): the latin and hebrew files Google Fonts serves
   (fonts.gstatic.com/s/assistant/v24/), one variable file per script, weights 200 to 800; the licence from
   google/fonts, ofl/assistant/OFL.txt. Source Code Pro (SIL Open Font License 1.1, Reserved Font Name
   "Source"): Adobe's own file, WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 at the release tag
   2.042R-u/1.062R-i/1.026R-vf of github.com/adobe-fonts/source-code-pro, and its LICENSE.md, saved as OFL.txt.
   A browser downloads a file only for a page whose text needs it: the hebrew file for Hebrew letters, Source
   Code Pro for a command or a path. The two Assistant rules keep Google's unicode-range and order, so where
   the ranges overlap the latin file is used, as on Google Fonts. */
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/assistant/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/assistant/assistant-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;
}

@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-code-pro/SourceCodePro-Regular.ttf.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Colour, light */
  --bg: #ffffff;
  --text: #111111;
  --muted: #595959;
  --th-bg: #f0f0f0;
  --code-bg: #f0f0f0;
  --rule: #767676;
  --link: #111111;
  --focus: #111111;
  --logo: #111111;

  /* Fonts: Assistant for all text, in both scripts; Source Code Pro for commands and paths */
  --font-text: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-code: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type: sizes, line heights, weights */
  --text-size: 1rem;
  --leading: 1.45;
  --leading-hebrew: 1.5;
  --leading-heading: 1.2;
  --leading-code: 1.45;
  --h1-size: 1.5rem;
  --h2-size: 1.1875rem;
  --lead-size: 1.0625rem;
  --table-size: 0.9375rem;
  --small-size: 0.9375rem;
  --footer-size: 0.875rem;
  --code-size: 0.92em;
  --pre-size: 0.875rem;
  --weight-text: 400;
  --weight-heading: 700;
  --weight-strong: 700;

  /* Spacing */
  --page-width: 46rem;
  --lead-width: 42rem;
  --page-gutter: 1rem;
  --page-top: 0.75rem;
  --page-bottom: 2rem;
  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 0.75rem;
  --space-xxl: 2rem;
  --list-indent: 1.5rem;
  --bar-gap: 1.25rem;
  --cell-pad-block: 0.3125rem;
  --cell-pad-inline: 0.5rem;
  --th-width: 1%;
  --code-pad-block: 0.5rem;
  --code-pad-inline: 0.75rem;
  /* beside a command in right-to-left text, the room for its punctuation: ")" and ":" together, the widest
     such run on the site, are 8.09 px in the table's 15 px text; 0.6em of a command there is 8.28 px */
  --punctuation-room: 0.6em;
  --logo-width: 8.25rem;
  --logo-height: 2.8125rem;

  /* Lines, the focus ring, link targets */
  --rule-width: 1px;
  --title-rule-width: 2px;
  --focus-width: 3px;
  --focus-offset: 2px;
  --focus-room: 0.5rem;
  --underline-width: 1px;
  --underline-hover-width: 2px;
  --underline-offset: 0.18em;
  --target-min: 24px;
  --target-pad-block: 0.125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Colour, dark: the same roles, light on near-black */
    --bg: #0f0f0f;
    --text: #f0f0f0;
    --muted: #a9a9a9;
    --th-bg: #1d1d1d;
    --code-bg: #1d1d1d;
    --rule: #8a8a8a;
    --link: #f0f0f0;
    --focus: #f0f0f0;
    --logo: #f0f0f0;
  }
}
