:root {
	--bg: #fff8ef;
	--ink: #2b1d12;
	--muted: #7a6656;
	--card: #ffffff;
	--edge: #2b1d12;
	font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--bg);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: clamp(16px, 4vw, 40px);
	max-width: 1100px;
	margin-inline: auto;
}

.tag {
	display: inline-block;
	margin: 0 0 8px;
	padding: 2px 8px;
	font: 600 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px dashed var(--muted);
	border-radius: 999px;
}

.hero {
	padding: clamp(20px, 5vw, 40px);
	border: 3px solid var(--edge);
	border-radius: 24px;
	background: linear-gradient(135deg, #ffd166 0%, #ff7a59 55%, #9b5de5 100%);
	box-shadow: 6px 6px 0 var(--edge);
}
.hero .tag { color: var(--ink); border-color: var(--ink); }
.hero h1 { margin: 0; font-size: clamp(36px, 8vw, 64px); line-height: 1; }
.lede { max-width: 56ch; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.5; }
.hint { margin: 0; font-size: 14px; }
code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.6); }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
	margin: 28px 0;
}

.card {
	padding: 20px;
	border: 3px solid var(--edge);
	border-radius: 20px;
	background: var(--card);
	box-shadow: 5px 5px 0 var(--edge);
	transition: transform 0.15s ease;
}
.card:hover { transform: translate(-2px, -2px) rotate(-0.4deg); }
.card h2 { margin: 0 0 12px; font-size: 22px; }

/* Editable-looking hover outline, so it is obvious what can be pointed at. */
[data-section] { position: relative; }
.card:hover, .hero:hover, footer:hover { outline: 2px dashed var(--hover-outline, #9b5de5); outline-offset: 6px; }
:root.background-selected { --hover-outline: #fff; --footer-ink: #fff; }

.swatch-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.swatch-list button {
	width: 100%;
	font: inherit;
	color: inherit;
	cursor: pointer;
	aspect-ratio: 1;
	display: flex;
	align-items: end;
	padding: 6px;
	border: 2px solid var(--edge);
	border-radius: 14px;
	background: var(--c);
}
.swatch-list button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch-list button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px white; }
.swatch-list span { padding: 1px 6px; font-size: 12px; font-weight: 600; border-radius: 6px; background: rgba(255, 255, 255, 0.85); }

.note-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.note { flex: 1 1 120px; margin: 0; padding: 14px; min-height: 90px; font-weight: 600; border: 2px solid var(--edge); border-radius: 6px; }
.note.yellow { background: #fff3a3; transform: rotate(-2deg); }
.note.pink { background: #ffc8dd; transform: rotate(1.5deg); }
.note.blue { background: #bde0fe; transform: rotate(-1deg); }

.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-list li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
.menu-list .dots { flex: 1; border-bottom: 2px dotted var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-row div { padding: 12px 4px; border-radius: 14px; background: #e9fbf5; border: 2px solid var(--edge); }
.stat-row strong { display: block; font-size: 30px; }
.stat-row span { font-size: 12px; color: var(--muted); }

.mascot { background: #f3ecff; }
.mascot-art { font-size: 72px; line-height: 1; text-align: center; margin: 4px 0 8px; }

.changelog { background: #fff9e8; }
.changelog-list { margin: 0; padding: 0; list-style: none; }
.changelog-list li { padding: 6px 0; border-top: 1px dashed var(--muted); line-height: 1.4; }
.changelog-list span { font-size: 13px; }
.changelog-list time { display: block; color: var(--muted); font-size: 11px; }

footer { padding: 16px 0 8px; text-align: center; color: var(--footer-ink, var(--muted)); font-size: 14px; }
footer .tag { color: inherit; border-color: currentColor; }
