/* ══════════════════════════════════════════════════════════════════════════
   Circle Health — Design System
   The single source for colour and type. Every other stylesheet imports this
   file and refers to these tokens; no page should carry its own hex values.

   Nothing here renders anything. Adding a token is safe; changing one changes
   the whole app, which is the point.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Type ────────────────────────────────────────────────────────────────
   CircularXX is the brand face. Declared once here so every page gets it.
   Kiosk copy: self-hosted (this app deploys off the Circle origins) and the
   two weights the kiosk actually uses. */
@font-face {
  font-family: 'CircularXX'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/CircularXXSub-Book.woff2') format('woff2');
}
@font-face {
  font-family: 'CircularXX'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/CircularXXSub-Medium.woff2') format('woff2');
}

:root {
  /* The only font stack in the app. The fallbacks are for the swap window and
     for the two weights CircularXX does not ship. */
  --font-sans: 'CircularXX', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-brand: var(--font-sans);   /* retained name — same face */

  /* ── Brand primaries ──────────────────────────────────────────────────
     The five colours the brand is built from. Each is the verbatim base hex
     and also the anchor step of its ramp below. */
  --color-cream:   #F4F1E2;   /* Circle Cream   — page ground   (= cream-100) */
  --color-surface: #FFFEF6;   /* Circle White   — raised surface              */
  --color-font:    #292626;   /* Circle Black   — body text     (= black-900) */
  --color-navy:    #10293C;   /* Circle Navy    — deep ground   (= navy-900)  */
  --color-orange:  #FF884C;   /* Circle Orange  — the one action (= orange-400) */

  /* ── Ramps ────────────────────────────────────────────────────────────
     100 (lightest) → 900 (darkest), plus a mid `-accent` for marks and fills.
     The step marked ANCHOR is the verbatim brand hex; the rest are adjusted
     for contrast. Ratios on 600–900 are measured against Circle Cream
     (#F4F1E2), the page ground, with their WCAG grade. Below 600, treat a
     step as a surface or a border, not as text. */

  /* teal */
  --teal-100: #EFF3EE;
  --teal-200: #DCE4DB;
  --teal-300: #C6D2C4;
  --teal-400: #B4C6B2;
  --teal-500: #8C9F89;
  --teal-600: #6E806C;   /*  3.73:1  AA large */
  --teal-700: #536352;   /*  5.66:1  AA       */
  --teal-800: #3C493B;   /*  8.39:1  AA       */
  --teal-900: #273126;   /* 11.93:1  AAA      */
  --teal-accent: #62795F;

  /* sand */
  --sand-100: #FAF0E5;
  --sand-200: #F0DEC9;
  --sand-300: #E3C9AA;
  --sand-400: #DCB688;   /* ANCHOR — Circle Sand */
  --sand-500: #B8905E;
  --sand-600: #997240;   /*  3.83:1  AA large */
  --sand-700: #77572C;   /*  5.82:1  AA       */
  --sand-800: #5A3F1C;   /*  8.57:1  AA       */
  --sand-900: #3E290C;   /* 12.13:1  AAA      */
  --sand-accent: #97661E;

  /* slate */
  --slate-100: #F0F2F3;
  --slate-200: #D9E2E7;
  --slate-300: #C9CFD2;
  --slate-400: #AEB6BA;
  --slate-500: #919A9F;
  --slate-600: #737C81;  /*  3.76:1  AA large */
  --slate-700: #575F63;  /*  5.75:1  AA       */
  --slate-800: #404649;  /*  8.46:1  AA       */
  --slate-900: #2A2F31;  /* 11.96:1  AAA      */
  --slate-accent: #68747A;

  /* peach */
  --peach-100: #FBEFE7;
  --peach-200: #F2DDCE;
  --peach-300: #F2C4A4;
  --peach-400: #D3AB8F;
  --peach-500: #BC8D6B;
  --peach-600: #9C6F4E;  /*  3.86:1  AA large */
  --peach-700: #7A5438;  /*  5.88:1  AA       */
  --peach-800: #5C3D26;  /*  8.61:1  AA       */
  --peach-900: #402715;  /* 12.20:1  AAA      */
  --peach-accent: #9B6236;

  /* clay */
  --clay-100: #FDEEE9;
  --clay-200: #F6DAD2;
  --clay-300: #EBC4B8;
  --clay-400: #E4AC9B;
  --clay-500: #C38876;
  --clay-600: #A26A59;   /*  3.91:1  AA large */
  --clay-700: #7F5042;   /*  5.92:1  AA       */
  --clay-800: #60392D;   /*  8.74:1  AA       */
  --clay-900: #43251C;   /* 12.19:1  AAA      */
  --clay-accent: #A25C46;

  /* butter */
  --butter-100: #F6F1E6;
  --butter-200: #EBD8A8;
  --butter-300: #D9CDAD;
  --butter-400: #C3B38A;
  --butter-500: #AA9663;
  --butter-600: #8C7846; /*  3.79:1  AA large */
  --butter-700: #6C5C31; /*  5.77:1  AA       */
  --butter-800: #514320; /*  8.52:1  AA       */
  --butter-900: #372D10; /* 11.99:1  AAA      */
  --butter-accent: #876E29;

  /* mist */
  --mist-100: #EEF2F6;
  --mist-200: #DBE2E9;
  --mist-300: #BCCDDA;
  --mist-400: #A8B7C2;
  --mist-500: #899BA9;
  --mist-600: #6C7D8A;   /*  3.75:1  AA large */
  --mist-700: #51606B;   /*  5.73:1  AA       */
  --mist-800: #3B4750;   /*  8.41:1  AA       */
  --mist-900: #262F36;   /* 12.01:1  AAA      */
  --mist-accent: #5F7585;

  /* blush */
  --blush-100: #F8F0ED;
  --blush-200: #F0D2C9;
  --blush-300: #DDC9C3;
  --blush-400: #C7AEA6;
  --blush-500: #AF9087;
  --blush-600: #90736A;  /*  3.82:1  AA large */
  --blush-700: #705750;  /*  5.85:1  AA       */
  --blush-800: #54403A;  /*  8.53:1  AA       */
  --blush-900: #392A25;  /* 12.09:1  AAA      */
  --blush-accent: #8C685D;

  /* orange */
  --orange-050: #FFF2E5;  /* lightest wash — tinted card and banner grounds */
  --orange-100: #FFEADC;
  --orange-200: #FFD3B8;
  --orange-300: #FFB791;
  --orange-400: #FF884C;  /* ANCHOR — Circle Orange */
  --orange-500: #EE6D21;
  --orange-600: #CA4E00;  /*  4.03:1  AA large */
  --orange-700: #9E3800;  /*  6.14:1  AA       */
  --orange-800: #792600;  /*  8.86:1  AA       */
  --orange-900: #561400;  /* 12.39:1  AAA      */
  --orange-accent: #B44F12;

  /* cream */
  --cream-100: #F4F1E2;   /* ANCHOR — Circle Cream */
  --cream-200: #E3E1DB;
  --cream-300: #D0CEC4;
  --cream-400: #B7B4A8;
  --cream-500: #9C9989;
  --cream-600: #7E7B6C;   /*  3.75:1  AA large */
  --cream-700: #605E52;   /*  5.75:1  AA       */
  --cream-800: #47453B;   /*  8.49:1  AA       */
  --cream-900: #302E26;   /* 12.00:1  AAA      */
  --cream-accent: #76725F;
  --cream-deep: #E6E2D1;  /* one step under the page ground — quiet fills */

  /* black */
  --black-100: #F2F1F1;
  --black-200: #E2E1E1;
  --black-300: #D0CDCD;
  --black-400: #B7B3B3;
  --black-500: #9B9797;
  --black-600: #7D7979;   /*  3.79:1  AA large */
  --black-700: #605D5D;   /*  5.75:1  AA       */
  --black-800: #474444;   /*  8.51:1  AA       */
  --black-900: #292626;   /* 13.24:1  AAA — ANCHOR, Circle Black */
  --black-accent: #757070;

  /* navy */
  --navy-100: #EBF3F9;
  --navy-200: #D6E3EF;
  --navy-300: #BDD1E1;
  --navy-400: #9EB8CD;
  --navy-500: #7D9CB6;
  --navy-600: #607E97;    /*  3.76:1  AA large */
  --navy-700: #476176;    /*  5.72:1  AA       */
  --navy-800: #334859;    /*  8.38:1  AA       */
  --navy-900: #10293C;    /* 13.19:1  AAA — ANCHOR, Circle Navy */
  --navy-accent: #4F7696;
}
