/* Lisette's classes: design tokens. The only file with colours and sizes written by hand.
   Rastro's spine: white page, warm sidebar, hairline rows, pill actions. Here the main colour is ink (near-black):
   buttons, what is selected. Green is only money that came in; red is only something owed or late.
   Every text colour below passes WCAG AA (4.5:1) on both the ground and the cards, light and dark. */
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --base: 16px;
  /* Type at Prolija's sizes (Jerry, 19 Nov: "the fonts needs to be a little bigger"): body 16, secondary 14, the smallest 13. */
  --t-xs: calc(var(--base) * .8125); --t-s: calc(var(--base) * .875); --t-m: calc(var(--base) * .9375); --t-b: var(--base);
  --t-l: calc(var(--base) * 1.125); --t-xl: calc(var(--base) * 1.25); --t-2xl: calc(var(--base) * 1.875);
  --t-3xl: calc(var(--base) * 2.5); --t-hero: min(calc(var(--base) * 4.5), 14vw); --t-fig: calc(var(--base) * 1.625);
  --e-2: calc(var(--base) * .125); --e-4: calc(var(--base) * .25); --e-6: calc(var(--base) * .375); --e-8: calc(var(--base) * .5);
  --e-10: calc(var(--base) * .625); --e-12: calc(var(--base) * .75); --e-16: var(--base); --e-20: calc(var(--base) * 1.25);
  --e-24: calc(var(--base) * 1.5); --e-32: calc(var(--base) * 2); --e-40: calc(var(--base) * 2.5); --e-48: calc(var(--base) * 3);
  --e-64: calc(var(--base) * 4); --e-88: calc(var(--base) * 5.5);
  --h-row: calc(var(--base) * 3.25); --h-nav: calc(var(--base) * 2.5); --h-ctl: calc(var(--base) * 2.75); --h-pill: calc(var(--base) * 2.125);
  /* Figures are heavy and ink is near-black: calm, not washed out */
  --w-figure: 620; --w-amount: 560; --w-title: 600; --w-control: 550; --w-strong: 620;
  --r-s: calc(var(--base) * .25); --r-m: calc(var(--base) * .5); --r-l: calc(var(--base) * .75); --r-pill: 999px;
  /* Colour, light */
  --ground: #FFFFFF;   /* the page: one plain white sheet, like Prolija (Jerry 19 Nov: no cards) */
  --paper: #FFFFFF;    /* what floats over the page: search, menus, the phone sheet */
  --side-bg: #F4F3EF;   /* the sidebar sits a shade deeper than the page: no line between them */
  --tint: rgba(64, 70, 60, .07);   /* selected row, quiet fills */
  --tint2: rgba(64, 70, 60, .12);
  --line: #E7E5DF; --line2: #D8D6CF;
  --ink: #191B19; --ink2: #3B3F3B; --soft: #5F645E; --faint: #6A6F69;
  --accent: #191B19;   /* ink: the main action, what is selected */
  --accent-d: #000000; --accent-l: #ECEBE6; --on-accent: #FFFFFF;
  --good: #1A5C43; --good-l: #E4EEE8;   /* bottle green: money in, a class given */
  --look: #3B3F3B; --look-l: #EEEDE8;   /* neutral ink: worth a second look (no amber: it read as gold) */
  --bad: #A3392A; --bad-l: #F8E6E1;     /* red: a real problem only */
  --bar: #9DBFAE; --chart-last: #8F8D86; --chart-fill: rgba(26, 92, 67, .08); --bar-in: #1A5C43;
  --shadow: 0 1px 2px rgba(25, 27, 25, .05), 0 16px 40px -16px rgba(25, 27, 25, .22);
  --veil: rgba(25, 27, 25, .36);
  --fade: .14s;
  --gap-p: calc(var(--base) * 1.125);   /* between panels, Prolija's 18 */
  --side: calc(var(--base) * 16); --rail: calc(var(--base) * 4); --barh: calc(var(--base) * 3.75); --tabbar: calc(var(--base) * 4);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #111312; --paper: #1A1D1B; --side-bg: #0C0E0D;
    --tint: rgba(236, 237, 232, .07); --tint2: rgba(236, 237, 232, .12);
    --line: #262A27; --line2: #333833;
    --ink: #ECEDE8; --ink2: #D2D4CE; --soft: #A4A9A2; --faint: #8E938C;
    --accent: #ECEDE8; --accent-d: #FFFFFF; --accent-l: rgba(236, 237, 232, .1); --on-accent: #111312;
    --good: #7BC6A0; --good-l: rgba(123, 198, 160, .14);
    --look: #D2D4CE; --look-l: rgba(236, 237, 232, .07);
    --bad: #F08F7C; --bad-l: rgba(240, 143, 124, .14);
    --bar: #4E8E70; --chart-last: #6A6F69; --chart-fill: rgba(123, 198, 160, .16); --bar-in: #7BC6A0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --veil: rgba(0, 0, 0, .55);
  }
}
