/* ============ Bento — my.adhd's look ============
   The one look, on every surface: the iOS app (since 2026-11-02), the
   website, the self-check, Focus and /app (since 2026-11-03). BRAND.md §5
   is the rule; this file holds its tokens.

   A page is a flat ground with pieces on it. A piece is a flat colour,
   an ink outline and a hard shadow: no blur, no gradient, nothing tilted.
   The rules the owner set for the iPhone hold here too:

   - Two curves only: --b-radius (16px) or a full capsule (999px).
   - A piece's shadow never matches its fill. Where it would, it turns
     orange: under ink and navy by day, under blue at night.
   - One shadow colour per screen: ink by day, blue at night. The theme
     button is the exception — the sun casts orange, the moon blue.
   - At night the ground and the type on it change; the pieces keep
     their day colours, and the outline stays ink.

   Load order on every page: theme.css → bento.css → the page's sheet.
   The Chrome extension mirrors both files' tokens, so nothing here
   redefines one of theme.css's; everything is new under
   --b-* (the ground and the geometry) and --p-* (what a piece is made of). */

:root{
  /* ---------- the ground ---------- */
  --b-ground:var(--backdrop);
  --b-ink:var(--black);          /* type straight on the ground */
  --b-muted:var(--stone);

  /* ---------- what a piece is made of ----------
     Fixed in both themes: a white piece is white at night too. */
  --p-white:#FFFFFF;
  --p-wash:#F4F3FE;              /* a track or an inset box inside a piece */
  --p-pale:var(--pale);
  --p-violet-pale:var(--violet-pale);
  --p-blue-pale:var(--blue-pale);
  --p-blue:var(--blue);
  --p-violet:var(--violet);
  --p-orange:var(--orange);
  --p-navy:var(--navy);
  --p-ink:var(--black);          /* an ink piece's fill */
  --p-text:var(--black);         /* type inside a piece, both themes */
  --p-muted:var(--stone);
  --p-on-dark:#FFFFFF;           /* type on ink, navy, blue, violet */

  /* ---------- the edge and the shadow ---------- */
  --b-line:var(--black);         /* every outline, both themes */
  --b-stroke:2.5px;
  --b-stroke-thin:2px;
  --b-shadow:var(--black);
  --b-swap:var(--orange);
  /* The shadow under a piece whose fill is the shadow colour. */
  --b-shadow-ink:var(--b-swap);  /* ink and navy by day */
  --b-shadow-blue:var(--b-shadow);
  --b-lift-sm:3px;
  --b-lift:4px;
  --b-lift-lg:5px;
  --b-radius:16px;
  --b-pill:999px;
  --b-release:.16s;
  --b-focus:var(--blue);
  /* The ring around a piece itself sits on the ground, so it keeps the
     ground's colour even though the piece resets --b-focus inside it. */
  --b-focus-ground:var(--b-focus);
}
@media (min-width:1024px){
  :root{--b-lift-lg:6px}
}

/* Night. Written twice, as theme.css writes it: the media block is the
   no-JS fallback and the attribute is what theme.js stamps. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --b-ground:var(--black);
    --b-ink:#F3F2FB;
    --b-muted:#9A98AC;
    --b-shadow:var(--blue);
    --b-shadow-ink:var(--blue);
    --b-shadow-blue:var(--b-swap);
    --p-ink:var(--navy);
    --b-focus:var(--blue-pale);
  }
}
:root[data-theme="dark"]{
  --b-ground:var(--black);
  --b-ink:#F3F2FB;
  --b-muted:#9A98AC;
  --b-shadow:var(--blue);
  /* Ink on the ink ground would be no piece at all, so at night an ink
     piece is navy: one step up, and still far from its blue shadow. */
  --b-shadow-ink:var(--blue);
  --b-shadow-blue:var(--b-swap);
  --p-ink:var(--navy);
  /* --blue on --black is 2.9:1, under the 3:1 a focus ring needs. */
  --b-focus:var(--blue-pale);
}
