/* Crowdster / Crowdabout — Design Tokens v1.0
   Source: brand.json (logo + mascot + crowdabout.io). Font: Anuphan (OFL). */
@font-face {
  font-family: "Anuphan";
  src: url("assets/Anuphan-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  /* Brand */
  --cs-navy: #0821A5;          /* logo wordmark, headlines */
  --cs-blue: #0025E6;          /* primary action, question card, captions */
  --cs-blue-soft: #6479FF;     /* mascot body, secondary surfaces */
  --cs-sky: #CFE0FF;           /* tinted backgrounds */
  --cs-yellow: #FFE12E;        /* highlight, keyword, mascot shoes */
  --cs-red: #E41A48;           /* accent, alerts, mascot cap */

  /* Neutrals */
  --cs-ink: #16140F;           /* text, borders */
  --cs-cream: #F5F1EB;         /* page background */
  --cs-white: #FFFFFF;
  --cs-gray: #A1A1A1;          /* logo ring, glasses, disabled */
  --cs-gray-100: #ECE8E1;      /* dividers on cream */

  /* Semantic */
  --bg: var(--cs-cream);
  --surface: var(--cs-white);
  --text: var(--cs-ink);
  --text-muted: #5C5850;
  --heading: var(--cs-navy);
  --primary: var(--cs-blue);
  --on-primary: var(--cs-white);
  --highlight: var(--cs-yellow);
  --on-highlight: var(--cs-ink);
  --danger: var(--cs-red);
  --border: var(--cs-ink);

  /* Type */
  --font: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
  --fs-display: 56px;  --fs-h1: 40px;  --fs-h2: 28px;  --fs-h3: 20px;
  --fs-body: 16px;     --fs-small: 14px; --fs-caption: 12px;
  --fw-regular: 400;   --fw-medium: 500; --fw-bold: 700;
  --lh-tight: 1.15;    --lh-body: 1.6;   /* Thai needs generous line-height */

  /* Shape — rounded + sticker outline, echoing the mascot */
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-pill: 999px;
  --bw: 2.5px;                               /* outline weight */
  --shadow-sticker: 4px 4px 0 var(--cs-ink); /* hard offset, no blur */
  --shadow-sticker-yellow: 4px 4px 0 var(--cs-yellow);
  --shadow-soft: 0 6px 20px rgba(8, 33, 165, .12);

  /* Spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Motion */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 120ms; --dur: 220ms;
}

/* Components */
.btn {
  font: var(--fw-bold) var(--fs-body)/1 var(--font);
  padding: 14px 24px; border: var(--bw) solid var(--border);
  border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-sticker); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast);
}
.btn:hover  { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--cs-ink); }
.btn:active { transform: translate(4px,4px);   box-shadow: 0 0 0 var(--cs-ink); }
.btn--yellow { background: var(--highlight); color: var(--on-highlight); }
.btn--ghost  { background: var(--surface); color: var(--primary); }

.card {
  background: var(--surface); border: var(--bw) solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sticker-yellow); padding: var(--sp-5);
}
.card--question { background: var(--cs-blue); color: #fff; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--highlight); color: var(--on-highlight);
  font: var(--fw-bold) var(--fs-small)/1.4 var(--font); border: 2px solid var(--border);
}
.input {
  font: var(--fw-regular) var(--fs-body) var(--font); padding: 12px 16px;
  border: var(--bw) solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.input:focus { outline: 3px solid var(--cs-blue-soft); outline-offset: 2px; }
