:root{--bg:#05070b;--surface:#0c0e12;--surface-2:#15171b;--line:rgba(255,255,255,.08);--line-strong:rgba(255,255,255,.2);--line-sel:rgba(255,255,255,.5);--on:rgba(255,255,255,.22);--off:rgba(255,255,255,.06);--off-edge:rgba(255,255,255,.35); --white:#fff;--ink:#f5f5f5;--soft:#d4d4d4;--muted:#a3a3a3;--dim:#737373;--vc:#34d399;--r:12px;--r-sm:6px;--ring:4px;--glow:20px; --break:40px} /* the section breaks: 40, and 48 in tall desktop windows (whole pixels); fixed in the card and on phones */ @media (min-width:861px) and (min-height:800px){:root:not(.framed){--break:48px}} *{box-sizing:border-box} html{background:var(--bg);overflow-x:clip} html,body{margin:0;color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased} /* no background on body: it is positioned (for the waterfall canvas), so its background would paint over the canvases behind it */ body{position:relative;min-height:100vh;overflow:clip} /* the background layers keep their size; body (and html, sideways) clip them, so they never make the page longer or wider than the column and the window, and they sit in this box (the body's own box), so nothing measures them as page content either */ .bgclip{position:absolute;inset:0;overflow:clip;pointer-events:none} /* the canvas card: the page is as tall as the column */ .framed body,.framed .page{min-height:0} button,textarea{font:inherit;color:inherit} [hidden]{display:none!important} /* the terrain and its waterfall: one shader canvas behind the page (waterfall.js), placed by app.js */ .fx{position:absolute;left:0;top:0;width:0;height:0;z-index:-1;pointer-events:none; /* fades out under the demo column and at the window's right edge */ -webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 50%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent 30%,#000 50%,#000 94%,transparent)} /* the haze the lines come out of: a few soft overlapping clouds in the voice's colour, across the whole width of the lines */ .halo{position:absolute;z-index:-1;pointer-events:none;opacity:.6;filter:blur(18px);transition:top 1.2s ease-in-out; background:radial-gradient(28% 70% at 22% 52%,color-mix(in srgb,var(--vc) 55%,transparent),transparent 72%), radial-gradient(30% 60% at 46% 44%,color-mix(in srgb,var(--vc) 60%,transparent),transparent 72%), radial-gradient(26% 75% at 70% 56%,color-mix(in srgb,var(--vc) 55%,transparent),transparent 72%), radial-gradient(20% 55% at 88% 48%,color-mix(in srgb,var(--vc) 40%,transparent),transparent 72%), radial-gradient(50% 50% at 50% 50%,color-mix(in srgb,var(--vc) 30%,transparent),transparent 100%)} .nofx .halo{display:none} /* two columns, each centred vertically in the window: the demo on the left, the waterfall / mountains on the right */ .page{display:grid;grid-template-columns:minmax(0,656px) minmax(0,1fr);align-items:center;min-height:100vh;max-width:1400px;margin:0 auto} /* the left column: one block, one left edge (28px in), 600px of content. Monochrome: boxes share one opaque fill and a 1px hairline, 12px radius for boxes, 6px for pickers, a round play button; the one colour is the picked voice's key. One spacing system: 8 inside a group, 16 between groups, a section break (--break: 40, more in tall windows; 12 only inside the brand block) */ .col{padding:16px 28px} .art{align-self:stretch} /* the name and what it is */ /* the headline, and at the end the sign-off, sit on the column's own centre; everything between keeps the one left edge */ .top h1{margin:0;font-size:56px;line-height:56px;font-weight:800;letter-spacing:-.025em;text-align:center} /* the two models: the global switch. The picked one is lifted by a lighter fill and a white border, no glow */ .models{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:var(--break)} /* text edge: the 1px border is part of the 15px side padding of the cards, the composer and the keys, so their text starts at x=64 with the stats'; don't round these to 16 */ .mcard{position:relative;overflow:hidden;display:flex;flex-direction:column;min-width:0;padding:11px 15px 15px;border-radius:var(--r);text-align:left;cursor:pointer; color:var(--muted);background:var(--surface);border:1px solid var(--line);transition:border-color .2s,background .2s,color .2s} /* while the other model loads, this one can't be picked */ .mcard:not([aria-disabled="true"]):hover{border-color:var(--line-strong)}.mcard[aria-disabled="true"]{cursor:default} .mcard[aria-checked="true"]{background:var(--surface-2);border-color:var(--line-sel);color:var(--ink)} .mname{font-size:16px;line-height:22px;font-weight:600;white-space:nowrap}.mname b{font-weight:800} /* the traits as tags under the name, on a row of their own so both cards' tables start at the same height */ .mtraits{display:flex;flex-wrap:wrap;gap:6px;min-height:22px;margin-top:6px} .tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border:1px solid var(--line-strong);border-radius:var(--r-sm);font-size:12px;font-weight:500;line-height:1;color:var(--soft);white-space:nowrap} /* loading: the card says where it is in place of its tags, and a 2px bar along its bottom edge fills with the download */ .mstate{display:none;font-size:12px;font-weight:500;line-height:22px}.mcard.busy .mtraits>:not(.mstate){display:none}.mcard.busy .mtraits>.mstate{display:block;color:var(--soft)} .mcard.failed .mtraits>.mstate{color:var(--ink)} .mcard.busy:not(.failed)::before,.mcard.busy:not(.failed)::after{content:"";position:absolute;left:0;bottom:0;height:2px;pointer-events:none} .mcard.busy:not(.failed)::before{right:0;background:var(--line)} .mcard.busy:not(.failed)::after{width:calc(var(--p,0) * 100%);background:var(--soft);transition:width .2s linear} /* the facts: a light key/value table, the same rows on both cards (params, voices, download with the cpu and webgpu files stacked), keys on the left, values on the right, light grey cells split by thin dark lines (the card showing through the 1px gaps); nothing in it larger than the card's name */ .spec{display:grid;grid-template-columns:76px minmax(0,1fr);gap:1px;margin-top:12px;border-radius:var(--r-sm);overflow:hidden;font-variant-numeric:tabular-nums} .spec>span{display:flex;align-items:center;min-width:0;padding:4px 8px;background:rgba(255,255,255,.05);white-space:nowrap;transition:background .2s,color .2s} .mcard[aria-checked="true"] .spec>span{background:rgba(255,255,255,.09)} .spec>.k{font-size:12px;line-height:20px;color:var(--muted)} .spec>.v{font-size:13px;font-weight:500;line-height:20px;color:var(--muted)} .mcard[aria-checked="true"] .spec>.v{color:var(--ink)} .spec>.dlv{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:8px} .dlv .k2{font-size:12px;font-weight:400;color:var(--muted)} /* read by screen readers only */ .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap} /* the composer: five lines of text (more scroll inside, with a thin scrollbar), play in its own column on the right, so the text's scroll box and its scrollbar end before it */ .play{margin-top:16px} .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;padding:8px 15px;border-radius:var(--r);border:1px solid var(--line);background:var(--surface)} .composer:has(textarea:focus){border-color:var(--line-sel)} .composer textarea::placeholder{color:var(--muted)} .composer textarea{display:block;width:100%;height:120px;background:transparent;border:0;outline:0;resize:none;font-size:16px;line-height:24px;padding:0;color:var(--ink); scrollbar-gutter:stable} /* a thin scrollbar that shows whenever the text overflows: WebKit/Blink draw this one (and keep it visible); Firefox the standard one */ @supports not selector(::-webkit-scrollbar){.composer textarea{scrollbar-width:thin;scrollbar-color:var(--off-edge) transparent}} .composer textarea::-webkit-scrollbar{width:6px}.composer textarea::-webkit-scrollbar-track{background:transparent} .composer textarea::-webkit-scrollbar-thumb{background:var(--off-edge);border-radius:3px} .go{width:32px;height:32px;border-radius:50%;border:0;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--ink);color:var(--bg); transition:transform .1s,background .2s,box-shadow .25s} .go:not(:disabled):hover{background:var(--white)} .go .i-stop,.go.stop .i-play{display:none}.go.stop .i-stop{display:block} /* the triangle's centre of mass and the square's centre both sit on the button's middle (12, 12 in the icon) */ .go svg{display:block} .go:active{transform:scale(.95)}.go:disabled{opacity:.35;cursor:default} .go.playing{box-shadow:0 0 0 var(--ring) var(--line-strong)} .stage{display:none;position:relative;height:160px;margin-top:16px} .nofx .stage{display:block} .line{position:absolute;left:-8%;top:0;width:118%;height:100%;pointer-events:none; -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)} .loadbar{position:absolute;left:30%;right:30%;bottom:16px;height:2px;border-radius:2px;background:var(--line);overflow:hidden;transition:opacity .4s} .loadbar i{display:block;height:100%;width:0;background:var(--soft)}.loadbar.off{opacity:0} .loadbar.wait i{width:30%;animation:slide 1.1s ease-in-out infinite}@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}} /* the picked model's facts on this device: one quiet text line under the cards, text on x=64; the numbers change width; only the text inside this one-row line shifts (on phones: two fixed rows) */ .metrics{display:flex;align-items:baseline;flex-wrap:wrap;height:19px;margin-top:8px;padding:0 16px;line-height:19px;white-space:nowrap} .stat span{font-size:12px;color:var(--muted)} .stat b{font-size:13px;font-weight:500;color:var(--soft);font-variant-numeric:tabular-nums} .stat+.stat::before{content:"·" / "";margin:0 8px;color:var(--dim)} /* estimates read as estimates by their "≈" and the quiet grey (the title says "typical"), as does the backend's name while it loads */ .metrics.typical .stat+.stat b,.metrics.loading #m-be{color:var(--muted)} /* the voices: plain monochrome boxes; the picked one takes its voice's colour (wash, ring and glow), the one colour in the column */ .keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:16px} /* the key letter in the top-right corner, the name larger in the bottom-left; the voice's own line just above the name (room kept, so turning lines on moves no name) */ .key{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:14px 22px;row-gap:2px;align-content:end;height:76px;padding:0 12px 9px;border-radius:var(--r);overflow:hidden; text-align:left;cursor:pointer;color:var(--ink);background:var(--surface);border:1px solid var(--line);transition:border-color .2s,box-shadow .25s} .key::before{content:"";position:absolute;inset:0;opacity:0;transition:opacity .25s;pointer-events:none; background:linear-gradient(180deg,color-mix(in srgb,var(--c) 50%,transparent),color-mix(in srgb,var(--c) 22%,transparent) 70%,color-mix(in srgb,var(--c) 30%,transparent))} .key b,.key small{position:relative} .key b{grid-area:2/1;font-size:17px;line-height:22px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* the key's letter: a plain grey label in the body font, no box (the name leads); white on the picked key. Pinned to the corner, out of the name's row, so a long name never pushes it out */ .key kbd{position:absolute;top:7px;right:10px; font-family:inherit;font-size:12px;font-weight:500;line-height:18px;font-variant-numeric:tabular-nums;color:var(--muted)} .keys:not(.inert) .key.sel kbd{color:var(--white)} /* one line per voice: the key shows its line (one line) above the name */ .key .own{grid-area:1/1;display:block;height:14px;font-size:12px;line-height:14px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* the line's room is always kept, so turning lines on moves no name */ .keys:not(.lines-on) .key .own{visibility:hidden}.key.sel .own{color:var(--ink)} .keys:not(.inert) .key:not(.sel):hover{border-color:var(--line-strong)} .key.sel{border-color:var(--c);box-shadow:inset 0 0 0 1px var(--c),0 0 var(--glow) -2px color-mix(in srgb,var(--c) 60%,transparent)} .key.sel::before{opacity:1} /* before a model is ready the keys are there but quiet, and clicks do nothing */ .keys.inert .key{cursor:default;color:var(--muted)} /* the picked voice while a model loads: its ring and half its wash, no glow (it can't be played yet) */ .keys.inert .key.sel{box-shadow:inset 0 0 0 1px var(--c)}.keys.inert .key.sel::before{opacity:.5} /* the utility row under the voices: the two options (a line per voice, key letters) and the layout */ .live{display:flex;align-items:center;gap:16px;height:32px;margin-top:8px;color:var(--muted);font-size:13px} /* the two options: a label, then an Off | On picker on an opaque hairline track; the label brightens while On. The first label's ink sits on x=48 */ .opt{flex:none;display:flex;align-items:center;gap:8px;height:32px} .opt-l{color:var(--muted);white-space:nowrap;transition:color .15s} .opt.on .opt-l{color:var(--soft)} .seg{display:flex;padding:2px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface)} .seg [role=radio]{position:relative;min-width:36px;height:26px;padding:0 8px;border:0;border-radius:calc(var(--r-sm) - 2px);background:none;color:var(--muted);font-size:13px;cursor:pointer; transition:color .15s,background .15s} /* 26px segments in a 32px hit box (44 on touch) */ .seg [role=radio]::after{content:"";position:absolute;inset:-3px 0} .seg [role=radio]:hover{color:var(--ink)} /* the picked side always sits in a lifted pill: Off in a neutral one, On in the brighter one (like the picked model); the other side is plain grey text */ .seg [role=radio][aria-checked="true"][data-v="0"]{background:var(--off);box-shadow:inset 0 0 0 1px var(--off-edge);color:var(--soft)} .seg [role=radio][aria-checked="true"][data-v="1"]{background:var(--on);box-shadow:inset 0 0 0 1px var(--line-sel);color:var(--ink);font-weight:600} /* the keyboard layout the letters follow: plain text after the key letters picker (it cycles); its room is kept while the letters are off */ .layout{display:flex;align-items:center;min-width:32px;height:32px;padding:0;border:0;background:none;cursor:pointer;color:var(--muted)} .layout:hover,.layout:focus-visible{color:var(--ink)}.layout.off{visibility:hidden} /* after "Runs on CPU" when WebGPU was benched after a crash */ .retry{position:relative;display:inline-flex;align-items:center;height:16px;margin-left:8px;font-size:12px;border:0;background:none;padding:0;color:var(--soft);text-decoration:underline;text-underline-offset:3px;cursor:pointer} .retry::before{content:"";position:absolute;inset:-8px -4px} /* focus: one white ring for the small controls */ .mcard:focus-visible,.key:focus-visible,.seg [role=radio]:focus-visible,.layout:focus-visible,.go:focus-visible,.retry:focus-visible,footer a:focus-visible{outline:2px solid var(--white);outline-offset:2px} /* the licence on the left edge, then "brought to you by" and the Kale wordmark (as wide as that text, set in app.js), centred */ footer{margin-top:var(--break);color:var(--muted);font-size:13px;line-height:20px} footer p{margin:0}footer a{display:inline-block;padding:6px 0;margin:-6px 0;color:var(--soft);text-underline-offset:3px}footer a:hover{color:var(--ink)} .brand{display:flex;flex-direction:column;align-items:center;gap:12px;width:max-content;margin:var(--break) auto 0;color:var(--soft);text-decoration:none;transition:color .15s}.brand:hover{color:var(--ink)} .brand span{font-size:13px;line-height:20px;color:var(--muted)} .brand svg{display:block;height:auto;max-height:42px} /* touch screens have no keyboard: no letters, no layout button; and fingers get 44px targets */ @media (hover:none){ .key kbd,.opt-kbd{display:none} /* 44px targets for fingers */ .go{width:44px;height:44px} .seg [role=radio]{min-width:44px}.seg [role=radio]::after{inset:-9px 0}.retry::before{inset:-14px -4px}footer a{padding:12px 0;margin:-12px 0} } .toast{position:fixed;left:50%;bottom:16px;transform:translate(-50%,8px);opacity:0;background:var(--surface-2);border:1px solid var(--line);color:var(--ink);padding:10px 16px;border-radius:var(--r);font-size:14px;transition:opacity .25s,transform .25s;z-index:30;max-width:calc(100vw - 32px)} .toast.on{opacity:1;transform:translate(-50%,0)} /* middle widths: a wider gutter between the column and the first waterfall lines */ @media (min-width:861px) and (max-width:1180px){.col{padding-right:64px}} /* phones: one column, same tokens */ @media (max-width:860px){ body{min-height:0}.page{display:block;min-height:0}.col{padding:24px 16px}.art{display:none} .fx{-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)} .top h1{font-size:40px;line-height:44px} .models{grid-template-columns:1fr} /* two fixed rows ("Runs on" alone, then the two numbers), no dots; opaque and full-bleed, so the waterfall's lines don't run through the text and no cut edge shows */ .metrics{height:auto;column-gap:16px;row-gap:4px;margin:8px -16px 0;padding:0 32px;background:var(--bg)}.stat:first-child{flex-basis:100%} .stat+.stat::before{display:none}.stat b{font-size:12px} .stage{height:140px;margin:16px -16px 0}.line{left:0;width:100%} .key{height:72px;padding:0 7px 8px}.key b{font-size:14px;line-height:22px;letter-spacing:-.02em}.key kbd{top:5px;right:7px} .live{flex-wrap:wrap;height:auto;row-gap:8px}footer a{white-space:nowrap} } /* reduced motion: no frozen loading bar either (the model card says what is loading) */ @media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}.loadbar.wait{opacity:0}}