/* scale.css — one scale for text and one for shapes (2026-11-17; design
   review proposals 2 and 3 — the owner saw real screens both ways and kept
   it). The app follows the same weights and corners (Design/Tokens.swift,
   Design/Typography.swift).

   Before: 22 text sizes, most of them half a pixel apart (11, 11.5, 12, 12.5,
   13, 13.5 …); three weights side by side (600, 700, 800), so text you read
   looked as heavy as the names and buttons around it; 27 corner sizes; and
   fifteen one-off depth shadows beside the named ones.

   HOW IT IS BUILT. Every size, weight and corner in the other stylesheets is
   written as a token of this scale with ITS OLD VALUE AS THE FALLBACK:
       font-size: var(--fs-base, 12.5px);
   This file gives the tokens their values. THE SWITCH is this file's one
   <link> in templates/base.html: without it no token is defined, every
   fallback applies, and the site looks exactly as it did.

   A new rule takes its size, weight and corner from here — never a new
   number (tests/test_scale.py fails on one). */
:root {
  /* ---- text: nine sizes ---- */
  --fs-dense: 10px;     /* only inside a grid's small cells and on mini tags (was 9, 9.5, 10) */
  --fs-caption: 11px;   /* tags, badges, a tab's word (was 10.5, 11) */
  --fs-small: 12px;     /* times, hints, secondary lines (was 11.5, 12) */
  --fs-base: 13px;      /* the interface's own size: names, buttons, rows (was 12.5, 13) */
  --fs-body: 14px;      /* text that is read or typed (was 13.5, 14, 14.5) */
  --fs-lead: 16px;      /* a panel's name, a field on a phone (was 15, 15.5, 16) */
  --fs-title: 18px;     /* a window's or a page's title (was 17, 18, 19) */
  --fs-head: 22px;      /* a page's heading, a big number (was 20, 22, 24) */
  --fs-display: 30px;   /* the one largest number */

  /* ---- weight: three jobs ---- */
  --fw-text: 500;       /* text you READ: times, hints, values, sentences (was 600) */
  --fw-strong: 700;     /* things you look FOR or press: names, buttons, tabs, labels */
  --fw-heavy: 800;      /* titles, counts, and words on a coloured tag */

  /* ---- corners: five sizes (a pill is 999px, a circle 50%) ---- */
  --rad-xs: 4px;        /* marks and ticks (was 3, 4, 5) */
  --rad-s: 6px;         /* tags, and a key inside a track (was 6, 7) */
  --rad-m: 8px;         /* controls: fields, buttons, shift cards (was 8, 9) */
  --rad-l: 12px;        /* cards, bands, sections, menus (was 10, 11, 12, 13) */
  --rad-xl: 16px;       /* windows, panels, bottom sheets (was 14, 15, 16, 18) */
  /* the older named corners follow the same five */
  --r-pill: 6px; --r-input: 8px; --r-card: 8px; --r-section: 12px; --r-container: 12px; --r-modal: 16px;

  /* ---- depth: the one-off shadows, named ---- */
  --well: inset 0 1px 2px rgba(20, 30, 50, .12);        /* a field pressed into the page (was .06 to .14) */
  --well-deep: inset 0 1px 2px rgba(20, 30, 50, .18);   /* a track that holds keys (was .16, .22) */
  --well-dark: inset 0 1px 3px rgba(0, 0, 0, .42);      /* the same, on the dark palette (was .40, .45) */
  --raise: inset 0 1px 0 var(--lit), 0 1px 2px rgba(20, 30, 50, .08);   /* a small thing lying on a sheet */
  --lift: 0 1px 3px rgba(20, 30, 50, .12);              /* the chosen key in a track */
  --rest: 0 1px 2px rgba(20, 30, 50, .05);              /* barely off the page */
}

/* A sentence that takes a second line does not leave one word alone on it
   (half a pixel more per letter moved a few hints from one line to two). */
.contest-full, .settings-hint, .phase-needed-hint, .notif-text, .field-note, .dd-note, .dl-note { text-wrap: pretty; }
