/* ==========================================================================
   tokens.css: every colour, font, size and timing the site uses.

   The colours are copied from the app's chunky design system
   (lib/features/profile/widgets/chunky.dart and design-system/tokens/tokens.css
   in the app repo), so the website and the app match exactly.

   Rule: never write a hex code anywhere else. If you need a colour, use one
   of these variables. If none fits, add a new one HERE.
   ========================================================================== */

/* ---------- Fonts (the same files the app ships, subset to Latin) -------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---------- Neutrals ---------- */
  --ink: #3D2A1B;          /* deep coffee ink: text, outlines */
  --ink-soft: #6B5440;     /* quieter body text on cream (still AA) */
  --page: #F5ECD7;         /* page background */
  --cream: #FAF4E8;        /* cards, pills */
  --white: #FFFDF8;        /* warm white: text on dark fills */
  --border: #8C6F4F;       /* soft brown outline */
  --border-soft: #C9B596;

  /* ---------- Hue families (fill / lip / soft / ink) ----------
     A "family" is one sticker: the bright FILL, a darker LIP for the hard
     bottom shadow, a pastel SOFT for washes, and the INK that reads on FILL.
     Always use all parts of one family together. */
  --sunny: #FCD974;      --sunny-lip: #D9A93C;      --sunny-soft: #FDE9B0;      --sunny-ink: #3D2A1B;
  --tangerine: #E8894B;  --tangerine-lip: #C0642A;  --tangerine-soft: #FBD9BC;  --tangerine-ink: #3D2A1B;
  --bubblegum: #E07AA8;  --bubblegum-lip: #B5527F;  --bubblegum-soft: #F9D4E4;  --bubblegum-ink: #3D2A1B;
  --sky: #6E8BE6;        --sky-lip: #4E69C0;        --sky-soft: #D8E1FA;        --sky-ink: #FFFDF8;
  --grape: #A87CD8;      --grape-lip: #7E56AE;      --grape-soft: #E6DBF6;      --grape-ink: #FFFDF8;
  --mint: #7CC196;       --mint-lip: #559A6E;       --mint-soft: #D6EDDC;       --mint-ink: #3D2A1B;
  --lagoon: #4FB0B0;     --lagoon-lip: #357F7F;     --lagoon-soft: #CFEAE6;     --lagoon-ink: #3D2A1B;
  --cocoa: #8A5A2B;      --cocoa-lip: #3D2A1B;      --cocoa-soft: #EADFC4;      --cocoa-ink: #FFFDF8;

  /* ---------- Type ---------- */
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------- Shape ----------
     The app's signature: thick ink outline + a hard, zero-blur "lip". */
  --line: 3px;            /* outline weight on big stickers */
  --line-sm: 2.5px;       /* outline weight on small pills */
  --lift: 6px;            /* how far the hard lip drops */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  /* ---------- Layout ---------- */
  --gutter: 20px;
  --max: 1180px;

  /* ---------- Motion (strong custom curves) ---------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   /* a little overshoot */
  --boil-ms: 160;                                      /* read by rua.js */
}

@media (min-width: 720px) {
  :root { --gutter: 40px; --line: 3.5px; --lift: 7px; }
}
