/* =====================================================================
   CUCA METHOD — DESIGN TOKENS
   Single source of truth. No page may hardcode a hex value.
   To change a color, change it here. Nowhere else.
   ===================================================================== */

:root {
  /* ---- INK (dark surfaces + text) ---- */
  --ink-950: #050505;      /* page-dark: nav, hero, footer */
  --ink-900: #111111;      /* headings, dark buttons */
  --ink-body: #1A1A1A;     /* default body text on paper */
  --panel: #171717;        /* dark cards / diagnostic panel */
  --ink-700: #3A3A3A;      /* image placeholders */

  /* ---- PAPER (light surfaces) ---- */
  --paper: #F7F6F3;        /* default page background */
  --paper-alt: #F4F3EF;    /* alternate light section */
  --white: #FFFFFF;

  /* ---- BRAND ---- */
  --brand: #D92F24;        /* the one brand color: arrows, labels, focus */

  /* ---- ACCENTS ----
     Yellow and green are only legible as TEXT on dark surfaces.
     On light surfaces use them for dots/fills only, never for text. */
  --accent-yellow: #E8D45A;
  --accent-green-dark: #4ADE80;   /* use on dark backgrounds */
  --accent-green-light: #16A34A;  /* use on light backgrounds (checks) */

  /* ---- STATUS (cohort) ----
     Driven by COHORT in assets/components.js, which sets html[data-cohort]. Flip it and
     every status dot, label and footer block on the site changes.
     Status is deliberately NOT the brand red. */
  --status: var(--accent-yellow);

  /* ---- LINES ---- */
  --line: rgba(0, 0, 0, 0.1);

  /* ---- TYPE ---- */
  --font-sans: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html[data-cohort="open"] { --status: var(--accent-green-dark); }

/* cohort-dependent copy: write both, CSS shows the right one */
html[data-cohort="closed"] .when-open   { display: none !important; }
html[data-cohort="open"]   .when-closed { display: none !important; }

/* ---- BASE ---- */
body { font-family: var(--font-sans); }
.mono { font-family: var(--font-mono); }
* { border-radius: 0 !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* shared components render into the light DOM; keep sticky header working */
cuca-header, cuca-footer { display: contents; }
