/*
 * Press 4 variety tokens. variety.js sets data-p4-* on <html>; this file is generated by
 * gen_variety_css.py (plan: docs/superpowers/plans/2026-11-06-site-variety-and-404.md). Only custom properties live
 * here: each page decides where it uses them, so a variant can never move a control. Value 0 of each role is the
 * original look. Contrast: the light colours only ever sit under ink; the dark band colour only under paper text.
 */
:root { --p4-hl: var(--pink); --p4-hl2: var(--ink); --p4-sticker-radius: 14px; --p4-sticker-turn: 1; --p4-tilt: 1; }
html[data-p4-palette="0"] { --lemon: #f9f25d; --mint: #c8f3aa; --pink: #ffacd0; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #173ce8; }
html[data-p4-palette="1"] { --lemon: #f9f25d; --mint: #ffacd0; --pink: #c8f3aa; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #173ce8; }
html[data-p4-palette="2"] { --lemon: #c8f3aa; --mint: #f9f25d; --pink: #ffacd0; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #173ce8; }
html[data-p4-palette="3"] { --lemon: #c8f3aa; --mint: #ffacd0; --pink: #f9f25d; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #173ce8; }
html[data-p4-palette="4"] { --lemon: #ffacd0; --mint: #f9f25d; --pink: #c8f3aa; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #173ce8; }
html[data-p4-palette="5"] { --lemon: #ffacd0; --mint: #c8f3aa; --pink: #f9f25d; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #173ce8; }
html[data-p4-palette="6"] { --lemon: #f9f25d; --mint: #c8f3aa; --pink: #ffacd0; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #4b2bb8; }
html[data-p4-palette="7"] { --lemon: #f9f25d; --mint: #ffacd0; --pink: #c8f3aa; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #4b2bb8; }
html[data-p4-palette="8"] { --lemon: #c8f3aa; --mint: #f9f25d; --pink: #ffacd0; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #4b2bb8; }
html[data-p4-palette="9"] { --lemon: #c8f3aa; --mint: #ffacd0; --pink: #f9f25d; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #4b2bb8; }
html[data-p4-palette="10"] { --lemon: #ffacd0; --mint: #f9f25d; --pink: #c8f3aa; --gold: #ffd166; --lime: #d6f5a3; --cobalt: #4b2bb8; }
html[data-p4-palette="11"] { --lemon: #ffacd0; --mint: #c8f3aa; --pink: #f9f25d; --gold: #d6f5a3; --lime: #ffd166; --cobalt: #4b2bb8; }
html[data-p4-edge="0"] { --p4-edge: polygon(0 0,100% 0,100% calc(100% - 16px),96% 100%,91% calc(100% - 11px),85% 100%,78% calc(100% - 13px),71% 100%,63% calc(100% - 9px),55% 100%,47% calc(100% - 14px),39% 100%,31% calc(100% - 9px),23% 100%,15% calc(100% - 13px),8% 100%,0 calc(100% - 10px)); }
html[data-p4-edge="1"] { --p4-edge: polygon(0 0,100% 0,100% calc(100% - 16px),97.92% 100%,95.83% calc(100% - 16px),93.75% 100%,91.67% calc(100% - 16px),89.58% 100%,87.5% calc(100% - 16px),85.42% 100%,83.33% calc(100% - 16px),81.25% 100%,79.17% calc(100% - 16px),77.08% 100%,75% calc(100% - 16px),72.92% 100%,70.83% calc(100% - 16px),68.75% 100%,66.67% calc(100% - 16px),64.58% 100%,62.5% calc(100% - 16px),60.42% 100%,58.33% calc(100% - 16px),56.25% 100%,54.17% calc(100% - 16px),52.08% 100%,50% calc(100% - 16px),47.92% 100%,45.83% calc(100% - 16px),43.75% 100%,41.67% calc(100% - 16px),39.58% 100%,37.5% calc(100% - 16px),35.42% 100%,33.33% calc(100% - 16px),31.25% 100%,29.17% calc(100% - 16px),27.08% 100%,25% calc(100% - 16px),22.92% 100%,20.83% calc(100% - 16px),18.75% 100%,16.67% calc(100% - 16px),14.58% 100%,12.5% calc(100% - 16px),10.42% 100%,8.33% calc(100% - 16px),6.25% 100%,4.17% calc(100% - 16px),2.08% 100%,0% calc(100% - 16px)); }
html[data-p4-edge="2"] { --p4-edge: polygon(0 0,100% 0,100% calc(100% - 16px),98% calc(100% - 14px),96% calc(100% - 9px),94% calc(100% - 3px),92% calc(100% - 0px),90% calc(100% - 2px),88% calc(100% - 7px),86% calc(100% - 12px),84% calc(100% - 16px),82% calc(100% - 15px),80% calc(100% - 10px),78% calc(100% - 5px),76% calc(100% - 1px),74% calc(100% - 1px),72% calc(100% - 5px),70% calc(100% - 10px),68% calc(100% - 15px),66% calc(100% - 16px),64% calc(100% - 12px),62% calc(100% - 7px),60% calc(100% - 2px),58% calc(100% - 0px),56% calc(100% - 3px),54% calc(100% - 9px),52% calc(100% - 14px),50% calc(100% - 16px),48% calc(100% - 14px),46% calc(100% - 9px),44% calc(100% - 3px),42% calc(100% - 0px),40% calc(100% - 2px),38% calc(100% - 7px),36% calc(100% - 12px),34% calc(100% - 16px),32% calc(100% - 15px),30% calc(100% - 10px),28% calc(100% - 5px),26% calc(100% - 1px),24% calc(100% - 1px),22% calc(100% - 5px),20% calc(100% - 10px),18% calc(100% - 15px),16% calc(100% - 16px),14% calc(100% - 12px),12% calc(100% - 7px),10% calc(100% - 2px),8% calc(100% - 0px),6% calc(100% - 3px),4% calc(100% - 9px),2% calc(100% - 14px),0% calc(100% - 16px)); }
html[data-p4-edge="3"] { --p4-edge: polygon(0 0,100% 0,100% calc(100% - 16px),91.67% calc(100% - 16px),91.67% calc(100% - 6px),83.33% calc(100% - 6px),83.33% calc(100% - 12px),75% calc(100% - 12px),75% calc(100% - 2px),66.67% calc(100% - 2px),66.67% calc(100% - 14px),58.33% calc(100% - 14px),58.33% calc(100% - 8px),50% calc(100% - 8px),50% calc(100% - 16px),41.67% calc(100% - 16px),41.67% calc(100% - 4px),33.33% calc(100% - 4px),33.33% calc(100% - 10px),25% calc(100% - 10px),25% 100%,16.67% 100%,16.67% calc(100% - 12px),8.33% calc(100% - 12px),8.33% calc(100% - 6px),0% calc(100% - 6px)); }
html[data-p4-tilt="0"] { --p4-tilt: 1; }
html[data-p4-tilt="1"] { --p4-tilt: -1; }
html[data-p4-tilt="2"] { --p4-tilt: 0.55; }
html[data-p4-tilt="3"] { --p4-tilt: 1.45; }
html[data-p4-tilt="4"] { --p4-tilt: -0.7; }
html[data-p4-headline="0"] :is(.p4-title, .p4nf-title, .p4l-big, .p4-portal h1) { --p4-title-shadow: 4px 4px 0 var(--p4-hl); }
html[data-p4-headline="1"] :is(.p4-title, .p4nf-title, .p4l-big, .p4-portal h1) { --p4-title-shadow: -4px 4px 0 var(--p4-hl); }
html[data-p4-headline="2"] :is(.p4-title, .p4nf-title, .p4l-big, .p4-portal h1) { --p4-title-shadow: 3px 3px 0 var(--p4-hl), 6px 6px 0 var(--p4-hl2); }
html[data-p4-headline="3"] :is(.p4-title, .p4nf-title, .p4l-big, .p4-portal h1) { --p4-title-shadow: 0 6px 0 var(--p4-hl); }
html[data-p4-headline="4"] :is(.p4-title, .p4nf-title, .p4l-big, .p4-portal h1) { --p4-title-shadow: 5px 2px 0 var(--p4-hl), -2px -2px 0 var(--p4-hl2); }
html[data-p4-sticker="0"] { --p4-sticker-radius: 14px; --p4-sticker-turn: 1; }
html[data-p4-sticker="1"] { --p4-sticker-radius: 999px; --p4-sticker-turn: -1; }
html[data-p4-sticker="2"] { --p4-sticker-radius: 3px; --p4-sticker-turn: 1; }
html[data-p4-sticker="3"] { --p4-sticker-radius: 4px 18px; --p4-sticker-turn: -1; }
