/**
 * @info Design tokens — every colour, size and space the site uses
 * @path assets/tokens/tokens.css
 *
 * Swiss: white paper, black type, Helvetica. Three type sizes and nothing
 * else: the small print (--size-ui), the letter (--size-text), the question
 * (--size-huge) — named as across the studio's sites.
 */

:root {
  color-scheme: light;

  /*----------  Colour  ----------*/

  --color-white: #fff;
  --color-black: #000;
  --color-rule:  var(--color-black);
  --color-tint:  #f0f0f0;   /* the AI-translation note */
  --color-orange: #f06000;  /* nominating (2025): the box, white type on it, and the heading of
                              the nominate page on white (both 3.3 : 1, enough for large bold type) */

  /*----------  Type  ----------*/

  /* Hangul has no glyphs in Helvetica: the system's Korean face takes over */
  --font-primary: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo",
                  "Malgun Gothic", "Noto Sans CJK KR", sans-serif;

  --size-ui:   .875rem;
  --size-text: clamp(1.25rem, 1rem + 1vw, 2rem);
  /* the max at most 2.5 × the min: zoomed to 200 %, the size still doubles
     (WCAG 1.4.4); a wider spread lets the vw part eat the zoom */
  --size-huge: clamp(2.4rem, 1.2rem + 5vw, 6rem);

  /*----------  Space  ----------*/

  --space-gutter: clamp(1rem, 3vw, 2.5rem);
  --space-gap:    clamp(1rem, 2vw, 1.5rem);
  --space-air:    clamp(4rem, 10vw, 8rem);   /* before each rule */
  --space-rule:   .75rem;                     /* from a rule to what follows it */

  /*----------  The header  ----------*/

  --size-logo:       clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  --size-logo-stuck: 2rem;

  --rule: 1px solid var(--color-rule);
}
