/* ============================================================
   Cake Your Story — Typography Tokens
   ============================================================ */

:root {
  /* ---- Families ----------------------------------------- */
  --font-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif; /* logo + headings */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-numeric: 'Baloo 2', 'Fredoka', system-ui, sans-serif;  /* scores / stats */

  /* ---- Weights (numeric font-weights) ---- */
  --fw-regular: 400;   /* @kind font */
  --fw-medium: 500;    /* @kind font */
  --fw-semibold: 600;  /* @kind font */
  --fw-bold: 700;      /* @kind font */
  --fw-extra: 800;     /* @kind font */

  /* ---- Display scale (Fredoka, fluid) ---- */
  --fs-display-xl: clamp(3rem, 7vw, 5.5rem);     /* @kind font */
  --fs-display-lg: clamp(2.4rem, 5vw, 4rem);     /* @kind font */
  --fs-display-md: clamp(1.9rem, 3.6vw, 2.75rem);/* @kind font */
  --fs-display-sm: clamp(1.5rem, 2.6vw, 2rem);   /* @kind font */

  /* ---- Heading scale ---- */
  --fs-h1: 2rem;     /* @kind font */
  --fs-h2: 1.5rem;   /* @kind font */
  --fs-h3: 1.25rem;  /* @kind font */

  /* ---- Body / UI scale ---- */
  --fs-lg: 1.125rem;   /* 18 @kind font */
  --fs-md: 1rem;       /* 16 base @kind font */
  --fs-sm: 0.875rem;   /* 14 @kind font */
  --fs-xs: 0.75rem;    /* 12 @kind font */

  /* ---- Line heights ---- */
  --lh-tight: 1.02;  /* @kind font */
  --lh-snug: 1.18;   /* @kind font */
  --lh-body: 1.55;   /* @kind font */

  /* ---- Letter spacing ---- */
  --ls-display: -0.01em;  /* @kind font */
  --ls-label: 0.04em;     /* @kind font */
  --ls-loose: 0.12em;     /* @kind font */

  /* ============================================================
     SIGNATURE: "Sticker" display treatment
     Chubby Fredoka + thick chocolate outline + soft drop shadow
     = tactile 3D sticker. Apply via:  font: var(--font-display);
     -webkit-text-stroke + the layered text-shadow below.
     ============================================================ */
  --sticker-outline-w: 5px;                 /* chocolate stroke width @kind spacing */
  --sticker-outline: var(--choco-700);
  --sticker-fill: var(--cream-000);
  /* Layered shadow = crisp chocolate keyline + soft lifted shadow */
  --sticker-shadow:
    0 2px 0 var(--choco-700),
    0 6px 0 rgba(58, 35, 20, 0.35),
    0 10px 18px rgba(58, 35, 20, 0.28);
}

/* ---- Utility recipe: the sticker headline -------------- */
.sticker-text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--sticker-fill);
  -webkit-text-stroke: var(--sticker-outline-w) var(--sticker-outline);
  paint-order: stroke fill;
  text-shadow: var(--sticker-shadow);
}
