*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
body {
  background: #f7f5f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  min-height: 100vh;
  font-family: Georgia, serif;
}
 
h1 {
  font-size: 22px;
  font-weight: extrabold;
  letter-spacing: 0.08em;
  color: #3a3830;
  margin-bottom: 6px;
  text-transform: uppercase;
}

h2 {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #3a3830;
  margin-bottom: 6px;
  text-transform: uppercase;
}

p.subtitle {
  font-size: 12px;
  color: #9a9890;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

footer {
  margin-top:auto;
  text-align: center;
  padding: 3px;
  background-color: DarkSalmon;
  color: white;
}

canvas {
  display: block;
  /* p5 sets width/height directly; keep it crisp */
  image-rendering: crisp-edges;
}
 
#error-msg {
  color: #b94040;
  font-size: 13px;
  font-family: monospace;
  margin-top: 16px;
  display: none;
}
 
