/* AniwehKids design tokens. Colours, type, spacing, radii, shadows. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}

/* Size-adjusted local fallbacks so the swap to the web fonts does not move the layout. */
@font-face {
  font-family: "Baloo 2 Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 103%;
  ascent-override: 104.7%;
  descent-override: 50.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 102.1%;
  ascent-override: 99.1%;
  descent-override: 34.6%;
  line-gap-override: 0%;
}

:root {
  /* Sky and village */
  --sky: #55b2fc;
  --sky-soft: #dcefff;
  --cream: #fff8ec;
  --wall: #fcdaa2;
  --path: #fcc77b;
  --roof: #e86d2f;
  --roof-dark: #b54a15;
  --wood: #b56219;
  --grass: #8cc63f;
  --daffodil: #ffd23f;

  /* Text */
  --ink: #3a2a1a;
  --title-blue: #2e54a0;
  --white: #ffffff;

  /* The four friends */
  --tavi: #34c3c0;
  --melli: #dabcec;
  --rolo: #2077fc;
  --nori: #7bbcea;

  /* Radii */
  --radius-s: 16px;
  --radius-m: 24px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Soft coloured shadows, never hard black */
  --shadow-s: 0 4px 14px rgb(46 84 160 / 12%);
  --shadow-m: 0 10px 30px rgb(46 84 160 / 16%);
  --shadow-warm: 0 8px 24px rgb(181 98 25 / 18%);

  /* Type */
  --font-heading: "Baloo 2", "Baloo 2 Fallback", "Arial Rounded MT Bold", Arial, sans-serif;
  --font-body: "Nunito", "Nunito Fallback", "Segoe UI", Arial, sans-serif;
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-lead: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --text-h1: clamp(2.2rem, 1.5rem + 3.4vw, 3.9rem);
  --text-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);

  --container: 72rem;
  --header-height: 4.5rem;
  --wave-h: clamp(28px, 5vw, 64px);
}
