:root{color-scheme:light;--ink:#292037;--night:#20152f;--purple:#6e46a4;--purple-deep:#513481;--orange:#f68b55;--cream:#fbf7ef;--paper:#fffdf9;--muted:#81768a;--line:#e9e1da;--gold:#f6be72;--shadow:0 16px 40px rgba(50,31,54,.07)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,sans-serif;font-size:15px}
button,input{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #d88d3a;outline-offset:3px}
.topbar{height:68px;background:#1b1327;color:#fff;display:flex;align-items:center;padding:0 max(5vw,28px);gap:22px}
.brand{text-decoration:none;font-family:Georgia,serif;font-weight:700;font-size:23px;letter-spacing:-.7px;white-space:nowrap}.brand-mark{color:#f8c77d;font-size:19px;padding-right:8px}
.topbar-note{font-size:11px;letter-spacing:.06em;color:#b7a9c4;margin-left:4px}.topbar-note span{color:#efba74}
.top-link{margin-left:auto;color:#e4d9e9;text-decoration:none;font-size:12px;font-weight:700}.top-link span{color:#fac489;margin-left:4px}
.hero{overflow:hidden;position:relative;background:#281a3c;color:#fff}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 79% 12%,rgba(148,108,183,.22),transparent 30%),radial-gradient(circle at 22% 90%,rgba(235,148,92,.11),transparent 34%)}
.hero-inner{max-width:1320px;margin:auto;min-height:330px;display:flex;align-items:center;gap:56px;padding:35px 70px 38px 80px;position:relative}
.hero-cover{width:174px;flex:none;position:relative;transform:rotate(-4deg);filter:drop-shadow(0 17px 17px rgba(0,0,0,.28))}.hero-cover::before{content:"";position:absolute;inset:-6px;border:1px solid rgba(255,216,171,.4);border-radius:7px}.hero-cover img{display:block;width:100%;height:auto;border-radius:4px}
.eyebrow,.overline,.section-kicker,.control-label{font-weight:800;font-size:10px;letter-spacing:.14em}.eyebrow{color:#f5bc77;margin-bottom:15px}.eyebrow-star{font-size:14px;margin-right:4px}
.hero h1,.studio-intro h2,.bottom-note h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.035em}.hero h1{font-size:clamp(38px,4.1vw,56px);line-height:1.04;margin:0;color:#fffaf2}.hero h1 em{font-weight:400;color:#f7b97f}
.hero-copy p{max-width:490px;color:#ded2e6;line-height:1.6;font-size:15px;margin:16px 0 20px}
.hero-actions{display:flex;align-items:center;gap:20px}.primary-btn,.download-btn{border:0;background:#f6a86f;color:#2e2035;font-weight:800;border-radius:12px;padding:13px 20px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 4px 0 #c87951;transition:transform .15s,box-shadow .15s}
.primary-btn:hover,.download-btn:hover{transform:translateY(-2px);box-shadow:0 6px 0 #c87951}.primary-btn:active,.download-btn:active{transform:translateY(2px);box-shadow:0 2px 0 #c87951}
.hero-count{color:#c9baca;font-size:12px}.hero-count span{color:#f7c17e}.hero-sparkle{position:absolute;color:#f7be7b;opacity:.7}.hero-sparkle-one{right:13%;top:25%;font-size:30px}.hero-sparkle-two{right:26%;bottom:22%;font-size:22px}.hero-sparkle-three{right:7%;bottom:18%;font-size:15px}
.studio-intro{max-width:1380px;padding:46px 40px 22px;margin:auto;display:flex;align-items:end;justify-content:space-between;gap:20px}.section-kicker,.overline{color:#a1849b;margin:0 0 8px}.studio-intro h2{font-size:32px;margin:0}.studio-intro h2 span{font-family:system-ui;font-size:20px;color:#e1a46b}.intro-copy{margin:7px 0 0;color:#786f7e;line-height:1.55}.surprise-btn{border:1px solid #e2d6e4;background:#fffaf6;color:#67498a;font-weight:800;border-radius:12px;padding:12px 16px;white-space:nowrap}.surprise-btn span{font-size:17px;color:#c8834e}
.studio-layout{max-width:1380px;margin:auto;padding:0 40px 50px;display:grid;grid-template-columns:250px minmax(350px,1fr) 260px;grid-template-areas:"gallery canvas tools";gap:20px;align-items:start}
.gallery-panel,.canvas-panel,.tools-panel{background:var(--paper);border:1px solid #ede6df;border-radius:20px;box-shadow:var(--shadow)}
.gallery-panel{grid-area:gallery;padding:20px 16px}.canvas-panel{grid-area:canvas;overflow:hidden}.tools-panel{grid-area:tools;padding:20px}
.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h3,.canvas-head h3{font-family:Georgia,serif;font-size:20px;letter-spacing:-.025em;margin:0}.count-pill{background:#f5edf6;color:#76578d;border-radius:20px;font-weight:800;font-size:11px;padding:6px 9px}.gallery-help{font-size:12px;color:#958b98;margin:7px 0 16px}
.gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:760px;overflow-y:auto;padding:2px 4px 4px 2px;scrollbar-width:thin;scrollbar-color:#d9cbd8 transparent}.page-card{background:#fbf8f2;border:1.5px solid #ece4de;border-radius:12px;padding:5px;text-align:left;color:var(--ink);min-width:0;position:relative}.page-card:hover{border-color:#c5a6d9}.page-card.active{border-color:#9e75bb;box-shadow:0 0 0 2px #eee3f5}.page-card img{width:100%;height:auto;aspect-ratio:3/3.7;object-fit:contain;background:#fff;border-radius:7px;display:block}.page-card-label{display:block;font-weight:800;font-size:10px;line-height:1.2;padding:7px 2px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-card-number{position:absolute;top:9px;left:9px;background:#f5e9f5;color:#78518d;border-radius:6px;padding:3px 5px;font-weight:800;font-size:9px}
.canvas-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 24px 17px}.canvas-head .overline{font-size:9px;margin-bottom:6px}.canvas-head h3{font-size:21px}.page-arrows{display:flex;gap:8px}.page-arrows button{width:36px;height:36px;background:#faf5f4;border:1px solid #e9e1df;color:#695774;border-radius:10px;font-size:19px;line-height:1}.page-arrows button:hover{background:#f4e9f6}
.art-frame{background:#e9e1db;padding:18px;position:relative;display:flex;align-items:center;justify-content:center;min-height:380px}.art-frame canvas{display:block;max-width:100%;height:auto;width:100%;background:white;box-shadow:0 4px 14px rgba(60,43,50,.12);touch-action:none;cursor:crosshair}.canvas-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#eee7e0;z-index:2;font-weight:700;color:#806b82}.canvas-loading span{color:#d4915c;padding-left:6px}.canvas-loading.hidden{display:none}
.canvas-caption{padding:13px 22px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8c7b8e;font-size:11px}.canvas-caption #tool-hint{color:#765c81;font-weight:700}
.tiny-sparkle{font-size:28px;color:#e6ab73}.tools-heading{margin-bottom:24px}.tool-group{margin:0 0 23px}.control-label{color:#8e8091;margin:0 0 11px}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool{border:1px solid #e8e0e1;border-radius:12px;padding:9px 4px;background:#fffbf8;min-height:67px;color:#6f5d73;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-weight:800;font-size:11px}.tool-icon{font-family:system-ui,sans-serif;font-size:22px;font-weight:500;line-height:1.1}.tool.active{border-color:#b48cc9;background:#f4eaf7;color:#70448e;box-shadow:inset 0 0 0 1px #b48cc9}.tool:hover{background:#f8f0f8}
.label-row{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.palette-label{color:#a698a4;font-size:10px}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 7px;margin-bottom:13px}.swatch{width:30px;height:30px;border-radius:50%;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px rgba(79,58,63,.13);padding:0}.swatch:hover{transform:scale(1.09)}.swatch.active{box-shadow:0 0 0 2px #73508f,0 0 0 4px #f7edf8}
.custom-colour{display:flex;align-items:center;gap:7px;color:#826c82;font-size:11px;font-weight:800;cursor:pointer}.rainbow-dot{width:17px;height:17px;border-radius:50%;background:conic-gradient(#f47b83,#f5c25b,#9cd794,#7bc7d9,#a88ce6,#f47b83)}.custom-colour input{width:26px;height:22px;padding:0;border:0;background:none;cursor:pointer}.size-group input{width:100%;accent-color:#9867ae}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-btn{border:1px solid #e7dcdf;border-radius:10px;background:#fffaf8;color:#705d70;padding:11px 8px;font-weight:800;font-size:11px}.action-btn span{font-size:16px;padding-right:3px}.action-btn:hover{background:#f5eef5}.action-btn:disabled{opacity:.42;cursor:not-allowed}.download-btn{grid-column:1/-1;margin-top:3px;padding:13px 10px;font-size:12px}.download-btn span{font-size:19px}.save-note{border-top:1px solid #f0e8e4;color:#a296a0;font-size:10px;line-height:1.5;margin:20px 0 0;padding-top:14px}.save-note span{color:#bd87a2}
.bottom-note{max-width:1300px;margin:0 auto 45px;background:#efe6f1;border-radius:20px;min-height:130px;padding:26px 50px;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden}.moon-icon{width:62px;height:62px;border-radius:50%;background:#fff8ee;color:#c48c63;font-size:38px;display:grid;place-items:center}.bottom-note h2{font-size:24px;margin:0 0 6px;color:#493052}.bottom-note p{margin:0;color:#88778a;font-size:13px}.bottom-sparkle{margin-left:auto;font-size:35px;color:#d3a6ba}
footer{padding:22px max(5vw,28px);background:#21162d;color:#cdbed1;display:flex;justify-content:space-between;gap:20px;font-size:11px}footer span:first-child{font-family:Georgia,serif;color:#fff4e4;font-weight:700;font-size:15px}footer span span{color:#ebb979}
dialog{border:0;border-radius:20px;padding:0;max-width:min(420px,calc(100vw - 32px));box-shadow:0 25px 80px #180d2780;color:var(--ink);background:#fffaf7}dialog::backdrop{background:rgba(32,21,47,.65)}.dialog-content{padding:28px;text-align:center}.dialog-icon{font-size:35px;color:#be8ab2}.dialog-content h2{font-family:Georgia,serif;font-size:27px;margin:8px 0}.dialog-content p{line-height:1.6;color:#817389;font-size:13px}.dialog-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}.dialog-actions .action-btn{font-size:12px;padding:11px 16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mobile-paint-bar{display:none}
@media(min-width:821px){.tools-panel,.gallery-panel{position:sticky;top:12px}}
@media(max-width:1100px){.studio-layout{grid-template-columns:205px minmax(320px,1fr) 225px;gap:13px;padding-left:24px;padding-right:24px}.gallery-panel,.tools-panel{padding:16px}.studio-intro{padding-left:25px;padding-right:25px}.hero-inner{padding-left:50px}.palette{gap:8px 3px}.swatch{width:27px;height:27px}.bottom-note{margin-left:24px;margin-right:24px}}
@media(max-width:820px){.topbar{height:60px;padding:0 20px}.topbar-note{display:none}.hero-inner{min-height:auto;padding:30px 24px;gap:25px}.hero-cover{width:124px}.hero h1{font-size:36px}.hero-copy p{font-size:13px;line-height:1.45;margin:10px 0 15px}.eyebrow{font-size:9px;margin-bottom:8px}.hero-sparkle-one,.hero-sparkle-two{display:none}.studio-intro{padding:36px 20px 20px}.studio-intro h2{font-size:28px}.studio-layout{display:flex;flex-direction:column;gap:14px;padding:0 16px 35px}.tools-panel,.canvas-panel,.gallery-panel{width:100%}.tools-panel{order:0;padding:18px}.canvas-panel{order:1}.gallery-panel{order:2}.tools-heading{margin-bottom:16px}.tool-group{margin-bottom:16px}.tools-grid{grid-template-columns:repeat(4,1fr)}.tool{min-height:60px}.palette{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.swatch{height:31px;width:31px}.size-group{margin-bottom:12px}.actions{grid-template-columns:1fr 1fr 1.5fr}.download-btn{grid-column:auto;margin:0;box-shadow:none}.download-btn:hover{box-shadow:none}.save-note{margin-top:13px;padding-top:10px}.gallery-grid{grid-template-columns:repeat(4,1fr);max-height:none;overflow:visible}.page-card img{aspect-ratio:3/3.7}.bottom-note{margin:0 16px 30px;padding:22px;min-height:110px}.bottom-note h2{font-size:20px}.bottom-note p{line-height:1.45}.mobile-paint-bar.visible{display:block;position:fixed;z-index:20;left:0;right:0;bottom:0;padding:7px 12px max(9px,env(safe-area-inset-bottom));background:rgba(255,251,248,.97);border-top:1px solid #e6d9e5;box-shadow:0 -8px 25px #3924481a}.mobile-tools{display:flex;gap:5px;justify-content:space-between;margin-bottom:8px}.mobile-tools button{flex:1;background:#f7eef6;border:1px solid #ebdeeb;color:#6b5273;border-radius:8px;padding:7px 3px;font-size:11px;font-weight:800}.mobile-tools button[aria-pressed=true]{background:#e4cfed;border-color:#ae86c0;color:#57326e}.mobile-tools button:disabled{opacity:.42}.mobile-palette{display:flex;gap:10px;overflow-x:auto;padding:2px 3px 5px;scrollbar-width:none}.mobile-palette .swatch{flex:0 0 30px;width:30px;height:30px}}
@media(max-width:480px){.topbar{padding:0 16px}.brand{font-size:20px}.top-link{font-size:11px}.hero-inner{gap:18px;padding:25px 16px 27px}.hero-cover{width:94px}.hero h1{font-size:28px}.hero-copy p{font-size:12px}.eyebrow{font-size:8px}.hero-actions{gap:9px;flex-wrap:wrap}.hero-actions .primary-btn{font-size:12px;padding:10px 13px}.hero-count{font-size:10px}.studio-intro{padding:30px 16px 16px;align-items:center}.studio-intro h2{font-size:24px}.intro-copy{font-size:12px}.surprise-btn{font-size:11px;padding:10px}.tools-grid{gap:5px}.tool{font-size:10px}.palette{gap:8px}.swatch{height:29px;width:29px}.canvas-head{padding:17px}.canvas-head h3{font-size:18px}.art-frame{padding:10px;min-height:300px}.canvas-caption{padding:12px 14px;flex-wrap:wrap}.gallery-grid{grid-template-columns:repeat(3,1fr)}.bottom-note{gap:14px}.moon-icon{width:48px;height:48px;flex:none;font-size:30px}.bottom-sparkle{display:none}footer{padding:20px 16px;font-size:10px}}
@media(max-width:820px){.mobile-palette-hint{font-size:9px;text-align:right;color:#8a768d;padding:0 3px}}
