/* Post-ICU Helper — design tokens
 * Sampled from Piph's Procreate mocks (mocks/), August 2026.
 * Mock canvas 1320x2456 @3x => a 440pt-wide screen. 1 design pt = 1 CSS px here.
 * See design/design-system.md for how each value was measured. */

:root {
  /* ---- colour ---- */
  --bg:             #DFF1FF;  /* page background */
  --surface:        #B1D9FF;  /* header band, cards, received bubble */
  --navy:           #1B275A;  /* tiles, icons, selected segment, primary text */
  --lavender:       #EEE8FF;  /* text/glyphs on navy or purple */
  --purple:         #351773;  /* search bar, screen titles, sent bubble */
  --purple-bright:  #2E008B;  /* list-row titles */
  --label-blue:     #081F7C;  /* home tile labels */

  /* Body/summary text is --navy. The mocks used a very dark green (#082D05)
     here; Naveen removed it in Aug 2026 — there is no green in this palette. */

  /* The one yellow, for one thing only: a medicine dose whose time has
     passed without being ticked (web/app/services/med_reminders.py), with
     black text on it. Asked for in Nov 2026 — first as red, then yellow,
     which reads as "needs doing" rather than alarm — so a missed dose
     cannot read like any other alert. Always with words saying it was
     missed, never colour alone. */
  --missed:         #FFD43B;
  --on-missed:      #000000;

  /* Mock-only, not UI: #000000 device frame, #6F0001 review handwriting. */

  /* ---- type ---- */
  --font: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", Georgia, serif;

  /* Sizes solved against real rendered Rockwell (cap height = 0.76em),
     cross-checked against the measured glyph widths in the mock.
     Weight matters: only the three display roles are bold. */
  --text-title:    39px;  /* screen title      · bold    · uppercase · tracked */
  --text-heading:  23px;  /* section heading   · bold    · uppercase */
  --text-card:     20px;  /* card title        · bold    · uppercase */
  --text-body:     17px;  /* summaries, transcripts, bubbles · regular */
  --text-label:    15px;  /* home tile label   · regular · uppercase */
  --text-tab:      14px;  /* segmented control, search · regular · uppercase */

  /* No letter-spacing anywhere: Rockwell Bold at 39px measures 290pt for
     "MEDICATION" and the mock measures 291pt.
     Titles shrink to fit: the mock draws TERMINOLOGY at ~33px, not 39px, to
     clear the hamburger. Treat --text-title as a maximum and scale down to
     fit --title-max-w. */
  --title-max-w: 300px;

  /* ---- layout ---- */
  --screen-w:      440px; /* design width */
  --screen-pad:     18px; /* side margin, list + detail screens */
  --grid-pad:       41px; /* side margin, home tile grid */

  --gap-card:       12px; /* between list cards */
  --gap-tile-x:     11px; /* between home tiles, horizontal */
  --gap-tile-y:     30px; /* tile label to next row */

  --h-header:      116px; /* header band, section screens with tabs */
  --h-header-bare:  85px; /* header band, screens with no segmented control —
                             measured from the exercise-video mock */
  --h-header-home: 146px; /* header band, home (alert region) */
  --h-search:       59px;
  --h-card:        108px;
  --size-tile:     112px;
  --pitch-tile:    159px; /* row-to-row */

  /* ---- radii ---- */
  --radius-tile:    22px;
  --radius-card:     6px;
  --radius-pill:     6px;
  --radius-round:    50%;
}
