@font-face{font-family:Lexend;src:url('../assets/lexend.woff2') format('woff2');font-weight:400 600;font-display:swap}
:root,[data-theme=light]{--bg:#F6F1E7;--text:#2E3A46;--text-muted:#5E6B77;--primary:#4F6F8C;--on-primary:#FFFFFF;--link:#3F5A73;--panel-left:#DCE6EE;--panel-right:#EFE3CF;--shape-blue:#4F6F8C;--shape-sand:#D2B279;--success:#7A9E7E;--drag-shadow:0 10px 24px rgba(46,58,70,.18)}
[data-theme=dim]{--bg:#1F2730;--text:#E8E4DA;--text-muted:#A9B2BA;--primary:#8FB0CC;--on-primary:#1F2730;--link:#8FB0CC;--panel-left:#2C3A47;--panel-right:#3D3528;--shape-blue:#5F829F;--shape-sand:#E3C894;--success:#8DB592}
:root{--font:Lexend,Verdana,Tahoma,'Trebuchet MS',sans-serif;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s6:24px;--s8:32px;--s12:48px;--s16:64px;--s24:96px;--s32:128px;--hair:color-mix(in srgb,var(--text) 20%,transparent)}
:root{--ink-on-shape:#2E3A46}
:root{
  --home-paper:#FBF7EF;
  --home-ink:#243F3B;
  --home-muted:#53635B;
  --home-surface:#FFFCF7;
  --home-blue-wash:#EEF0E6;
  --home-sand-wash:#F1E6D5;
  --home-line:#CCD1C3;
  --home-blue:#557A67;
  --home-sand:#C5A577;
  --home-dim-paper:#1F2E2B;
  --home-dim-ink:#F2EEE4;
  --home-dim-muted:#B8C5BA;
  --home-dim-surface:#293B35;
  --home-dim-blue-wash:#32483C;
  --home-dim-sand-wash:#453E30;
  --home-dim-line:#697A6B;
  --home-dim-blue:#A3BDA8;
  --home-dim-sand:#D8BF94;
}

:root{--home-accent:#96543D;--home-dim-accent:#D5A68A}

:root{--home-catalog-blue:#E8EEF0;--home-dim-catalog-blue:#2E4147}

/* The practice space shares the catalogue's painted, warm-paper world. */
html:has(.exercise-page){--bg:#FBF7EF;--text:#243F3B;--text-muted:#53635B;--primary:#436452;--on-primary:#FFFCF5;--link:#365B49;--panel-left:#E9EEE4;--panel-right:#F4E8D3;--shape-blue:#91B5C6;--shape-sand:#E4C88F;--success:#648B6B;--practice-surface:#FFFCF5;--practice-blue:#E5EEF0;--practice-edge:#75826F;--drag-shadow:0 12px 24px rgba(36,63,59,.16)}
html[data-theme=dim]:has(.exercise-page){--bg:#1F2E2B;--text:#F2EEE4;--text-muted:#B8C5BA;--primary:#B8CFB8;--on-primary:#1F2E2B;--link:#C8DBBC;--panel-left:#30463B;--panel-right:#443E30;--shape-blue:#9ABFCF;--shape-sand:#E4C88F;--success:#A2BFA0;--practice-surface:#293B35;--practice-blue:#2E4449;--practice-edge:#A8B8A9}

html:has(.exercise-page){--primary:#96543D;--on-primary:#FFFCF5}html[data-theme=dim]:has(.exercise-page){--primary:#D5A68A;--on-primary:#1F2E2B}
/* Essential marks keep their contrast on paper and on the painted wood. */
html:has(.exercise-page){--success:#3F6148;--object-edge:#4B624C;--blue-edge:#4F7282;--honey-edge:#876329;--ink-on-pebble:#092018;--hand-mini-left:#648B6B;--hand-mini-right:#A57C3A}
html[data-theme=dim]:has(.exercise-page){--success:#B8CFB8;--object-edge:#B8CFB8;--blue-edge:#91B5C6;--honey-edge:#D8BF94;--hand-mini-left:#9BB79F;--hand-mini-right:#D8BF94}
