/* Secret Klaus – design token (specifiche §10.2) e font self-hosted (OFL, vedi static/fonts/). */

/* Bricolage Grotesque, font variabile (asse wght 200–800), sottoinsiemi latin + latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.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;
}

/* JetBrains Mono 700: solo per le cifre del timer */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/jetbrains-mono-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/jetbrains-mono-latin-700-normal.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;
}

:root {
  /* colori */
  --ink: #1d1730;        /* testi, bordi, ombre */
  --red: #ff3b3b;        --red-dark: #e42727;   --red-soft: #ffe3e3;   /* azioni principali, errori */
  --lime: #c6f432;       --lime-soft: #eef9c8;                         /* evidenze, stato ok, display del timer */
  --yellow: #ffd23f;                                                   /* adesivi secondari */
  --paper: #ffffff;      --dot: #e7e7ee;        --muted: #6b6680;
  /* tipografia */
  --font-ui: "Bricolage Grotesque", system-ui, sans-serif;   /* tutto il testo: 500 corpo, 700-800 titoli */
  --font-timer: "JetBrains Mono", ui-monospace, monospace;   /* solo cifre del timer */
  /* forme */
  --border: 2.5px solid var(--ink);
  --radius-s: 10px; --radius-m: 15px; --radius-l: 20px; --radius-pill: 999px;
  --shadow: 4px 4px 0 var(--ink);   --shadow-l: 6px 6px 0 var(--ink);   --shadow-timer: 6px 6px 0 var(--red);
  --space: 4px;  /* multipli: 8, 12, 16, 24, 32 */

  /* derivati dalla demo (non nelle specifiche, usati da app.css) */
  --amber-soft: #fff4cc;  /* riquadro di fattibilità "attenzione" */
  --rule: #e1e0ea;        /* separatori tratteggiati delle liste */
  --tape: rgba(255, 210, 63, 0.85);
  --shadow-s: 2px 2px 0 var(--ink);
  --shadow-m: 3px 3px 0 var(--ink);
  --shadow-card: 5px 5px 0 var(--ink);
  --header-h: 64px;
  --content-max: 1080px;
  --chat-max: 760px;
}
