/* Chalk: the November 2026 look, page by page. Linked after tokens.css and
   theme.css by the pages that have moved to it (homepage, Method). It
   changes the paper from cream to a cool chalk white with a breath of the
   logo green (OKLCH), gives dark mode depth from lighter surfaces instead
   of shadows, makes every button give under the finger, swaps the light
   switch icons through a blur, and lets the beat-line playhead carry the
   visitor's tempo (the number is written in by the page's script). */
  :root{
    --paper:oklch(0.972 0.005 150); --paper-2:oklch(0.995 0.002 140); --paper-3:oklch(0.935 0.008 145);
    --ink:oklch(0.235 0.03 175); --ink-soft:oklch(0.40 0.025 175); --ink-mute:oklch(0.52 0.02 175);
    --line:oklch(0.235 0.03 175 / .11); --line-strong:oklch(0.235 0.03 175 / .26);
    --green-deep:oklch(0.47 0.09 172);
    --shadow:inset 0 1px 0 oklch(1 0 0 / .9), 0 24px 48px -30px oklch(0.3 0.05 170 / .38), 0 2px 6px -3px oklch(0.3 0.05 170 / .14);
    --shadow-sm:0 10px 24px -16px oklch(0.3 0.05 170 / .35);
    --spring:cubic-bezier(.2,1.35,.35,1); --snap:cubic-bezier(.3,.7,.4,1); --swap:cubic-bezier(.65,0,.35,1);
  }
  /* Dark mode: depth from lighter surfaces and a hairline of light on top,
     not from shadows (they vanish on black) */
  :root[data-theme="dark"]{
    --paper:oklch(0.16 0.01 200); --paper-2:oklch(0.215 0.012 195); --paper-3:oklch(0.25 0.013 195);
    --line:oklch(1 0 0 / .09); --line-strong:oklch(1 0 0 / .2);
    --shadow:inset 0 1px 0 oklch(1 0 0 / .07), 0 0 0 1px oklch(1 0 0 / .03), 0 30px 60px -30px oklch(0 0 0 / .7);
    --shadow-sm:inset 0 1px 0 oklch(1 0 0 / .06);
  }

  /* Every button gives way under the finger and springs back */
  .cta, .pill, .iconbtn, .soc, .seg button, .tempo button, .snd, .key{
    transition:transform .16s var(--snap), background .15s ease, border-color .15s ease, color .15s ease; }
  .cta:active, .pill:active, .iconbtn:active, .soc:active, .seg button:active, .tempo button:active, .snd:active, .key:active{
    transform:scale(.95); transition-duration:.05s; }
  .cta.green{ background:oklch(0.78 0.15 172); background-image:linear-gradient(in oklch 180deg, oklch(0.82 0.14 168), oklch(0.75 0.15 176));
    box-shadow:inset 0 1px 0 oklch(1 0 0 / .35), 0 8px 16px -10px oklch(0.5 0.12 172 / .7); }
  .cta.green:hover{ background-image:linear-gradient(in oklch 180deg, oklch(0.86 0.13 168), oklch(0.79 0.15 176)); }

  /* Light switch: the moon and the sun trade places through a blur */
  #themeBtn svg{ grid-area:1 / 1; display:block !important; transition:opacity .25s ease, filter .25s ease, transform .45s var(--spring); }
  #themeBtn .sun{ opacity:0; filter:blur(4px); transform:scale(.4) rotate(-90deg); }
  :root[data-theme="dark"] #themeBtn .sun{ opacity:1; filter:none; transform:none; }
  :root[data-theme="dark"] #themeBtn .moon{ opacity:0; filter:blur(4px); transform:scale(.4) rotate(90deg); }

  /* The playhead on the beat line carries the tempo */
  .head{ z-index:2; width:auto; min-width:36px; height:18px; top:-3px; padding:0 6px; border-radius:6px; box-shadow:none;
    font:700 10px/18px var(--mono); letter-spacing:.3px; color:var(--on-green); font-variant-numeric:tabular-nums; }
  .head::after{ display:none; }
  .head.tick{ transform:translateX(-50%) scale(1.14); }
  @media (max-width:899px){
    .head{ min-width:28px; height:14px; top:-1px; padding:0 4px; border-radius:4px; font-size:8.5px; line-height:14px; }
  }

/* The vertical beat line on inner pages carries the tempo too */
.vhead{ z-index:2; width:auto; height:18px; min-width:36px; left:-12px; padding:0 6px; border-radius:6px; box-shadow:none;
  font:700 10px/18px var(--mono); letter-spacing:.3px; color:var(--on-green); font-variant-numeric:tabular-nums;
  transition:transform .12s ease; }
.vhead::after{ display:none; }
.vhead.tick{ transform:translateY(-50%) scale(1.14); }
.chalk .vstop b{ left:34px; }
