:root {
  --bg: #fff8ec;
  --panel: #ffffff;
  --ink: #2b2d42;
  --muted: #6b6f85;
  --brand: #5b5bd6;
  --brand-dark: #4343b8;
  --accent: #ffb703;
  --tutor-bubble: #eef0ff;
  --kid-bubble: #d9f7e8;
  --kid-ink: #14532d;
  --code-bg: #1f2937;
  --code-ink: #f9fafb;
  --danger: #d62839;
  --border: #e6e1d6;
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.5;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.08s ease, background 0.15s ease;
}
button:active:not(:disabled) { transform: scale(0.96); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 2px;
}

/* Pictures drawn by the tutor's visual tools (SVG made on the server). */
figure.visual { margin: 12px 0; }
figure.visual svg {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: 18px;
  border: 3px solid var(--border);
  background: #fff;
}

code, pre {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
}
