<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Hello World Sudoku</title>
<style>
:root{--ink:#17233c;--muted:#65728b;--paper:#fffdf8;--line:#bdc8d8;--accent:#ef6f61;--blue:#4779d6}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,#ffe4b8 0 12%,transparent 30%),linear-gradient(135deg,#dcecff,#f8e9e1);font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}
main{width:min(94vw,650px);text-align:center}header{margin-bottom:22px}h1{font-size:clamp(2.4rem,9vw,5rem);line-height:.9;margin:0;letter-spacing:-.08em;font-weight:900}h1 span{color:var(--accent)}.subtitle{margin:16px auto 0;color:var(--muted);font-size:1rem}
.card{background:color-mix(in srgb,var(--paper) 92%,transparent);border:1px solid #fff;border-radius:28px;padding:clamp(16px,4vw,30px);box-shadow:0 18px 55px #42557926}
.board{width:min(100%,500px);aspect-ratio:1;margin:auto;display:grid;grid-template-columns:repeat(9,1fr);border:3px solid var(--ink);border-radius:10px;overflow:hidden;background:var(--ink)}
.cell{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;min-width:0;color:var(--ink);font-size:clamp(.9rem,3.8vw,1.45rem);font-weight:700;cursor:pointer;transition:background .18s,transform .18s}.cell:hover,.cell:focus-visible{background:#e9f0ff;outline:none;z-index:2}.cell:focus-visible{box-shadow:inset 0 0 0 3px var(--accent)}.cell.given{background:#eef3fa;color:#64738d;cursor:default}.cell.word{background:#ffe1d7;color:#c34f48;font-size:clamp(.8rem,3.3vw,1.25rem);letter-spacing:-.04em}.cell:nth-child(3n){border-right:2px solid var(--ink)}.cell:nth-child(n+19):nth-child(-n+27),.cell:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid var(--ink)}
.controls{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}.hint{font-size:.85rem;color:var(--muted)}button.action{border:0;border-radius:999px;padding:11px 18px;background:var(--ink);color:white;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 5px 0 #0c1424;transition:transform .15s,box-shadow .15s}button.action:hover{background:var(--blue)}button.action:active{transform:translateY(3px);box-shadow:0 2px 0 #0c1424}button.action:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
footer{margin-top:18px;color:var(--muted);font-size:.78rem;letter-spacing:.04em}
@media(max-width:390px){body{padding:12px}.card{padding:12px;border-radius:20px}.subtitle{font-size:.9rem}}
</style>
</head>
<body>
<main>
<header>
<h1>HELLO <span>WORLD</span></h1>
<p class="subtitle">A tiny greeting, arranged in a nine-by-nine little puzzle.</p>
</header>
<section class="card" aria-label="Decorative Sudoku greeting">
<div class="board" id="board"></div>
<div class="controls">
<button class="action" id="shuffle">Shuffle the sparkle</button>
<span class="hint">Click any blue square to cycle its number.</span>
</div>
</section>
<footer>made of squares · powered by curiosity</footer>
</main>
<script>
const board=document.querySelector('#board'),shuffle=document.querySelector('#shuffle');
const phrase={32:'H',33:'E',34:'L',35:'L',36:'O',50:'W',51:'O',52:'R',53:'L',54:'D'};
let nums=[5,3,7,6,1,9,2,8,4,6,4,2,8,5,3,7,1,9,9,8,1,2,7,4,6,5,3,8,2,6,1,9,5,4,3,7,4,9,5,3,6,8,1,7,2,7,1,3,4,2,6,8,9,5,2,6,8,9,4,1,5,7,3,1,7,4,5,8,2,9,3,6,3,5,9,7,6,1,4,2,8];
function draw(){
board.innerHTML='';
for(let i=0;i<81;i++){
let b=document.createElement('button'), word=phrase[i];
b.className='cell '+(word?'word':'given');
b.textContent=word||nums[i]; b.type='button';
b.setAttribute('aria-label',word?word+' in greeting':'Sudoku cell '+(i+1));
if(!word)b.addEventListener('click',()=>{nums[i]=nums[i]%9+1;b.textContent=nums[i]});
board.appendChild(b);
}
}
shuffle.addEventListener('click',()=>{
nums=nums.map((n,i)=>phrase[i]?n:Math.floor(Math.random()*9)+1);
draw();
});
draw();
</script>
</body>
</html>
Nothing. This page is entirely self-contained and contacts no other website when it runs.
Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.
Copyright © 2026 Stella A Henry. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.