/* CircleName design tokens (PLAN-HPC-v1.md section 7). Every component reads these and nothing else.
   Colours are exactly the plan's twelve; type is Onest (Latin) + Mukta (Devanagari) under one family name. */

@font-face { font-family: "Circle Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Circle Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Circle Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/mukta-devanagari-400.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Circle Sans"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(/static/fonts/mukta-devanagari-600.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Circle Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/mukta-devanagari-700.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }

:root {
  /* colour: the plan's table, nothing more */
  --bg: #FFFFFF;
  --surface: #F5F7FA;
  --card: #FFFFFF;
  --line: #E3E8EF;
  --ink: #16212C;
  --ink-2: #5C6B7B;
  --sky: #4AAEE8;
  --sky-deep: #1A6CA6;  /* HPC-04 B5: was #1D78B8 (4.28:1 on --sky-tint); 5.07:1 now */
  --sky-tint: #EAF5FD;
  --sun: #F2B33D;
  --leaf: #2E9E6A;
  --rose: #D9544F;
  /* HPC-20 Part 0b (D-20-7): Occult Master's logo colours, accents only where the logo sits (never a theme colour) */
  --om-navy: #283A4B;
  --om-gold: #E8A90C;

  /* text on white, the page grey and the tints: the colours above mixed toward ink until they pass 4.5:1 (HPC-03 B7, axe) */
  --sky-ink: color-mix(in srgb, var(--sky-deep) 90%, var(--ink));
  --leaf-ink: color-mix(in srgb, var(--leaf) 64%, var(--ink));
  --rose-ink: color-mix(in srgb, var(--rose) 76%, var(--ink));

  /* avatar tints: eight soft backgrounds mixed from the colours above, each with an initials colour that passes contrast */
  --av-0-bg: var(--sky-tint);                                 --av-0-fg: var(--sky-ink);
  --av-1-bg: color-mix(in srgb, var(--sun) 26%, var(--bg));   --av-1-fg: var(--ink);
  --av-2-bg: color-mix(in srgb, var(--leaf) 18%, var(--bg));  --av-2-fg: color-mix(in srgb, var(--leaf) 45%, var(--ink));
  --av-3-bg: color-mix(in srgb, var(--rose) 15%, var(--bg));  --av-3-fg: color-mix(in srgb, var(--rose) 55%, var(--ink));
  --av-4-bg: color-mix(in srgb, var(--sky) 30%, var(--bg));   --av-4-fg: var(--ink);
  --av-5-bg: var(--line);                                     --av-5-fg: var(--ink);
  --av-6-bg: color-mix(in srgb, var(--sun) 50%, var(--bg));   --av-6-fg: var(--ink);
  --av-7-bg: color-mix(in srgb, var(--leaf) 30%, var(--sky-tint)); --av-7-fg: var(--ink);

  /* type */
  --font: "Circle Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif;
  --fs-13: 0.8125rem;  /* the floor for meta text: times, categories, labels, badges with words */
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --lh: 1.5;
  --lh-tight: 1.25;

  /* 8-point spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* shape */
  --r-card: 12px;
  --r-ctl: 8px;
  --r-pill: 999px;
  --bw: 1px;
  --shadow-menu: 0 6px 24px color-mix(in srgb, var(--ink) 12%, transparent), 0 1px 3px color-mix(in srgb, var(--ink) 8%, transparent);
  --scrim: color-mix(in srgb, var(--ink) 45%, transparent);

  /* layout */
  --feed-w: 680px;
  --side-w: 300px;
  --page-w: calc(var(--feed-w) + var(--side-w) + var(--s-5));
  --topbar-h: 56px;
  --tap: 44px;
  --icon: 20px;
}

.ic { width: var(--icon); height: var(--icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic-16 { --icon: 16px; }
.ic-24 { --icon: 24px; }
