/* Malkai Design — root stylesheet.
   Design-system consumers receive this file's @import closure:
   keep fonts + tokens reachable from here. */
@import './fonts/fonts.css?v=0811h';   /* versioned: a nested @import keeps its OWN cache entry, so bumping the parent alone left the old face set in place (07-31) */
@import './tokens/tokens.css?v=0819n';   /* 08-18: the dark theme goes neutral grey and steps down to a true-black ground; ink at the top of the family, own shadows, on-tint compensating upward again */

/* The page scroller does not bounce. macOS lets the document overscroll past both
   ends, and everything anchored to the viewport rides along with it — the sidebar
   rail, the sticky table head, the landing's fixed topbar all slide off their edge
   at the top of the page and again at the bottom (Ihor, 07-31). Pinning them means
   refusing the bounce at the root, which is the only scroller that has it.
   Vertical only: plain `overscroll-behavior: none` would take the horizontal axis
   too, and that is the browser's two-finger back gesture. */
html { overscroll-behavior-y: none; }

body {
  background: var(--mk-page);   /* the ground. Cards and tables use --mk-surface and sit on it. */
  color: var(--mk-text-muted);        /* was --mk-ink: identical in light, but raw brand tokens do not remap on dark */
  font-family: var(--mk-font-app);
  /* Body sits at 350, not 400 (Ihor, 29 Jul). It reads lighter at the density this workspace
     runs at, and the full variable Inter he supplied the same day is what makes it possible —
     the old subset was cut to 400–600 and clamped anything below silently. Weights above this
     stay where they are: 500 for buttons, 600 for emphasis and titles, 650 for money. */
  font-weight: 350;
  /* Cormorant ships OLD-STYLE figures: digits sit at x-height with descenders, so a sum reads
     as a big word followed by small change and a date's numbers shrink away from its month.
     Set once here rather than per style (Ihor, 29 Jul) — every Cormorant figure on every page
     is covered, and Inter is unaffected because its figures are already lining. Anything that
     also wants tabular figures must ask for both: `lining-nums tabular-nums`. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
