/* prof.tomru.it · valori di stile (vedi STYLE.md). Nessun colore fuori da qui. */
@font-face{font-family:"Newsreader";src:url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");font-weight:200 800;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --bg:#F6F3EC; --ink:#2A241C; --ink2:#5C5246; --line:#D9D3C4; --card:#FBF9F4;
  --mat:#1F5FC4; --fis:#9A3822;
  --serif:"Newsreader",Georgia,serif; --sans:"Inter",system-ui,sans-serif;
  /* tassello carta: grana + punti rari */
  --paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35' numOctaves='1' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 40 -30.5'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3Crect width='300' height='300' filter='url(%23p)' opacity='.35'/%3E%3C/svg%3E");
}
:root[data-theme="dark"]{
  --bg:#1B1C1F; --ink:#EDE5D6; --ink2:#B9AE9B; --line:#3A3B40; --card:#25262A;
  --mat:#74A9FF; --fis:#E69A7F;
  --paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .9 0 0 0 0 .84 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#1B1C1F; --ink:#EDE5D6; --ink2:#B9AE9B; --line:#3A3B40; --card:#25262A;
  --mat:#74A9FF; --fis:#E69A7F;
  --paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .9 0 0 0 0 .84 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
}}
/* Accento: per default l'inchiostro; con data-subject il colore della materia */
:root,[data-subject]{--ac:var(--ink)}
[data-subject="mat"]{--ac:var(--mat)}
[data-subject="fis"]{--ac:var(--fis)}
[data-subject]{--tint:color-mix(in srgb,var(--ac) 14%,transparent)}
