A lightweight Clip Studio Paint alternative with real-time multiplayer collaborative drawing. Built with Tauri and React.
TypeScript animationcartoonclip-studio-paintcollaborativedesktop-appdigital-paintingdrawing-appillustrationmangamultiplayeropen-sourcerusttaurithreejswebglwebtoon
landing page
sora4b3289fac2fe
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlnew file mode 100644index 0000000..dba752a--- /dev/null+++ b/.github/workflows/pages.yml@@ -0,0 +1,105 @@+name: Deploy Landing Page++on:+ push:+ branches:+ - main+ paths:+ - 'site/**'+ - '.github/workflows/pages.yml'+ release:+ types:+ - published+ - edited+ - deleted+ workflow_dispatch:++permissions:+ contents: read+ pages: write+ id-token: write++concurrency:+ group: pages+ cancel-in-progress: false++jobs:+ deploy:+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}+ runs-on: ubuntu-latest++ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Fetch published GitHub releases metadata+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GITHUB_REPOSITORY: ${{ github.repository }}+ run: |+ node -e '+ const fs = require("fs");+ const repo = process.env.GITHUB_REPOSITORY;+ const token = process.env.GITHUB_TOKEN;+ const url = `https://api.github.com/repos/${repo}/releases?per_page=10`;++ (async () => {+ const res = await fetch(url, {+ headers: {+ Accept: "application/vnd.github+json",+ Authorization: `Bearer ${token}`,+ "User-Agent": "inkstudio-pages-sync",+ "X-GitHub-Api-Version": "2022-11-28",+ },+ });++ if (!res.ok) {+ console.error(`GitHub API error: ${res.status} ${res.statusText}`);+ process.exit(1);+ }++ const raw = await res.json();+ const releases = (Array.isArray(raw) ? raw : [])+ .filter((r) => r && !r.draft)+ .map((r) => ({+ tag_name: String(r.tag_name || ""),+ name: String(r.name || r.tag_name || ""),+ published_at: String(r.published_at || ""),+ prerelease: Boolean(r.prerelease),+ html_url: String(r.html_url || ""),+ body: String(r.body || "").slice(0, 4000),+ assets: (Array.isArray(r.assets) ? r.assets : []).map((a) => ({+ name: String(a.name || ""),+ size: Number(a.size || 0),+ download_count: Number(a.download_count || 0),+ browser_download_url: String(a.browser_download_url || ""),+ })),+ }));++ const payload = {+ generatedAt: new Date().toISOString(),+ repo,+ releases,+ };++ fs.writeFileSync("site/releases.json", JSON.stringify(payload, null, 2) + "\n", "utf8");+ console.log(`Synced ${releases.length} published release(s) to site/releases.json`);+ })().catch((err) => {+ console.error(err);+ process.exit(1);+ });+ '++ - name: Setup Pages+ uses: actions/configure-pages@v5++ - name: Upload Pages artifact+ uses: actions/upload-pages-artifact@v3+ with:+ path: './site'++ - name: Deploy to GitHub Pages+ id: deployment+ uses: actions/deploy-pages@v4diff --git a/site/.nojekyll b/site/.nojekyllnew file mode 100644index 0000000..e69de29diff --git a/site/app.js b/site/app.jsnew file mode 100644index 0000000..0a3acf8--- /dev/null+++ b/site/app.js@@ -0,0 +1,978 @@+'use strict';++(() => {+ const REPO = 'praisesora/inkstudio';+ const RELEASES_PAGE_URL = `https://github.com/${REPO}/releases`;+ const LATEST_PAGE_URL = `https://github.com/${REPO}/releases/latest`;+ const API_URL = `https://api.github.com/repos/${REPO}/releases?per_page=8`;+ const DOWNLOAD_PREFIX = `https://github.com/${REPO}/releases/`;+ const CACHE_KEY = 'inkstudio_releases_v1';+ const CACHE_TTL_MS = 10 * 60 * 1000;++ /* --------------------------------------------------------------------------+ * Utilities+ * -------------------------------------------------------------------------- */+ function safeReleaseUrl(raw) {+ if (typeof raw !== 'string') return RELEASES_PAGE_URL;+ try {+ const parsed = new URL(raw);+ if (parsed.protocol === 'https:' && parsed.href.startsWith(DOWNLOAD_PREFIX)) {+ return parsed.href;+ }+ } catch {+ // fall through+ }+ return RELEASES_PAGE_URL;+ }++ function formatBytes(bytes) {+ if (!Number.isFinite(bytes) || bytes <= 0) return '';+ const units = ['B', 'KB', 'MB', 'GB'];+ let value = bytes;+ let idx = 0;+ while (value >= 1024 && idx < units.length - 1) {+ value /= 1024;+ idx += 1;+ }+ return `${value.toFixed(idx >= 2 ? 1 : 0)} ${units[idx]}`;+ }++ function formatDate(iso) {+ if (!iso) return '';+ const d = new Date(iso);+ if (Number.isNaN(d.getTime())) return '';+ return d.toISOString().slice(0, 10);+ }++ function detectVisitorOS() {+ const uaData = navigator.userAgentData && navigator.userAgentData.platform;+ const raw = (uaData || navigator.platform || navigator.userAgent || '').toLowerCase();+ if (raw.includes('win')) return 'windows';+ if (raw.includes('mac') || raw.includes('darwin')) return 'macos';+ if (raw.includes('linux') || raw.includes('x11')) return 'linux';+ return 'windows';+ }++ function el(tag, className, text) {+ const node = document.createElement(tag);+ if (className) node.className = className;+ if (text !== undefined && text !== null) node.textContent = String(text);+ return node;+ }++ /* --------------------------------------------------------------------------+ * Release Asset Classification+ * -------------------------------------------------------------------------- */+ function isInternalUpdaterAsset(name) {+ const lower = name.toLowerCase();+ return (+ lower === 'latest.json' ||+ lower.endsWith('.sig') ||+ lower.endsWith('.nsis.zip') ||+ lower.endsWith('.msi.zip') ||+ lower.endsWith('.app.tar.gz') ||+ lower.endsWith('.appimage.tar.gz')+ );+ }++ function classifyAsset(asset) {+ const name = String(asset.name || '');+ const lower = name.toLowerCase();+ if (!name || isInternalUpdaterAsset(name)) return null;++ const url = safeReleaseUrl(asset.browser_download_url || asset.url);+ const size = Number(asset.size || 0);+ const downloads = Number(asset.download_count || 0);++ if (lower.endsWith('.exe')) {+ return {+ os: 'windows',+ priority: 1,+ label: 'Windows Installer (NSIS)',+ badge: 'Recommended · .exe',+ recommended: true,+ name,+ url,+ size,+ downloads,+ };+ }+ if (lower.endsWith('.msi')) {+ return {+ os: 'windows',+ priority: 2,+ label: 'Windows Installer (MSI)',+ badge: 'MSI · x64',+ recommended: false,+ name,+ url,+ size,+ downloads,+ };+ }+ if (lower.endsWith('.dmg')) {+ const isArm = lower.includes('aarch64') || lower.includes('arm64');+ const isIntel = lower.includes('x64') || lower.includes('x86_64');+ const arch = isArm ? 'Apple Silicon' : isIntel ? 'Intel x64' : 'Universal';+ return {+ os: 'macos',+ priority: isArm ? 1 : 2,+ label: `macOS Disk Image (${arch})`,+ badge: `${arch} · .dmg`,+ recommended: isArm || (!isArm && !isIntel),+ name,+ url,+ size,+ downloads,+ };+ }+ if (lower.endsWith('.appimage')) {+ return {+ os: 'linux',+ priority: 1,+ label: 'Linux AppImage',+ badge: 'Portable · .AppImage',+ recommended: true,+ name,+ url,+ size,+ downloads,+ };+ }+ if (lower.endsWith('.deb')) {+ return {+ os: 'linux',+ priority: 2,+ label: 'Debian / Ubuntu Package',+ badge: '.deb',+ recommended: false,+ name,+ url,+ size,+ downloads,+ };+ }+ if (lower.endsWith('.rpm')) {+ return {+ os: 'linux',+ priority: 3,+ label: 'Fedora / RHEL Package',+ badge: '.rpm',+ recommended: false,+ name,+ url,+ size,+ downloads,+ };+ }+ return null;+ }++ function normalizeReleases(rawList) {+ if (!Array.isArray(rawList)) return [];+ return rawList+ .filter((r) => r && !r.draft)+ .map((r) => {+ const assets = Array.isArray(r.assets)+ ? r.assets.map(classifyAsset).filter(Boolean).sort((a, b) => a.priority - b.priority)+ : [];+ return {+ tag: String(r.tag_name || r.tag || ''),+ name: String(r.name || r.tag_name || r.tag || 'Release'),+ publishedAt: String(r.published_at || r.publishedAt || ''),+ prerelease: Boolean(r.prerelease),+ url: safeReleaseUrl(r.html_url || r.url || RELEASES_PAGE_URL),+ body: String(r.body || '').trim(),+ assets,+ };+ })+ .filter((r) => r.tag);+ }++ /* --------------------------------------------------------------------------+ * Release Loader (Static Snapshot + Cached Live GitHub API Fallback)+ * -------------------------------------------------------------------------- */+ async function loadSnapshot() {+ try {+ const res = await fetch('./releases.json', { cache: 'no-cache' });+ if (!res.ok) return null;+ const data = await res.json();+ if (!data || !Array.isArray(data.releases)) return null;+ return {+ generatedAt: data.generatedAt || null,+ releases: normalizeReleases(data.releases),+ };+ } catch {+ return null;+ }+ }++ function readSessionCache() {+ try {+ const raw = sessionStorage.getItem(CACHE_KEY);+ if (!raw) return null;+ const parsed = JSON.parse(raw);+ if (!parsed || Date.now() - parsed.ts > CACHE_TTL_MS) return null;+ return normalizeReleases(parsed.releases);+ } catch {+ return null;+ }+ }++ function writeSessionCache(releases) {+ try {+ sessionStorage.setItem(CACHE_KEY, JSON.stringify({ ts: Date.now(), releases }));+ } catch {+ // ignore storage quota errors+ }+ }++ async function loadLiveReleases() {+ const cached = readSessionCache();+ if (cached && cached.length > 0) return cached;++ try {+ const controller = new AbortController();+ const timer = window.setTimeout(() => controller.abort(), 6000);+ const res = await fetch(API_URL, {+ headers: { Accept: 'application/vnd.github+json' },+ signal: controller.signal,+ });+ window.clearTimeout(timer);+ if (!res.ok) return null;+ const data = await res.json();+ const normalized = normalizeReleases(data);+ writeSessionCache(normalized);+ return normalized;+ } catch {+ return null;+ }+ }++ /* --------------------------------------------------------------------------+ * Release UI Rendering (Zero innerHTML with untrusted data)+ * -------------------------------------------------------------------------- */+ const releaseState = {+ releases: [],+ activeOs: detectVisitorOS(),+ source: 'snapshot',+ };++ function getLatestStable() {+ return (+ releaseState.releases.find((r) => !r.prerelease) ||+ releaseState.releases[0] ||+ null+ );+ }++ function renderHeaderAndHero() {+ const latest = getLatestStable();+ const headerVer = document.getElementById('header-version');+ const heroPill = document.getElementById('hero-release-pill');+ const primaryBtn = document.getElementById('primary-download-btn');+ const primaryLabel = document.getElementById('primary-download-label');+ const primaryMeta = document.getElementById('primary-download-meta');+ const syncStatus = document.getElementById('sync-status');++ if (!latest) {+ if (headerVer) headerVer.textContent = 'releases';+ if (heroPill) heroPill.textContent = 'Tauri v2 · Rust';+ if (primaryBtn) primaryBtn.href = RELEASES_PAGE_URL;+ if (primaryLabel) primaryLabel.textContent = 'View GitHub Releases';+ if (primaryMeta) primaryMeta.textContent = 'No public release published yet · Build from source available below';+ if (syncStatus) syncStatus.textContent = 'Waiting for first published release';+ return;+ }++ if (headerVer) headerVer.textContent = latest.tag;+ if (heroPill) heroPill.textContent = `${latest.tag} · ${formatDate(latest.publishedAt) || 'Latest'}`;+ if (syncStatus) {+ syncStatus.textContent = `Latest: ${latest.tag} (${formatDate(latest.publishedAt)})`;+ }++ const visitorOs = detectVisitorOS();+ const osAssets = latest.assets.filter((a) => a.os === visitorOs);+ const preferred = osAssets[0] || latest.assets[0] || null;++ if (preferred && primaryBtn && primaryLabel && primaryMeta) {+ primaryBtn.href = preferred.url;+ const osNames = { windows: 'Windows', macos: 'macOS', linux: 'Linux' };+ const osName = osNames[preferred.os] || 'Desktop';+ primaryLabel.textContent = `Download for ${osName} (${latest.tag})`;+ const parts = [preferred.name];+ if (preferred.size) parts.push(formatBytes(preferred.size));+ parts.push('Auto-updates built in');+ primaryMeta.textContent = parts.join(' · ');+ } else if (primaryBtn && primaryLabel && primaryMeta) {+ primaryBtn.href = latest.url;+ primaryLabel.textContent = `Download ${latest.tag}`;+ primaryMeta.textContent = `Published ${formatDate(latest.publishedAt)} · GitHub Releases`;+ }+ }++ function renderBuildFromSource(container, introText) {+ const wrap = el('div', 'download-empty');+ wrap.appendChild(el('p', 'muted', introText));++ const pre = el('pre', 'code-block');+ pre.textContent =+ 'git clone https://github.com/praisesora/inkstudio.git\n' ++ 'cd inkstudio\n' ++ 'npm install && npm run tauri build';+ wrap.appendChild(pre);++ const req = el(+ 'p',+ 'muted',+ 'Requires Node.js 22+, stable Rust toolchain, and Tauri v2 OS prerequisites.'+ );+ wrap.appendChild(req);+ container.appendChild(wrap);+ }++ function renderDownloadTab(osKey) {+ releaseState.activeOs = osKey;+ document.querySelectorAll('.tab-btn').forEach((btn) => {+ const active = btn.dataset.os === osKey;+ btn.classList.toggle('active', active);+ btn.setAttribute('aria-selected', String(active));+ });++ const container = document.getElementById('download-content');+ if (!container) return;+ container.textContent = '';++ if (osKey === 'source') {+ renderBuildFromSource(+ container,+ 'Compile native Windows, macOS, or Linux binaries directly from source:'+ );+ return;+ }++ const latest = getLatestStable();+ if (!latest) {+ const empty = el('div', 'download-empty');+ empty.appendChild(+ el(+ 'p',+ 'muted',+ 'No published release artifacts found yet. Once a GitHub Release is published, installers appear here automatically.'+ )+ );+ const link = el('a', 'btn btn-panel btn-sm', 'Open GitHub Releases');+ link.href = RELEASES_PAGE_URL;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ link.style.alignSelf = 'flex-start';+ empty.appendChild(link);+ container.appendChild(empty);+ return;+ }++ const matching = latest.assets.filter((a) => a.os === osKey);+ if (matching.length === 0) {+ const osLabel = osKey === 'macos' ? 'macOS' : osKey === 'linux' ? 'Linux' : 'Windows';+ renderBuildFromSource(+ container,+ `Prebuilt ${osLabel} binaries are not attached to ${latest.tag} yet. Build locally from source or check GitHub Releases:`+ );+ return;+ }++ const list = el('div', 'asset-list');+ for (const asset of matching) {+ const row = el('div', `asset-row${asset.recommended ? ' recommended' : ''}`);++ const info = el('div', 'asset-info');+ const titleLine = el('div', 'asset-title-line');+ titleLine.appendChild(el('span', 'asset-title', asset.label));+ titleLine.appendChild(+ el('span', `badge${asset.recommended ? ' badge-accent' : ''}`, asset.badge)+ );+ info.appendChild(titleLine);+ info.appendChild(el('span', 'asset-filename mono', asset.name));++ const actions = el('div', 'asset-actions');+ const metaParts = [];+ if (asset.size) metaParts.push(formatBytes(asset.size));+ if (asset.downloads > 0) metaParts.push(`${asset.downloads.toLocaleString()} dl`);+ if (metaParts.length) {+ actions.appendChild(el('span', 'asset-size mono', metaParts.join(' · ')));+ }++ const btn = el(+ 'a',+ `btn ${asset.recommended ? 'btn-accent' : 'btn-panel'} btn-sm`,+ 'Download'+ );+ btn.href = asset.url;+ actions.appendChild(btn);++ row.appendChild(info);+ row.appendChild(actions);+ list.appendChild(row);+ }++ container.appendChild(list);+ }++ function renderReleaseHistory() {+ const host = document.getElementById('release-history');+ if (!host) return;+ host.textContent = '';++ if (releaseState.releases.length === 0) {+ const card = el('div', 'panel release-item');+ card.appendChild(+ el(+ 'p',+ 'muted',+ 'No published releases yet. Tag a release (v*) and publish it on GitHub to populate this feed automatically.'+ )+ );+ host.appendChild(card);+ return;+ }++ for (const rel of releaseState.releases.slice(0, 5)) {+ const card = el('article', 'panel release-item');+ const top = el('div', 'release-top');++ const titleGroup = el('div', 'release-title-group');+ const link = el('a', 'release-name', rel.name);+ link.href = rel.url;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ titleGroup.appendChild(link);+ titleGroup.appendChild(el('span', 'badge', rel.tag));+ if (rel.prerelease) {+ titleGroup.appendChild(el('span', 'badge', 'Pre-release'));+ }++ top.appendChild(titleGroup);+ top.appendChild(el('span', 'mono muted', formatDate(rel.publishedAt)));+ card.appendChild(top);++ if (rel.body) {+ const cleanBody = rel.body.length > 520 ? `${rel.body.slice(0, 520)}...` : rel.body;+ card.appendChild(el('p', 'release-notes', cleanBody));+ }++ if (rel.assets.length > 0) {+ const assetsBar = el('div', 'release-assets-inline');+ for (const asset of rel.assets) {+ const pill = el('a', 'asset-pill mono');+ pill.href = asset.url;+ pill.appendChild(el('span', '', asset.name));+ if (asset.size) {+ pill.appendChild(el('span', 'muted', formatBytes(asset.size)));+ }+ assetsBar.appendChild(pill);+ }+ card.appendChild(assetsBar);+ }++ host.appendChild(card);+ }+ }++ async function initReleases() {+ document.querySelectorAll('.tab-btn').forEach((btn) => {+ btn.addEventListener('click', () => renderDownloadTab(btn.dataset.os));+ });++ const snapshot = await loadSnapshot();+ if (snapshot && snapshot.releases.length > 0) {+ releaseState.releases = snapshot.releases;+ releaseState.source = 'snapshot';+ renderHeaderAndHero();+ renderDownloadTab(releaseState.activeOs);+ renderReleaseHistory();+ }++ const snapshotAgeMs =+ snapshot && snapshot.generatedAt+ ? Date.now() - new Date(snapshot.generatedAt).getTime()+ : Infinity;++ if (!snapshot || snapshot.releases.length === 0 || snapshotAgeMs > 5 * 60 * 1000) {+ const live = await loadLiveReleases();+ if (live && live.length > 0) {+ releaseState.releases = live;+ releaseState.source = 'api';+ }+ renderHeaderAndHero();+ renderDownloadTab(releaseState.activeOs);+ renderReleaseHistory();+ }+ }++ /* --------------------------------------------------------------------------+ * Interactive Hero Studio Canvas+ * -------------------------------------------------------------------------- */+ function initStudioCanvas() {+ const paperCanvas = document.getElementById('canvas-paper');+ const toneCanvas = document.getElementById('canvas-tone');+ const inkCanvas = document.getElementById('canvas-ink');+ const userCanvas = document.getElementById('canvas-user');+ if (!paperCanvas || !toneCanvas || !inkCanvas || !userCanvas) return;++ const W = userCanvas.width;+ const H = userCanvas.height;++ const layerMap = {+ paper: paperCanvas,+ tone: toneCanvas,+ ink: inkCanvas,+ user: userCanvas,+ };++ // 1. Paper layer with subtle manga manuscript crop marks+ const pCtx = paperCanvas.getContext('2d');+ if (pCtx) {+ pCtx.fillStyle = '#f8f8f6';+ pCtx.fillRect(0, 0, W, H);++ // Subtle print guide lines (classic manga non-photo blue)+ pCtx.strokeStyle = 'rgba(56, 189, 248, 0.28)';+ pCtx.lineWidth = 1;+ pCtx.strokeRect(28, 24, W - 56, H - 48);++ // Corner crop ticks+ pCtx.strokeStyle = 'rgba(22, 22, 22, 0.25)';+ const m = 18;+ const t = 10;+ const corners = [+ [m, m, 1, 1],+ [W - m, m, -1, 1],+ [m, H - m, 1, -1],+ [W - m, H - m, -1, -1],+ ];+ for (const [cx, cy, dx, dy] of corners) {+ pCtx.beginPath();+ pCtx.moveTo(cx, cy + dy * t);+ pCtx.lineTo(cx, cy);+ pCtx.lineTo(cx + dx * t, cy);+ pCtx.stroke();+ }+ }++ // 2. Screentone layer (60L dot halftone gradient in top panel + shadow wedge)+ const tCtx = toneCanvas.getContext('2d');+ if (tCtx) {+ tCtx.fillStyle = '#262626';+ // Upper-left manga panel sky tone+ for (let y = 52; y < 290; y += 7) {+ const progress = 1 - (y - 52) / 238;+ const r = Math.max(0.6, progress * 2.2);+ for (let x = 52; x < 548; x += 7) {+ const offset = ((y / 7) % 2) * 3.5;+ tCtx.beginPath();+ tCtx.arc(x + offset, y, r, 0, Math.PI * 2);+ tCtx.fill();+ }+ }+ // Lower-right shadow tone+ for (let y = 328; y < 528; y += 6) {+ for (let x = 584; x < 908; x += 6) {+ if (x - 584 > (528 - y) * 1.1) {+ tCtx.beginPath();+ tCtx.arc(x, y, 1.35, 0, Math.PI * 2);+ tCtx.fill();+ }+ }+ }+ }++ // 3. Crisp manga panel layout + perspective lines + speech balloon+ const iCtx = inkCanvas.getContext('2d');+ if (iCtx) {+ iCtx.strokeStyle = '#161616';+ iCtx.fillStyle = '#161616';+ iCtx.lineJoin = 'miter';++ // Panel 1 (Top Left — main wide panel)+ iCtx.lineWidth = 3;+ iCtx.strokeRect(48, 48, 504, 248);++ // Perspective vanishing point inside Panel 1+ iCtx.save();+ iCtx.beginPath();+ iCtx.rect(48, 48, 504, 248);+ iCtx.clip();++ // Horizon & subtle perspective guides+ const vpX = 270;+ const vpY = 205;+ iCtx.strokeStyle = 'rgba(59, 130, 246, 0.35)';+ iCtx.lineWidth = 1;+ for (let a = -6; a <= 6; a += 1) {+ iCtx.beginPath();+ iCtx.moveTo(vpX, vpY);+ iCtx.lineTo(vpX + Math.cos(a * 0.24) * 520, vpY + Math.sin(a * 0.24) * 520);+ iCtx.stroke();+ }+ iCtx.beginPath();+ iCtx.moveTo(48, vpY);+ iCtx.lineTo(552, vpY);+ iCtx.stroke();++ // Stylized architectural silhouettes (crisp manga ink blocks)+ iCtx.fillStyle = '#161616';+ iCtx.beginPath();+ iCtx.moveTo(48, 296);+ iCtx.lineTo(48, 122);+ iCtx.lineTo(156, 166);+ iCtx.lineTo(156, 296);+ iCtx.closePath();+ iCtx.fill();++ iCtx.beginPath();+ iCtx.moveTo(552, 296);+ iCtx.lineTo(552, 92);+ iCtx.lineTo(418, 152);+ iCtx.lineTo(418, 296);+ iCtx.closePath();+ iCtx.fill();++ // Window highlights on right building+ iCtx.fillStyle = '#f8f8f6';+ for (let row = 0; row < 4; row += 1) {+ for (let col = 0; col < 3; col += 1) {+ const wx = 440 + col * 32;+ const wy = 166 + row * 28 - col * 6;+ iCtx.fillRect(wx, wy, 14, 14);+ }+ }++ // Dynamic ink speedlines+ iCtx.strokeStyle = '#161616';+ iCtx.lineWidth = 1.5;+ for (let k = 0; k < 14; k += 1) {+ const angle = -2.6 + k * 0.14;+ iCtx.beginPath();+ iCtx.moveTo(vpX + Math.cos(angle) * 145, vpY + Math.sin(angle) * 145);+ iCtx.lineTo(vpX + Math.cos(angle) * 320, vpY + Math.sin(angle) * 320);+ iCtx.stroke();+ }+ iCtx.restore();++ // Panel 2 (Right Tall — clean sketch area)+ iCtx.strokeStyle = '#161616';+ iCtx.lineWidth = 3;+ iCtx.strokeRect(576, 48, 336, 484);++ // Speech balloon in Panel 2 top+ iCtx.fillStyle = '#ffffff';+ iCtx.beginPath();+ iCtx.ellipse(744, 126, 118, 44, 0, 0, Math.PI * 2);+ iCtx.fill();+ iCtx.lineWidth = 2.4;+ iCtx.stroke();++ // Balloon tail+ iCtx.beginPath();+ iCtx.moveTo(695, 165);+ iCtx.lineTo(668, 198);+ iCtx.lineTo(722, 169);+ iCtx.closePath();+ iCtx.fill();+ iCtx.beginPath();+ iCtx.moveTo(695, 165);+ iCtx.lineTo(668, 198);+ iCtx.lineTo(722, 169);+ iCtx.stroke();++ iCtx.fillStyle = '#161616';+ iCtx.font = '700 15px Inter, -apple-system, sans-serif';+ iCtx.textAlign = 'center';+ iCtx.fillText('DRAW HERE.', 744, 122);+ iCtx.font = '500 11px ui-monospace, monospace';+ iCtx.fillStyle = '#525252';+ iCtx.fillText('PRESSURE + STABILIZER', 744, 141);++ // Panel 3 (Bottom Left — open drafting canvas)+ iCtx.strokeStyle = '#161616';+ iCtx.lineWidth = 3;+ iCtx.strokeRect(48, 318, 504, 214);++ // Subtle wireframe reference cube inside Panel 3+ iCtx.strokeStyle = 'rgba(22, 22, 22, 0.24)';+ iCtx.lineWidth = 1.25;+ iCtx.strokeRect(92, 370, 84, 84);+ iCtx.strokeRect(122, 348, 84, 84);+ const edges = [+ [92, 370, 122, 348],+ [176, 370, 206, 348],+ [92, 454, 122, 432],+ [176, 454, 206, 432],+ ];+ for (const [x1, y1, x2, y2] of edges) {+ iCtx.beginPath();+ iCtx.moveTo(x1, y1);+ iCtx.lineTo(x2, y2);+ iCtx.stroke();+ }++ iCtx.fillStyle = 'rgba(22, 22, 22, 0.45)';+ iCtx.font = '500 10px ui-monospace, monospace';+ iCtx.textAlign = 'left';+ iCtx.fillText('3D REF / PERSPECTIVE SNAP', 92, 476);+ }++ // 4. Interactive User Drawing Layer+ const ctx = userCanvas.getContext('2d', { willReadFrequently: true });+ if (!ctx) return;++ const state = {+ tool: 'brush',+ color: '#161616',+ size: 6,+ smooth: 0.55,+ opacity: 1,+ drawing: false,+ lastX: 0,+ lastY: 0,+ smoothX: 0,+ smoothY: 0,+ lastPressure: 0.5,+ history: [],+ };++ const statusTool = document.getElementById('status-tool');+ const statusSmooth = document.getElementById('status-smoothing');+ const statusCoords = document.getElementById('status-coords');+ const pressureFill = document.getElementById('pressure-fill');+ const pressureVal = document.getElementById('pressure-val');+ const sizeSlider = document.getElementById('brush-size');+ const smoothSlider = document.getElementById('brush-smooth');+ const opacitySlider = document.getElementById('brush-opacity');+ const sizeReadout = document.getElementById('size-readout');+ const smoothReadout = document.getElementById('smooth-readout');+ const opacityReadout = document.getElementById('opacity-readout');+ const swatchIndicator = document.getElementById('active-swatch-indicator');++ function pushHistory() {+ if (state.history.length >= 25) state.history.shift();+ state.history.push(ctx.getImageData(0, 0, W, H));+ }++ function undoStroke() {+ const prev = state.history.pop();+ if (prev) {+ ctx.putImageData(prev, 0, 0);+ } else {+ ctx.clearRect(0, 0, W, H);+ }+ }++ function setTool(tool) {+ state.tool = tool;+ document.querySelectorAll('.tool-btn[data-tool]').forEach((b) => {+ b.classList.toggle('active', b.dataset.tool === tool);+ });+ if (statusTool) statusTool.textContent = tool === 'eraser' ? 'Eraser' : 'Brush';+ }++ function setColor(hex) {+ state.color = hex;+ if (swatchIndicator) swatchIndicator.style.background = hex;+ document.querySelectorAll('.swatch').forEach((s) => {+ s.classList.toggle('active', s.dataset.color === hex);+ });+ if (state.tool === 'eraser') setTool('brush');+ }++ function getCanvasPoint(e) {+ const rect = userCanvas.getBoundingClientRect();+ return {+ x: ((e.clientX - rect.left) / rect.width) * W,+ y: ((e.clientY - rect.top) / rect.height) * H,+ };+ }++ let rafId = 0;+ let pendingStatus = null;+ function scheduleStatus(x, y, pressure) {+ pendingStatus = { x, y, pressure };+ if (rafId) return;+ rafId = window.requestAnimationFrame(() => {+ rafId = 0;+ if (!pendingStatus) return;+ if (statusCoords) {+ statusCoords.textContent =+ pendingStatus.x !== null+ ? `${Math.round(pendingStatus.x)}, ${Math.round(pendingStatus.y)}px`+ : '— , —';+ }+ const pct = Math.round((pendingStatus.pressure || 0) * 100);+ if (pressureFill) pressureFill.style.width = `${pct}%`;+ if (pressureVal) pressureVal.textContent = `${pct}%`;+ });+ }++ function drawSegment(x0, y0, x1, y1, pressure) {+ ctx.save();+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ const widthScale = 0.35 + pressure * 0.95;+ ctx.lineWidth = Math.max(1, state.size * widthScale);++ if (state.tool === 'eraser') {+ ctx.globalCompositeOperation = 'destination-out';+ ctx.strokeStyle = 'rgba(0,0,0,1)';+ ctx.globalAlpha = 1;+ } else {+ ctx.globalCompositeOperation = 'source-over';+ ctx.strokeStyle = state.color;+ ctx.globalAlpha = state.opacity;+ }++ ctx.beginPath();+ ctx.moveTo(x0, y0);+ ctx.lineTo(x1, y1);+ ctx.stroke();+ ctx.restore();+ }++ userCanvas.addEventListener('pointerdown', (e) => {+ if (e.button !== 0 && e.pointerType === 'mouse') return;+ userCanvas.setPointerCapture(e.pointerId);+ pushHistory();+ const pt = getCanvasPoint(e);+ const pressure = e.pointerType === 'pen' && e.pressure > 0 ? e.pressure : 0.65;+ state.drawing = true;+ state.lastX = pt.x;+ state.lastY = pt.y;+ state.smoothX = pt.x;+ state.smoothY = pt.y;+ state.lastPressure = pressure;+ drawSegment(pt.x, pt.y, pt.x + 0.1, pt.y + 0.1, pressure);+ scheduleStatus(pt.x, pt.y, pressure);+ });++ userCanvas.addEventListener('pointermove', (e) => {+ const pt = getCanvasPoint(e);+ const rawPressure =+ e.pointerType === 'pen' && e.pressure > 0+ ? e.pressure+ : state.drawing+ ? 0.65+ : 0;++ if (!state.drawing) {+ scheduleStatus(pt.x, pt.y, 0);+ return;+ }++ const alpha = 1 - state.smooth * 0.82;+ const nextX = state.smoothX + (pt.x - state.smoothX) * alpha;+ const nextY = state.smoothY + (pt.y - state.smoothY) * alpha;+ const pressure = state.lastPressure * 0.6 + rawPressure * 0.4;++ drawSegment(state.lastX, state.lastY, nextX, nextY, pressure);+ state.lastX = nextX;+ state.lastY = nextY;+ state.smoothX = nextX;+ state.smoothY = nextY;+ state.lastPressure = pressure;+ scheduleStatus(nextX, nextY, pressure);+ });++ const endStroke = () => {+ if (!state.drawing) return;+ state.drawing = false;+ scheduleStatus(state.lastX, state.lastY, 0);+ };+ userCanvas.addEventListener('pointerup', endStroke);+ userCanvas.addEventListener('pointercancel', endStroke);+ userCanvas.addEventListener('pointerleave', () => {+ if (!state.drawing) scheduleStatus(null, null, 0);+ });++ // Controls wiring+ document.querySelectorAll('.tool-btn[data-tool]').forEach((btn) => {+ btn.addEventListener('click', () => setTool(btn.dataset.tool));+ });++ const undoBtn = document.getElementById('canvas-undo');+ if (undoBtn) undoBtn.addEventListener('click', undoStroke);++ const clearBtn = document.getElementById('canvas-clear');+ if (clearBtn) {+ clearBtn.addEventListener('click', () => {+ pushHistory();+ ctx.clearRect(0, 0, W, H);+ });+ }++ document.querySelectorAll('.swatch').forEach((btn) => {+ btn.addEventListener('click', () => setColor(btn.dataset.color));+ });++ if (sizeSlider) {+ sizeSlider.addEventListener('input', () => {+ state.size = Number(sizeSlider.value);+ if (sizeReadout) sizeReadout.textContent = `${state.size} px`;+ });+ }++ if (smoothSlider) {+ smoothSlider.addEventListener('input', () => {+ const val = Number(smoothSlider.value);+ state.smooth = val / 100;+ if (smoothReadout) smoothReadout.textContent = `${val}%`;+ if (statusSmooth) statusSmooth.textContent = val > 0 ? 'Bézier' : 'Direct';+ });+ }++ if (opacitySlider) {+ opacitySlider.addEventListener('input', () => {+ const val = Number(opacitySlider.value);+ state.opacity = val / 100;+ if (opacityReadout) opacityReadout.textContent = `${val}%`;+ });+ }++ document.querySelectorAll('.layer-eye').forEach((btn) => {+ btn.addEventListener('click', () => {+ const key = btn.dataset.layer;+ const target = layerMap[key];+ if (!target) return;+ const visible = btn.classList.toggle('active');+ target.style.visibility = visible ? 'visible' : 'hidden';+ });+ });++ // Keyboard shortcuts (ignored when typing in inputs)+ window.addEventListener('keydown', (e) => {+ const tag = document.activeElement && document.activeElement.tagName;+ if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') return;++ if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'z') {+ e.preventDefault();+ undoStroke();+ return;+ }+ if (e.ctrlKey || e.metaKey || e.altKey) return;++ const key = e.key.toLowerCase();+ if (key === 'b') setTool('brush');+ else if (key === 'e') setTool('eraser');+ else if (key === '[' && sizeSlider) {+ sizeSlider.value = String(Math.max(2, state.size - 2));+ sizeSlider.dispatchEvent(new Event('input'));+ } else if (key === ']' && sizeSlider) {+ sizeSlider.value = String(Math.min(42, state.size + 2));+ sizeSlider.dispatchEvent(new Event('input'));+ }+ });+ }++ document.addEventListener('DOMContentLoaded', () => {+ initStudioCanvas();+ void initReleases();+ });+})();diff --git a/site/assets/app-icon.png b/site/assets/app-icon.pngnew file mode 100644index 0000000..3a92606Binary files /dev/null and b/site/assets/app-icon.png differdiff --git a/site/assets/favicon.ico b/site/assets/favicon.iconew file mode 100644index 0000000..6ed53eeBinary files /dev/null and b/site/assets/favicon.ico differdiff --git a/site/index.html b/site/index.htmlnew file mode 100644index 0000000..eb2e279--- /dev/null+++ b/site/index.html@@ -0,0 +1,537 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' https://api.github.com; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'none'">+ <title>Ink Studio — Digital Painting, Manga & Real-Time Collaboration</title>+ <meta name="description" content="Desktop digital painting, illustration, and manga application with WebGL brushes, sparse-tile layers, 3D reference, cel animation, and real-time Rust multiplayer. Free and open-source under GPL-3.0.">+ <meta name="theme-color" content="#161616">+ <meta property="og:title" content="Ink Studio — Collaborative Drawing Studio">+ <meta property="og:description" content="WebGL brush engine, manga & webtoon tools, 3D pose reference, cel animation, and real-time multiplayer. Built with Tauri, Rust, and React.">+ <meta property="og:type" content="website">+ <link rel="icon" href="./assets/favicon.ico" sizes="any">+ <link rel="icon" type="image/png" href="./assets/app-icon.png">+ <link rel="stylesheet" href="./styles.css">+ <script src="./app.js" defer></script>+</head>+<body>+ <!-- Studio Header / Menu Bar -->+ <header class="titlebar" role="banner">+ <div class="titlebar-left">+ <a href="#top" class="brand" aria-label="Ink Studio Home">+ <img src="./assets/app-icon.png" alt="" width="20" height="20" class="brand-icon">+ <span class="brand-name">Ink Studio</span>+ </a>+ <nav class="menubar" aria-label="Primary">+ <a href="#studio" class="menu-item">Workspace</a>+ <a href="#download" class="menu-item">Download</a>+ <a href="#features" class="menu-item">Features</a>+ <a href="#formats" class="menu-item">Formats</a>+ <a href="#releases" class="menu-item">Releases</a>+ </nav>+ </div>++ <div class="titlebar-center" aria-hidden="true">+ <span class="doc-pill">+ <span class="doc-dot"></span>+ <span>ink-studio.sora</span>+ <span class="doc-sep">/</span>+ <span id="header-version" class="mono muted">latest</span>+ </span>+ </div>++ <div class="titlebar-right">+ <a href="https://discord.gg/37dYhgBePe" target="_blank" rel="noopener noreferrer" class="btn btn-ghost btn-sm" title="Join Discord">+ <svg class="icon discord-icon" viewBox="0 0 24 24" aria-hidden="true">+ <path fill="currentColor" d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.028ZM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"/>+ </svg>+ <span class="hide-sm">Discord</span>+ </a>+ <a href="https://github.com/praisesora/inkstudio" target="_blank" rel="noopener noreferrer" class="btn btn-ghost btn-sm" title="Source code on GitHub">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/>+ <path d="M9 18c-4.51 2-5-2-7-2"/>+ </svg>+ <span class="hide-sm">GitHub</span>+ </a>+ <a href="#download" id="header-download-btn" class="btn btn-accent btn-sm">Download</a>+ </div>+ </header>++ <main id="top" class="page">+ <!-- Hero + Interactive Studio Window -->+ <section id="studio" class="hero">+ <div class="hero-top">+ <div class="hero-copy">+ <div class="eyebrow">+ <span class="status-dot"></span>+ <span>Open-Source Desktop Studio</span>+ <span class="sep">·</span>+ <span id="hero-release-pill" class="mono">Tauri v2 + Rust</span>+ </div>+ <h1>Digital painting, manga, and real-time collaboration.</h1>+ <p class="lead">+ WebGL brush engine, sparse-tile raster & vector layers, manga panels, 3D pose reference,+ cel animation, and built-in Rust multiplayer. Local-first, zero telemetry, GPL-3.0.+ </p>+ </div>++ <div class="hero-actions">+ <div class="cta-row">+ <a id="primary-download-btn" href="https://github.com/praisesora/inkstudio/releases/latest" class="btn btn-accent btn-lg">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>+ <polyline points="7 10 12 15 17 10"/>+ <line x1="12" y1="15" x2="12" y2="3"/>+ </svg>+ <span id="primary-download-label">Download Latest</span>+ </a>+ <a href="#download" class="btn btn-panel btn-lg">All Installers</a>+ </div>+ <div id="primary-download-meta" class="cta-meta mono">+ Windows x64 · SignPath signed · Auto-updates built in+ </div>+ </div>+ </div>++ <!-- Interactive App Shell Preview -->+ <div class="studio-frame" aria-label="Interactive Ink Studio workspace preview">+ <!-- App Window Chrome -->+ <div class="studio-chrome">+ <div class="studio-tabs">+ <span class="studio-tab active">+ <span class="tab-badge">SORA</span>+ <span>sketch-panel-01.sora</span>+ </span>+ <span class="studio-tab muted">+ <span class="tab-badge">INK</span>+ <span>ch04-webtoon.ink</span>+ </span>+ </div>+ <div class="studio-chrome-right">+ <span class="chrome-pill">+ <span class="peer-dot"></span>+ <span>Live Canvas</span>+ </span>+ <span class="chrome-pill mono">RGB / 8-bit</span>+ <div class="win-controls" aria-hidden="true">+ <span>–</span>+ <span>□</span>+ <span>×</span>+ </div>+ </div>+ </div>++ <!-- Workspace Body -->+ <div class="studio-body">+ <!-- Left Tool Rail -->+ <aside class="tool-rail" aria-label="Drawing tools">+ <button type="button" class="tool-btn active" data-tool="brush" title="G-Pen Brush (B)" aria-label="Brush tool">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">+ <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>+ <path d="m15 5 4 4"/>+ </svg>+ </button>+ <button type="button" class="tool-btn" data-tool="eraser" title="Eraser (E)" aria-label="Eraser tool">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">+ <path d="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"/>+ <path d="M22 21H7"/>+ <path d="m5 11 9 9"/>+ </svg>+ </button>+ <div class="rail-sep"></div>+ <button type="button" class="tool-btn" id="canvas-undo" title="Undo stroke (Ctrl+Z)" aria-label="Undo">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">+ <path d="M3 7v6h6"/>+ <path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/>+ </svg>+ </button>+ <button type="button" class="tool-btn" id="canvas-clear" title="Clear your strokes" aria-label="Clear strokes">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">+ <path d="M3 6h18"/>+ <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>+ <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>+ </svg>+ </button>+ <div class="rail-spacer"></div>+ <div class="swatch-stack" aria-label="Active ink color">+ <span id="active-swatch-indicator" class="swatch-primary"></span>+ <span class="swatch-secondary"></span>+ </div>+ </aside>++ <!-- Center Canvas Viewport -->+ <div class="viewport" id="studio-viewport">+ <div class="canvas-stage" id="canvas-stage">+ <canvas id="canvas-paper" width="960" height="580"></canvas>+ <canvas id="canvas-tone" width="960" height="580"></canvas>+ <canvas id="canvas-ink" width="960" height="580"></canvas>+ <canvas id="canvas-user" width="960" height="580"></canvas>+ </div>+ <div class="viewport-hint mono">+ Draw directly on canvas · <kbd>B</kbd> Brush · <kbd>E</kbd> Eraser · <kbd>[</kbd><kbd>]</kbd> Size · <kbd>Ctrl+Z</kbd> Undo+ </div>+ </div>++ <!-- Right Dock Sidebar -->+ <aside class="dock-sidebar" aria-label="Tool and layer panels">+ <!-- Brush Properties -->+ <div class="dock-panel">+ <div class="panel-header">+ <span>Tool Property — G-Pen</span>+ <span class="mono muted" id="brush-preset-badge">.inkb</span>+ </div>+ <div class="panel-body">+ <label class="slider-row">+ <span class="slider-meta">+ <span>Brush Size</span>+ <span class="mono" id="size-readout">6 px</span>+ </span>+ <input type="range" id="brush-size" min="2" max="42" value="6">+ </label>++ <label class="slider-row">+ <span class="slider-meta">+ <span>Stabilizer</span>+ <span class="mono" id="smooth-readout">55%</span>+ </span>+ <input type="range" id="brush-smooth" min="0" max="90" value="55">+ </label>++ <label class="slider-row">+ <span class="slider-meta">+ <span>Opacity</span>+ <span class="mono" id="opacity-readout">100%</span>+ </span>+ <input type="range" id="brush-opacity" min="15" max="100" value="100">+ </label>++ <div class="swatches" role="group" aria-label="Ink swatches">+ <button type="button" class="swatch active" data-color="#161616" title="Sumi Black" aria-label="Black ink"></button>+ <button type="button" class="swatch" data-color="#3b82f6" title="Draft Blue" aria-label="Draft blue"></button>+ <button type="button" class="swatch" data-color="#ef4444" title="Correction Red" aria-label="Red ink"></button>+ <button type="button" class="swatch" data-color="#f59e0b" title="Highlight Amber" aria-label="Amber ink"></button>+ <button type="button" class="swatch" data-color="#10b981" title="Collab Emerald" aria-label="Emerald ink"></button>+ </div>+ </div>+ </div>++ <!-- Layers Panel -->+ <div class="dock-panel dock-panel-grow">+ <div class="panel-header">+ <span>Layers</span>+ <span class="mono muted">Normal · 100%</span>+ </div>+ <div class="layer-list" role="list">+ <div class="layer-row active" role="listitem">+ <button type="button" class="layer-eye active" data-layer="user" title="Toggle Your Strokes" aria-label="Toggle Your Strokes visibility">+ <svg class="icon-xs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>+ </button>+ <span class="layer-thumb thumb-user"></span>+ <span class="layer-meta">+ <span class="layer-name">Your Strokes</span>+ <span class="layer-sub mono">Raster · Active</span>+ </span>+ </div>++ <div class="layer-row" role="listitem">+ <button type="button" class="layer-eye active" data-layer="ink" title="Toggle Sample Lineart" aria-label="Toggle Sample Lineart visibility">+ <svg class="icon-xs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>+ </button>+ <span class="layer-thumb thumb-ink"></span>+ <span class="layer-meta">+ <span class="layer-name">Lineart — Inks</span>+ <span class="layer-sub mono">Vector · 100%</span>+ </span>+ </div>++ <div class="layer-row" role="listitem">+ <button type="button" class="layer-eye active" data-layer="tone" title="Toggle Screentone" aria-label="Toggle Screentone visibility">+ <svg class="icon-xs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>+ </button>+ <span class="layer-thumb thumb-tone"></span>+ <span class="layer-meta">+ <span class="layer-name">Screentone 60L</span>+ <span class="layer-sub mono">Multiply · 65%</span>+ </span>+ </div>++ <div class="layer-row" role="listitem">+ <button type="button" class="layer-eye active" data-layer="paper" title="Toggle Paper" aria-label="Toggle Paper visibility">+ <svg class="icon-xs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>+ </button>+ <span class="layer-thumb thumb-paper"></span>+ <span class="layer-meta">+ <span class="layer-name">Paper Base</span>+ <span class="layer-sub mono">960 × 580 px</span>+ </span>+ </div>+ </div>+ </div>+ </aside>+ </div>++ <!-- Status Bar (Matches StatusBar.tsx) -->+ <div class="studio-statusbar">+ <div class="status-group">+ <span class="status-chip">+ <strong id="status-tool">Brush</strong>+ <span class="status-div">|</span>+ <span class="mono">Color RGB</span>+ <span class="status-div">|</span>+ <span class="mono muted" id="status-smoothing">Bézier</span>+ </span>+ <span class="status-chip mono muted hide-sm" id="status-coords">— , —</span>+ </div>+ <div class="status-group">+ <span class="pressure-meter hide-sm" title="Stylus / pointer pressure">+ <span class="muted">Pressure</span>+ <span class="pressure-track"><span id="pressure-fill" class="pressure-fill"></span></span>+ <span id="pressure-val" class="mono">0%</span>+ </span>+ <span class="status-chip mono">100%</span>+ <span class="status-chip mono muted hide-sm">0°</span>+ </div>+ </div>+ </div>+ </section>++ <!-- Download & Auto-Synced Releases Section -->+ <section id="download" class="section">+ <div class="section-head">+ <div>+ <div class="section-kicker">Distribution</div>+ <h2>Download Ink Studio</h2>+ </div>+ <div class="sync-status mono" id="sync-status">Checking latest release...</div>+ </div>++ <div class="panel download-panel">+ <div class="download-tabs" role="tablist" aria-label="Operating system downloads">+ <button type="button" class="tab-btn active" role="tab" aria-selected="true" data-os="windows">Windows</button>+ <button type="button" class="tab-btn" role="tab" aria-selected="false" data-os="macos">macOS</button>+ <button type="button" class="tab-btn" role="tab" aria-selected="false" data-os="linux">Linux</button>+ <button type="button" class="tab-btn" role="tab" aria-selected="false" data-os="source">Build from Source</button>+ </div>++ <div id="download-content" class="download-content" aria-live="polite">+ <!-- Populated dynamically by app.js from releases.json / GitHub API -->+ <div class="download-empty">+ <p class="muted">Loading release packages from GitHub...</p>+ </div>+ </div>++ <div class="download-footer">+ <div class="signing-note">+ <svg class="icon-xs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"/>+ <path d="m9 12 2 2 4-4"/>+ </svg>+ <span>+ Official Windows binaries are code-signed via+ <a href="https://signpath.io/" target="_blank" rel="noopener noreferrer">SignPath.io</a>+ (certificate by+ <a href="https://signpath.org/" target="_blank" rel="noopener noreferrer">SignPath Foundation</a>).+ <a href="https://github.com/praisesora/inkstudio/blob/main/CODE_SIGNING_POLICY.md" target="_blank" rel="noopener noreferrer">Policy</a>+ </span>+ </div>+ <a href="https://github.com/praisesora/inkstudio/releases" target="_blank" rel="noopener noreferrer" class="mono link-muted">+ All GitHub Releases →+ </a>+ </div>+ </div>+ </section>++ <!-- Core Features -->+ <section id="features" class="section">+ <div class="section-head">+ <div>+ <div class="section-kicker">Architecture</div>+ <h2>Built for actual drawing workflows</h2>+ </div>+ <span class="mono muted">Zero cloud lock-in · Local scratch disk</span>+ </div>++ <div class="feature-grid">+ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>+ </svg>+ <span class="tag mono">WebGL</span>+ </div>+ <h3>Brush & Ink Engine</h3>+ <p>Pressure, tilt, velocity, taper, dual brush tips, paper textures, wet edges, color mixing, and custom pressure curves. Imports Clip Studio Paint <code>.sut</code> and native <code>.inkb</code> presets.</p>+ </article>++ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <polygon points="12 2 2 7 12 12 22 7 12 2"/>+ <polyline points="2 17 12 22 22 17"/>+ <polyline points="2 12 12 17 22 12"/>+ </svg>+ <span class="tag mono">17 Blends</span>+ </div>+ <h3>Sparse-Tile & Vector Layers</h3>+ <p>Raster tiles, editable vector strokes (pinch, width, simplify), clipping & layer masks, layer styles, Curves/Levels/Gradient Map adjustments, CMYK soft proofing, and 1-bit Monochrome mode.</p>+ </article>++ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <rect width="18" height="18" x="3" y="3" rx="2"/>+ <path d="M3 9h18"/>+ <path d="M9 21V9"/>+ </svg>+ <span class="tag mono">Manga / Webtoon</span>+ </div>+ <h3>Panels, Tones & Perspective</h3>+ <p>Frame border folders with panel splitting, parametric speech balloons, vertical typography, screentones, effect lines, 1/2/3-point perspective rulers with brush snapping, and 9:16 Webtoon slice export.</p>+ </article>++ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/>+ <path d="m3.3 7 8.7 5 8.7-5"/>+ <path d="M12 22V12"/>+ </svg>+ <span class="tag mono">Three.js</span>+ </div>+ <h3>3D Reference & LT Baking</h3>+ <p>Embedded 3D viewport with posable IK mannequin, pose presets, <code>.glb</code>/<code>.gltf</code>/<code>.obj</code> import, adjustable lights, camera-to-perspective-ruler sync, and line-and-tone (LT) extraction.</p>+ </article>++ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <rect width="18" height="18" x="3" y="3" rx="2"/>+ <path d="M7 3v18"/>+ <path d="M17 3v18"/>+ <path d="M3 7.5h4"/>+ <path d="M3 12h18"/>+ <path d="M3 16.5h4"/>+ <path d="M17 7.5h4"/>+ <path d="M17 16.5h4"/>+ </svg>+ <span class="tag mono">Cel + Time-lapse</span>+ </div>+ <h3>Animation & Time-lapse</h3>+ <p>Frame-by-frame cel animation timeline with onion skinning and stroke-based time-lapse recorder. Export directly to GIF, APNG, WebM, H.264 MP4, or PNG sequence archives.</p>+ </article>++ <article class="panel feature-card">+ <div class="feature-head">+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>+ <circle cx="9" cy="7" r="4"/>+ <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>+ <path d="M16 3.13a4 4 0 0 1 0 7.75"/>+ </svg>+ <span class="tag mono">Rust Axum WS</span>+ </div>+ <h3>Real-Time Multiplayer</h3>+ <p>Self-hosted Rust WebSocket server for up to 16 peers over LAN or public invite links via Cloudflare Tunnel. Live cursors, tile-level sync, layer reservation, and zero relay servers.</p>+ </article>+ </div>+ </section>++ <!-- Supported Formats & Shortcuts -->+ <section id="formats" class="section">+ <div class="two-col">+ <div class="panel info-panel">+ <div class="panel-header">+ <span>Supported Formats</span>+ <span class="mono muted">Interop</span>+ </div>+ <div class="format-list">+ <div class="format-row">+ <span class="format-label">Open</span>+ <div class="chip-wrap mono">+ <span class="chip">.sora</span><span class="chip">.ink</span><span class="chip">.psd</span><span class="chip">.psb</span><span class="chip">.clip</span><span class="chip">.csp</span><span class="chip">.png</span><span class="chip">.jpg</span><span class="chip">.webp</span><span class="chip">.gif</span><span class="chip">.svg</span>+ </div>+ </div>+ <div class="format-row">+ <span class="format-label">Save</span>+ <div class="chip-wrap mono">+ <span class="chip">.sora</span><span class="chip">.ink</span><span class="chip">.psd</span><span class="chip">.png</span><span class="chip">.jpg</span><span class="chip">.webp</span>+ </div>+ </div>+ <div class="format-row">+ <span class="format-label">Import</span>+ <div class="chip-wrap mono">+ <span class="chip">.inkb</span><span class="chip">.sut</span><span class="chip">.glb</span><span class="chip">.gltf</span><span class="chip">.obj</span>+ </div>+ </div>+ <div class="format-row">+ <span class="format-label">Export</span>+ <div class="chip-wrap mono">+ <span class="chip">.png</span><span class="chip">.zip slices</span><span class="chip">.gif</span><span class="chip">.apng</span><span class="chip">.webm</span><span class="chip">.mp4</span>+ </div>+ </div>+ </div>+ </div>++ <div class="panel info-panel">+ <div class="panel-header">+ <span>Default Keybinds</span>+ <span class="mono muted">Customizable (Ctrl + ,)</span>+ </div>+ <div class="shortcut-grid">+ <div class="shortcut-row"><kbd>B</kbd><span>Brush</span></div>+ <div class="shortcut-row"><kbd>E</kbd><span>Eraser</span></div>+ <div class="shortcut-row"><kbd>Ctrl+Alt+Drag</kbd><span>Resize brush</span></div>+ <div class="shortcut-row"><kbd>Space+Drag</kbd><span>Pan canvas</span></div>+ <div class="shortcut-row"><kbd>Shift+Space</kbd><span>Rotate canvas</span></div>+ <div class="shortcut-row"><kbd>Ctrl+T</kbd><span>Free transform</span></div>+ <div class="shortcut-row"><kbd>Ctrl+Shift+R</kbd><span>Perspective ruler</span></div>+ <div class="shortcut-row"><kbd>Tab</kbd><span>Toggle palettes</span></div>+ </div>+ <div class="stack-bar mono muted">+ <span>Tauri v2</span><span>·</span><span>Rust</span><span>·</span><span>React 19</span><span>·</span><span>LZ4 Scratch</span><span>·</span><span>WAL Recovery</span>+ </div>+ </div>+ </div>+ </section>++ <!-- Release History (Auto-populated) -->+ <section id="releases" class="section">+ <div class="section-head">+ <div>+ <div class="section-kicker">Changelog</div>+ <h2>Recent Releases</h2>+ </div>+ <a href="https://github.com/praisesora/inkstudio/releases" target="_blank" rel="noopener noreferrer" class="mono link-muted">+ GitHub Releases →+ </a>+ </div>+ <div id="release-history" class="release-history">+ <div class="panel release-item">+ <p class="muted">Loading release history...</p>+ </div>+ </div>+ </section>+ </main>++ <footer class="site-footer">+ <div class="footer-inner">+ <div class="footer-brand">+ <img src="./assets/app-icon.png" alt="" width="18" height="18" class="brand-icon">+ <span>Ink Studio</span>+ <span class="sep">·</span>+ <span class="muted">GPL-3.0 · Copyright © 2026 Sora</span>+ </div>+ <div class="footer-links">+ <a href="https://github.com/praisesora/inkstudio" target="_blank" rel="noopener noreferrer">Source</a>+ <a href="https://github.com/praisesora/inkstudio/releases" target="_blank" rel="noopener noreferrer">Releases</a>+ <a href="https://github.com/praisesora/inkstudio/issues" target="_blank" rel="noopener noreferrer">Issues</a>+ <a href="https://github.com/praisesora/inkstudio/blob/main/PRIVACY.md" target="_blank" rel="noopener noreferrer">Privacy</a>+ <a href="https://github.com/praisesora/inkstudio/blob/main/CODE_SIGNING_POLICY.md" target="_blank" rel="noopener noreferrer">Code Signing</a>+ <a href="https://discord.gg/37dYhgBePe" target="_blank" rel="noopener noreferrer">Discord</a>+ </div>+ </div>+ </footer>+</body>+</html>diff --git a/site/releases.json b/site/releases.jsonnew file mode 100644index 0000000..773bdb2--- /dev/null+++ b/site/releases.json@@ -0,0 +1,5 @@+{+ "generatedAt": null,+ "repo": "praisesora/inkstudio",+ "releases": []+}diff --git a/site/styles.css b/site/styles.cssnew file mode 100644index 0000000..5630487--- /dev/null+++ b/site/styles.css@@ -0,0 +1,1393 @@+:root {+ --bg-canvas: #161616;+ --bg-chrome: #1a1a1a;+ --bg-panel: #202020;+ --bg-hover: #2c2c2c;+ --border: rgba(255, 255, 255, 0.07);+ --border-strong: rgba(255, 255, 255, 0.14);+ --text-primary: #e5e5e5;+ --text-muted: #8a8a8a;+ --accent: #e5e5e5;+ --accent-contrast: #161616;+ --accent-subtle: rgba(229, 229, 229, 0.12);+ --accent-border: rgba(229, 229, 229, 0.32);+ --emerald: #34d399;+ --discord: #5865f2;+ --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;+}++*,+*::before,+*::after {+ box-sizing: border-box;+}++html {+ scroll-behavior: smooth;+ background: var(--bg-canvas);+ color: var(--text-primary);+ font-family: var(--font-sans);+ font-size: 14px;+ line-height: 1.5;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}++body {+ margin: 0;+ min-height: 100vh;+ background: var(--bg-canvas);+ color: var(--text-primary);+}++a {+ color: inherit;+ text-decoration: none;+}++button {+ font: inherit;+ color: inherit;+ background: none;+ border: none;+ padding: 0;+ cursor: pointer;+}++code,+.mono {+ font-family: var(--font-mono);+}++.muted {+ color: var(--text-muted);+}++.sep {+ color: rgba(255, 255, 255, 0.22);+}++.icon {+ width: 15px;+ height: 15px;+ flex-shrink: 0;+}++.icon-xs {+ width: 13px;+ height: 13px;+ flex-shrink: 0;+}++.discord-icon {+ color: var(--discord);+}++/* Minimalist scrollbars matching app */+::-webkit-scrollbar {+ width: 6px;+ height: 6px;+}++::-webkit-scrollbar-track {+ background: transparent;+}++::-webkit-scrollbar-thumb {+ background: #2c2c2c;+ border-radius: 9999px;+}++::-webkit-scrollbar-thumb:hover {+ background: #3d3d3d;+}++/* Studio Header / Titlebar */+.titlebar {+ position: sticky;+ top: 0;+ z-index: 40;+ height: 44px;+ background: rgba(26, 26, 26, 0.92);+ backdrop-filter: blur(8px);+ border-bottom: 1px solid var(--border);+ padding: 0 16px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+}++.titlebar-left,+.titlebar-right {+ display: flex;+ align-items: center;+ gap: 8px;+}++.brand {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding-right: 10px;+ border-right: 1px solid var(--border);+ font-weight: 600;+ font-size: 13px;+ letter-spacing: -0.01em;+}++.brand-icon {+ border-radius: 4px;+ background: #ffffff;+ padding: 1px;+ display: block;+}++.menubar {+ display: flex;+ align-items: center;+ gap: 2px;+}++.menu-item {+ padding: 4px 8px;+ border-radius: 4px;+ font-size: 12px;+ color: rgba(229, 229, 229, 0.78);+ transition: background-color 0.12s ease, color 0.12s ease;+}++.menu-item:hover {+ background: var(--bg-hover);+ color: var(--text-primary);+}++.titlebar-center {+ display: flex;+ align-items: center;+}++.doc-pill {+ display: inline-flex;+ align-items: center;+ gap: 7px;+ padding: 3px 10px;+ border-radius: 5px;+ background: var(--bg-panel);+ border: 1px solid var(--border);+ font-size: 11px;+}++.doc-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--accent);+ opacity: 0.75;+}++.doc-sep {+ color: rgba(255, 255, 255, 0.2);+}++/* Buttons (WelcomeScreen tokens) */+.btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 7px;+ border-radius: 5px;+ font-weight: 500;+ white-space: nowrap;+ transition: background-color 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;+}++.btn-sm {+ height: 28px;+ padding: 0 10px;+ font-size: 12px;+}++.btn-lg {+ height: 38px;+ padding: 0 16px;+ font-size: 13px;+}++.btn-accent {+ background: var(--accent);+ color: var(--accent-contrast);+}++.btn-accent:hover {+ opacity: 0.9;+}++.btn-panel {+ background: var(--bg-panel);+ color: var(--text-primary);+ border: 1px solid var(--border);+}++.btn-panel:hover {+ background: var(--bg-hover);+ border-color: var(--border-strong);+}++.btn-ghost {+ background: transparent;+ color: var(--text-primary);+}++.btn-ghost:hover {+ background: var(--bg-hover);+}++/* Page Container */+.page {+ max-width: 1220px;+ margin: 0 auto;+ padding: 28px 20px 64px;+ display: flex;+ flex-direction: column;+ gap: 56px;+}++/* Hero Section */+.hero {+ display: flex;+ flex-direction: column;+ gap: 22px;+}++.hero-top {+ display: flex;+ align-items: flex-end;+ justify-content: space-between;+ gap: 28px;+ flex-wrap: wrap;+}++.hero-copy {+ max-width: 640px;+}++.eyebrow {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ font-size: 11px;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.08em;+ margin-bottom: 10px;+}++.status-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--emerald);+}++h1 {+ margin: 0;+ font-size: clamp(26px, 3.6vw, 38px);+ line-height: 1.12;+ letter-spacing: -0.025em;+ font-weight: 600;+ color: var(--text-primary);+}++.lead {+ margin: 12px 0 0;+ font-size: 14px;+ color: var(--text-muted);+ max-width: 600px;+}++.hero-actions {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: 8px;+}++.cta-row {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+}++.cta-meta {+ font-size: 11px;+ color: var(--text-muted);+}++/* Interactive Studio Window */+.studio-frame {+ border-radius: 8px;+ overflow: hidden;+ border: 1px solid var(--border-strong);+ background: var(--bg-canvas);+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);+ display: flex;+ flex-direction: column;+}++.studio-chrome {+ height: 34px;+ background: var(--bg-chrome);+ border-bottom: 1px solid var(--border);+ padding: 0 10px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 10px;+ user-select: none;+}++.studio-tabs {+ display: flex;+ align-items: center;+ gap: 4px;+ height: 100%;+ overflow: hidden;+}++.studio-tab {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 4px 10px;+ border-radius: 4px;+ font-size: 11px;+ white-space: nowrap;+}++.studio-tab.active {+ background: var(--bg-panel);+ color: var(--text-primary);+ border: 1px solid var(--border);+}++.tab-badge {+ font-family: var(--font-mono);+ font-size: 9px;+ padding: 1px 4px;+ border-radius: 3px;+ background: rgba(255, 255, 255, 0.08);+ color: var(--text-muted);+}++.studio-chrome-right {+ display: flex;+ align-items: center;+ gap: 8px;+}++.chrome-pill {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 2px 8px;+ border-radius: 4px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid var(--border);+ font-size: 10px;+ color: rgba(229, 229, 229, 0.8);+}++.peer-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--emerald);+}++.win-controls {+ display: flex;+ align-items: center;+ gap: 12px;+ padding-left: 6px;+ color: var(--text-muted);+ font-size: 12px;+}++.studio-body {+ display: grid;+ grid-template-columns: 44px minmax(0, 1fr) 238px;+ min-height: 460px;+}++/* Left Tool Rail */+.tool-rail {+ background: var(--bg-panel);+ border-right: 1px solid var(--border);+ padding: 8px 6px;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 4px;+ user-select: none;+}++.tool-btn {+ width: 30px;+ height: 30px;+ border-radius: 5px;+ display: flex;+ align-items: center;+ justify-content: center;+ color: var(--text-muted);+ transition: background-color 0.1s ease, color 0.1s ease;+}++.tool-btn:hover {+ background: var(--bg-hover);+ color: var(--text-primary);+}++.tool-btn.active {+ background: var(--accent);+ color: var(--accent-contrast);+}++.rail-sep {+ width: 20px;+ height: 1px;+ background: var(--border);+ margin: 4px 0;+}++.rail-spacer {+ flex: 1;+}++.swatch-stack {+ position: relative;+ width: 24px;+ height: 24px;+ margin-bottom: 4px;+}++.swatch-primary,+.swatch-secondary {+ position: absolute;+ width: 15px;+ height: 15px;+ border-radius: 3px;+ border: 1px solid rgba(255, 255, 255, 0.3);+}++.swatch-primary {+ top: 0;+ left: 0;+ background: #161616;+ z-index: 2;+}++.swatch-secondary {+ bottom: 0;+ right: 0;+ background: #fafafa;+ z-index: 1;+}++/* Center Canvas Viewport */+.viewport {+ position: relative;+ background:+ radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);+ background-size: 16px 16px;+ background-color: var(--bg-canvas);+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 20px;+ overflow: hidden;+ user-select: none;+}++.canvas-stage {+ position: relative;+ width: 100%;+ max-width: 760px;+ aspect-ratio: 960 / 580;+ border-radius: 2px;+ overflow: hidden;+ box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);+ background:+ repeating-conic-gradient(#262626 0% 25%, #1d1d1d 0% 50%) 50% / 16px 16px;+ cursor: crosshair;+ touch-action: none;+}++.canvas-stage canvas {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ display: block;+ touch-action: none;+}++#canvas-paper,+#canvas-tone,+#canvas-ink {+ pointer-events: none;+}++#canvas-tone {+ mix-blend-mode: multiply;+ opacity: 0.7;+}++.viewport-hint {+ position: absolute;+ left: 12px;+ bottom: 10px;+ padding: 3px 8px;+ border-radius: 4px;+ background: rgba(22, 22, 22, 0.84);+ border: 1px solid var(--border);+ font-size: 10px;+ color: var(--text-muted);+ pointer-events: none;+}++kbd {+ display: inline-block;+ padding: 1px 5px;+ border-radius: 3px;+ background: var(--bg-hover);+ border: 1px solid var(--border-strong);+ font-family: var(--font-mono);+ font-size: 10px;+ color: var(--text-primary);+ line-height: 1.3;+}++/* Right Dock Sidebar */+.dock-sidebar {+ background: var(--bg-panel);+ border-left: 1px solid var(--border);+ display: flex;+ flex-direction: column;+ user-select: none;+}++.dock-panel {+ border-bottom: 1px solid var(--border);+ display: flex;+ flex-direction: column;+}++.dock-panel-grow {+ flex: 1;+ border-bottom: none;+}++.panel-header {+ height: 30px;+ padding: 0 10px;+ border-bottom: 1px solid var(--border);+ display: flex;+ align-items: center;+ justify-content: space-between;+ font-size: 11px;+ font-weight: 500;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.06em;+}++.panel-body {+ padding: 10px;+ display: flex;+ flex-direction: column;+ gap: 10px;+}++.slider-row {+ display: flex;+ flex-direction: column;+ gap: 4px;+ font-size: 11px;+ color: rgba(229, 229, 229, 0.85);+}++.slider-meta {+ display: flex;+ justify-content: space-between;+ align-items: center;+}++/* Range sliders copied directly from src/index.css */+input[type="range"] {+ -webkit-appearance: none;+ appearance: none;+ width: 100%;+ background: transparent;+ cursor: pointer;+ height: 16px;+ margin: 0;+ accent-color: var(--accent);+}++input[type="range"]:focus {+ outline: none;+}++input[type="range"]::-webkit-slider-runnable-track {+ height: 3px;+ background: #2c2c2c;+ border-radius: 9999px;+}++input[type="range"]::-moz-range-track {+ height: 3px;+ background: #2c2c2c;+ border-radius: 9999px;+}++input[type="range"]::-webkit-slider-thumb {+ -webkit-appearance: none;+ appearance: none;+ width: 10px;+ height: 10px;+ background: var(--accent);+ border: none;+ border-radius: 9999px;+ margin-top: -3.5px;+ transition: transform 0.1s ease;+}++input[type="range"]:hover::-webkit-slider-thumb {+ transform: scale(1.18);+}++input[type="range"]::-moz-range-thumb {+ width: 10px;+ height: 10px;+ background: var(--accent);+ border: none;+ border-radius: 9999px;+}++.swatches {+ display: flex;+ align-items: center;+ gap: 6px;+ padding-top: 2px;+}++.swatch {+ width: 20px;+ height: 20px;+ border-radius: 4px;+ border: 1px solid rgba(255, 255, 255, 0.18);+ transition: transform 0.1s ease, box-shadow 0.1s ease;+}++.swatch[data-color="#161616"] { background: #161616; }+.swatch[data-color="#3b82f6"] { background: #3b82f6; }+.swatch[data-color="#ef4444"] { background: #ef4444; }+.swatch[data-color="#f59e0b"] { background: #f59e0b; }+.swatch[data-color="#10b981"] { background: #10b981; }++.swatch.active {+ box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 3px var(--accent);+}++/* Layer List */+.layer-list {+ padding: 6px;+ display: flex;+ flex-direction: column;+ gap: 3px;+}++.layer-row {+ display: flex;+ align-items: center;+ gap: 7px;+ padding: 5px 6px;+ border-radius: 4px;+ transition: background-color 0.1s ease;+}++.layer-row:hover {+ background: rgba(255, 255, 255, 0.04);+}++.layer-row.active {+ background: var(--bg-hover);+}++.layer-eye {+ width: 22px;+ height: 22px;+ border-radius: 4px;+ display: flex;+ align-items: center;+ justify-content: center;+ color: rgba(255, 255, 255, 0.25);+}++.layer-eye.active {+ color: var(--text-primary);+}++.layer-eye:hover {+ background: rgba(255, 255, 255, 0.08);+}++.layer-thumb {+ width: 28px;+ height: 20px;+ border-radius: 2px;+ border: 1px solid var(--border-strong);+ flex-shrink: 0;+}++.thumb-user {+ background:+ repeating-conic-gradient(#333 0% 25%, #242424 0% 50%) 50% / 8px 8px;+}++.thumb-ink {+ background: linear-gradient(135deg, #f4f4f4 58%, #161616 58%, #161616 64%, #f4f4f4 64%);+}++.thumb-tone {+ background:+ radial-gradient(#3a3a3a 1px, #d8d8d8 1px);+ background-size: 4px 4px;+}++.thumb-paper {+ background: #f8f8f6;+}++.layer-meta {+ display: flex;+ flex-direction: column;+ min-width: 0;+}++.layer-name {+ font-size: 11px;+ font-weight: 500;+ color: var(--text-primary);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+}++.layer-sub {+ font-size: 10px;+ color: var(--text-muted);+}++/* Status Bar */+.studio-statusbar {+ height: 28px;+ background: var(--bg-chrome);+ border-top: 1px solid var(--border);+ padding: 0 10px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ font-size: 11px;+ user-select: none;+}++.status-group {+ display: flex;+ align-items: center;+ gap: 8px;+}++.status-chip {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 2px 7px;+ border-radius: 4px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid var(--border);+ font-size: 10px;+}++.status-div {+ color: rgba(255, 255, 255, 0.2);+}++.pressure-meter {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ font-size: 10px;+}++.pressure-track {+ width: 44px;+ height: 4px;+ border-radius: 9999px;+ background: var(--bg-hover);+ overflow: hidden;+}++.pressure-fill {+ display: block;+ height: 100%;+ width: 0%;+ background: var(--accent);+ transition: width 0.04s linear;+}++/* Sections & Generic Panels */+.section {+ display: flex;+ flex-direction: column;+ gap: 16px;+}++.section-head {+ display: flex;+ align-items: flex-end;+ justify-content: space-between;+ gap: 12px;+ flex-wrap: wrap;+}++.section-kicker {+ font-size: 11px;+ font-weight: 500;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.08em;+}++h2 {+ margin: 2px 0 0;+ font-size: 20px;+ font-weight: 600;+ letter-spacing: -0.02em;+}++h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;+ letter-spacing: -0.01em;+}++.panel {+ background: var(--bg-panel);+ border: 1px solid var(--border);+ border-radius: 6px;+ overflow: hidden;+}++.sync-status {+ font-size: 11px;+ color: var(--text-muted);+}++.link-muted {+ font-size: 11px;+ color: var(--text-muted);+ transition: color 0.12s ease;+}++.link-muted:hover {+ color: var(--text-primary);+}++/* Download Center */+.download-tabs {+ display: flex;+ align-items: center;+ gap: 2px;+ padding: 6px 8px;+ background: var(--bg-chrome);+ border-bottom: 1px solid var(--border);+ overflow-x: auto;+}++.tab-btn {+ padding: 6px 12px;+ border-radius: 4px;+ font-size: 12px;+ font-weight: 500;+ color: var(--text-muted);+ white-space: nowrap;+ transition: background-color 0.12s ease, color 0.12s ease;+}++.tab-btn:hover {+ background: var(--bg-hover);+ color: var(--text-primary);+}++.tab-btn.active {+ background: var(--bg-hover);+ color: var(--text-primary);+ box-shadow: inset 0 0 0 1px var(--border-strong);+}++.download-content {+ padding: 16px;+ display: flex;+ flex-direction: column;+ gap: 12px;+}++.asset-list {+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.asset-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 16px;+ padding: 12px 14px;+ border-radius: 5px;+ background: var(--bg-canvas);+ border: 1px solid var(--border);+ flex-wrap: wrap;+}++.asset-row.recommended {+ border-color: var(--accent-border);+}++.asset-info {+ display: flex;+ flex-direction: column;+ gap: 3px;+ min-width: 0;+}++.asset-title-line {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+}++.asset-title {+ font-size: 13px;+ font-weight: 600;+ color: var(--text-primary);+}++.asset-filename {+ font-size: 11px;+ color: var(--text-muted);+ word-break: break-all;+}++.badge {+ display: inline-flex;+ align-items: center;+ padding: 1px 6px;+ border-radius: 3px;+ font-family: var(--font-mono);+ font-size: 10px;+ background: var(--bg-hover);+ color: var(--text-primary);+}++.badge-accent {+ background: var(--accent-subtle);+ border: 1px solid var(--accent-border);+}++.asset-actions {+ display: flex;+ align-items: center;+ gap: 12px;+}++.asset-size {+ font-size: 11px;+ color: var(--text-muted);+}++.code-block {+ margin: 0;+ padding: 12px 14px;+ border-radius: 5px;+ background: var(--bg-canvas);+ border: 1px solid var(--border);+ font-family: var(--font-mono);+ font-size: 12px;+ color: var(--text-primary);+ overflow-x: auto;+ line-height: 1.6;+}++.download-empty {+ padding: 8px 2px;+ display: flex;+ flex-direction: column;+ gap: 10px;+}++.download-empty p {+ margin: 0;+ font-size: 13px;+}++.download-footer {+ padding: 10px 16px;+ background: var(--bg-chrome);+ border-top: 1px solid var(--border);+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ flex-wrap: wrap;+}++.signing-note {+ display: flex;+ align-items: center;+ gap: 7px;+ font-size: 11px;+ color: var(--text-muted);+}++.signing-note a {+ color: var(--text-primary);+ text-decoration: underline;+ text-decoration-color: rgba(229, 229, 229, 0.35);+ text-underline-offset: 2px;+}++.signing-note a:hover {+ text-decoration-color: var(--text-primary);+}++/* Feature Grid */+.feature-grid {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 12px;+}++.feature-card {+ padding: 16px;+ display: flex;+ flex-direction: column;+ gap: 8px;+ transition: background-color 0.12s ease, border-color 0.12s ease;+}++.feature-card:hover {+ background: #242424;+ border-color: var(--border-strong);+}++.feature-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ color: var(--text-primary);+ margin-bottom: 2px;+}++.tag {+ font-size: 10px;+ padding: 2px 6px;+ border-radius: 3px;+ background: var(--bg-canvas);+ border: 1px solid var(--border);+ color: var(--text-muted);+}++.feature-card p {+ margin: 0;+ font-size: 12.5px;+ color: var(--text-muted);+ line-height: 1.55;+}++.feature-card code {+ font-size: 11px;+ color: var(--text-primary);+ background: var(--bg-canvas);+ padding: 1px 4px;+ border-radius: 3px;+}++/* Formats & Shortcuts Two-Column */+.two-col {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 12px;+}++.info-panel {+ display: flex;+ flex-direction: column;+}++.format-list {+ padding: 12px 14px;+ display: flex;+ flex-direction: column;+ gap: 10px;+}++.format-row {+ display: grid;+ grid-template-columns: 64px minmax(0, 1fr);+ align-items: start;+ gap: 10px;+}++.format-label {+ font-size: 11px;+ color: var(--text-muted);+ padding-top: 3px;+}++.chip-wrap {+ display: flex;+ flex-wrap: wrap;+ gap: 5px;+}++.chip {+ font-size: 11px;+ padding: 2px 7px;+ border-radius: 4px;+ background: var(--bg-canvas);+ border: 1px solid var(--border);+ color: var(--text-primary);+}++.shortcut-grid {+ padding: 12px 14px;+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 8px 14px;+ flex: 1;+}++.shortcut-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 8px;+ font-size: 12px;+ color: var(--text-muted);+ padding: 4px 0;+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);+}++.stack-bar {+ padding: 9px 14px;+ border-top: 1px solid var(--border);+ background: var(--bg-chrome);+ display: flex;+ flex-wrap: wrap;+ gap: 8px;+ font-size: 11px;+}++/* Release History */+.release-history {+ display: flex;+ flex-direction: column;+ gap: 10px;+}++.release-item {+ padding: 14px 16px;+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.release-top {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ flex-wrap: wrap;+}++.release-title-group {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+}++.release-name {+ font-size: 14px;+ font-weight: 600;+}++.release-notes {+ margin: 0;+ font-size: 12.5px;+ color: var(--text-muted);+ white-space: pre-line;+ max-height: 150px;+ overflow-y: auto;+}++.release-assets-inline {+ display: flex;+ flex-wrap: wrap;+ gap: 6px;+ padding-top: 4px;+}++.asset-pill {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 4px 9px;+ border-radius: 4px;+ background: var(--bg-canvas);+ border: 1px solid var(--border);+ font-size: 11px;+ color: var(--text-primary);+ transition: background-color 0.12s ease, border-color 0.12s ease;+}++.asset-pill:hover {+ background: var(--bg-hover);+ border-color: var(--border-strong);+}++/* Footer */+.site-footer {+ border-top: 1px solid var(--border);+ background: var(--bg-chrome);+}++.footer-inner {+ max-width: 1220px;+ margin: 0 auto;+ padding: 18px 20px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 16px;+ flex-wrap: wrap;+ font-size: 12px;+}++.footer-brand {+ display: flex;+ align-items: center;+ gap: 8px;+}++.footer-links {+ display: flex;+ align-items: center;+ gap: 14px;+ flex-wrap: wrap;+ color: var(--text-muted);+}++.footer-links a:hover {+ color: var(--text-primary);+}++/* Responsive */+@media (max-width: 960px) {+ .titlebar-center {+ display: none;+ }++ .studio-body {+ grid-template-columns: 42px minmax(0, 1fr);+ }++ .dock-sidebar {+ grid-column: 1 / -1;+ border-left: none;+ border-top: 1px solid var(--border);+ flex-direction: row;+ }++ .dock-panel {+ flex: 1;+ border-bottom: none;+ border-right: 1px solid var(--border);+ }++ .dock-panel:last-child {+ border-right: none;+ }++ .feature-grid {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }++ .two-col {+ grid-template-columns: 1fr;+ }++ .hero-actions {+ align-items: flex-start;+ }+}++@media (max-width: 640px) {+ .menubar,+ .hide-sm {+ display: none;+ }++ .page {+ padding: 20px 14px 48px;+ gap: 40px;+ }++ .dock-sidebar {+ flex-direction: column;+ }++ .dock-panel {+ border-right: none;+ border-bottom: 1px solid var(--border);+ }++ .viewport {+ padding: 12px;+ }++ .viewport-hint {+ display: none;+ }++ .feature-grid {+ grid-template-columns: 1fr;+ }++ .shortcut-grid {+ grid-template-columns: 1fr;+ }+}++@media (prefers-reduced-motion: reduce) {+ html {+ scroll-behavior: auto;+ }+}