/*
 * Beta Cell Foundation — design tokens.
 *
 * Source of truth: the :root blocks at the top of assets/css/site.css on the
 * main site (custom properties only, no rules). Linked at run time by the
 * Member Map (map.betacellfoundation.org) before its own map.css.
 *
 * Do not edit this file directly. Edit site.css and re-run
 * _tools/build-partials.py.
 */

:root {
  /* Brand palette — BCF Brand Guide 2026 */
  --bg:          #0a0e14;
  --surface:     #111620;
  --surface2:    #181f2e;
  --border:      #1e2a3a;
  /* The edge of something you operate (a field, an outline button, a switch). The hairline
     is 1.3:1 against the page: right for a rule between sections, too faint for the only
     thing that shows where a text field is. This is 3.4:1 on the ground and 3.2:1 on a
     band (WCAG 1.4.11 asks 3:1). */
  --edge-control: #58687f;
  --accent:      #1CCDFE;
  --accent2:     #0096ff;
  --accent-glow: rgba(28,205,254,0.10);
  --accent-ring: rgba(28,205,254,0.22);
  --cta:         #FFD53F;
  --cta-text:    #1a1a1a;
  --text:        #ffffff;
  --text-muted:  #8ca0bc;   /* 6.2:1 — primary reading colour */
  --text-dim:    #7f92ad;   /* 5.2:1 — labels; see header note */

  /* Shared with the Beta Cell Lab Notes app (its Theme.Metric / .Status / .Education
     tokens carry these same names and dark values), so a colour means one thing on
     the web and in the app. The embeds' traces are drawn in these values too. */
  --metric-glucose:         #529EFA;   /* the blood sugar line */
  --metric-insulin:         #F0574D;   /* bolus insulin effect */
  --metric-insulin-inhaled: #FF3392;
  --metric-food:            #F7CF45;   /* carbs */
  --metric-exercise:        #B8B8B8;   /* in-workout effect */
  --metric-recovery:        #22D3EE;   /* post-exercise effect */
  --metric-basal:           #8FD994;   /* basal insulin */
  --metric-heart-rate:      #F58FD1;
  --status-positive:        #4DC780;   /* a safe insight, a completed section */
  --status-caution:         #FF6B35;   /* a warning insight */
  --status-negative:        #F25C5C;
  --status-info:            #529EFA;   /* a neutral insight, the current section */
  --reflection:             #B98CFF;   /* where the learner writes */

  /* T1Ds in the Wild's orange: the sky in its logo (images/Wild-logo.png), and the colour of
     a Camping trip's chip. As text it is 5.2:1 on the ground and 4.9:1 on a band; on
     --surface2 it is 4.4:1, so small text there takes it lightened (a trip chip mixes its
     colour 72% with white: 4.9:1 or better on its own dark ground, whatever the photo).
     Not the logo's brighter sun, #F7941D, which reads as the Climbing Gym chip's amber. */
  --wild-orange:            #D56328;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Spacing — 4px base, named for the relationship each interval expresses.
     The ordering is the point: binding is always tighter than separation. */
  --space-bind:    16px;  /* heading → the content it introduces */
  --space-item:    20px;  /* siblings inside one group */
  --space-group:   48px;  /* group → the next group */
  --space-section: 64px;  /* section's own padding; 128px between two sections */
  --space-band:    88px;  /* a tonal band needs more air than a plain section */
  --space-chapter: 96px;  /* page intro → body; the largest change in meaning */

  /* Measures */
  --shell:  1120px;  /* outer page width */
  --prose:  660px;   /* ~68 characters — reading measure */
}

@media (max-width: 900px) {
  :root {
    --space-group:   36px;
    --space-section: 44px;
    --space-band:    56px;
    --space-chapter: 64px;
  }
}
