/* ==========================================================================
   তিরিশ — the poultry dealer's credit book
   Palette taken from the shop itself: a wall of printed poly feed sacks.
   Bangladeshi feed sacks (Nourish, Kazi, Paragon, Aftab) are one deep ink-blue
   printed on bright white poly, with a hard stencil red for the weight mark.
   So: cool poly white ground, sack blue for everything structural, stencil red
   reserved for one thing only — a flock past its lifting day with money still out.
   Deliberately not Doorstep's spruce, not Akhra's board, not Pathshala's ruled
   paper. No cream, no terracotta.
   ========================================================================== */

:root{
  /* poly — the sack's white. Cool, faintly grey-blue, never cream. */
  --poly:#EDF0F4;
  --sheet:#FFFFFF;
  --sheet-2:#F5F7FA;
  --sunk:#E1E6EE;
  --rule:#D5DCE6;
  --rule-2:#BFC9D8;

  --ink:#0F1621;
  --ink-2:#48566B;
  --ink-3:#5C6B80;   /* 4.83:1 on --poly; #6E7C90 was tried and failed AA at 3.74 */

  /* sack — the blue printed on the bag. Structure, navigation, every chrome. */
  --sack:#17427E;
  --sack-press:#102F5C;
  --sack-ink:#123566;   /* 8.1:1 on --sheet, for blue text */
  --wash:#DDE6F3;
  --wash-2:#EBF1F9;

  /* stencil — the red weight mark. Overdue lifting. Nothing else, ever. */
  --stencil:#B32218;
  --stencil-ink:#8E1A12;
  --stencil-wash:#FBE3E0;

  /* brood — the heat lamp over the chicks. Warnings that are not yet losses. */
  --brood:#B5750A;
  --brood-ink:#8A5806;
  --brood-wash:#FAEED6;

  /* grit — settled, finished, closed out. */
  --grit:#3D6B4E;
  --grit-wash:#DFEBE3;

  --on-sack:#F4F7FC;

  /* the band under the header that says whether the dealer's money is
     recorded anywhere. It has to read as part of the header in both themes,
     so it is a token rather than one hardcoded navy that only works in one. */
  --band:#0F3364;
  --on-band:#CFDCF0;

  /* five radii, not one */
  --r-xs:7px; --r-s:11px; --r-m:15px; --r-l:21px; --r-xl:28px;

  /* two layers: a tight contact shadow and a wide negative-spread ambient */
  --sh-s:0 1px 1.5px rgba(15,22,33,.07);
  --sh-m:0 1px 2px rgba(15,22,33,.06), 0 12px 26px -20px rgba(15,22,33,.55);
  --sh-l:0 2px 4px rgba(15,22,33,.07), 0 26px 50px -30px rgba(15,22,33,.65);
  --sh-bar:0 -1px 0 var(--rule), 0 -14px 30px -24px rgba(15,22,33,.5);
  --sh-sheet:0 -10px 44px -14px rgba(15,22,33,.4);

  /* One family carries Bangla and Latin on each axis, so a ৳ figure and a
     Latin phone number sit on the same baseline.
     Baloo Da 2 is heavy and slightly condensed — it reads like the stencil
     printed on the sack. Hind Siliguri is the most legible Bangla text face
     at 14px on a cheap phone. Neither is Inter, Anek or Bricolage. */
  --display:'Baloo Da 2','Trebuchet MS',system-ui,sans-serif;
  --body:'Hind Siliguri','Helvetica Neue',system-ui,sans-serif;

  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);

  color-scheme:light;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --poly:#0B1017; --sheet:#141B25; --sheet-2:#19212C; --sunk:#1F2833;
    --rule:#26303D; --rule-2:#35424F;
    --ink:#E6EBF2; --ink-2:#A2AFC0; --ink-3:#8593A6;
    --sack:#6B9BE0; --sack-press:#5585CC; --sack-ink:#A8C6F0;
    --wash:#16263C; --wash-2:#131E2E;
    --stencil:#E2776B; --stencil-ink:#F0A097; --stencil-wash:#2D1714;
    --brood:#D9A23F; --brood-ink:#E9C079; --brood-wash:#2A2010;
    --grit:#6FAE86; --grit-wash:#16261C;
    --on-sack:#08101B;
    --band:#4C82CC; --on-band:#05101C;
    --sh-m:0 1px 2px rgba(0,0,0,.45), 0 12px 26px -20px rgba(0,0,0,.95);
    --sh-l:0 2px 4px rgba(0,0,0,.5), 0 26px 50px -30px rgba(0,0,0,1);
    --sh-bar:0 -1px 0 var(--rule), 0 -14px 30px -24px rgba(0,0,0,.9);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --poly:#0B1017; --sheet:#141B25; --sheet-2:#19212C; --sunk:#1F2833;
  --rule:#26303D; --rule-2:#35424F;
  --ink:#E6EBF2; --ink-2:#A2AFC0; --ink-3:#8593A6;
  --sack:#6B9BE0; --sack-press:#5585CC; --sack-ink:#A8C6F0;
  --wash:#16263C; --wash-2:#131E2E;
  --stencil:#E2776B; --stencil-ink:#F0A097; --stencil-wash:#2D1714;
  --brood:#D9A23F; --brood-ink:#E9C079; --brood-wash:#2A2010;
  --grit:#6FAE86; --grit-wash:#16261C;
  --on-sack:#08101B;
  --band:#4C82CC; --on-band:#05101C;
  --sh-m:0 1px 2px rgba(0,0,0,.45), 0 12px 26px -20px rgba(0,0,0,.95);
  --sh-l:0 2px 4px rgba(0,0,0,.5), 0 26px 50px -30px rgba(0,0,0,1);
  --sh-bar:0 -1px 0 var(--rule), 0 -14px 30px -24px rgba(0,0,0,.9);
  color-scheme:dark;
}
