/* ==========================================================================
   Adım Adım Türkçe — Companion
   Design tokens.

   The palette is deliberately bright and high-contrast: this site is used by
   children, often on a tablet held at arm's length. The visual language is
   original to this project; the publisher's own brand colours (Dilset) are
   deliberately not reproduced.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Bright, warm, friendly. Big areas of very light paper, saturated accents
     used only for interactive things so a child can see what is tappable. */
  --paper:        #fffdf8;
  --paper-2:      #fdf6ea;
  --surface:      #ffffff;
  --surface-2:    #fff8ec;
  --border:       #f0e3cf;
  --border-2:     #e3cfae;

  --ink:          #2c2418;
  --ink-2:        #57493a;
  --ink-3:        #8a7962;
  --ink-4:        #b3a48d;

  --brand:        #e8541f;   /* warm orange — primary action */
  --brand-2:      #c53f10;
  --brand-soft:   #ffece0;
  --brand-tint:   #ffd7bf;

  --accent:       #159c8e;   /* teal — secondary action */
  --accent-2:     #0f7a6f;
  --accent-soft:  #dff6f2;

  --gold:         #f2a516;   /* stars and rewards */
  --gold-soft:    #fff3d6;

  --ok:           #2aa84a;
  --ok-soft:      #e2f8e8;
  --bad:          #e03b2f;
  --bad-soft:     #ffe7e4;
  --warn:         #c07a00;
  --warn-soft:    #fff1d6;

  /* Playful extras for the kid-facing surfaces */
  --sky:          #3aa5e8;
  --sky-soft:     #e3f3ff;
  --grape:        #8a5cf6;
  --grape-soft:   #efe8ff;
  --pink:         #ef5b93;
  --pink-soft:    #ffe6ef;

  /* Generous radii: rounded shapes read as friendly and forgiving to tap */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(44, 36, 24, .06), 0 2px 4px rgba(44, 36, 24, .05);
  --sh-2: 0 3px 8px rgba(44, 36, 24, .08), 0 1px 3px rgba(44, 36, 24, .05);
  --sh-3: 0 10px 26px rgba(44, 36, 24, .12), 0 3px 8px rgba(44, 36, 24, .06);
  --sh-4: 0 22px 50px rgba(44, 36, 24, .18);
  --sh-5: 0 30px 70px rgba(44, 36, 24, .22);

  /* Rounded, friendly stacks. The first family that exists wins. */
  --sans: "Nunito", "Quicksand", "Segoe UI Variable Display", "Segoe UI",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Baloo 2", "Fredoka", "Nunito", "Quicksand", "Segoe UI",
             system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Georgia", "Times New Roman", serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --header-h: 66px;
  --rail-w: 300px;
  --maxw: 1200px;

  /* Child-sized touch targets. 48px is the comfortable minimum for a small
     finger; nothing interactive on the kid surfaces goes below it. */
  --tap: 48px;
  --tap-lg: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:        #171310;
  --paper-2:      #1e1913;
  --surface:      #241e18;
  --surface-2:    #2c251c;
  --border:       #3b3226;
  --border-2:     #4b4032;

  --ink:          #f6efe3;
  --ink-2:        #d6cab6;
  --ink-3:        #a89a83;
  --ink-4:        #7f7462;

  --brand:        #ff7a42;
  --brand-2:      #ff9464;
  --brand-soft:   #3d2114;
  --brand-tint:   #522c19;

  --accent:       #37c2b2;
  --accent-2:     #5cd6c7;
  --accent-soft:  #113431;

  --gold:         #ffc046;
  --gold-soft:    #3a2c0f;

  --ok:           #4fd47a;
  --ok-soft:      #14311d;
  --bad:          #ff7b6b;
  --bad-soft:     #3b1a16;
  --warn:         #f0bb5c;
  --warn-soft:    #372a10;

  --sky:          #5cbcf0;
  --sky-soft:     #102b3d;
  --grape:        #a884ff;
  --grape-soft:   #241a3d;
  --pink:         #ff7fae;
  --pink-soft:    #3a1726;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .5);
  --sh-3: 0 8px 24px rgba(0, 0, 0, .55);
  --sh-4: 0 20px 48px rgba(0, 0, 0, .7);
  --sh-5: 0 30px 70px rgba(0, 0, 0, .8);
}

/* Respect a learner who wants larger text. "huge" exists for young readers on
   a phone held at arm's length. */
:root[data-fontscale="large"]  { font-size: 18px; }
:root[data-fontscale="xlarge"] { font-size: 20px; }
:root[data-fontscale="huge"]   { font-size: 23px; }
