/*
 * Seq layout tokens — what the gem's scales lack and a kept component needs
 * (docs/plans/seq-redesign.md § 2). Spacing, width, radius, stroke, font and colour tokens are
 * the gem's and are not aliased here: a component reads --spacing-24, --width-740,
 * --font-size-14 and so on directly. Since 2026-09-24 this is the one settings file besides the
 * two colour files: _typography.css (the eight type roles), _shadows.css, _motion.css and
 * _z-index.css are deleted, and the tokens below are what survived them.
 *
 * Breakpoints. Custom properties cannot be used in a @media condition, so the gem's
 * breakpoints are documented here and repeated as literals in any query that needs them:
 *   320px  — not a breakpoint: the narrowest viewport Seq supports, the floor below which no
 *            layout is designed (390px is the phone design width; README.md § Narrow viewports)
 *   768px  — the gem's tablet breakpoint (canonical/settings/breakpoints.css)
 *   1024px — the gem's desktop breakpoint; below it the navigation is the gem's drawer, and
 *            the .seq-page grid is one column (06-components/_page.css)
 * The gem's responsive utilities (.hidden-sm-down, .hidden-lg-up, ...) use 40rem and 64rem.
 * No container query is in use since 2026-09-24: the quality page's figures are a section of
 * the primary column, not a column beside the checks.
 */

:root {
  /* ---------- Type: two values the gem's composites do not carry ----------
     --numerals is the value of font-variant-numeric wherever figures align in columns (the
     gem's composites set none); --underline-offset is the distance of an underline from the
     baseline for every underlined link (_page.css, the components that underline). */
  --numerals: tabular-nums;
  --underline-offset: 0.2em;

  /* ---------- Measures the gem has no width step for ---------- */
  --measure-mail: 600px;                    /* the transactional email, 06-components/_mail.css */

  /* ---------- Motion: three durations scaled by --motion-scale (the gem has no motion tokens) ----------
     Two things move: a row a Turbo Stream just changed fades from --wash-changed to its
     ground (--duration-slow, 09-utilities/_changed.css), and the copy control's confirmation
     and the account menu open (--duration-fast, --duration-slow). prefers-reduced-motion sets
     --motion-scale to 0, so every duration is 0ms; app/javascript/controllers/copy_controller.js
     reads --motion-scale for the same reason. */
  --motion-scale: 1;
  --duration-fast: calc(120ms * var(--motion-scale));
  --duration-slow: calc(400ms * var(--motion-scale));
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ---------- Elevation: one step (the gem has no shadow tokens) ----------
     The account menu's open list (06-components/_tenant-switch.css) is the one element that
     casts a shadow; --shadow-color is in _color-semantic.css, one value per theme. */
  --shadow-lift: 0 1px 2px var(--shadow-color), 0 4px 12px var(--color-grey-950-50);

  /* ---------- Stacking: three steps (the gem has no z-index tokens) ---------- */
  --z-nav:     10;                          /* the showcase's own table of contents (_sg.css) */
  --z-overlay: 20;                          /* the account menu's open list over the page */
  --z-toast:   30;                          /* the skip link when focused (_utilities.css) */

  /* ---------- Console (log viewer) heights: the fixed-height block and the --excerpt variant.
     06-components/_console.css; the gem has no height scale. */
  --console-height:         24rem;
  --console-excerpt-height: 12rem;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-scale: 0; }
}
