/* ==================================================================
   THE ABSTRACT. DESIGN TOKENS
   Single source of truth for colour, type and motion.
   Used by the website (public/index.html) and every template in
   /templates (social posts, stories, flyers, share images, motion).
   Values audited from the original Juice AI site. Do not change a
   value without logging it in docs/decisions.md.
   ================================================================== */

:root {
  /* ---- Palette (five principal colours) ---- */
  --charcoal: #151515;          /* ink: structure, contrast, grounding */
  --charcoal-elevated: #1c1b1a; /* raised surfaces: menu, footer, poster frame */
  --ivory: #E5D0A8;             /* cream / paper: openness, breathing room */
  --vermilion: #B83F2D;         /* red: energy, spontaneity, human expression */
  --indigo: #294768;            /* blue: depth, night, thoughtfulness */
  --ochre: #CBA34C;             /* mustard: warmth, rhythm, soul */

  /* ---- Ivory on dark (text and hairlines) ---- */
  --ivory-a06: rgba(229, 208, 168, 0.06); /* hover wash */
  --ivory-a14: rgba(229, 208, 168, 0.14); /* hairlines, borders */
  --ivory-a68: rgba(229, 208, 168, 0.68); /* Japanese secondary text */
  --ivory-a72: rgba(229, 208, 168, 0.72); /* muted English text */
  --ivory-a78: rgba(229, 208, 168, 0.78); /* banner Japanese */
  --ivory-a84: rgba(229, 208, 168, 0.84); /* Japanese on indigo */
  --ivory-a88: rgba(229, 208, 168, 0.88); /* Japanese on vermilion (hover) */

  /* ---- Ink on light ---- */
  --charcoal-a72: rgba(21, 21, 21, 0.72); /* Japanese on ivory buttons */
  --charcoal-a78: rgba(21, 21, 21, 0.78); /* Japanese on ochre badge */

  /* ---- Ochre tint ---- */
  --ochre-a06: rgba(203, 163, 76, 0.06);  /* outline-button hover wash */

  /* ---- Semantic aliases (names used by the original site) ---- */
  --ivory-muted: var(--ivory-a72);
  --ivory-jp: var(--ivory-a68);
  --ivory-faint: var(--ivory-a14);

  /* ---- Type families ---- */
  --font-display: 'Space Grotesk', sans-serif; /* wordmark, headlines, names */
  --font-mono: 'IBM Plex Mono', monospace;      /* labels, UI, body */
  --font-jp: 'Noto Sans JP', sans-serif;        /* all Japanese */

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Artwork fills (SVG shapes take a class, never a raw hex) ---- */
.fill-charcoal  { fill: var(--charcoal); }
.fill-ivory     { fill: var(--ivory); }
.fill-vermilion { fill: var(--vermilion); }
.fill-indigo    { fill: var(--indigo); }
.fill-ochre     { fill: var(--ochre); }
.stroke-ivory   { stroke: var(--ivory); }
.stroke-charcoal  { stroke: var(--charcoal); }
.stroke-vermilion { stroke: var(--vermilion); }
.stroke-indigo    { stroke: var(--indigo); }
.stroke-ochre     { stroke: var(--ochre); }
